joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f37
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
mov ebx, dword [edi]
xor esi, esi
cmp dword [0x97f078], 0x594
mov dword [ebp - 0xc], eax
jne 0x402f7d
push 0x402d18
push 0x402d28
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov eax, dword [0x80b428]
mov dword [ebp - 0x24], eax
mov eax, dword [0x80b42c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x30], 0x9e3779b9
call fcn.00402f26
mov eax, dword [0x80b430]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x80b434]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, ebx
shl eax, 4
cmp dword [0x97f078], 0xc
mov dword [ebp - 4], eax
jne 0x403022
push esi
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x84c]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
lea eax, [ebp - 0x38]
push eax
push esi
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x97f078]
cmp eax, 0xfa9
jne 0x40303e
mov dword [0x97e614], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40304b
mov dword [0x97dfc8], esi
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov edx, ebx
shr edx, cl
add eax, ebx
mov dword [ebp - 0x14], eax
mov dword [0x97e610], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x97f078], 0x213
mov dword [ebp - 0x14], edx
jne 0x403086
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0x10]
shr eax, cl
add eax, dword [ebp - 0x20]
xor eax, edx
xor dword [ebp - 4], eax
push dword [ebp - 4]
mov eax, ebx
call fcn.00402f2d
mov ebx, eax
mov eax, dword [ebp - 0x30]
sub dword [ebp - 8], eax
dec dword [ebp - 0x18]
jne 0x402fbd
cmp dword [0x97f078], 0xa6d
mov dword [edi], ebx
jne 0x4030ea
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4033ce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
xor esi, esi
cmp dword [0x97f078], 0x400
push edi
jne 0x403416
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll__hwrite]
push esi
push esi
call fcn.0040377c
push esi
push esi
call fcn.0040377c
push esi
push esi
call fcn.00403b70
push esi
call fcn.00403f34
add esp, 0x1c
mov eax, dword [0x80bab4]
mov dword [0x97f078], eax
mov eax, dword [0x80ba8c]
mov dword [0x97f07c], eax
call fcn.004031c5
xor ebx, ebx
mov edi, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp ebx, edi
jle 0x403460
cmp dword [ebp - 4], 0x785074d5
jne 0x403469
inc ebx
cmp ebx, 0x1c1b
jl 0x403436
xor ebx, ebx
push esi
lea eax, [ebp - 0x408]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x402d98
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
cmp ebx, edi
jle 0x403495
cmp dword [ebp - 4], 0x785074d5
jne 0x40349e
inc ebx
cmp ebx, 0x11915
jl 0x40346b
mov eax, dword [0x97dfcc]
mov dword [0x97e60c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x4048a0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80a0d8]
jne 0x4048aa
repz ret
jmp fcn.00409432
Function at 0x409155
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004062f1
and dword [ebp - 4], 0
cmp dword [0x80c370], 0
mov ebx, eax
jne 0x409206
push 0x401b94
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4092b7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b88
push edi
call esi
test eax, eax
je 0x4092b7
push eax
call fcn.0040627f
mov dword [esp], 0x401b78
push edi
mov dword [0x80c370], eax
call esi
push eax
call fcn.0040627f
mov dword [esp], 0x401b64
push edi
mov dword [0x80c374], eax
call esi
push eax
call fcn.0040627f
mov dword [esp], 0x401b48
push edi
mov dword [0x80c378], eax
call esi
push eax
call fcn.0040627f
pop ecx
mov dword [0x80c380], eax
test eax, eax
je 0x409206
push 0x401b30
push edi
call esi
push eax
call fcn.0040627f
pop ecx
mov dword [0x80c37c], eax
mov eax, dword [0x80c37c]
cmp eax, ebx
je 0x40925e
cmp dword [0x80c380], ebx
je 0x40925e
push eax
call fcn.004062fa
push dword [0x80c380]
mov esi, eax
call fcn.004062fa
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40925e
test edi, edi
je 0x40925e
call esi
test eax, eax
je 0x409255
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409255
test byte [ebp - 0xc], 1
jne 0x40925e
or dword [ebp + 0x10], 0x200000
jmp 0x409297
mov eax, dword [0x80c374]
cmp eax, ebx
je 0x409297
push eax
call fcn.004062fa
pop ecx
test eax, eax
je 0x409297
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409297
mov eax, dword [0x80c378]
cmp eax, ebx
je 0x409297
push eax
call fcn.004062fa
pop ecx
test eax, eax
je 0x409297
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [GetWindowsDirectoryA]
call fcn.004062fa
pop ecx
test eax, eax
je 0x4092b7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4092b9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219

Function at 0x40a3d0
Capabilities:
Send data
Send data on socket
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x40a410
popfd
dec ebp
or al, 0x9b
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40a40a
push esi
mov esi, dword [0x40c02f]
das
rol byte [eax], 0xff
salc
test eax, eax
jl 0x40a432
neg byte [ebp + 0xf]
or byte [ebp + 0x805d6ff], dl
cld
or al, byte [eax]
pop esi
pop ebp
ret 8
xor eax, eax
pop ebp
ret 0xdc4f
mov eax, 0x4e3b
pop ebp
ret 0xc3
in al, dx
cmp dword [0x709e1e], 0x14
jl 0x40a45f
push 0x4107bb
call dword [0x24409140]
mov eax, dword [ebp + 8]
push 0x405720
jle 0x40a4c1
movsb byte es:[edi], byte [esi]
inc eax
add byte [esi], al
stosb byte es:[edi], al
pop es
inc ecx
add byte [eax - 0x18], dl
mov eax, dword [0x33ffffb1]
rcr byte [ebp - 0x3d], 0x90
nop
nop
mov ch, byte [edi]
nop
fcom qword [eax + 0x40909090]
jge 0x40a4d9
xor eax, eax
pop ebp
ret
out 0x49, eax
inc ecx
add bh, bh
adc eax, 0xf840c03c
xor ebx, dword [ecx + ebp - 0x5aaa6f17]
adc cl, byte [ebx - 0x372c7477]
and ecx, 0xc0000000
cmp ecx, 0xc0e84e00
jne 0x40a4a2
push 0x3fff0000
mov dword [2], eax
je 0x40a4a7
mov eax, 0xf80001
pop ebp
ret
xchg edx, eax
and al, 0x46
jecxz 0x40a516
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov dword [ebp + 0x14], eax
jne 0x40a51e
mov edx, dword [esi + 0x14]
lea ecx, [ebp + 0x14]
mov ebx, ebp
call [ecx + sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40a52f
mov eax, dword [edx + 0xc]
mov ebp, esp
movsb byte es:[edi], byte [esi]
test dword [ecx + 0x74], edx
add cl, byte [ecx + 0x101d8b08]
test dword [ebx + 0x11510b74], esp
cmp bh, 0xc9
inc dword [ebx - 0x1d76fb01]
mov eax, dword [esi - 0x5d]
test al, 0x31
and dh, byte [edi + edx + 0x19]
add bh, al
sahf
adc al, 0
add byte [eax], al
push 0x1117527
adc dword [ecx], eax
add byte [ecx + 0x5d], bl
jecxz 0x40a52d
add byte [0x102], bh
cmp eax, 0x102
add ecx, dword [edx]
mov eax, 0x1a01d876
pop esi
mov edx, es
adc byte [eax], al
mov esi, dword [sym.imp.WS2_32.dll_WSASend]
call esi
test eax, eax
jne 0x40a540
push es
pop ebp
sub dh, cl
add bh, bh
salc
call esi
add eax, 0xafc80
pop esi
pop ebp
ret 0xbf10

Function at 0x40a4b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp - 0x16]
sub eax, 0x7b08758b
fcomp dword [ebx]
sal bh, 0x7a
mov byte [0xe3462492], al
push eax
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x52773ff1
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0x6c794f34
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, edx
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
test ebx, ebx
je 0x4016d4
mov edi, esi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
mov edx, edi
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
mov ebx, esi
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
mov esi, eax
mov edx, esi
mov ecx, ebx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x404560
Capabilities:
Encode data using xor

Disassembly:
nop
nop
sub dl, byte [ebp - 0x75]
push ebp
mov ebp, esp
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5a41404c]
push ebx
mov esp, dword [esi + 8]
push esi
push edi
push ebx
push eax
call 0x3b4057e8
add byte [eax + 0x40], al
inc ecx
add byte [0xffc983fb], dh
xor ebp, edi
out dx, al
scasb al, byte es:[edi]
mov esi, dword [sym.imp.MSVCRT.dll_strncmp]
je 0x40455d
dec ecx
sar cl, cl
pop es
jbe 0x12545df
push 7
sub dword [edx - 0xe], edi
mov byte [0xd62fbf00], al
add esp, 0xc
test eax, eax
jne 0x108e56d
lahf
enter 0xffffffffffff8300, 0xffffffffffffffc3
pop es
add ebx, 7
push 0x2f
push ebx
call dword [0xe4c131]
push esp
les ecx, [eax]
mov dword [edi + 0xf4f5508], ebx
test byte [edx + 1], dl
mov eax, dword [eax]
mov esi, eax
mov eax, dword [0x41404c]
sub esi, ebx
push esi
add dword [edx - 0x5c], edx
call fcn.00404a60
jno 0x4045a8
mov esi, ebx
mov edx, ecx
mov edi, eax
shr ecx, 0xe3
cmp dword [ebx + 0x3e183ca], ecx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esi]
xchg byte [esi], ch
out 0x2b, al
retf
Function at 0x403d39
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x403e85
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
push edi
mov edi, dword [esp + 0x10]
call ebx
sub byte [esi + edi], 0x19
call ebx
add byte [esi + edi], 0x89
call ebx
xor byte [esi + edi], 0x9d
call ebx
add byte [esi + edi], 0x77
call ebx
add byte [esi + edi], 0x55
call ebx
add byte [esi + edi], 0xad
call ebx
add byte [esi + edi], 0x42
call ebx
xor byte [esi + edi], 0x36
call ebx
add byte [esi + edi], 0xcf
call ebx
add byte [esi + edi], 0x17
call ebx
xor byte [esi + edi], 0xd7
call ebx
add byte [esi + edi], 0x7a
call ebx
add byte [esi + edi], 0x30
call ebx
add byte [esi + edi], 5
call ebx
add byte [esi + edi], 0x59
call ebx
add byte [esi + edi], 0xe4
call ebx
xor byte [esi + edi], 0x89
call ebx
add byte [esi + edi], 0x9c
call ebx
add byte [esi + edi], 0x5c
call ebx
add byte [esi + edi], 0x6c
call ebx
add byte [esi + edi], 0xb7
call ebx
add byte [esi + edi], 0x2c
call ebx
add byte [esi + edi], 0x97
call ebx
add byte [esi + edi], 0xb9
call ebx
add byte [esi + edi], 0xb
call ebx
xor byte [esi + edi], 0x4d
call ebx
add byte [esi + edi], 0xca
call ebx
add byte [esi + edi], 0x94
call ebx
add byte [esi + edi], 0x1e
call ebx
add byte [esi + edi], 0xc5
call ebx
add byte [esi + edi], 0xf5
call ebx
xor byte [esi + edi], 0xeb
call ebx
xor byte [esi + edi], 0x56
call ebx
xor byte [esi + edi], 0x33
call ebx
add byte [esi + edi], 0x94
call ebx
add byte [esi + edi], 0xfa
call ebx
xor byte [esi + edi], 0x93
call ebx
add byte [esi + edi], 0x15
call ebx
add byte [esi + edi], 0xde
call ebx
xor byte [esi + edi], 0x41
call ebx
add byte [esi + edi], 0x20
call ebx
xor byte [esi + edi], 0x55
call ebx
add byte [esi + edi], 0x48
call ebx
xor byte [esi + edi], 0x8d
call ebx
add byte [esi + edi], 0x9d
call ebx
xor byte [esi + edi], 0x74
call ebx
add byte [esi + edi], 0x7b
call ebx
add byte [esi + edi], 0xab
call ebx
add byte [esi + edi], 0xd
inc esi
cmp esi, dword [esp + 0x14]
jb 0x403d52
pop edi
pop ebx
pop esi
ret

Function at 0x403f0f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x45a8ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x403f78
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401b44
lea eax, [esp + 0x14]
push 0x14d
push eax
call fcn.004040e6
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x403f90
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00403ab2
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x403f40
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405f4c
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00403ab2
jmp 0x403f7a
Function at 0x401fa0
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1004
call fcn.0041c220
mov eax, dword [0x43cc00]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x100c]
push edi
push 0x800
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea ecx, [esp + 8]
push ecx
push esi
push 7
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
mov edi, eax
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401ffe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1008]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00417ffe
add esp, 0x1004
ret

Function at 0x402720
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402739
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402774
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402770
lea ebx, [ebx]
cmp esi, eax
jae 0x402774
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402760
cmp esi, eax
jb 0x40277a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403230
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42fddc
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x235b0
call fcn.0041c220
push esi
push edi
mov eax, dword [0x43cc00]
xor eax, esp
push eax
lea eax, [esp + 0x235c0]
mov dword fs:[0], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.0040e347
test eax, eax
jne 0x4032a7
push str.Fatal_Error:_MFC_initialization_failed_n
call fcn.00418ca5
add esp, 4
lea eax, [edi + 1]
mov ecx, dword [esp + 0x235c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 3
push ecx
mov ecx, esp
jle 0x40330b
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x18], esp
push eax
call fcn.00402520
push ecx
mov dword [esp + 0x235d0], edi
mov edx, dword [esi + 8]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00402520
push ecx
mov byte [esp + 0x235d4], 1
mov eax, dword [esi + 4]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00402520
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x235d8], 0xffffffff
call fcn.00403780
lea edx, [esp + 0x1c]
push edx
jmp 0x40336e
mov dword [esp + 0x14], esp
push 0x4349fc
call fcn.00402520
push ecx
mov dword [esp + 0x235d0], 2
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4349fc
call fcn.00402520
push ecx
mov byte [esp + 0x235d4], 3
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4349fc
call fcn.00402520
lea eax, [esp + 0x11af8]
push eax
mov dword [esp + 0x235d8], 0xffffffff
call fcn.00403780
lea ecx, [esp + 0x11aec]
push ecx
call fcn.00403390
mov eax, edi
mov ecx, dword [esp + 0x235c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405a50
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42f578
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x43cc00]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
mov eax, dword [0x43cc00]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x10], esi
push 0xa
mov dword [esp + 0xa8], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [esp + 0xac]
push esi
push ecx
lea esi, [ebx - 0x10]
mov dword [esp + 0x18], esp
mov ebp, esp
push esi
call fcn.00401880
add eax, 0x10
add esp, 4
mov dword [ebp], eax
call fcn.00401ba0
add esp, 8
test al, al
jne 0x405afe
push 0x4349fc
mov ecx, edi
call fcn.00402520
mov dword [esp + 0xa4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405b63
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x405b63
push 0x7e
lea ecx, [esp + 0x1a]
push 0
push ecx
mov word [esp + 0x20], 0
call fcn.0041a7a0
add esp, 0xc
push ebx
push 0x40
lea edx, [esp + 0x1c]
push edx
push 0x4349fc
push str.Language
push str.MAIN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.00402520
mov dword [esp + 0xa4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b63
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00417ffe
add esp, 0x98
ret 4
Function at 0x408ae0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x42f1d5
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x43cc00]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [0x43cc00]
xor eax, esp
push eax
lea eax, [esp + 0x420]
mov dword fs:[0], eax
mov dword [esp + 0x14], esi
mov dword [esp + 8], 0
push 0x3a
lea eax, [esp + 0x434]
push eax
mov dword [esp + 0x430], 1
call fcn.00408f50
push 0x5c
lea ecx, [esp + 0x434]
push ecx
call fcn.00408f50
call fcn.0040c0d4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408b66
push 0x80004005
call fcn.004016a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
push 0x435d2c
lea ecx, [esp + 0x434]
push ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x14], 1
call fcn.00403080
add esp, 0xc
push 0xff
lea eax, [esp + 0x220]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
push 0xff
lea ecx, [esp + 0x34]
mov byte [esp + 0x440], 2
mov edx, dword [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x408bf7
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408be0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x20]
push eax
jmp 0x408bfe
push 0
push 0x4349fc
mov ecx, esi
call fcn.004019b0
mov byte [esp + 0x428], 1
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x428], 0
mov eax, dword [esp + 0x430]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x420]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.00417ffe
add esp, 0x428
ret 4