joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4018e8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40d830
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov edx, dword [esi + 0x20]
lea ecx, [esp + 8]
push ecx
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 8]
mov ecx, edi
push eax
call sub.MFC42.DLL_CWnd::ScreenToClient
push edi
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CPaintDC::CPaintDC
mov eax, dword [esi + 0x48]
mov dword [esp + 0x84], 0
test eax, eax
je 0x40195d
lea ecx, [esp + 0x28]
mov dword [esp + 0x84], 0xffffffff
call fcn.0040d00e
pop edi
pop esi
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
add esp, 0x80
ret
push 8
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x40197c
mov dword [eax + 4], 0
mov dword [eax], 0x40f9ec
mov edi, eax
jmp 0x40197e
xor edi, edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
sub eax, ecx
mov ecx, dword [esp + 0x10]
push eax
sub ecx, edx
mov dword [esi + 0x48], edi
push ecx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CDC::CDC
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x28]
neg eax
sbb eax, eax
mov byte [esp + 0x84], 1
and eax, edi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CDC::Attach
mov esi, dword [esi + 0x48]
test esi, esi
je 0x4019e4
mov esi, dword [esi + 4]
mov edx, dword [esp + 0x1c]
push ebx
push esi
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
sub ecx, esi
sub edx, edi
neg eax
push 0xcc0020
push ecx
sbb eax, eax
push edx
and eax, ebx
push esi
push edi
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CDC::DeleteDC
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 0
call fcn.0040cfea
lea ecx, [esp + 0x2c]
mov dword [esp + 0x88], 0xffffffff
call fcn.0040d00e
mov ecx, dword [esp + 0x80]
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x80
ret
Function at 0x402ca0
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x78]
test eax, eax
je 0x402ce1
call fcn.004038c0
test eax, eax
je 0x402ce8
lea eax, [esp + 8]
push eax
push 4
push esi
push 0x4031e0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x94], eax
test eax, eax
je 0x402ce1
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x402ce1
mov ecx, dword [eax]
lea edx, [esp + 8]
push edi
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0x9c]
lea edx, [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [esp + 8]
push 0
mov edi, ecx
mov eax, dword [esi + 0x9c]
neg edi
push edi
mov edi, dword [esp + 0x14]
push edi
push ecx
mov ecx, dword [esi + 0x54]
mov edx, dword [eax]
push 0
push ecx
mov ecx, dword [esi + 0x50]
push ecx
mov ecx, dword [esi + 0x7c]
push 0
push 0
push ecx
push eax
call dword [edx + 0x20]
test eax, eax
pop edi
jne 0x402ce1
mov edx, dword [esi + 0x20]
push eax
push eax
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x402d60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x402e1f
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x402e1f
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
push ebp
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x402e1f
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x402e18
test edi, edi
je 0x402e18
mov ecx, ebp
mov esi, eax
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x10]
push ebp
push ebx
call fcn.004025f0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x403fc8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40d940
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov edx, dword [esi + 0x20]
lea ecx, [esp + 8]
push ecx
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 8]
mov ecx, edi
push eax
call sub.MFC42.DLL_CWnd::ScreenToClient
push edi
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CPaintDC::CPaintDC
mov eax, dword [esi + 0x48]
mov dword [esp + 0x84], 0
test eax, eax
je 0x404042
lea ecx, [esp + 0x28]
mov dword [esp + 0x84], 0xffffffff
call fcn.0040d00e
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
add esp, 0x80
ret
push 8
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x404061
mov dword [eax + 4], 0
mov dword [eax], 0x40f9ec
mov edi, eax
jmp 0x404063
xor edi, edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
sub eax, ecx
mov ecx, dword [esp + 0x10]
push eax
sub ecx, edx
mov dword [esi + 0x48], edi
push ecx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CDC::CDC
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x28]
neg eax
sbb eax, eax
mov byte [esp + 0x84], 1
and eax, edi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CDC::Attach
mov esi, dword [esi + 0x48]
test esi, esi
je 0x4040c9
mov esi, dword [esi + 4]
mov edx, dword [esp + 0x1c]
push ebx
push esi
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
sub ecx, esi
sub edx, edi
neg eax
push 0xcc0020
push ecx
sbb eax, eax
push edx
and eax, ebx
push esi
push edi
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CDC::DeleteDC
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 0
call fcn.0040cfea
lea ecx, [esp + 0x2c]
mov dword [esp + 0x88], 0xffffffff
call fcn.0040d00e
mov ecx, dword [esp + 0x80]
pop ebx
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x80
ret

Function at 0x4042a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret
Function at 0x4064b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4064bb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x4065be
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x41102c]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x41102c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x41102c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x41102c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x41102c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x41102c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x41102c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x41102c]
xor eax, edx
inc ecx
dec edi
jne 0x4064d6
pop edi
test esi, esi
je 0x4065e0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x41102c]
xor eax, edx
inc ecx
dec esi
jne 0x4065c2
pop esi
pop ebx
not eax
ret

Function at 0x4065f0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov edx, dword [ecx]
and esi, 0xff
mov eax, edx
and eax, 0xff
xor eax, esi
shr edx, 8
mov eax, dword [eax*4 + 0x41102c]
xor eax, edx
mov edx, dword [ecx + 4]
mov dword [ecx], eax
and eax, 0xff
add eax, edx
mov edx, dword [ecx + 8]
imul eax, eax, 0x8088405
inc eax
mov esi, edx
mov dword [ecx + 4], eax
and esi, 0xff
shr eax, 0x18
xor eax, esi
pop esi
shr edx, 8
mov eax, dword [eax*4 + 0x41102c]
xor eax, edx
mov dword [ecx + 8], eax
ret
Function at 0x406ff0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x407031
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407026
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x407044
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x14]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x1c]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x1c], ecx
pop ebp
pop ebx
ret
Function at 0x407d10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp edi, ebx
jne 0x407d2e
pop edi
pop esi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
jne 0x407d40
pop edi
pop esi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x7c], ebx
je 0x407d4e
push edi
call fcn.00408180
add esp, 4
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
push edi
call fcn.00407b10
add esp, 0x10
test eax, eax
je 0x407d77
pop edi
pop esi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
mov ebp, dword [sym.imp.MSVCRT.dll_malloc]
push 0x84
call ebp
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x407d9a
pop edi
pop esi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
push 0x4000
call ebp
mov dword [esi], eax
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x44], ecx
mov edx, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x407dd2
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, 0xffffff98
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov edx, dword [edi + 0x34]
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp edx, ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
sete al
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
cmp eax, ebx
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
jne 0x407e20
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
push eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00406880
add esp, 4
test eax, eax
jne 0x407e20
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x407e4d
mov edx, dword [edi + 0x38]
shr edx, 8
mov byte [esi + 0x80], dl
jmp 0x407e59
mov eax, dword [edi + 0x3c]
shr eax, 0x18
mov byte [esi + 0x80], al
mov cl, byte [esi + 0x6c]
mov ebp, dword [esp + 0x20]
neg cl
sbb ecx, ecx
lea ebx, [esi + 0x70]
and ecx, 0xc
mov dword [esi + 0x74], 0x23456789
test ebp, ebp
mov dword [esi + 0x7c], ecx
mov dword [ebx], 0x12345678
mov dword [esi + 0x78], 0x34567890
je 0x407e99
mov al, byte [ebp]
test al, al
je 0x407e99
push eax
push ebx
call fcn.004065f0
add esp, 8
inc ebp
jne 0x407e85
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
mov dword [esi + 8], 0
lea ecx, [edx + eax + 0x1e]
xor eax, eax
mov dword [esi + 0x3c], ecx
mov dword [edi + 0x7c], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x408220
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x4082df
cmp dword [esi + 4], 0xffffffff
jne 0x4082df
lea edi, [esi + 0x140]
push edi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + esi + 0x13f]
mov cl, byte [ecx + esi + 0x13f]
cmp cl, 0x5c
je 0x408275
cmp cl, 0x2f
je 0x408275
mov byte [eax + 1], 0x2f
mov byte [eax + 2], 0
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp ebx, 1
jne 0x40829c
push edi
call fcn.004041d0
add esp, 4
cmp eax, 0xffffffff
jne 0x40829c
pop edi
pop esi
mov eax, 0x2000000
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push ebx
push ecx
push edi
call fcn.00406da0
add esp, 0x10
test eax, eax
jne 0x4082bf
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
pop ecx
ret 0xc
push eax
call fcn.00407370
add esp, 4
mov dword [esi], eax
neg eax
sbb eax, eax
pop edi
and eax, 0xfffffe00
pop esi
add eax, 0x200
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebx
pop ecx
ret 0xc

Function at 0x408930
Capabilities:
Create directory

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
push ebp
push edi
test ebx, ebx
je 0x4089ab
push 0x104
lea eax, [esp + 0x114]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x408987
mov al, byte [esp + ecx + 0x10f]
lea ecx, [esp + ecx + 0x10f]
cmp al, 0x2f
je 0x408984
cmp al, 0x5c
jne 0x408987
mov byte [ecx], 0
lea ecx, [esp + 0x110]
push ecx
call fcn.004042a0
add esp, 4
test al, al
jne 0x4089ab
lea edx, [esp + 0x110]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, dword [esp + 0x21c]
mov al, byte [ebp]
test al, al
je 0x408a7c
mov edx, ebp
mov ecx, ebp
cmp al, 0x2f
je 0x4089c9
cmp al, 0x5c
jne 0x4089cb
mov edx, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4089c1
cmp edx, ebp
je 0x408a0f
mov eax, edx
push esi
sub eax, ebp
mov esi, ebp
mov ecx, eax
lea edi, [esp + 0x114]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x114], 0
lea eax, [esp + 0x114]
push eax
push ebx
call fcn.00408930
add esp, 8
pop esi
test ebx, ebx
mov byte [esp + 0xc], 0
je 0x408a2c
push 0x104
lea ecx, [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x10f], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, 0x104
sub edx, ecx
push edx
lea eax, [esp + ecx + 0x10]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
lea ecx, [esp + 0x18]
mov byte [esp + 0x11b], 0
push ecx
call fcn.004042a0
add esp, 0x10
test al, al
jne 0x408a7c
lea edx, [esp + 0xc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x40a9b0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x40dd58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
push ebx
xor ebx, ebx
push ebp
push esi
mov dword [esp + 0x14], ebx
mov ebp, 1
lea ecx, [esp + 0xc]
mov dword [esp + 0xfc], ebp
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x108]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x10c]
mov eax, dword [eax - 8]
mov byte [esp + 0x100], 2
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
jne 0x40aa5b
mov esi, dword [esp + 0x104]
push str.None_VerSion_Supprot
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0xfc], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x108]
mov byte [esp + 0xfc], bl
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x40ab7a
push edi
push esi
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x110]
add esp, 4
mov edi, eax
lea ecx, [esp + 0x10c]
mov eax, dword [edx - 8]
push edi
push esi
push ebx
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ecx
push str.VarFileInfoTranslation
push edi
mov dword [esp + 0x24], ebx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, 0xfffffffc
jbe 0x40ab3c
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x24]
xor edx, edx
xor ecx, ecx
mov dx, word [eax + esi*4 + 2]
mov cx, word [eax + esi*4]
push edx
push ecx
lea edx, [esp + 0x38]
push str.StringFileInfo_04x_04xFileVersion
push edx
call ebp
add esp, 0x10
lea eax, [esp + 0x28]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x30]
push eax
push ecx
push edx
push edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x100], 3
push ecx
lea ecx, [esp + 0x14]
call fcn.0040d16a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x100], 2
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
inc esi
shr edx, 2
cmp esi, edx
jb 0x40aab7
mov ebp, 1
mov esi, dword [esp + 0x108]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0040d050
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], ebp
mov byte [esp + 0x100], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10c]
mov byte [esp + 0x100], bl
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop edi
mov ecx, dword [esp + 0xf4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xf4
ret 8
Function at 0x4473a4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x4473ac
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4475d0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push esi
call sub.kernel32.dll_GlobalFindAtomA
mov word [0x450da4], ax
cmp word [0x450da4], 0
jne 0x447597
call fcn.00402ab0
mov eax, dword [0x44ed08]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
call fcn.00402ce4
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
mov eax, dword [0x44ed08]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
call fcn.0043e01c
push dword [ebp - 0x1c]
push 0x4475e8
lea eax, [ebp - 8]
mov edx, 3
call fcn.004043e0
mov eax, dword [ebp - 8]
call fcn.004081fc
test al, al
jne 0x44744e
lea eax, [ebp - 8]
mov edx, dword [0x44f064]
mov edx, dword [edx]
call fcn.004040f8
lea edx, [ebp - 0x10]
mov eax, dword [0x44f130]
mov eax, dword [eax]
call fcn.00408114
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.0043cf28
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x10]
call fcn.004040f8
mov al, byte [0x4475ec]
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x4475f8
mov edx, 0x447608
mov eax, dword [ebp - 0x10]
call fcn.0040cd80
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x10]
call fcn.004040f8
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.0040436c
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404520
mov edi, eax
push edi
mov eax, dword [0x44f130]
mov eax, dword [eax]
call fcn.00404520
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x447551
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0044034c
push esi
call sub.kernel32.dll_GlobalAddAtomA
mov word [0x450da4], ax
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.004080e0
mov eax, dword [ebp - 0x28]
call fcn.00404520
push eax
mov eax, edi
xor edx, edx
pop ecx
call fcn.0043f508
test al, al
je 0x447519
mov ebx, 1
call fcn.00403ecc
jmp 0x4475a8
lea edx, [ebp - 0x2c]
mov eax, 0x447618
call fcn.0043efbc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
call fcn.0043eda8
mov edx, dword [ebp - 0x30]
pop eax
call fcn.00404328
mov eax, dword [ebp - 0x2c]
call fcn.0043f150
mov ax, word [0x450da4]
push eax
call sub.kernel32.dll_GlobalDeleteAtom
jmp 0x4475a8
lea edx, [ebp - 0x38]
mov eax, 0x447630
call fcn.0043efbc
push dword [ebp - 0x38]
push dword [ebp - 0xc]
push 0x44764c
lea eax, [ebp - 0x3c]
call fcn.0043eda8
push dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.004043e0
mov eax, dword [ebp - 0x34]
call fcn.0043f150
mov ax, word [0x450da4]
push eax
call sub.kernel32.dll_GlobalDeleteAtom
jmp 0x4475a8
mov ax, word [0x450da4]
push eax
call sub.kernel32.dll_GlobalDeleteAtom
mov ebx, 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4475d7
lea eax, [ebp - 0x3c]
mov edx, 0xa
call fcn.00404084
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404084
ret