joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431fe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x435528
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x44c054]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov eax, dword [0x44c054]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi]
mov ebx, dword [esp + 0x3c]
mov eax, dword [ecx + 0x13c]
sub eax, dword [ecx + 0x138]
cmp dword [esi + 0x70], eax
jne 0x43208f
mov eax, dword [esi + 0x7c]
sub eax, dword [esi + 0x78]
test eax, 0xfffffffc
je 0x43208f
mov eax, dword [esi + 0x7c]
cmp dword [eax - 4], ebx
jle 0x43208f
mov eax, dword [ecx + 0x14]
test al, 3
jne 0x43204d
test eax, 0x1000000
je 0x43208f
push str.Cant_terminate_a_sub_expression_with_an_alternation_operator_.
lea ecx, [esp + 0x14]
call fcn.00401a7e
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 0x5c]
sub eax, dword [esi + 0x54]
mov ecx, esi
push eax
push 0x11
mov dword [esp + 0x40], 0
call fcn.00429a30
cmp dword [esp + 0x24], 0x10
jb 0x43208b
push dword [esp + 0x10]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
jmp 0x4320fe
mov eax, dword [esi + 0x7c]
sub eax, dword [esi + 0x78]
test eax, 0xfffffffc
je 0x4320fc
lea esp, [esp]
mov eax, dword [esi + 0x7c]
mov edi, dword [eax - 4]
cmp edi, ebx
jle 0x4320fc
cmp dword [esi + 0x78], eax
je 0x4320b5
add eax, 0xfffffffc
mov dword [esi + 0x7c], eax
mov edx, dword [esi]
mov ecx, dword [edx + 0x13c]
sub ecx, dword [edx + 0x138]
add ecx, 3
and ecx, 0xfffffffc
add ecx, dword [edx + 0x138]
mov dword [edx + 0x13c], ecx
mov eax, dword [esi]
mov ecx, dword [eax + 0x13c]
sub ecx, dword [eax + 0x138]
mov eax, dword [eax + 0x138]
sub ecx, edi
mov dword [eax + edi + 8], ecx
mov eax, dword [esi + 0x7c]
sub eax, dword [esi + 0x78]
test eax, 0xfffffffc
jne 0x4320a0
mov al, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0041d508
add esp, 0x28
ret 4
Function at 0x4010d0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0x208
lea ebx, [ebp + 0x108]
push 0
push ebx
call fcn.0040ff60
add esp, 0xc
push 0x208
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x80
lea edi, [ebp + 0x80]
push 0
push edi
call fcn.0040ff60
push edi
call fcn.00408fa0
add esp, 0x10
push str.3.0.190666.154
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push 0x1a
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.duowangameboxconfig
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x80
push 0
push ebp
call fcn.0040ff60
push 0x80
mov esi, ebp
mov ebx, str.LastVer
mov ecx, str.Softwareduowangamebox
call fcn.0040aa90
push 0x208
lea esi, [ebp + 0x310]
push 0
push esi
mov dword [esp + 0x30], eax
call fcn.0040ff60
push 0x208
mov ebx, str.InstallDir
mov ecx, str.Softwareduowangamebox
call fcn.0040aa90
add esp, 0x20
cmp dword [esp + 0x14], 0
mov ebx, eax
je 0x4011bc
test ebx, ebx
je 0x4011c0
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4011bc
push ebp
push esi
push 0x424768
lea edi, [ebp + 0x104]
call fcn.00401f40
add esp, 0xc
test ebx, ebx
jne 0x4011d9
push 0
push 0x26
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.duowangamebox
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x80]
push eax
push esi
push 0x424768
lea edi, [ebp + 0x100]
call fcn.00401f40
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x401200
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 8]
lea eax, [esp + 8]
push eax
push str.Softwareduowangamebox
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x401275
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebp + 0x310]
push esi
call edi
mov ecx, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add eax, eax
push eax
push esi
push 1
push 0
push str.InstallDir
push ecx
call ebx
lea esi, [ebp + 0x80]
push esi
call edi
mov edx, dword [esp + 0x14]
add eax, eax
push eax
push esi
push 1
push 0
push str.LastVer
push edx
call ebx
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4015e0
Capabilities:
Terminate process

Disassembly:
push ecx
push 0x424800
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x401624
push esi
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 4]
push edx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [esp + 8]
add ecx, 0x310
call fcn.00409540
pop ecx
ret 4

Function at 0x4020b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x421198
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x42715c]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push esi
push edi
mov eax, dword [0x42715c]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
push 0x424c0c
push 0x65
push 0
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x402105
xor al, al
jmp 0x4021b2
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x4020fe
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4020fe
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4020fe
lea eax, [esp + 0x1c]
call fcn.004022f0
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x9c], 0
mov eax, esi
mov ecx, edi
mov dword [esp + 0x84], 0
call fcn.00402420
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov bl, al
xor esi, esi
lea esp, [esp]
push 0x3e8
call edi
fld dword [esp + 0x28]
fld qword [0x424d70]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fcompp
fnstsw ax
test ah, 1
je 0x40219c
inc esi
cmp esi, 0x1e
jl 0x402170
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea esi, [esp + 0x1c]
call fcn.00402380
mov al, bl
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.0040e967
add esp, 0x8c
ret
Function at 0x402420
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
cmp byte [ebp + 0xa], 0
push esi
push edi
jne 0x4024e2
test ecx, ecx
je 0x4024e2
test eax, eax
je 0x4024e2
test ebx, ebx
je 0x4024e2
fldz
mov dword [ebp + 4], eax
push 0
fstp dword [ebp + 0xc]
lea esi, [ebp + 0x10]
mov eax, 0x424c78
mov byte [ebp + 0xa], 1
mov byte [ebp + 8], 1
mov byte [ebp + 9], 0
mov dword [ebp + 0x68], 0
mov dword [ebp], ecx
call fcn.00403230
lea edi, [ebp + 0x2c]
push edi
mov eax, ebx
call fcn.00402d90
lea eax, [esp + 0x10]
push eax
call fcn.00402ec0
call fcn.00402f20
cmp word [eax], 0x5c
je 0x4024b5
lea ecx, [esp + 0x10]
push ecx
call fcn.00402ec0
call fcn.00402f20
cmp word [eax], 0x2f
je 0x4024b5
mov esi, edi
call fcn.00402dc0
lea edi, [ebp + 0x48]
call fcn.00402e20
lea edx, [esp + 0x1c]
push edx
push 0
push ebp
push 0x4025f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 0x6c], eax
mov al, 1
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
pop edi
pop esi
xor al, al
pop ebp
add esp, 0xc
ret 4

Function at 0x403720
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
jne 0x403731
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [edi], 0
mov edi, edi
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40374f
mov eax, esi
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [esp + 0x20], 0
call ebp
mov ecx, dword [esp + 0xc]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x403786
test ecx, ecx
je 0x40377f
test esi, esi
ja 0x403740
pop ebp
pop esi
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
pop esi
pop ebx
pop ecx
ret
Function at 0x406120
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
xor edx, edx
lea esp, [esp]
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x42a3a0], ecx
inc edx
cmp edx, 0x100
jb 0x406130
cmp edx, 0x800
jae 0x406209
lea ebx, [ebx]
mov eax, dword [edx*4 + 0x429fa0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x42a3a0]
inc edx
mov dword [edx*4 + 0x42a39c], eax
cmp edx, 0x800
jb 0x4061e0
lea esi, [esp + 0x18]
mov dword [0x42921c], 0x406d60
call fcn.00406e20
test eax, eax
je 0x4062d4
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov esi, eax
shr eax, 4
and eax, 0xf00f
shr esi, 8
and esi, 0xff00f
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
xor edi, edi
mov ecx, 0x428530
xor edx, edx
cmp dword [ecx - 8], eax
jne 0x406262
cmp dword [ecx - 4], ebp
jne 0x406262
cmp dword [ecx], ebx
je 0x4062a0
add edx, 0xc
inc edi
add ecx, 0xc
cmp edx, 0x24
jb 0x406254
or ecx, 0xffffffff
sub ecx, 0
je 0x4062b9
sub ecx, 1
je 0x4062a4
sub ecx, 1
jne 0x4062d4
cmp esi, 6
jb 0x4062d4
jne 0x4062ca
cmp dword [esp + 0x14], 0xf
jb 0x4062d4
mov dword [0x42921c], 0x406e10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov ecx, edi
jmp 0x406271
cmp esi, 5
jb 0x4062d4
jne 0x4062ca
mov eax, dword [esp + 0x14]
cmp eax, 6
jb 0x4062d4
cmp eax, 0xa
jmp 0x4062c8
cmp esi, 6
jb 0x4062d4
jne 0x4062ca
cmp dword [esp + 0x14], 0x100c
je 0x4062d4
mov dword [0x42921c], 0x406e10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x406330
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x90
mov eax, dword [0x42715c]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x94]
push ebp
push esi
push edi
push ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
xor ebp, ebp
push ecx
lea esi, [esp + 0x28]
mov edi, edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebp
call fcn.00408e40
add esp, 8
cmp eax, ebp
jne 0x4064a5
mov edx, dword [esp + 0xac]
mov eax, 1
mov dword [esp + 0x34], edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x70], eax
lea ebx, [ebx]
mov eax, 0x40000
mov dword [esp + 0x14], ebp
mov dword [esp + 0xc], eax
cmp dword [esp + 0xa8], ebp
ja 0x4063dc
jb 0x4063d1
cmp dword [esp + 0xa4], eax
jae 0x4063dc
mov eax, dword [esp + 0xa4]
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
push ebx
call eax
mov esi, eax
add esp, 0xc
cmp esi, ebp
jne 0x406491
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x44]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xb0]
push 1
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0x34]
call fcn.00408b10
mov esi, eax
mov eax, dword [esp + 0x24]
sub dword [esp + 0x20], eax
add esp, 0x14
sub dword [esp + 0xa4], eax
sbb dword [esp + 0xa8], ebp
cmp esi, ebp
jne 0x406491
mov ecx, dword [esp + 0x48]
cmp dword [esp + 0x44], ecx
je 0x40646f
cmp eax, ebp
jne 0x406459
cmp edi, dword [esp + 0x44]
je 0x40646f
push eax
mov eax, dword [ebx + 4]
push ebx
call eax
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x4063b0
jmp 0x406491
cmp ecx, dword [esp + 0xac]
jne 0x40648c
cmp dword [esp + 0xc], ebp
jne 0x40648c
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x406491
cmp eax, 4
je 0x406491
mov esi, 1
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 4]
push ecx
push eax
call edx
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040e967
add esp, 0x90
ret
Function at 0x4064c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb0
mov eax, dword [0x42715c]
xor eax, esp
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xb4]
push ebx
push ebp
mov ebp, dword [esp + 0xc8]
push esi
push edi
xor ebx, ebx
mov edi, 1
mov esi, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
cmp dword [eax + 0x14], edi
je 0x406507
mov eax, edi
jmp 0x40665d
mov eax, dword [eax + 0x10]
movzx ecx, byte [eax]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00406ef0
add esp, 4
cmp eax, ebx
jne 0x40665d
mov edx, dword [esp + 0xd4]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], edx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x78], edi
lea esp, [esp]
mov eax, 0x40000
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
cmp dword [esp + 0xcc], ebx
ja 0x40659c
jb 0x406591
cmp dword [esp + 0xc8], eax
jae 0x40659c
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push ebp
call eax
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x406649
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x4c]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0xd8]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
push edx
lea esi, [esp + 0x38]
call fcn.004070a0
mov esi, eax
mov eax, dword [esp + 0x28]
sub dword [esp + 0x24], eax
add esp, 0x10
sub dword [esp + 0xc8], eax
sbb dword [esp + 0xcc], ebx
cmp esi, ebx
jne 0x406649
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x4c], ecx
je 0x40662e
cmp eax, ebx
jne 0x406618
cmp edi, dword [esp + 0x4c]
je 0x40662e
push eax
mov eax, dword [ebp + 4]
push ebp
call eax
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x406570
jmp 0x406649
cmp ecx, dword [esp + 0xd4]
jne 0x406644
cmp dword [esp + 0x14], ebx
jne 0x406644
cmp dword [esp + 0x20], 1
je 0x406649
mov esi, 1
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 4]
push ecx
push eax
call edx
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040e967
add esp, 0xb0
ret
Function at 0x407390
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
push ebp
push esi
mov esi, dword [ecx]
xor ebp, ebp
and esi, 7
cmp eax, 5
jae 0x4073ad
pop esi
xor eax, eax
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0x14]
push ebx
lea ebx, [edx + eax - 4]
push edi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], ebx
lea edi, [edx + ebp]
cmp edi, ebx
jae 0x4073dd
lea ebx, [ebx]
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x4073dd
inc edi
cmp edi, ebx
jb 0x4073d0
mov ebp, edi
sub ebp, edx
mov eax, ebp
sub eax, dword [esp + 0x10]
cmp edi, ebx
jae 0x4074e5
cmp eax, 3
jbe 0x407410
xor esi, esi
mov al, byte [edi + 4]
mov dword [esp + 0x10], ebp
test al, al
je 0x40744b
cmp al, 0xff
je 0x40744b
and esi, 3
add esi, esi
or esi, 1
inc ebp
jmp 0x4073c3
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x4073f6
movzx ecx, byte [esi + 0x424c84]
mov eax, edi
sub eax, ecx
cmp byte [esi + 0x424c7c], 0
mov al, byte [eax + 4]
je 0x407439
test al, al
je 0x407439
cmp al, 0xff
jne 0x4073f6
and esi, 3
add esi, esi
mov dword [esp + 0x10], ebp
or esi, 1
inc ebp
jmp 0x4073c3
movzx ecx, byte [edi + 3]
movzx edx, al
movzx eax, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, eax
shl edx, 8
or edx, ecx
lea esp, [esp]
sub edx, ebp
sub edx, 5
mov eax, edx
test esi, esi
je 0x4074b7
movzx edx, byte [esi + 0x424c84]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
test bl, bl
je 0x40749c
cmp bl, 0xff
jne 0x4074b3
mov ebx, dword [esp + 0x14]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x407470
mov ebx, dword [esp + 0x14]
mov edx, eax
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, eax
shr edx, 8
mov ecx, eax
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x1c]
mov byte [edi + 3], cl
mov byte [edi + 1], al
add ebp, 5
jmp 0x4073c3
pop edi
pop ebx
cmp eax, 3
jbe 0x4074fc
mov eax, dword [esp + 0x18]
xor esi, esi
mov dword [eax], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
lea ecx, [eax - 1]
mov eax, dword [esp + 0x18]
shl esi, cl
and esi, 7
mov dword [eax], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret

Function at 0x408f20
Capabilities:
Get file size

Disassembly:
push ecx
push edi
mov dword [esi], 0
mov dword [esi + 4], 0
test eax, eax
je 0x408f94
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408f94
push ebx
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 8]
mov eax, ecx
mov dword [esi + 4], 0
mov edx, dword [esi + 4]
mov cl, 0x20
call fcn.004209e0
mov dword [esi], eax
add dword [esi], ebx
pop ebx
mov dword [esi + 4], edx
adc dword [esi + 4], 0
mov eax, 1
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret
Function at 0x408fa0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x118
mov eax, dword [0x42715c]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x11c]
push ebp
push esi
lea ecx, [esp + 0x14]
push ecx
xor ebp, ebp
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebp
jne 0x408ff1
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0040e967
add esp, 0x118
ret
push edi
push esi
call fcn.00410c72
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x40901b
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0040e967
add esp, 0x118
ret
push esi
push ebp
push edi
call fcn.0040ff60
add esp, 0xc
push edi
push esi
push ebp
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4090d5
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push str.VarFileInfoTranslation
push edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4090d5
push 0x100
lea ecx, [esp + 0x24]
push ebp
push ecx
call fcn.0040ff60
mov eax, dword [esp + 0x20]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push str.ProductVersion
push edx
push eax
lea ecx, [esp + 0x38]
push str.StringFileInfo_04x_04x_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4090d5
mov eax, dword [esp + 0xc]
cmp eax, ebp
je 0x4090d5
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x80
jge 0x4090d5
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebp, 1
push edi
call fcn.0040ea22
mov ecx, dword [esp + 0x124]
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.0040e967
add esp, 0x118
ret
Function at 0x409330
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4211f0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push esi
push edi
mov eax, dword [0x42715c]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
push 4
call fcn.0040e9bd
xor edi, edi
add esp, 4
cmp eax, edi
je 0x40936d
lea ecx, [esp + 0x28]
mov dword [eax], ecx
jmp 0x40936f
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
push 4
mov dword [esp + 0x6c], 1
call fcn.0040e9bd
add esp, 4
cmp eax, edi
je 0x40939d
lea edx, [esp + 0x10]
mov dword [eax], edx
jmp 0x40939f
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x6c], 3
call fcn.00409100
add esp, 4
test eax, eax
je 0x4094d3
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x78]
call fcn.00409100
add esp, 4
test eax, eax
je 0x4094d3
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov word [esp + 0x5c], ax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x34]
mov edx, 0x414
sar eax, 1
mov word [esp + 0x50], dx
mov dword [esp + 0x56], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x5a], edi
jne 0x409430
call fcn.00410abb
mov edx, dword [esp + 0x20]
sub edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
sar edx, 1
mov dword [esp + 0x48], ecx
jne 0x409449
call fcn.00410abb
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
mov eax, dword [esp + 0x1c]
neg esi
sbb esi, esi
inc esi
cmp eax, edi
je 0x40947c
push eax
call fcn.0040e95c
add esp, 4
mov edx, dword [esp + 0x10]
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call fcn.0040e95c
mov eax, dword [esp + 0x38]
add esp, 4
cmp eax, edi
je 0x4094a6
push eax
call fcn.0040e95c
add esp, 4
mov eax, dword [esp + 0x28]
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call fcn.0040e95c
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x60
ret
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x4094e4
push eax
call fcn.0040e95c
add esp, 4
mov ecx, dword [esp + 0x10]
push ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call fcn.0040e95c
mov eax, dword [esp + 0x38]
add esp, 4
cmp eax, edi
je 0x40950e
push eax
call fcn.0040e95c
add esp, 4
mov edx, dword [esp + 0x28]
push edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call fcn.0040e95c
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x60
ret