joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4568f4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4c1c2c]
cmp dword [eax + 0x30], 0
je 0x45699e
cmp dword [ebx + 0x94], 0
jne 0x456998
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x456884
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x456998
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 0x45695e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x456998
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004146c4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45696d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45747c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4574b1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004046d4
jmp 0x4574be
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404638
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x458574
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4585b5
mov eax, esi
call fcn.0043e4c8
test al, al
je 0x4585b5
mov eax, dword [ebx + 0x84]
call fcn.0043e1c4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4585b5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043e1c4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x460954
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x460982
mov eax, ebx
call fcn.0046140c
cmp dword [ebx + 0x3c], 0
je 0x46097b
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4609f3
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4609e5
cmp dword [ebx + 8], 0
je 0x4609a4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x4609b6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4609e5
cmp dword [ebx + 8], 0
je 0x460997
cmp eax, 3
je 0x4609c9
dec eax
jne 0x460997
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x460997
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x460997
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x460a11
cmp dword [ebx + 0x10], 0xcc
je 0x460a11
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00460a1c
pop ebx
ret
Function at 0x471b5c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, ecx
mov dword [ebp - 8], eax
dec edx
mov eax, edx
shl eax, 2
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x471bc9
xor eax, eax
push ebp
push 0x471bc2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471bc9
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 4
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_VirtualProtect
ret
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x487d7c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x487eb3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0048547c
test eax, eax
je 0x487e95
mov eax, ebx
call fcn.0048547c
test byte [eax + 0x2ec], 8
jne 0x487e95
mov al, byte [ebx + 0x79]
cmp al, 4
je 0x487e8e
mov byte [ebx + 0x78], al
mov byte [ebx + 0x79], 4
mov al, byte [ebx + 0x78]
cmp al, 2
je 0x487dfa
cmp al, 1
je 0x487dfa
cmp al, 3
je 0x487dfa
mov eax, ebx
call fcn.0048547c
lea edx, [ebp - 0x10]
call fcn.004374b0
lea esi, [ebp - 0x10]
lea edi, [ebx + 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp byte [ebx + 0x10a], 0
je 0x487e45
lea edx, [ebp - 0x14]
mov eax, dword [0x4c0d6c]
mov eax, dword [eax]
call fcn.0045747c
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x94]
mov ecx, 0x3f
call fcn.004090b0
mov eax, dword [0x4c0d6c]
mov eax, dword [eax]
call fcn.00457290
push 0
mov eax, dword [0x4c0d6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
jmp 0x487e81
mov eax, ebx
call fcn.0048547c
test eax, eax
je 0x487e72
mov eax, ebx
call fcn.0048547c
lea edx, [ebp - 0x18]
call fcn.00437b10
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x94]
mov ecx, 0x3f
call fcn.004090b0
push 0
mov eax, ebx
call fcn.00485488
push eax
call sub.user32.dll_ShowWindow
lea eax, [ebx + 0x7c]
push eax
push 0
call sub.shell32.dll_Shell_NotifyIconA
jmp 0x487e95
mov eax, ebx
call fcn.00487834
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487eba
lea eax, [ebp - 0x18]
call fcn.004045e4
lea eax, [ebp - 0x14]
call fcn.004045e4
ret

Function at 0x49441c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x494443
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x494455
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x494461
add word [ebp - 6], 0x8000
mov byte [ebp - 0xd], 0
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.004942ac
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4944c9
lea edx, [ebp - 4]
mov eax, dword [0x4c0e7c]
mov eax, dword [eax]
call fcn.0042775c
xor eax, eax
push ebp
push 0x4944c2
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
lea eax, [ebp - 4]
xor edx, edx
call fcn.004942dc
pop ecx
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4944c9
mov eax, dword [0x4c0e7c]
mov eax, dword [eax]
call fcn.00427754
ret
cmp byte [ebp - 0xd], 2
je 0x494461
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bd9a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe88
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
call fcn.00404a84
xor eax, eax
push ebp
push 0x4bdaa8
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x178], 0x46464952
mov dword [ebp - 0x174], 0x24
mov dword [ebp - 0x170], 0x45564157
mov dword [ebp - 0x16c], 0x20746d66
mov dword [ebp - 0x168], 0x10
mov word [ebp - 0x164], 1
mov word [ebp - 0x162], bx
mov dword [ebp - 0x160], edi
movzx edx, bx
imul edx, edi
movzx eax, si
shr eax, 3
imul edx, eax
mov dword [ebp - 0x15c], edx
imul bx
mov word [ebp - 0x158], ax
mov word [ebp - 0x156], si
mov dword [ebp - 0x154], 0x61746164
xor eax, eax
mov dword [ebp - 0x150], eax
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x14c]
call fcn.00402cf4
mov edx, 0x2c
lea eax, [ebp - 0x14c]
call fcn.004030a4
call fcn.0040289c
lea edx, [ebp - 0x178]
lea eax, [ebp - 0x14c]
call fcn.0040317c
call fcn.0040289c
lea eax, [ebp - 0x14c]
call fcn.00402dbc
call fcn.0040289c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bdaaf
lea eax, [ebp + 8]
call fcn.004045e4
ret
Function at 0x4011c0
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 0x4011d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4011ed
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40120e
cmp esi, eax
jae 0x4011e7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401200
cmp esi, eax
jae 0x4011e7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4022e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42cd28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.004020c0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.004012b0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x402372
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x405a60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42d068
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
lea eax, [esp + 8]
push esi
push eax
mov dword [esp + 0x10], 0
call fcn.004059a0
add esp, 4
mov esi, eax
push str.ProviderMicrosoft.Jet.OLEDB.4.0_User_IDAdmin_Data_Source
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call fcn.00405410
push esi
push eax
lea ecx, [esp + 0xc]
push ecx
mov byte [esp + 0x24], 1
call fcn.004022e0
mov esi, dword [esp + 0x2c]
push 0x42ed18
push eax
push esi
mov byte [esp + 0x30], 2
call fcn.00402390
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 0x18
mov byte [esp + 0x18], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405af2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x18], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x408150
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x214
mov edx, dword [esp + 0x218]
push ebp
push esi
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
push edx
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x40825a
lea ecx, [esp + 8]
call fcn.00408060
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jne 0x40825e
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
mov dword [esp + 0x30], pe_nt_image_headers32
call esi
test eax, eax
jne 0x408214
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.00408150
mov edi, eax
test edi, edi
jne 0x408276
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push edi
push eax
mov dword [esp + 0x30], pe_nt_image_headers32
call esi
test eax, eax
je 0x4081d6
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40822d
push eax
call edi
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x224]
mov edx, dword [ebp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40824c
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x214
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x408269
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
add esp, 0x214
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x408285
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x214
ret 4
Function at 0x4086b0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4086c2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x40a189
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40a1dc
call fcn.00429243
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x40a1dc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40a1d2
xor eax, eax
jmp 0x40a2f5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40a20c
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40a20c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40a2f2
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40a239
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00409003
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40a2f2
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40a282
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40a282
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40a27c
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00409003
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40a2e2
and dword [ebp + 0xc], 0
jmp 0x40a2e2
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40a2e2
push 0xc
call fcn.00420df9
mov esi, eax
test esi, esi
pop ecx
je 0x40a2c4
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40a2c6
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40a2dd
push dword [ebp - 8]
call fcn.0041fe74
jmp 0x40a2e2
call fcn.0041fe4b
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x40a247
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41268e
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4320d8
call fcn.00414114
mov edi, 0x94
mov eax, edi
call fcn.00413890
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 [0x43e84c], ecx
mov eax, dword [esi + 4]
mov dword [0x43e858], eax
mov edx, dword [esi + 8]
mov dword [0x43e85c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x43e850], esi
cmp ecx, 2
je 0x4126ee
or esi, 0x8000
mov dword [0x43e850], esi
shl eax, 8
add eax, edx
mov dword [0x43e854], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x412729
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x412729
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x412741
cmp eax, 0x20b
je 0x41272e
mov dword [ebp - 0x1c], esi
jmp 0x412755
cmp dword [ecx + 0x84], 0xe
jbe 0x412729
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41274f
cmp dword [ecx + 0x74], 0xe
jbe 0x412729
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00415b32
pop ecx
test eax, eax
jne 0x412769
push 0x1c
call fcn.0041266a
pop ecx
call fcn.00415a29
test eax, eax
jne 0x41277a
push 0x10
call fcn.0041266a
pop ecx
call fcn.004157c3
mov dword [ebp - 4], esi
call fcn.004155c5
test eax, eax
jge 0x412793
push 0x1b
call fcn.00412645
pop ecx
call fcn.00415526
mov dword [0x440250], eax
call fcn.004153bc
mov dword [0x43e834], eax
call fcn.00415326
test eax, eax
jge 0x4127b8
push 8
call fcn.00412645
pop ecx
call fcn.004150f3
test eax, eax
jge 0x4127c9
push 9
call fcn.00412645
pop ecx
push 1
call fcn.00413f78
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4127df
push eax
call fcn.00412645
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.004150ad
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x412800
movzx eax, word [ebp - 0x40]
jmp 0x412803
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041fa1e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x412821
push edi
call fcn.004140a5
call fcn.004140c7
jmp 0x412853
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041414f
ret
Function at 0x413fe2
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4321d8
call fcn.00414114
push 8
call fcn.00415eff
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x43e88c], esi
jne 0x414016
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x43e888], esi
mov al, byte [ebp + 0x10]
mov byte [0x43e884], al
cmp dword [ebp + 0xc], edi
jne 0x414060
cmp dword [0x440248], edi
je 0x414050
mov eax, dword [0x440244]
sub eax, 4
mov dword [0x440244], eax
cmp eax, dword [0x440248]
jb 0x414050
mov eax, dword [eax]
cmp eax, edi
je 0x414031
call eax
jmp 0x414031
push 0x43a098
mov eax, 0x43a090
call fcn.00413f60
pop ecx
push 0x43a0a4
mov eax, 0x43a09c
call fcn.00413f60
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x414091
cmp dword [ebp + 0x10], edi
jne 0x41409f
mov dword [0x43e88c], esi
push dword [ebp + 8]
call fcn.00413f1e
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41409e
push 8
call fcn.00415e4a
pop ecx
ret
call fcn.0041414f
ret

Function at 0x4143ea
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00413890
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x414485
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x43e84c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x414485
cmp eax, 1
je 0x4144a6
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x414485
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x414452
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x414481
xor eax, eax
inc eax
jmp 0x4144c5
cmp edi, eax
jae 0x414489
xor eax, eax
jmp 0x4144c5
cmp eax, esi
jae 0x414490
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x43e84c]
jmp 0x4144a9
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414d98
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x43b630]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x43b7a8]
je 0x414dcf
inc eax
cmp eax, 0x13
jb 0x414dc0
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x43b7a8]
jne 0x414ef2
mov eax, dword [0x43e838]
cmp eax, 1
je 0x414ecd
cmp eax, edx
jne 0x414dff
cmp dword [0x43b5e0], 1
je 0x414ecd
cmp ecx, 0xfc
je 0x414ef2
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x414e35
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00417420
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00413d20
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x414e69
mov eax, edi
push eax
call fcn.00413d20
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x432600
push edi
call fcn.0041a490
add esp, 0x10
push edi
call fcn.00413d20
push dword [esi + 0x43b7ac]
mov ebx, eax
call fcn.00413d20
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00413890
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00417420
push edi
push ebx
call fcn.00417430
push 0x4325e0
push ebx
call fcn.00417430
push dword [esi + 0x43b7ac]
push ebx
call fcn.00417430
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041a392
add esp, 0x2c
jmp 0x414ef2
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x43b7ac]
push dword [esi]
call fcn.00413d20
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]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.004138fe
add ebp, 0x90
leave
ret