joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fe60
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47c138
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00470d94
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043f800
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00470cc2
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0046d2b6
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0046d2b6
push 1
push 0
push 0
mov ecx, esi
call fcn.0046d25e
push 1
push 0
push 1
mov ecx, esi
call fcn.0046d25e
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00470e06
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43ffe0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47c158
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00470d94
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043f800
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00470cc2
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4400a4
cmp dword [esp + 0x40], 1
jne 0x4400a2
cmp ecx, eax
jge 0x4400a4
mov eax, ecx
cmp eax, 0xc8
jge 0x4400b0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043fe60
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00470e06
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x440820
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47c1c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046b6a3
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047103c
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00473a08
test eax, eax
je 0x44093c
mov ecx, dword [esp + 0x3c]
call fcn.00471069
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x440900
push edi
mov ecx, esi
call fcn.0046e603
mov ecx, esi
call fcn.00440aa0
cmp dword [esp + 0x38], 1
jne 0x440935
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046e796
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x443370
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4433a3
push esi
call fcn.00446460
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44339c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x443429
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x443412
mov eax, dword [esi + 8]
test eax, eax
je 0x4433c7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44340e
cmp eax, 2
je 0x443412
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4433ba
cmp eax, 3
je 0x4433ed
cmp eax, 1
jne 0x4433ba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4433ba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4433ba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00443450
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x443438
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00443450
add esp, 4
pop esi
ret

Function at 0x46ae80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004755d6
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46aeb1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.0046aec4
pop edi
pop esi
pop ebx
ret 8

Function at 0x46c498
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46c4d0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046a493
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046a46b
jmp 0x46c4dc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46dd84
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46ddc6
call fcn.004755d6
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46ddc6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46ddbd
xor eax, eax
jmp 0x46ddce
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046ddd4
pop edi
pop esi
pop ebx
ret 4
Function at 0x474cc0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x474cee
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x474d0c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00474c26
jmp 0x474d0c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x474d0c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00474c26
test edi, edi
mov eax, edi
jne 0x474cf6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4013c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x2a0
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40148b
mov eax, dword [esp + 0x18]
cmp eax, 2
jne 0x401454
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x401427
lea edx, [esp + 4]
lea eax, [esp + 0x9c]
push edx
lea ecx, [esp + 0x1a4]
push eax
push ecx
lea edx, [esp + 0x28]
push str._s__s__d
push edx
call fcn.00401e60
add esp, 0x14
mov eax, dword [esp + 0xc]
cmp eax, 4
jne 0x401442
cmp dword [esp + 4], 3
jl 0x401442
mov ecx, dword [esp + 0x2a8]
test ecx, ecx
jne 0x40147e
cmp eax, 5
jb 0x40148b
mov eax, 1
pop edi
add esp, 0x2a0
ret
cmp eax, 1
jne 0x40148b
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x401479
mov ecx, dword [esp + 0x2a8]
test ecx, ecx
je 0x401479
mov eax, 1
pop edi
add esp, 0x2a0
ret
cmp eax, 0xa
jne 0x40148b
mov eax, 1
pop edi
add esp, 0x2a0
ret
xor eax, eax
pop edi
add esp, 0x2a0
ret
Function at 0x401520
Capabilities:
Copy file

Disassembly:
sub esp, 0x458
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x210]
push ebx
mov ebx, dword [esp + 0x460]
push ebp
push esi
push edi
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x220]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..mif
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x328]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4015b0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x458
ret
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x40a088
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x354]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x118]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x470]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x118]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40a088
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x118]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x358]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x11c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x458
ret
Function at 0x401b00
Capabilities:
Get common file path
Get file version info

Disassembly:
sub esp, 0x214
lea eax, [esp + 0xc]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x40a088
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [esp + 0x22c]
and ecx, 3
lea edx, [esp + 0x20]
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x124]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x40a088
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x120]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x120]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
lea eax, [esp + 0x20]
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.00402200
add esp, 8
cmp eax, 0xffffffff
je 0x401c01
lea ebx, [esp + 0x1c]
jmp 0x401c23
lea ecx, [esp + 0x120]
push 0
push ecx
call fcn.00402200
add esp, 8
cmp eax, 0xffffffff
je 0x401cde
lea ebx, [esp + 0x120]
mov ebp, dword [esp + 0x22c]
test ebp, ebp
jne 0x401c49
mov eax, dword [esp + 0x230]
test eax, eax
jne 0x401c49
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
lea edx, [esp + 0x18]
push edx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x401caf
push esi
call fcn.00402370
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401c98
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x40a088
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401c98
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
jmp 0x401ca0
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
test edi, edi
je 0x401cb7
push edi
call fcn.00402300
add esp, 4
jmp 0x401cb7
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
test esi, esi
jne 0x401cbf
test ebx, ebx
je 0x401cde
cmp esi, ebp
jb 0x401cde
jne 0x401cce
cmp ebx, dword [esp + 0x230]
jb 0x401cde
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x214
ret
Function at 0x401cf0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x114
mov edx, dword [esp + 0x120]
lea ecx, [esp + 0x10]
push ebx
push ebp
push esi
push edi
push eax
mov eax, dword [esp + 0x130]
push 0x104
push ecx
push str.Default_String
push edx
push eax
xor esi, esi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x401e23
mov al, byte [esp + 0x20]
cmp al, 0x30
je 0x401e09
test al, al
lea ecx, [esp + 0x20]
je 0x401d51
cmp al, 0x2e
jne 0x401d49
inc esi
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x401d44
cmp esi, 3
jne 0x401e23
lea esi, [esp + 0x20]
cmp dword [0x40a314], 1
jle 0x401d77
movsx ecx, byte [esi]
push 8
push ecx
call fcn.00402160
add esp, 8
jmp 0x401d85
movsx edx, byte [esi]
mov eax, dword [str.________________________________H]
mov al, byte [eax + edx*2]
and eax, 8
test eax, eax
je 0x401d8c
inc esi
jmp 0x401d5e
xor edi, edi
lea ebx, [esp + 0x10]
mov al, byte [esi]
mov ecx, esi
cmp al, 0x2e
je 0x401da6
test al, al
je 0x401da6
mov al, byte [esi + 1]
inc esi
cmp al, 0x2e
jne 0x401d9a
mov byte [esi], 0
push ecx
inc esi
call fcn.004022f0
add esp, 4
test edi, edi
je 0x401dbc
cmp edi, 2
jne 0x401dc1
mov ebp, eax
shl ebp, 0x10
cmp edi, 1
je 0x401dcb
cmp edi, 3
jne 0x401dcd
mov ebp, eax
mov dword [ebx], ebp
inc edi
add ebx, 4
cmp edi, 3
jbe 0x401d92
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x134]
add ecx, edx
mov edx, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x138]
add ecx, edx
mov dword [eax], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov ecx, dword [esp + 0x134]
mov edx, dword [esp + 0x138]
mov dword [ecx], 0
mov dword [edx], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
Function at 0x401f80
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409008
push 0x4042d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40d60c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40d608], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40d604], ecx
shr eax, 0x10
mov dword [0x40d600], eax
call fcn.004041a0
test eax, eax
jne 0x401fea
push 0x1c
call fcn.00402130
add esp, 4
call fcn.004040a0
test eax, eax
jne 0x401ffd
push 0x10
call fcn.00402130
add esp, 4
mov dword [ebp - 4], 0
call fcn.00403e90
call fcn.00403e80
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40ebb0], eax
call fcn.00403a20
mov dword [0x40d5f0], eax
test eax, eax
je 0x402030
mov eax, dword [0x40ebb0]
test eax, eax
jne 0x40203a
push 0xffffffffffffffff
call fcn.00403290
add esp, 4
call fcn.00403770
call fcn.00403680
call fcn.00403260
mov esi, dword [0x40ebb0]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x402119
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x402081
test al, al
je 0x402081
and eax, 0xff
push eax
call fcn.00403620
add esp, 4
test eax, eax
je 0x40205b
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40205b
cmp byte [esi], 0x22
jne 0x40208a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x40209a
cmp al, 0x20
ja 0x40209a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40208a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4020bb
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4020c0
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00403290
jmp 0x4020fe
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40208a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x402119

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402223
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00404890
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x402248
test byte [esp + 8], 2
je 0x402248
call fcn.00404910
mov dword [eax], 0xd
call fcn.00404920
mov dword [eax], 5
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x4032d0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.00403390
mov eax, dword [0x40d63c]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x4032f4
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40d638], 1
mov byte [0x40d634], bl
jne 0x40334e
mov ecx, dword [0x40eba8]
test ecx, ecx
je 0x40333c
mov esi, dword [0x40eba4]
sub esi, 4
cmp esi, ecx
jb 0x40333c
mov eax, dword [esi]
test eax, eax
je 0x403335
call eax
mov ecx, dword [0x40eba8]
sub esi, 4
cmp esi, ecx
jae 0x403327
push 0x40a01c
push 0x40a014
call fcn.004033b0
add esp, 8
push 0x40a024
push 0x40a020
call fcn.004033b0
add esp, 8
test ebx, ebx
je 0x40336d
call fcn.004033a0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x40d63c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x403a20
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40d748]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x403a62
call edi
mov esi, eax
test esi, esi
je 0x403a4c
mov eax, 1
jmp 0x403a5d
call ebp
mov ebx, eax
test ebx, ebx
je 0x403b6f
mov eax, 2
mov dword [0x40d748], eax
cmp eax, 1
jne 0x403b02
test esi, esi
jne 0x403a7b
call edi
mov esi, eax
test esi, esi
je 0x403b6f
cmp word [esi], 0
mov eax, esi
je 0x403a95
add eax, 2
cmp word [eax], 0
jne 0x403a83
add eax, 2
cmp word [eax], 0
jne 0x403a83
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x403af4
push edi
call fcn.00402370
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x403af4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x403ae6
push ebx
call fcn.00402300
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x403b6f
test ebx, ebx
jne 0x403b13
call ebp
mov ebx, eax
test ebx, ebx
je 0x403b6f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x403b2b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403b1b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403b1b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00402370
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x403b4d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret