import AddAtomW not found in KERNELBASE.dll
Created by: illera88
OS: Windows 10 Arch: 64 bits
Hi, I have an app that uses libz3 which crashes when running with the error:
<Application client.dll(2080). Unable to load client library: import AddAtomW not found in KERNELBASE.dll.>
If I use the static library the problem does not arise.
Here is the log with level 3: crackme_xor.exe.0.6752.txt
Here is the dumpbin /exports client.dll result:
Dump of file C:\Users\default.LAPTOP-BGOSJ7N3\Documents\code\Athena\Athena\build_x64\bin\Athena.dll
File Type: DLL
Section contains the following imports:
dynamorio.dll
72141280 Import Address Table
72242190 Import Name Table
0 time date stamp
0 Index of first forwarder reference
FC dr_register_kernel_xfer_event
15B dr_unregister_kernel_xfer_event
F9 dr_register_exception_event
158 dr_unregister_exception_event
105 dr_register_pre_syscall_event
164 dr_unregister_pre_syscall_event
104 dr_register_post_syscall_event
163 dr_unregister_post_syscall_event
2AB opnd_is_immed_int
2AD opnd_is_instr
2F2 reg_is_gpr
2F4 reg_is_pointer_sized
98 dr_global_alloc
99 dr_global_free
116 dr_rwlock_create
117 dr_rwlock_destroy
119 dr_rwlock_read_lock
11A dr_rwlock_read_unlock
11C dr_rwlock_write_lock
11E dr_rwlock_write_unlock
4F dr_atomic_add32_return_sum
96 dr_get_tls_field
12B dr_set_tls_field
1C8 instr_init
1AA instr_free
20F instr_reset
1B4 instr_get_next
216 instr_set_meta
230 instr_valid
1B7 instr_get_opcode
1C4 instr_get_target
203 instr_opcode_valid
22A instr_set_translation
1B9 instr_get_predicate
1D0 instr_is_cti
A6 dr_insert_read_tls_field
254 instrlist_set_auto_predicate
23E instrlist_first
247 instrlist_last
284 opnd_create_pc
280 opnd_create_instr
29F opnd_is_base_disp
2A4 opnd_is_far_base_disp
29E opnd_is_abs_addr
2BD opnd_is_rel_addr
29D opnd_get_size
2C6 opnd_set_size
28D opnd_get_base
15D dr_unregister_module_unload_event
293 opnd_get_index
299 opnd_get_scale
29A opnd_get_segment
28C opnd_get_addr
2CD opnd_uses_reg
2CC opnd_size_in_bytes
A1 dr_insert_get_seg_base
1A5 instr_destroy
17E instr_build
228 instr_set_src
214 instr_set_dst
188 instr_create_0dst_0src
189 instr_create_0dst_1src
18A instr_create_0dst_2src
18F instr_create_1dst_2src
250 instrlist_preinsert
252 instrlist_remove
F7 dr_register_delete_event
FB dr_register_filter_syscall_event
EC dr_recurlock_create
ED dr_recurlock_destroy
EE dr_recurlock_lock
F2 dr_recurlock_unlock
B5 dr_lookup_module_by_name
140 dr_syscall_get_param
70 dr_flush_region
73 dr_fragment_exists_at
212 instr_set_app
1C5 instr_get_x86_mode
1B2 instr_get_isa_mode
1F6 instr_is_ubr
195 instr_create_2dst_2src
F5 dr_reg_spill_slot_opnd
EB dr_read_saved_reg
173 dr_write_saved_reg
249 instrlist_meta_append
A0 dr_insert_clean_call_ex
F4 dr_redirect_native_target
243 instrlist_insert_mov_immed_ptrsz
92 dr_get_stolen_reg
43 dr_app_pc_as_jump_target
44 dr_app_pc_as_load_target
235 instrlist_append
FE dr_register_module_unload_event
15C dr_unregister_module_load_event
FD dr_register_module_load_event
167 dr_unregister_thread_exit_event
108 dr_register_thread_exit_event
168 dr_unregister_thread_init_event
109 dr_register_thread_init_event
166 dr_unregister_restore_state_ex_event
107 dr_register_restore_state_ex_event
155 dr_unregister_bb_event
F6 dr_register_bb_event
2D decode
16D dr_vfprintf
91 dr_get_stdout_file
62 dr_directory_exists
5A dr_create_dir
82 dr_get_main_module
F3 dr_redirect_execution
172 dr_write_file
128 dr_set_mcontext
120 dr_safe_write
5E dr_delay_flush_region
12C dr_sleep
59 dr_create_client_thread
EA dr_read_file
DA dr_open_file
6B dr_file_exists
89 dr_get_proc_address
CC dr_module_preferred_name
76 dr_free_module_data
B4 dr_lookup_module
150 dr_try_stop
14F dr_try_start
14E dr_try_setup
53 dr_client_thread_set_suspendable
71 dr_fprintf
3A disassemble_to_buffer
39 disassemble_set_syntax
33 decode_next_pc
83 dr_get_mcontext
9F dr_insert_clean_call
24E instrlist_meta_preinsert
113 dr_restore_reg
124 dr_save_reg
18E instr_create_1dst_1src
1DD instr_is_mbr
1CC instr_is_call
231 instr_writes_memory
209 instr_reads_memory
1AF instr_get_dst
1C3 instr_get_src
1FF instr_num_dsts
200 instr_num_srcs
1AC instr_get_app_pc
1FA instr_length
1CB instr_is_app
151 dr_unlink_flush_region
AB dr_insert_write_raw_tls
A5 dr_insert_read_raw_tls
E8 dr_raw_tls_cfree
E7 dr_raw_tls_calloc
7D dr_get_dr_segment_base
94 dr_get_thread_id
7C dr_get_current_drcontext
12D dr_snprintf
64 dr_enable_console_printing
E2 dr_printf
C2 dr_messagebox
B2 dr_log
55 dr_close_file
D5 dr_mutex_unlock
D1 dr_mutex_lock
D0 dr_mutex_destroy
CF dr_mutex_create
11F dr_safe_read
E6 dr_raw_mem_free
E5 dr_raw_mem_alloc
14A dr_thread_free
149 dr_thread_alloc
3C dr_abort
78 dr_get_application_name
125 dr_set_client_name
79 dr_get_client_base
7A dr_get_client_path
2FC reg_resize_to_opsz
291 opnd_get_immed_int
297 opnd_get_reg
2AF opnd_is_memory_reference
2B8 opnd_is_reg
274 opnd_create_base_disp
27D opnd_create_immed_int
285 opnd_create_reg
28E opnd_get_disp
FA dr_register_exit_event
2E4 qsort
KERNEL32.dll
72141000 Import Address Table
72241F10 Import Name Table
0 time date stamp
0 Index of first forwarder reference
C2 CreateFileW
4FC SetEnvironmentVariableA
5F0 WriteConsoleW
530 SetStdHandle
3FD OutputDebugStringW
3AA LoadLibraryExW
33F HeapReAlloc
1A3 FreeEnvironmentStringsW
22E GetEnvironmentStringsW
210 GetCurrentProcessId
430 QueryPerformanceCounter
268 GetModuleFileNameA
452 ReadConsoleW
50C SetFilePointerEx
1F4 GetConsoleMode
1E2 GetConsoleCP
198 FlushFileBuffers
245 GetFileType
269 GetModuleFileNameW
2A9 GetProcessHeap
28D GetOEMCP
1AA GetACP
375 IsValidCodePage
341 HeapSize
1B AreFileApisANSI
26C GetModuleHandleExW
157 ExitProcess
14C EnumSystemLocalesW
305 GetUserDefaultLCID
377 IsValidLocale
25A GetLocaleInfoW
399 LCMapStringW
93 CompareStringW
2A4 GetProcAddress
26D GetModuleHandleW
2C5 GetStartupInfoW
583 TlsFree
585 TlsSetValue
584 TlsGetValue
582 TlsAlloc
570 TerminateProcess
561 Sleep
351 InitializeCriticalSectionAndSpinCount
519 SetLastError
552 SetUnhandledExceptionFilter
592 UnhandledExceptionFilter
4BC RtlVirtualUnwind
4AE RtlCaptureContext
1B9 GetCPInfo
214 GetCurrentThreadId
1CE GetCommandLineA
338 HeapAlloc
33C HeapFree
4BB RtlUnwindEx
4B5 RtlLookupFunctionEntry
444 RaiseException
4B7 RtlPcToFileHeader
370 IsProcessorFeaturePresent
36A IsDebuggerPresent
2CC GetStringTypeW
3D4 MultiByteToWideChar
FF DecodePointer
125 EncodePointer
106 DeleteCriticalSection
3A5 LeaveCriticalSection
129 EnterCriticalSection
5DD WideCharToMultiByte
2DD GetSystemTimeAsFileTime
20F GetCurrentProcess
2D7 GetSystemInfo
522 SetNamedPipeHandleState
256 GetLastError
5F1 WriteFile
454 ReadFile
BA CreateFileA
7F CloseHandle
4EB SetConsoleTextAttribute
2C7 GetStdHandle
4F9 SetEndOfFile
libz3.dll
72141860 Import Address Table
72242770 Import Name Table
0 time date stamp
0 Index of first forwarder reference
Ordinal 12
Ordinal 13
Ordinal 33
Ordinal 38
Ordinal 54
Ordinal 60
Ordinal 67
Ordinal 151
Ordinal 205
Ordinal 210
Ordinal 211
Ordinal 233
Ordinal 255
Ordinal 264
Ordinal 299
Ordinal 300
Ordinal 302
Ordinal 305
Ordinal 306
Ordinal 307
Ordinal 308
Ordinal 345
Ordinal 348
Ordinal 416
Ordinal 424
Ordinal 425
Ordinal 430
Ordinal 435
Ordinal 439
Ordinal 455
Ordinal 456
Ordinal 457
Ordinal 458
Ordinal 459
Ordinal 462
Ordinal 257
Ordinal 290
Ordinal 6
Ordinal 7
Ordinal 10
Ordinal 36
Ordinal 59
Ordinal 61
Ordinal 62
Ordinal 66
Ordinal 83
Ordinal 86
Ordinal 87
Ordinal 88
Ordinal 89
Ordinal 90
Ordinal 91
Ordinal 92
Ordinal 93
Ordinal 94
Ordinal 95
Ordinal 96
Ordinal 97
Ordinal 98
Ordinal 99
Ordinal 100
Ordinal 101
Ordinal 102
Ordinal 103
Ordinal 104
Ordinal 105
Ordinal 106
Ordinal 107
Ordinal 108
Ordinal 109
Ordinal 110
Ordinal 111
Ordinal 112
Ordinal 114
Ordinal 115
Ordinal 116
Ordinal 117
Ordinal 118
Ordinal 271
Ordinal 334
Ordinal 346
Ordinal 234
Ordinal 241
Ordinal 249
Ordinal 250
Ordinal 251
Ordinal 258
Ordinal 11
Summary
DE000 .data
E000 .pdata
104000 .rdata
3000 .reloc
1000 .rsrc
140000 .text