joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f90
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi - 0xa4]
mov ecx, dword [eax + 4]
push edi
lea ecx, [ecx + esi - 0xa4]
call fcn.0040a8d0
mov edx, dword [esi - 0x20]
mov eax, dword [esi - 0xa4]
mov ecx, dword [eax + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push edx
mov edx, dword [ecx + esi - 0xa0]
push edx
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
mov eax, dword [esi - 4]
mov ecx, dword [esi - 0xa4]
mov edx, dword [ecx + 4]
push eax
mov eax, dword [edx + esi - 0xa0]
push eax
call edi
push 0
push eax
call ebx
mov ecx, dword [esi - 0x1c]
mov edx, dword [esi - 0xa4]
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [eax + esi - 0xa0]
push ecx
call edi
mov ecx, dword [esi - 0xc]
test ecx, ecx
lea ecx, [esi - 0x60]
jne 0x402015
lea ecx, [esi - 0xa0]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
mov dword [esi - 8], 0
pop esi
mov eax, 1
pop ebx
ret

Function at 0x401f91
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi - 0xa4]
mov ecx, dword [eax + 4]
push edi
lea ecx, [ecx + esi - 0xa4]
call fcn.0040a8d0
mov edx, dword [esi - 0x20]
mov eax, dword [esi - 0xa4]
mov ecx, dword [eax + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push edx
mov edx, dword [ecx + esi - 0xa0]
push edx
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
mov eax, dword [esi - 4]
mov ecx, dword [esi - 0xa4]
mov edx, dword [ecx + 4]
push eax
mov eax, dword [edx + esi - 0xa0]
push eax
call edi
push 0
push eax
call ebx
mov ecx, dword [esi - 0x1c]
mov edx, dword [esi - 0xa4]
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [eax + esi - 0xa0]
push ecx
call edi
mov ecx, dword [esi - 0xc]
test ecx, ecx
lea ecx, [esi - 0x60]
jne 0x402015
lea ecx, [esi - 0xa0]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
mov dword [esi - 8], 0
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4039c0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x94
push esi
push 2
mov esi, ecx
mov ecx, dword [esi + 0x480]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, 1
jl 0x403abd
mov al, byte [esp + 8]
movsx edx, al
cmp edx, 0xff
jg 0x403abd
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
mov byte [esp + 0x13], al
mov eax, dword [esi + 0xf8]
push 0x147
push eax
call ebp
cmp eax, 0xffffffff
je 0x403abc
mov ecx, dword [esi + 0xf8]
push ebx
push edi
push 0
push eax
push 0x150
push ecx
call ebp
lea edi, [eax + eax*2]
shl edi, 2
mov ebx, dword [edi + 0x41f414]
cmp ebx, 0x14
jge 0x403a53
movzx edx, byte [esp + 0x13]
push edx
call fcn.0040e036
add esp, 4
jmp 0x403a57
mov al, byte [esp + 0x13]
mov ecx, dword [esi + 0xd8c]
mov byte [esi + ecx*8 + 0x58c], al
mov edx, dword [esi + 0xd8c]
mov dword [esi + edx*8 + 0x590], ebx
inc dword [esi + 0xd8c]
mov ecx, dword [edi + 0x41f418]
movzx edx, al
push ecx
push edx
lea eax, [esp + 0x2c]
push str.___c_t_s
push eax
call fcn.0040e058
mov edx, dword [esi + 0xf0]
add esp, 0x10
push 0
lea ecx, [esp + 0x28]
push ecx
push 0
push 0x180
push edx
call ebp
push eax
mov eax, dword [esi + 0xf0]
push 0x186
push eax
call ebp
pop edi
pop ebx
pop ebp
pop esi
add esp, 0x94
ret

Function at 0x404090
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x10
push esi
push edi
push 2
mov esi, ecx
mov ecx, dword [esi + 0x480]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, 1
jge 0x4040d2
mov edx, dword [esi + 0x104]
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push edx
call edi
mov eax, dword [esi + 0x334]
push 0
push eax
call edi
pop edi
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 8]
push ebx
push ebp
push ecx
mov ecx, esi
call fcn.00403970
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
mov edi, eax
mov eax, dword [esi + 0x104]
xor edx, edx
cmp edi, 0xffffffff
sete dl
push edx
push eax
call ebx
cmp edi, 0xffffffff
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
je 0x40411d
mov ecx, dword [esi + 0xf0]
push 0
push edi
push 0x186
push ecx
call ebp
mov ecx, esi
call fcn.00403ad0
mov edx, dword [esi + 0xf0]
push 0
push 0
push 0x188
push edx
call ebp
mov edx, dword [esi + 0x334]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push ecx
push edx
call ebx
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x404ac0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x9c
push esi
push 2
mov esi, ecx
mov ecx, dword [esi + 0x480]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, 1
jl 0x404c0e
mov al, byte [esp + 0x10]
movsx edx, al
cmp edx, 0xff
jg 0x404c0e
push ebp
push edi
movzx edi, al
push edi
mov byte [esp + 0x13], al
call fcn.0040e036
push edi
mov byte [esp + 0x16], al
call fcn.0040e178
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 8
push 0
push 0
mov byte [esp + 0x1c], al
mov eax, dword [esi + 0xf8]
push 0x147
push eax
call ebp
cmp eax, 0xffffffff
je 0x404c0c
mov ecx, dword [esi + 0xf8]
push ebx
push 0
push eax
push 0x150
push ecx
call ebp
push 0
lea ebx, [eax + eax*2]
mov eax, dword [esi + 0xf0]
push 0
shl ebx, 2
mov edx, dword [ebx + 0x41f414]
push 0x188
push eax
mov dword [esp + 0x24], edx
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x404c0b
mov ecx, dword [esp + 0x14]
cmp ecx, 0x14
mov al, byte [esp + 0x12]
jl 0x404b8a
mov al, byte [esp + 0x13]
mov byte [esi + edi*8 + 0x58c], al
mov dword [esi + edi*8 + 0x590], ecx
mov ecx, dword [ebx + 0x41f418]
movzx edx, al
push ecx
push edx
lea eax, [esp + 0x34]
push str.___c_t_s
push eax
call fcn.0040e058
mov edx, dword [esi + 0xf0]
add esp, 0x10
lea ecx, [esp + 0x2c]
push ecx
push edi
push 0x181
push edx
call ebp
mov ecx, dword [esi + 0xf0]
push 0
lea eax, [edi + 1]
push eax
push 0x182
push ecx
call ebp
mov edx, dword [esi + 0xf0]
push 0
push edi
push 0x186
push edx
call ebp
mov eax, dword [esp + 0x18]
push eax
mov ecx, esi
call fcn.00403970
cmp eax, 0xffffffff
je 0x404c0b
cmp eax, edi
je 0x404c0b
push eax
mov ecx, esi
call fcn.00404220
pop ebx
pop edi
pop ebp
pop esi
add esp, 0x9c
ret
Function at 0x406e60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
push ebp
push 0
push 0
push Ordinal_4
push Ordinal_4
push Ordinal_4
push Ordinal_4
push 0xcf0000
push 0x4234f0
push str.UniKey_MainWnd
push 0x80
mov esi, ecx
call fcn.0040a660
mov edi, eax
test edi, edi
jne 0x406ea7
pop edi
pop esi
pop ebp
ret 4
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push str.ABC_Sans_Serif
mov dword [esi + 0x390], 0
call fcn.00402430
add esp, 4
test eax, eax
jne 0x406edd
mov ecx, esi
call fcn.004068b0
test eax, eax
je 0x406ee7
mov dword [esi + 0x390], 1
mov eax, dword [0x423584]
test eax, eax
je 0x406f04
mov eax, dword [esi + 0x390]
test eax, eax
jne 0x406f04
mov dword [0x423584], 0
lea ecx, [esi + 0xc]
mov dword [ecx + 0x54], 0x423568
mov dword [ecx + 0x58], ebp
mov dword [ecx + 0x5c], edi
call fcn.00409bf0
push 0x103
lea edi, [esi + 0x288]
push edi
push 0
mov word [0x4235ac], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push edi
call fcn.0040df40
add esp, 8
test eax, eax
je 0x406f48
mov byte [eax], 0
push edi
lea eax, [esi + 0x80]
push str._sUnikey.hlp
push eax
call fcn.0040e058
push edi
lea ecx, [esi + 0x184]
push str._skeymap.txt
push ecx
call fcn.0040e058
push edi
lea ebp, [esi + 0x398]
push str._sukmacro.txt
push ebp
call fcn.0040e058
lea edx, [esi + 0x49c]
add esp, 0x24
mov eax, ebp
sub edx, ebp
jmp 0x406f90
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x406f90
push ebp
lea ecx, [esi + 0x5a0]
call fcn.004064d0
pop edi
pop esi
mov eax, 1
pop ebp
ret 4
Function at 0x406fc0
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [0x42355c]
sub esp, 0xbc
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MyKeyHook
push eax
call edi
mov ecx, dword [0x42355c]
push str.MyMouseHook
push ecx
mov esi, eax
call edi
test esi, esi
mov edi, eax
je 0x40716e
test edi, edi
je 0x40716e
mov edx, dword [0x42355c]
push 0
push edx
push esi
mov esi, dword [sym.imp.USER32.dll_SetWindowsHookExA]
push 2
call esi
push 0
mov dword [0x423558], eax
mov eax, dword [0x42355c]
push eax
push edi
push 7
call esi
mov ecx, dword [0x423558]
test ecx, ecx
mov dword [0x423554], eax
je 0x40714f
test eax, eax
je 0x40714f
call dword [sym.imp.UKHook40.dll_void___cdecl_InitUkHook_void_]
push 0x42374c
call dword [sym.imp.UKHook40.dll_int___cdecl_UnikeyLoadUserKeyMap_char_const__]
add esp, 4
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x34]
cmp eax, 4
ja 0x407084
cmp dword [esp + 0x40], 2
jne 0x40707a
cmp eax, 4
je 0x407084
mov dword [esp + 0x24], 0
jmp 0x40708c
mov dword [esp + 0x24], 1
mov ecx, dword [0x423560]
mov edx, dword [esp + 0x38]
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xc8]
push 0x82
push ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x1c], eax
call esi
mov edx, dword [0x423560]
push 0x81
push edx
mov dword [esp + 0x28], eax
call esi
mov ecx, dword [0x423554]
mov edx, dword [0x423574]
mov dword [esp + 0x1c], eax
mov eax, dword [0x423558]
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], 0x401
mov dword [esp + 0xc], edx
call dword [sym.imp.UKHook40.dll_Ordinal_14]
mov ecx, dword [0x42356c]
push ecx
call dword [sym.imp.UKHook40.dll_Ordinal_15]
mov edx, dword [0x423578]
push edx
call dword [sym.imp.UKHook40.dll_Ordinal_10]
mov eax, dword [0x423570]
push eax
call dword [sym.imp.UKHook40.dll_Ordinal_8]
push 0x423568
call fcn.00406a80
push 0x423a64
call dword [sym.imp.UKHook40.dll_Ordinal_17]
add esp, 0x18
call dword [sym.imp.UKHook40.dll_Ordinal_16]
pop edi
mov eax, 1
pop esi
add esp, 0xbc
ret
push 0x10
push str.Error
push str.Failed_to_initialize_the_program
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
add esp, 0xbc
ret
push 0x10
push str.Error
push str.Failed_to_find_hook_procedures
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
add esp, 0xbc
ret
Function at 0x409ef0
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x1a0
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 4]
push edx
push 0
push 3
push 0
setne al
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x409f47
xor eax, eax
add esp, 0x1a0
ret
mov eax, dword [esp + 0x1a4]
test eax, eax
push esi
je 0x409fb5
push 0x104
lea eax, [esp + 0xa4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0xa0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409f72
sub eax, edx
mov edx, dword [esp + 4]
inc eax
push eax
lea ecx, [esp + 0xa4]
push ecx
push 1
push 0
push str.UniKey
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x1a0
ret
mov eax, dword [esp + 4]
push str.UniKey
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 4]
push 0
push 0
push 0
push 0
push str.UniKey
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push edx
neg esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x1a0
ret

Function at 0x40a000
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x98
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, dword [esp + 0x14]
xor eax, eax
cmp edx, 2
setne al
lea ecx, [esp]
push ecx
push 3
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40a04b
xor eax, eax
add esp, 0x98
ret
mov edx, dword [esp]
push esi
push 0
push 0
push 0
push 0
push str.UniKey
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 0x98
ret
Function at 0x40a100
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
mov esi, ecx
lea ecx, [esp + 8]
push ecx
push 0
push 3
push 0
push 0
push 0
push str.SoftwarePkLongUniKey
push Ordinal_5
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40a135
xor eax, eax
pop esi
add esp, 8
ret
mov edx, dword [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
push esi
push 4
push 0
push str.ShowDlg
push edx
call edi
mov ecx, dword [esp + 8]
push 4
lea eax, [esi + 4]
push eax
push 4
push 0
push str.Vietnamese
push ecx
call edi
mov eax, dword [esp + 8]
push 4
lea edx, [esi + 8]
push edx
push 4
push 0
push str.CodeTable
push eax
call edi
mov edx, dword [esp + 8]
push 4
lea ecx, [esi + 0xc]
push ecx
push 4
push 0
push str.SwitchKey
push edx
call edi
mov ecx, dword [esp + 8]
push 4
lea eax, [esi + 0x10]
push eax
push 4
push 0
push str.InputMethod
push ecx
call edi
mov eax, dword [esp + 8]
push 4
lea edx, [esi + 0x14]
push edx
push 4
push 0
push str.FreeMarking
push eax
call edi
mov edx, dword [esp + 8]
push 4
lea ecx, [esi + 0x18]
push ecx
push 4
push 0
push str.ModernStyle
push edx
call edi
mov ecx, dword [esp + 8]
push 4
lea eax, [esi + 0x1c]
push eax
push 4
push 0
push str.VietGUI
push ecx
call edi
mov eax, dword [esp + 8]
push 4
lea edx, [esi + 0x20]
push edx
push 4
push 0
push str.InConvCharset
push eax
call edi
mov edx, dword [esp + 8]
push 4
lea ecx, [esi + 0x24]
push ecx
push 4
push 0
push str.OutConvCharset
push edx
call edi
mov ecx, dword [esp + 8]
push 4
lea eax, [esi + 0x28]
push eax
push 4
push 0
push str.ClipboardConvert
push ecx
call edi
mov eax, dword [esp + 8]
push 4
lea edx, [esi + 0x2c]
push edx
push 4
push 0
push str.MacroEnabled
push eax
call edi
mov edx, dword [esp + 8]
push 4
lea ecx, [esi + 0x30]
push ecx
push 4
push 0
push str.UseUnicodeClipboard
push edx
call edi
mov ecx, dword [esp + 8]
push 4
lea eax, [esi + 0x34]
push eax
push 4
push 0
push str.AlwaysMacro
push ecx
call edi
mov eax, dword [esp + 8]
push 4
lea edx, [esi + 0x38]
push edx
push 4
push 0
push str.UseIME
push eax
call edi
mov edx, dword [esp + 8]
push 4
lea ecx, [esi + 0x3c]
push ecx
push 4
push 0
push str.SpellCheckDisabled
push edx
call edi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esi + 0x48]
push ecx
call fcn.00409ef0
add esp, 4
pop edi
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x40e841
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41b9b8
call fcn.0041127c
mov edi, 0x94
mov eax, edi
call fcn.00412e90
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 [0x424ad0], ecx
mov eax, dword [esi + 4]
mov dword [0x424adc], eax
mov edx, dword [esi + 8]
mov dword [0x424ae0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x424ad4], esi
cmp ecx, 2
je 0x40e8a1
or esi, 0x8000
mov dword [0x424ad4], esi
shl eax, 8
add eax, edx
mov dword [0x424ad8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40e8dc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e8dc
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40e8f4
cmp eax, 0x20b
je 0x40e8e1
mov dword [ebp - 0x1c], esi
jmp 0x40e908
cmp dword [ecx + 0x84], 0xe
jbe 0x40e8dc
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40e902
cmp dword [ecx + 0x74], 0xe
jbe 0x40e8dc
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00412e31
pop ecx
test eax, eax
jne 0x40e91c
push 0x1c
call fcn.0040e81d
pop ecx
call fcn.0040fd70
test eax, eax
jne 0x40e92d
push 0x10
call fcn.0040e81d
pop ecx
call fcn.00412d8f
mov dword [ebp - 4], esi
call fcn.00412b91
test eax, eax
jge 0x40e946
push 0x1b
call fcn.0040e7f8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x426304], eax
call fcn.00412a6f
mov dword [0x424a94], eax
call fcn.004129cd
test eax, eax
jge 0x40e96c
push 8
call fcn.0040e7f8
pop ecx
call fcn.0041279a
test eax, eax
jge 0x40e97d
push 9
call fcn.0040e7f8
pop ecx
push 1
call fcn.00411c62
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40e993
push eax
call fcn.0040e7f8
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041273d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40e9b4
movzx eax, word [ebp - 0x40]
jmp 0x40e9b7
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00407790
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40e9d5
push edi
call fcn.00411d8f
call fcn.00411db1
jmp 0x40ea07
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004112b7
ret
Function at 0x411ccc
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41bd78
call fcn.0041127c
push 8
call fcn.00413057
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x424b10], esi
jne 0x411d00
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x424b0c], esi
mov al, byte [ebp + 0x10]
mov byte [0x424b08], al
cmp dword [ebp + 0xc], edi
jne 0x411d4a
cmp dword [0x4252e8], edi
je 0x411d3a
mov eax, dword [0x4252e4]
sub eax, 4
mov dword [0x4252e4], eax
cmp eax, dword [0x4252e8]
jb 0x411d3a
mov eax, dword [eax]
cmp eax, edi
je 0x411d1b
call eax
jmp 0x411d1b
push 0x41f03c
mov eax, 0x41f030
call fcn.00411c4a
pop ecx
push 0x41f048
mov eax, 0x41f040
call fcn.00411c4a
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x411d7b
cmp dword [ebp + 0x10], edi
jne 0x411d89
mov dword [0x424b10], esi
push dword [ebp + 8]
call fcn.00411c08
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x411d88
push 8
call fcn.00412fa2
pop ecx
ret
call fcn.004112b7
ret

Function at 0x412429
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4220cc]
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 + 0x4224e0]
je 0x41245e
inc eax
cmp eax, 0x13
jb 0x41244f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4224e0]
jne 0x412584
mov eax, dword [0x424a9c]
cmp eax, 1
je 0x41255c
cmp eax, edx
jne 0x41248e
cmp dword [0x421e44], 1
je 0x41255c
cmp ecx, 0xfc
je 0x412584
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 0x4124c4
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004147f0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004115e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4124f8
mov eax, edi
push eax
call fcn.004115e0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x41c1a0
push edi
call fcn.0040e400
add esp, 0x10
push edi
call fcn.004115e0
push dword [esi + 0x4224e4]
mov ebx, eax
call fcn.004115e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00412e90
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004147f0
push edi
push ebx
call fcn.00414800
push 0x41c180
push ebx
call fcn.00414800
push dword [esi + 0x4224e4]
push ebx
call fcn.00414800
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00416192
add esp, 0x2c
jmp 0x412584
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4224e4]
push dword [esi]
call fcn.004115e0
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.00414d0e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41522c
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.00412e90
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4152c7
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 [0x424ad0]
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 0x4152c7
cmp eax, 1
je 0x4152e8
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 0x4152c7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x415294
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4152c3
xor eax, eax
inc eax
jmp 0x415307
cmp edi, eax
jae 0x4152cb
xor eax, eax
jmp 0x415307
cmp eax, esi
jae 0x4152d2
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 [0x424ad0]
jmp 0x4152eb
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