joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d3fe
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41af20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00409c0e
mov dword [ebp - 0x14], eax
cmp dword [0x4bb47c], esi
jne 0x40d4f1
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d47e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d5d1
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d5d1
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d5d1
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4bb47c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4bb480], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4bb484], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4bb48c], eax
test eax, eax
je 0x40d4ee
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4bb488], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d516
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d509
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d52b
push 4
pop eax
jmp 0x40d5d3
cmp dword [ebp - 0x14], esi
je 0x40d52b
push dword [0x4bb47c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d510
mov eax, dword [0x4bb488]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d589
cmp dword [0x4bb48c], edi
je 0x40d589
push eax
call ebx
push dword [0x4bb48c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d589
test eax, eax
je 0x40d589
call ecx
test eax, eax
je 0x40d57e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d57e
test byte [ebp - 8], 1
jne 0x40d589
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d5b9
mov eax, dword [0x4bb480]
cmp eax, edi
je 0x40d5b6
push eax
call ebx
test eax, eax
je 0x40d5b6
call eax
mov esi, eax
test esi, esi
je 0x40d5b6
mov eax, dword [0x4bb484]
cmp eax, edi
je 0x40d5b6
push eax
call ebx
test eax, eax
je 0x40d5b6
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4bb47c]
call ebx
test eax, eax
je 0x40d5d1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d5d3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404247
mov esp, ebp
pop ebp
ret
Function at 0x401e80
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x41b008]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, ecx
lea eax, [esp + 8]
push edi
cmp word [esi], 0
je 0x401ebf
push str.SQLDUMPER_ERRORLOG.log
push esi
push 0x410d20
push 0x104
push eax
call fcn.00401090
add esp, 0x14
mov edi, eax
jmp 0x401f07
mov edi, str.SQLDUMPER_ERRORLOG.log
lea ecx, [esp + 0xc]
mov edx, 0x104
sub edi, eax
nop
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x401eee
movzx eax, word [edi + ecx]
test ax, ax
je 0x401eee
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x401ed0
test edx, edx
lea eax, [ecx - 2]
mov edi, 0x8007007a
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
xor eax, eax
test edx, edx
cmovne edi, eax
test edi, edi
js 0x402043
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [esi + 0x410], eax
cmp eax, 0xffffffff
jne 0x401ff3
cmp word [esi], 0
mov dword [esi + 0x410], 0
je 0x401f97
lea ecx, [esp + 0xc]
mov edi, str.SQLDUMPER_ERRORLOG.log
mov eax, ecx
mov edx, 0x104
sub edi, eax
nop dword [eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x401f7e
movzx eax, word [edi + ecx]
test ax, ax
je 0x401f7e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x401f60
test edx, edx
lea eax, [ecx - 2]
mov edi, 0x8007007a
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
xor eax, eax
test edx, edx
cmovne edi, eax
test edi, edi
js 0x402043
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [esi + 0x410], eax
cmp eax, 0xffffffff
jne 0x401ff3
xor eax, eax
mov dword [esi + 0x410], 0
cmp dword [esi + 0x410], eax
pop edi
setne al
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0040e29f
add esp, 0x210
ret
push 0
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
test eax, eax
jne 0x402021
push eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 2
push 0x4105ec
push dword [esi + 0x410]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x402043
xor eax, eax
cmp dword [esi + 0x410], eax
pop edi
setne al
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0040e29f
add esp, 0x210
ret
mov ecx, dword [esp + 0x214]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0040e29f
add esp, 0x210
ret
Function at 0x407a40
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x4d8
mov eax, dword [0x41b008]
xor eax, esp
mov dword [esp + 0x4d4], eax
mov eax, dword [esp + 0x4dc]
push ebx
push ebp
push esi
push edi
push 0x190
mov dword [esp + 0x20], eax
mov ebx, ecx
lea eax, [esp + 0x3c]
mov dword [esp + 0x1c], edx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0x190
lea eax, [esp + 0x40]
push eax
push ebx
call dword [sym.imp.kernel32.dll_K32EnumProcessModules]
test eax, eax
je 0x407bc3
mov edi, dword [esp + 0x14]
shr edi, 2
cmp edi, 0x64
jbe 0x407aae
mov edi, 0x64
jmp 0x407ab6
test edi, edi
je 0x407bde
mov ebp, dword [sym.imp.kernel32.dll_GetLastError]
xor esi, esi
nop
push 0xc
lea eax, [esp + 0x30]
push eax
push dword [esp + esi*4 + 0x40]
push ebx
call dword [sym.imp.kernel32.dll_K32GetModuleInformation]
test eax, eax
je 0x407b65
push 0x104
lea eax, [esp + 0x2d4]
push eax
push dword [esp + esi*4 + 0x40]
push ebx
call dword [sym.imp.kernel32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x407b65
push 0x104
lea eax, [esp + 0x1cc]
push eax
push dword [esp + esi*4 + 0x40]
push ebx
call dword [sym.imp.kernel32.dll_K32GetModuleBaseNameA]
test eax, eax
je 0x407b65
push dword [esp + 0x18]
lea eax, [esp + 0x1cc]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x407b7c
push 1
push eax
lea eax, [esp + 0x2d8]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x407b87
call ebp
push eax
lea eax, [esp + 0x2d4]
push eax
push str.Could_not_load_module__s___d_.
push 1
push 0x41b030
call fcn.00401ad0
add esp, 0x14
mov eax, esi
jmp 0x407be0
call ebp
push eax
push str.Could_not_open_module_information_for_remote_process___d_.
push 1
push 0x41b030
call fcn.00401ad0
add esp, 0x10
inc esi
cmp esi, edi
jl 0x407ac0
jmp 0x407bde
push 0xc
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_K32GetModuleInformation]
test eax, eax
je 0x407bb2
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x2c]
mov dword [ecx], eax
mov eax, esi
jmp 0x407be0
push esi
call dword [sym.imp.kernel32.dll_FreeLibrary]
call ebp
push eax
push str.Could_not_open_module_information_for_local_image___d_.
jmp 0x407bcf
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push str.Could_not_enumerate_process_modules___d_.
push 1
push 0x41b030
call fcn.00401ad0
add esp, 0x10
xor eax, eax
mov ecx, dword [esp + 0x4e4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040e29f
add esp, 0x4d8
ret 4
Function at 0x408d20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x22c
mov eax, dword [0x41b008]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [0x43fb54]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
movzx eax, word [eax + 4]
push eax
push str.Lookup_process_by_port__d
push 2
push 0x41b030
call fcn.00401ad0
add esp, 0x10
mov ecx, 2
call fcn.00408c50
mov ecx, 0x17
mov ebx, eax
call fcn.00408c50
mov ecx, dword [sym.imp.ws2_32.dll_ntohs]
mov ebp, eax
test ebp, ebp
je 0x408dbc
xor esi, esi
cmp dword [ebp], esi
jbe 0x408dbc
mov edi, ebp
nop dword [eax]
mov eax, dword [0x43fb54]
movzx eax, word [eax + 4]
push eax
call ecx
mov ecx, dword [sym.imp.ws2_32.dll_ntohs]
movzx eax, ax
cmp eax, dword [edi + 0x18]
je 0x408db5
inc esi
add edi, 0x38
cmp esi, dword [ebp]
jb 0x408d90
jmp 0x408dbc
mov eax, dword [edi + 0x38]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
jne 0x408dfb
test ebx, ebx
je 0x408dfb
xor esi, esi
cmp dword [ebx], esi
jbe 0x408dfb
mov edi, ebx
nop
mov eax, dword [0x43fb54]
movzx eax, word [eax + 4]
push eax
call ecx
movzx eax, ax
cmp eax, dword [edi + 0xc]
je 0x408df4
mov ecx, dword [sym.imp.ws2_32.dll_ntohs]
inc esi
add edi, 0x18
cmp esi, dword [ebx]
jb 0x408dd0
jmp 0x408dfb
mov eax, dword [edi + 0x18]
mov dword [esp + 0x10], eax
push 0x1c
push ebx
call fcn.0040dfde
push 0x3c
push ebp
call fcn.0040dfde
add esp, 0x10
cmp dword [esp + 0x10], 0
jne 0x408ec4
push str.Lookup_process_by_uptime_pid
push 2
push 0x41b030
call fcn.00401ad0
add esp, 0xc
mov dword [esp + 0x14], 0
lea eax, [esp + 0x24]
push 0x20a
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x18], 0x105
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [0x43fb54]
push 0
add eax, 0x316
push eax
call dword [sym.imp.instapi150.dll_GetInstRegPathByName]
test eax, eax
je 0x408ec4
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
lea eax, [esp + 0x30]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408ec4
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 4
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
push 0
push str.uptime_pid
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esp + 0x10]
push str.Lookup_process_finished_with_PID_d
push 2
push 0x41b030
call fcn.00401ad0
mov ecx, dword [esp + 0x248]
add esp, 0x10
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040e29f
add esp, 0x22c
ret
Function at 0x408f00
Capabilities:
Create thread
Inject thread

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push esi
mov esi, ecx
mov edx, str.sqlservr.exe
push edi
push eax
mov ecx, ebp
mov dword [esi], ebp
call fcn.00407a40
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp + 0x18], eax
test eax, eax
je 0x40900f
push str.DmpRemoteDumpRequest
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x408ff8
sub ebx, dword [esp + 0x14]
je 0x408ff8
push 4
push 0x3000
push 0x22c
push 0
push ebp
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
mov dword [esi + 8], eax
test eax, eax
jne 0x408f7b
call edi
push eax
push str.Unable_to_allocate_parameter_block___d_
jmp 0x409000
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0
push ecx
push 0x22c
push dword [esp + 0x38]
push eax
push ebp
call dword [sym.imp.kernel32.dll_WriteProcessMemory]
test eax, eax
je 0x408fee
cmp dword [esp + 0x24], 0x22c
jne 0x408fee
lea eax, [esp + 0x1c]
push eax
push 0
push dword [esi + 8]
push ebx
push 0
push 0
push ebp
call dword [sym.imp.kernel32.dll_CreateRemoteThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x408fce
call edi
push eax
push str.Unable_to_create_injected_thread___d_
jmp 0x409000
push dword [esp + 0x18]
mov dword [esi + 8], 0
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x14
call edi
push eax
push str.Unable_to_copy_parameter_block___d_
jmp 0x409000
call edi
push eax
push str.Unable_to_locate_injected_thread_start_point___d_
push 1
push 0x41b030
call fcn.00401ad0
add esp, 0x10
mov eax, dword [esi + 4]
test eax, eax
je 0x40901d
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esi + 8]
test eax, eax
je 0x40904f
push 0x8000
push 0
push eax
push dword [esi]
call dword [sym.imp.kernel32.dll_VirtualFreeEx]
test eax, eax
jne 0x40904f
call edi
push eax
push str.Unable_to_free_parameter_block__x
push 1
push 0x41b030
call fcn.00401ad0
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0x14

Function at 0x4091e0
Capabilities:
Resume thread

Disassembly:
mov eax, dword [0x43b91c]
push ebx
push esi
push edi
test eax, eax
je 0x40923c
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
nop dword [eax + eax]
dec eax
mov dword [0x43b91c], eax
mov esi, dword [eax*4 + 0x43b920]
push esi
call dword [sym.imp.kernel32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x409230
call edi
push eax
push str.Unable_to_resume_suspended_thread____d
push 1
push 0x41b030
call fcn.00401ad0
add esp, 0x10
push esi
call ebx
mov eax, dword [0x43b91c]
test eax, eax
jne 0x409200
pop edi
pop esi
pop ebx
ret
Function at 0x409250
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
sub esp, 0x28
mov eax, dword [0x41b008]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
push str.GetProcessIdOfThread
push 0x4110c0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
push dword [0x420fa8]
mov dword [esp + 0x18], eax
push 4
call dword [sym.imp.kernel32.dll_CreateToolhelp32Snapshot]
xor ebx, ebx
mov dword [esp + 0x10], eax
mov dword [0x43b91c], ebx
cmp eax, 0xffffffff
jne 0x4092cc
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push str.Unable_to_generate_thread_snapshot____d
push 1
push 0x41b030
call fcn.00401ad0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0040e29f
add esp, 0x28
ret 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x1c
push ecx
push eax
call dword [sym.imp.kernel32.dll_Thread32First]
mov ebp, dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x409301
mov esi, 1
mov edi, str.Unable_to_get_first_thread____d
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
jmp 0x409407
mov edi, dword [esp + 0x3c]
nop word [eax + eax]
mov eax, dword [esp + 0x24]
cmp eax, dword [0x420fa8]
jne 0x4093aa
push dword [esp + 0x20]
push 0
push 0x42
call dword [sym.imp.kernel32.dll_OpenThread]
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x409348
push esi
call eax
cmp eax, dword [0x420fa8]
je 0x409348
push esi
call ebp
jmp 0x4093aa
test esi, esi
je 0x4093aa
test edi, edi
je 0x40937c
cmp edi, 8
je 0x40936b
cmp edi, 0x10
jne 0x4093a4
push esi
call dword [sym.imp.kernel32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
jmp 0x40939f
push esi
call dword [sym.imp.kernel32.dll_SuspendThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
jmp 0x40939f
push esi
call dword [sym.imp.kernel32.dll_SuspendThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
je 0x40939f
mov eax, dword [0x43b91c]
mov dword [eax*4 + 0x43b920], esi
inc dword [0x43b91c]
cmp ecx, 1
je 0x4093a9
push esi
call ebp
jmp 0x4093aa
inc ebx
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.kernel32.dll_Thread32Next]
test eax, eax
je 0x4093cd
cmp dword [0x43b91c], 0x1000
jb 0x409310
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
call esi
cmp eax, 0x12
je 0x4093fd
cmp dword [0x43b91c], 0x1000
jae 0x4093fd
call esi
push eax
push str.Unable_to_get_next_thread____d
push 1
push 0x41b030
call fcn.00401ad0
add esp, 0x10
mov esi, 2
mov edi, str.Threads_processed:__d
push ebx
push edi
push esi
push 0x41b030
call fcn.00401ad0
add esp, 0x10
push dword [esp + 0x10]
call ebp
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040e29f
add esp, 0x28
ret 4
Function at 0x40a480
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x440
mov eax, dword [0x41b008]
xor eax, esp
mov dword [esp + 0x43c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x44c]
push esi
push edi
mov edi, ecx
test dword [edi + 0x58], 0x400000
je 0x40a61f
push str..mdmp
push str..mdmp
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40a61f
mov esi, dword [edi + 0x18]
mov word [esp + 0x40], ax
test esi, esi
je 0x40a5b8
cmp word [esi], ax
je 0x40a5b8
mov eax, dword [edi + 0x24]
xor ebx, ebx
test eax, eax
je 0x40a50f
cmp word [eax], bx
je 0x40a50f
push ebx
push ebx
push 0xff
lea ecx, [esp + 0x4c]
push ecx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
add esp, 0x24
mov ebx, 1
mov edi, dword [edi + 0x3c]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__gmtime64_s]
add esp, 8
mov ecx, str.SQLDmpr
test eax, eax
je 0x40a563
push edi
test ebx, ebx
lea eax, [esp + 0x44]
cmove eax, ecx
push eax
push str._ls._p.0
lea eax, [esp + 0x24c]
push 0x104
push eax
call fcn.00401090
add esp, 0x14
jmp 0x40a5a0
push dword [esp + 0x24]
mov eax, dword [esp + 0x30]
push dword [esp + 0x2c]
inc eax
push eax
mov eax, dword [esp + 0x3c]
add eax, 0x76c
test ebx, ebx
push eax
push edi
lea eax, [esp + 0x54]
cmove eax, ecx
push eax
push str._ls._p.GMT__4d__02d__02d__02d_00_00
lea eax, [esp + 0x25c]
push 0x104
push eax
call fcn.00401090
add esp, 0x24
test eax, eax
jns 0x40a5bc
push str.Failed_to_generate_dump_filename
push 1
push 0x41b030
call fcn.00401ad0
add esp, 0xc
xor eax, eax
jmp 0x40a62d
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a5cc
test al, 0x10
jne 0x40a5f9
push 0
push esi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
jne 0x40a5f9
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
push str.Failed_to_create_dump_directory__ls___Error_Code__0x_x
push 1
push 0x41b030
call fcn.00401ad0
add esp, 0x14
xor eax, eax
jmp 0x40a62d
push str..dmp
lea eax, [esp + 0x244]
push eax
push esi
push 0
push 0x104
push ebp
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmakepath_s]
add esp, 0x18
mov eax, 1
jmp 0x40a62d
mov ecx, dword [edi + 0x14]
mov edx, str..mdmp
push ebp
call fcn.0040a650
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040e29f
add esp, 0x440
ret 4
Function at 0x40b2d0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x74
mov eax, dword [0x41b008]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
mov esi, dword [esp + 0x80]
lea eax, [esp + 0x14]
push edi
push eax
push esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.version.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x40b330
push str.GetFileVersionInfoSize
call fcn.0040b4c0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0040e29f
add esp, 0x74
ret 4
push ebx
call fcn.0040dfde
mov edi, eax
add esp, 4
test edi, edi
jne 0x40b368
push ebx
push str.Could_not_allocate__d_bytes_of_memory_for_marshaled_slab
push 1
push 0x41b030
call fcn.00401ad0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0040e29f
add esp, 0x74
ret 4
push edi
push ebx
push 0
push esi
call dword [sym.imp.version.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40b39e
push edi
call fcn.0040e2dd
add esp, 4
push str.GetFileVersionInfo
call fcn.0040b4c0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0040e29f
add esp, 0x74
ret 4
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push 0x417344
push edi
call dword [sym.imp.version.dll_VerQueryValueW]
test eax, eax
jne 0x40b3c3
push esi
push 0x417348
jmp 0x40b48c
cmp dword [esp + 0x14], 0
jne 0x40b3d5
push esi
push str.Fixed_version_resource_for__ls_is_unavailable
jmp 0x40b48c
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [esp + 0x28]
push edx
push str._u._u:_u._u
push 0x17
push eax
call fcn.00401090
add esp, 0x1c
test eax, eax
js 0x40b423
lea eax, [esp + 0x1c]
push eax
push esi
push str.File_version_of_module__ls_:__ls
push 2
push 0x41b030
call fcn.00401ad0
add esp, 0x14
jmp 0x40b438
push eax
push str.File_version_dump_failed_HRESULT_code_0x_x
push 1
push 0x41b030
call fcn.00401ad0
add esp, 0x10
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x14]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [esp + 0x58]
push edx
push str._u._u:_u._u
push 0x17
push eax
call fcn.00401090
add esp, 0x1c
test eax, eax
js 0x40b486
lea eax, [esp + 0x4c]
push eax
push esi
push str.Product_version_of_module__ls_:__ls
push 2
push 0x41b030
call fcn.00401ad0
add esp, 0x14
jmp 0x40b49b
push eax
push str.Product_version_dump_failed_HRESULT_code_0x_x
push 1
push 0x41b030
call fcn.00401ad0
add esp, 0x10
push edi
call fcn.0040e2dd
mov ecx, dword [esp + 0x80]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040e29f
add esp, 0x74
ret 4