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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x467f08
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x431739
inc eax
mov dword [esi + 0x10], eax
jmp 0x43184c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43174d
mov eax, 0xffffffc7
jmp 0x43184e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43175e
cmp dword [esi + 8], eax
jne 0x43174d
cmp dword [esi + 8], eax
jne 0x431777
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x431777
mov eax, 0xffffffc7
jmp 0x43184e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43178b
push eax
mov ecx, ebx
call fcn.00430f30
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00402860
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4317bc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00402880
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004306a0
test eax, eax
mov dword [esp + 0x38], eax
je 0x4317ef
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x46d698
call fcn.00402a60
mov eax, dword [esp + 0x38]
jmp 0x43184e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00431560
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x431833
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00431580
mov esi, eax
test esi, esi
jne 0x431863
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00431560
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x431805
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x46d698
call fcn.00402a60
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x46d698
call fcn.00402a60
mov eax, esi
jmp 0x43184e

Function at 0x434980
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4349e0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4349e0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4349e0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4349e0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x434a20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43ab50
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x468538
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.00461493
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043a4f0
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.004613c1
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.0045dc85
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.0045dc85
push 1
push 0
push 0
mov ecx, esi
call fcn.0045dc2d
push 1
push 0
push 1
mov ecx, esi
call fcn.0045dc2d
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00461505
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43acd0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x468558
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.00461493
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043a4f0
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.004613c1
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 0x43ad94
cmp dword [esp + 0x40], 1
jne 0x43ad92
cmp ecx, eax
jge 0x43ad94
mov eax, ecx
cmp eax, 0xc8
jge 0x43ada0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043ab50
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.00461505
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43b510
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4685c3
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.0045c0a3
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.0046173b
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00462c57
test eax, eax
je 0x43b62c
mov ecx, dword [esp + 0x3c]
call fcn.00461768
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 0x43b5f0
push edi
mov ecx, esi
call fcn.0045edcc
mov ecx, esi
call fcn.0043b790
cmp dword [esp + 0x38], 1
jne 0x43b625
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.0045ef07
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 0x43e050
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43e083
push esi
call fcn.00441150
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43e07c
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 0x43e109
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43e0f2
mov eax, dword [esi + 8]
test eax, eax
je 0x43e0a7
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 0x43e0ee
cmp eax, 2
je 0x43e0f2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43e09a
cmp eax, 3
je 0x43e0cd
cmp eax, 1
jne 0x43e09a
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 0x43e09a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43e09a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043e130
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43e118
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043e130
add esp, 4
pop esi
ret

Function at 0x45ce98
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45ced0
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.0045af4f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045af27
jmp 0x45cedc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45e589
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 0x45e5cb
call fcn.00464047
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45e5cb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45e5c2
xor eax, eax
jmp 0x45e5d3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045e5d9
pop edi
pop esi
pop ebx
ret 4

Function at 0x464577
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 0x4645a5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4645c3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004644dd
jmp 0x4645c3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4645c3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004644dd
test edi, edi
mov eax, edi
jne 0x4645ad
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402870
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4100c0]
mov dword [ebp - 8], eax
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x9c], 5
jne 0x4028b3
cmp dword [ebp - 0x98], 2
jne 0x4028b3
mov dword [ebp - 4], str.Microsoft_Windows_Server_2003_
jmp 0x402902
cmp dword [ebp - 0x9c], 5
jne 0x4028ce
cmp dword [ebp - 0x98], 1
jne 0x4028ce
mov dword [ebp - 4], str.Microsoft_Windows_XP
jmp 0x402902
cmp dword [ebp - 0x9c], 5
jne 0x4028e9
cmp dword [ebp - 0x98], 0
jne 0x4028e9
mov dword [ebp - 4], str.Microsoft_Windows_2000
jmp 0x402902
cmp dword [ebp - 0x9c], 4
ja 0x4028fb
mov dword [ebp - 4], str.Microsoft_Windows_NT
jmp 0x402902
mov dword [ebp - 4], str.Microsoft_Windows
lea ecx, [ebp - 0x8c]
push ecx
mov edx, dword [ebp - 0x90]
push edx
mov eax, dword [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0x98]
push ecx
mov edx, dword [ebp - 0x9c]
push edx
mov eax, dword [ebp - 4]
push eax
push str._s_Version:_u._u._u._u__s
push 0x410be8
call fcn.00403c80
add esp, 0x20
mov eax, 0x410be8
mov ecx, dword [ebp - 8]
call fcn.00403e99
mov esp, ebp
pop ebp
ret
Function at 0x402f80
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4100c0]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 8]
cmp edx, 0x2d
jge 0x402fb6
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 8]
movzx edx, byte [0x41008c]
cmp ecx, edx
jg 0x4030ef
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 8]
test ecx, ecx
je 0x402fcd
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 8]
cmp eax, 0x2d
jl 0x40302e
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x402ff1
push 0x1be
call fcn.00402a70
add esp, 4
jmp 0x4030f1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 1
mov edx, dword [ebp + 8]
mov byte [edx + 8], 1
mov eax, dword [ebp + 8]
add eax, 9
push eax
call fcn.00402bc0
add esp, 4
test eax, eax
je 0x403029
push 0x1c4
call fcn.00402a70
add esp, 4
jmp 0x4030f1
jmp 0x4030ef
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 8]
cmp edx, 1
jne 0x4030ef
lea eax, [ebp - 0x50]
push eax
call fcn.00402bc0
add esp, 4
test eax, eax
je 0x403060
push 0x1cd
call fcn.00402a70
add esp, 4
jmp 0x4030f1
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + 9]
cmp edx, 8
jne 0x4030a6
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + 9]
add ecx, 1
push ecx
lea edx, [ebp - 0x50]
push edx
mov eax, dword [ebp + 8]
add eax, 9
push eax
call fcn.00404480
add esp, 0xc
test eax, eax
jne 0x4030a6
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + 0x12]
movsx eax, byte [ebp - 0x47]
cmp edx, eax
jne 0x4030a6
mov dword [ebp - 0x54], 1
jmp 0x4030ad
mov dword [ebp - 0x54], 0
mov cl, byte [ebp - 0x54]
mov byte [ebp - 0x2d], cl
movzx edx, byte [ebp - 0x2d]
test edx, edx
jne 0x4030ef
mov eax, dword [ebp + 8]
mov byte [eax + 9], 8
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + 9]
add edx, 1
push edx
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp + 8]
add ecx, 9
push ecx
call fcn.004038e0
add esp, 0xc
mov edx, dword [ebp + 8]
mov al, byte [ebp - 0x47]
mov byte [edx + 0x12], al
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 1
xor eax, eax
mov ecx, dword [ebp - 8]
call fcn.00403e99
mov esp, ebp
pop ebp
ret

Function at 0x4033a0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
movzx eax, byte [0x410c50]
test eax, eax
jne 0x403417
lea ecx, [ebp - 4]
push ecx
push str.CLSID
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4033d8
push 0x23a
call fcn.00402a70
add esp, 4
jmp 0x403419
push str.FC1CBAA6_47B1_C560_1FD8_807B4E6A036C
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x4033fa
push 0x23b
call fcn.00402a70
add esp, 4
jmp 0x403419
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x403417
push 0x23c
call fcn.00402a70
add esp, 4
jmp 0x403419
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4048f2
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40d548
call fcn.0040561c
mov edi, 0x94
mov eax, edi
call fcn.00407a00
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x410e54], ecx
mov eax, dword [esi + 4]
mov dword [0x410e60], eax
mov edx, dword [esi + 8]
mov dword [0x410e64], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x410e58], esi
cmp ecx, 2
je 0x404952
or esi, 0x8000
mov dword [0x410e58], esi
shl eax, 8
add eax, edx
mov dword [0x410e5c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40498d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40498d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4049a5
cmp eax, 0x20b
je 0x404992
mov dword [ebp - 0x1c], esi
jmp 0x4049b9
cmp dword [ecx + 0x84], 0xe
jbe 0x40498d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4049b3
cmp dword [ecx + 0x74], 0xe
jbe 0x40498d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004079ab
pop ecx
test eax, eax
jne 0x4049e5
cmp dword [0x410e38], 1
jne 0x4049d2
call fcn.00407160
push 0x1c
call fcn.00406fe9
push 0xff
call fcn.00405ab8
pop ecx
pop ecx
call fcn.00407909
mov dword [ebp - 4], esi
call fcn.0040775e
test eax, eax
jge 0x4049fe
push 0x1b
call fcn.004048cd
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x412450], eax
call fcn.0040763c
mov dword [0x410e30], eax
call fcn.0040759a
test eax, eax
jge 0x404a24
push 8
call fcn.004048cd
pop ecx
call fcn.00407367
test eax, eax
jge 0x404a35
push 9
call fcn.004048cd
pop ecx
push 1
call fcn.00405ae8
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x404a4b
push eax
call fcn.004048cd
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040730a
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x404a6c
movzx eax, word [ebp - 0x40]
jmp 0x404a6f
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004037d0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x404a8d
push edi
call fcn.00405c13
call fcn.00405c35
jmp 0x404abf
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00405657
ret
Function at 0x405b52
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x410e94], esi
push edi
jne 0x405b72
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x410e90], esi
mov byte [0x410e8c], al
jne 0x405bd8
mov ecx, dword [0x412448]
test ecx, ecx
je 0x405bb9
mov eax, dword [0x412444]
sub eax, 4
cmp eax, ecx
jmp 0x405bb2
mov eax, dword [eax]
test eax, eax
je 0x405ba4
call eax
mov eax, dword [0x412444]
sub eax, 4
cmp eax, dword [0x412448]
mov dword [0x412444], eax
jae 0x405b9c
mov eax, 0x40f024
mov esi, 0x40f02c
cmp eax, esi
mov edi, eax
jae 0x405bd8
mov eax, dword [edi]
test eax, eax
je 0x405bd1
call eax
add edi, 4
cmp edi, esi
jb 0x405bc9
mov eax, 0x40f030
mov esi, 0x40f038
cmp eax, esi
mov edi, eax
jae 0x405bf7
mov eax, dword [edi]
test eax, eax
je 0x405bf0
call eax
add edi, 4
cmp edi, esi
jb 0x405be8
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x405c11
push dword [ebp + 8]
mov dword [0x410e94], 1
call fcn.00405ab8
pop ebp
ret
Function at 0x406ab8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x406ae6
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x406aed
cmp ebx, dword [eax + 4]
jae 0x406aed
xor eax, eax
jmp 0x406cdd
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x406afe
xor eax, eax
inc eax
jmp 0x406cdc
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x406b14
cmp ecx, edx
jae 0x406c59
cmp dword [eax + 4], 0
je 0x406b1d
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x406b05
cmp dword [ebp + 8], 0
je 0x406b3f
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x406c59
cmp eax, esi
jae 0x406c59
mov eax, dword [0x410ec0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x406b64
cmp dword [esi*4 + 0x410ec8], edi
je 0x406c5d
inc esi
cmp esi, eax
jl 0x406b52
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406cd9
cmp dword [ebp - 8], 0x1000000
jne 0x406cd9
test byte [ebp - 0xc], 0xcc
je 0x406be2
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x406cd9
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x406cd9
cmp word [eax + 0x18], 0x10b
jne 0x406cd9
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x406cd9
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x406be2
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x406be2
test byte [ecx + 0x27], 0x80
jne 0x406c59
push 1
push 0x410f08
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x406af6
mov ecx, dword [0x410ec0]
test ecx, ecx
mov edx, ecx
jle 0x406c16
lea eax, [ecx*4 + 0x410ec4]
cmp dword [eax], edi
je 0x406c16
dec edx
sub eax, 4
test edx, edx
jg 0x406c0a
test edx, edx
jne 0x406c47
push 0xf
pop ebx
cmp ecx, ebx
jg 0x406c23
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x406c3b
lea eax, [edx*4 + 0x410ec8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x406c29
cmp ecx, 0x10
jge 0x406c47
inc ecx
mov dword [0x410ec0], ecx
push 0
push 0x410f08
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x406af6
xor eax, eax
jmp 0x406cdc
test esi, esi
jle 0x406af6
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x410f08
call ebx
test eax, eax
jne 0x406af6
cmp dword [esi*4 + 0x410ec8], edi
je 0x406cb3
mov eax, dword [0x410ec0]
lea esi, [eax - 1]
test esi, esi
jl 0x406ca1
cmp dword [esi*4 + 0x410ec8], edi
je 0x406c9d
dec esi
jns 0x406c91
test esi, esi
jge 0x406cb1
cmp eax, 0x10
jge 0x406cac
inc eax
mov dword [0x410ec0], eax
lea esi, [eax - 1]
jmp 0x406cb3
je 0x406ccb
xor ecx, ecx
test esi, esi
jl 0x406ccb
lea eax, [ecx*4 + 0x410ec8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x406cb9
push 0
push 0x410f08
call ebx
jmp 0x406af6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406fe9
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4100c0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x410250]
je 0x40701e
inc eax
cmp eax, 0x13
jb 0x40700f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x410250]
jne 0x407144
mov eax, dword [0x410e38]
cmp eax, 1
je 0x40711c
cmp eax, edx
jne 0x40704e
cmp dword [0x4101a4], 1
je 0x40711c
cmp ecx, 0xfc
je 0x407144
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407084
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00403d70
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00403ce0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4070b8
mov eax, edi
push eax
call fcn.00403ce0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d604
push edi
call fcn.00406db0
add esp, 0x10
push edi
call fcn.00403ce0
push dword [esi + 0x410254]
mov ebx, eax
call fcn.00403ce0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00407a00
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00403d70
push edi
push ebx
call fcn.00403d80
push 0x40d600
push ebx
call fcn.00403d80
push dword [esi + 0x410254]
push ebx
call fcn.00403d80
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00407ee5
add esp, 0x2c
jmp 0x407144
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x410254]
push dword [esi]
call fcn.00403ce0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00403e99
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret