joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422df4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x422f99
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40a1e8]
call fcn.00402bfc
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403670
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x422f6f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0041b048
test al, al
je 0x422f62
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x422fa8
lea eax, [ebp - 0x254]
call fcn.004070d8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x422f62
xor eax, eax
push ebp
push 0x422f5b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x422fe0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x422f44
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040389c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x422f44
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040389c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422f62
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x422e65
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040cb14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422fa0
lea eax, [ebp - 0x260]
call fcn.00403670
ret

Function at 0x423184
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x42c6b0]
cmp byte [eax + 0x85], 0
jne 0x4231f5
cmp dword [0x42c6e8], 0
jne 0x4231b6
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x423140
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x42c6e8], eax
cmp dword [0x42c6e4], 0
jne 0x4231d1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x42c6e4], eax
cmp dword [0x42c6ec], 0
jne 0x4231f5
push esp
push 0
push 0
push 0x4230e4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x42c6ec], eax
pop edx
ret
Function at 0x4232e4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4232fb
add esp, 0xfffffff0
call fcn.00402dd8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0040f3fc
mov dl, 1
mov eax, dword [0x409f2c]
call fcn.00402bfc
mov dword [ebx + 0x70], eax
mov dl, 1
mov eax, dword [0x409f2c]
call fcn.00402bfc
mov dword [ebx + 0x88], eax
xor eax, eax
mov dword [ebx + 0x44], eax
xor eax, eax
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x40], 0x80000018
mov dword [ebx + 0x58], 0x1f4
mov dword [ebx + 0x5c], 0x32
mov dword [ebx + 0x60], 0x9c4
mov byte [ebx + 0x68], 0
mov byte [ebx + 0x7d], 1
mov dl, 1
mov eax, dword [0x41060c]
call fcn.004133f4
mov esi, eax
mov dword [ebx + 0x78], esi
push 0x423454
mov eax, dword [0x42b998]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041378c
mov eax, dword [ebx + 0x78]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x424a98
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x42b998]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040853c
test eax, eax
je 0x4233dc
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00406b2c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00408564
test eax, eax
je 0x4233f0
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x6c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040389c
mov eax, dword [0x42b918]
cmp byte [eax], 0
jne 0x423421
mov eax, ebx
call fcn.00423538
mov byte [ebx + 0x3d], 1
mov byte [ebx + 0x3e], 1
mov byte [ebx + 0x3f], 1
mov byte [ebx + 0x7e], 1
xor eax, eax
mov dword [ebx + 0x80], eax
cmp byte [ebp - 1], 0
je 0x423449
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42378c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x42c6b0]
cmp dword [eax + 0x24], 0
je 0x42381c
cmp dword [ebx + 0x74], 0
jne 0x423819
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x423720
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x70]
cmp dword [eax + 8], 0
je 0x423819
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4237e8
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x70]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x423819
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x70]
call fcn.0040af9c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4237f4
inc dword [ebx + 0x74]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x424104
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x84], 0
je 0x424139
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403754
jmp 0x424143
mov eax, esi
mov edx, dword [ebx + 0x6c]
call fcn.00403708
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x424d08
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x64]
test esi, esi
je 0x424d40
mov eax, esi
call fcn.00419f58
test al, al
je 0x424d40
mov eax, dword [ebx + 0x64]
call fcn.00419dc0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x424d40
push 0
mov eax, dword [ebx + 0x64]
call fcn.00419dc0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x42876c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00402968
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
pop esi
pop ebx
ret

Function at 0x4287b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x428868
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0042876c
test al, al
je 0x42884a
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00403754
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x42884a
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403ab0
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.00403ab0
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00403824
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc esi
dec ebx
jne 0x428803
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42886f
lea eax, [ebp - 0x2c]
call fcn.00403670
lea eax, [ebp - 0xc]
call fcn.00403670
ret
Function at 0x428968
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x428a03
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00403ab0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4289dd
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x10]
mov eax, dword [0x42badc]
call fcn.00404648
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x4283f8]
call fcn.00407c34
call fcn.0040314c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00428528
mov edx, dword [ebp + 8]
mov byte [edx], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428a0a
lea eax, [ebp - 0x10]
call fcn.00403670
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403ab0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x428d01
test al, 0x10
jne 0x428d05
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4291f4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc9c
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403aa0
xor eax, eax
push ebp
push 0x4292e2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20d]
mov edx, dword [ebp - 4]
call fcn.00406bb4
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.004026ac
lea eax, [ebp - 0x30d]
mov edx, dword [ebp - 0xc]
call fcn.00406bb4
lea eax, [ebp - 0x354]
xor ecx, ecx
mov edx, 0x44
call fcn.00402968
mov dword [ebp - 0x354], 0x44
mov dword [ebp - 0x328], 1
mov word [ebp - 0x324], bx
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x354]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
lea eax, [ebp - 0x20d]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4292a6
mov dword [ebp - 8], 0xffffffff
jmp 0x4292c4
push 0xffffffffffffffff
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_GetExitCodeProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4292e9
lea eax, [ebp - 0xc]
call fcn.00403670
lea eax, [ebp - 4]
call fcn.00403670
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5e06370d
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4320d2
mov ebx, 0x42f314
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x5bb10913
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0xeab261e
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x6d9419bb
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4017d0
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
mov eax, 0x4000
call fcn.00401f80
push esi
mov esi, ecx
mov eax, dword [esi + 0x1451e]
test eax, eax
push edi
lea edi, [esi + 0xa]
je 0x4017f9
movzx ecx, word [esi + 4]
lea eax, [esi + 0x1441e]
push eax
push ecx
jmp 0x401800
movzx edx, word [esi + 4]
push 0
push edx
mov ecx, esi
push edi
call fcn.00401680
test al, al
je 0x4018df
mov eax, dword [esi + 6]
dec eax
je 0x40187b
dec eax
je 0x40183b
dec eax
jne 0x4018a1
push edi
lea eax, [esi + 0x450a]
push eax
push str.SAMP_0.30
lea ecx, [esi + 0x10a]
push ecx
push str.HEAD__s_HTTP_1.0_r_nAccept:___r_nUser_Agent:__s_r_nReferer:_http:___s_r_nHost:__s_r_n_r_n
jmp 0x401894
lea edx, [esi + 0x50a]
mov eax, edx
push ebx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401847
push edx
sub eax, ebx
push eax
push edi
lea eax, [esi + 0x450a]
push eax
push str.SAMP_0.30
lea ecx, [esi + 0x10a]
push ecx
lea edx, [esp + 0x24]
push str.POST__s_HTTP_1.0_r_nAccept:___r_nUser_Agent:__s_r_nReferer:_http:___s_r_nHost:__s_r_nContent_type:_application_x_www_form_urlencoded_r_nContent_length:__u_r_n_r_n_s
push edx
call fcn.00401a17
add esp, 0x20
pop ebx
jmp 0x4018a1
push edi
lea eax, [esi + 0x450a]
push eax
push str.SAMP_0.30
lea ecx, [esi + 0x10a]
push ecx
push str.GET__s_HTTP_1.0_r_nAccept:___r_nUser_Agent:__s_r_nReferer:_http:___s_r_nHost:__s_r_n_r_n
lea edx, [esp + 0x1c]
push edx
call fcn.00401a17
add esp, 0x18
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4018a8
mov ecx, dword [esi]
push 0
sub eax, edx
push eax
lea eax, [esp + 0x10]
push eax
push ecx
call sub.WSOCK32.dll_send
test eax, eax
jge 0x4018d8
pop edi
mov dword [esi + 0x1441a], 4
pop esi
add esp, 0x4000
ret
mov ecx, esi
call fcn.00401350
pop edi
pop esi
add esp, 0x4000
ret
Function at 0x402038
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x407308
call fcn.00403ad0
mov edi, 0x94
mov eax, edi
call fcn.00401f80
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 [0x4096f8], ecx
mov eax, dword [esi + 4]
mov dword [0x409704], eax
mov edx, dword [esi + 8]
mov dword [0x409708], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4096fc], esi
cmp ecx, 2
je 0x402098
or esi, 0x8000
mov dword [0x4096fc], esi
shl eax, 8
add eax, edx
mov dword [0x409700], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4020d3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4020d3
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4020eb
cmp eax, 0x20b
je 0x4020d8
mov dword [ebp - 0x1c], esi
jmp 0x4020ff
cmp dword [ecx + 0x84], 0xe
jbe 0x4020d3
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4020f9
cmp dword [ecx + 0x74], 0xe
jbe 0x4020d3
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00403a7d
pop ecx
test eax, eax
jne 0x40212b
cmp dword [0x4096e8], 1
jne 0x402118
call fcn.00403232
push 0x1c
call fcn.004030bb
push 0xff
call fcn.00402f20
pop ecx
pop ecx
call fcn.004039db
mov dword [ebp - 4], esi
call fcn.00403830
test eax, eax
jge 0x402144
push 0x1b
call fcn.00402013
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40ac94], eax
call fcn.0040370e
mov dword [0x4096e0], eax
call fcn.0040366c
test eax, eax
jge 0x40216a
push 8
call fcn.00402013
pop ecx
call fcn.00403439
test eax, eax
jge 0x40217b
push 9
call fcn.00402013
pop ecx
push 1
call fcn.00402f50
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x402191
push eax
call fcn.00402013
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004033dc
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4021b2
movzx eax, word [ebp - 0x40]
jmp 0x4021b5
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call section..text
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4021d3
push edi
call fcn.0040307b
call fcn.0040309d
jmp 0x402205
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00403b0b
ret
Function at 0x402fba
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x409738], esi
push edi
jne 0x402fda
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 [0x409734], esi
mov byte [0x409730], al
jne 0x403040
mov ecx, dword [0x40ac88]
test ecx, ecx
je 0x403021
mov eax, dword [0x40ac84]
sub eax, 4
cmp eax, ecx
jmp 0x40301a
mov eax, dword [eax]
test eax, eax
je 0x40300c
call eax
mov eax, dword [0x40ac84]
sub eax, 4
cmp eax, dword [0x40ac88]
mov dword [0x40ac84], eax
jae 0x403004
mov eax, 0x409020
mov esi, 0x409028
cmp eax, esi
mov edi, eax
jae 0x403040
mov eax, dword [edi]
test eax, eax
je 0x403039
call eax
add edi, 4
cmp edi, esi
jb 0x403031
mov eax, 0x40902c
mov esi, 0x409030
cmp eax, esi
mov edi, eax
jae 0x40305f
mov eax, dword [edi]
test eax, eax
je 0x403058
call eax
add edi, 4
cmp edi, esi
jb 0x403050
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x403079
push dword [ebp + 8]
mov dword [0x409738], 1
call fcn.00402f20
pop ebp
ret

Function at 0x4030bb
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x409430]
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 + 0x409060]
je 0x4030f0
inc eax
cmp eax, 0x13
jb 0x4030e1
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x409060]
jne 0x403216
mov eax, dword [0x4096e8]
cmp eax, 1
je 0x4031ee
cmp eax, edx
jne 0x403120
cmp dword [0x409054], 1
je 0x4031ee
cmp ecx, 0xfc
je 0x403216
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 0x403156
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00405620
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00404af0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40318a
mov eax, edi
push eax
call fcn.00404af0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x407794
push edi
call fcn.00405720
add esp, 0x10
push edi
call fcn.00404af0
push dword [esi + 0x409064]
mov ebx, eax
call fcn.00404af0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00401f80
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00405620
push edi
push ebx
call fcn.00405630
push 0x407168
push ebx
call fcn.00405630
push dword [esi + 0x409064]
push ebx
call fcn.00405630
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00405518
add esp, 0x2c
jmp 0x403216
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x409064]
push dword [esi]
call fcn.00404af0
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.00404c12
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4042f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447c6d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x45b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 3
sub esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004057b0
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0x3c
cmovae eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x4c], 0x40
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], str.cmd.exe
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x404398
or esi, 0xffffffff
jmp 0x4043bc
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x4043f2
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4043e8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4043e8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407d42
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407d04
mov esp, ebp
pop ebp
ret