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

Disassembly:
push 0xffffffffffffffff
push 0x462b33
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.00456a24
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.0045c0ba
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0045d5d6
test eax, eax
je 0x4367dc
mov ecx, dword [esp + 0x3c]
call fcn.0045c0e7
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 0x4367a0
push edi
mov ecx, esi
call fcn.0045974b
mov ecx, esi
call fcn.00436940
cmp dword [esp + 0x38], 1
jne 0x4367d5
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.00459886
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 0x439200
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x439233
push esi
call fcn.0043c2f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43922c
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 0x4392b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4392a2
mov eax, dword [esi + 8]
test eax, eax
je 0x439257
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 0x43929e
cmp eax, 2
je 0x4392a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43924a
cmp eax, 3
je 0x43927d
cmp eax, 1
jne 0x43924a
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 0x43924a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43924a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004392e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4392c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004392e0
add esp, 4
pop esi
ret

Function at 0x45781a
Capabilities:
Get graphical window text

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

Function at 0x458f08
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 0x458f4a
call fcn.0045e9c1
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x458f4a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x458f41
xor eax, eax
jmp 0x458f52
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00458f58
pop edi
pop esi
pop ebx
ret 4

Function at 0x45eef1
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 0x45ef1f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x45ef3d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0045ee57
jmp 0x45ef3d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45ef3d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0045ee57
test edi, edi
mov eax, edi
jne 0x45ef27
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ecx
call dword [sym.imp.WINIO.dll_InitializeWinIo]
test al, al
je 0x401058
push esi
push edi
mov edi, dword [sym.imp.WINIO.dll_SetPortVal]
push 1
push 0x90
push 0x6c
call edi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call esi
mov eax, dword [esp + 0x10]
push 1
push eax
push 0x68
call edi
push 0x32
call esi
lea ecx, [esp + 8]
push 1
push ecx
push 0x68
call dword [sym.imp.WINIO.dll_GetPortVal]
push 0x32
call esi
call dword [sym.imp.WINIO.dll_ShutdownWinIo]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret
push 0x10
push str.winio_notice
push str.Access_winio_fail_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xff
call fcn.0040339f
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x401730
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x409a5c]
push 0xa
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x409a5c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [0x409a5c]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x4099f4]
push 1
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esp + 4]
push ecx
call fcn.004015c0
mov edx, dword [0x4099f4]
add esp, 4
push 0
push 0xbb8
push 1
push edx
call dword [sym.imp.USER32.dll_SetTimer]
ret

Function at 0x401d00
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x409a5c]
push 0xa
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x409a5c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [0x409a5c]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x4099f4]
push 1
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esp + 4]
push ecx
call fcn.00401790
mov edx, dword [0x4099f4]
add esp, 4
push 0
push 0xbb8
push 1
push edx
call dword [sym.imp.USER32.dll_SetTimer]
ret

Function at 0x401ef0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x409a5c]
push 0xa
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x409a5c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [0x409a5c]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x4099f4]
push 1
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esp + 4]
push ecx
call fcn.00401d60
mov edx, dword [0x4099f4]
add esp, 4
push 0
push 0xbb8
push 1
push edx
call dword [sym.imp.USER32.dll_SetTimer]
ret

Function at 0x402040
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x409a5c]
push 0xa
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x409a5c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [0x409a5c]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x4099f4]
push 1
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esp + 4]
push ecx
call fcn.00401f50
mov edx, dword [0x4099f4]
add esp, 4
push 0
push 0xbb8
push 1
push edx
call dword [sym.imp.USER32.dll_SetTimer]
ret
Function at 0x402220
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x409a5c]
push 0xa
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x409a5c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [0x409a5c]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x4099f4]
push 1
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esp + 4]
push ecx
call fcn.004020a0
mov edx, dword [0x4099f4]
add esp, 4
push 0
push 0xbb8
push 1
push edx
call dword [sym.imp.USER32.dll_SetTimer]
ret

Function at 0x402590
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x409a5c]
push esi
push edi
push 0xa
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x409a5c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [0x409a5c]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x4099f4]
mov esi, dword [sym.imp.USER32.dll_KillTimer]
push 1
push eax
call esi
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
dec eax
je 0x402628
dec eax
je 0x402605
dec eax
jne 0x40264b
call fcn.00402400
call fcn.00402340
mov ecx, dword [0x4099f4]
push 3
push ecx
call esi
mov edx, dword [0x4099f4]
push 0
push 0x64
push 3
push edx
jmp 0x402649
call fcn.00402280
call fcn.00402340
mov eax, dword [0x4099f4]
push 3
push eax
call esi
mov ecx, dword [0x4099f4]
push 0
push 0x64
push 3
push ecx
jmp 0x402649
call fcn.00402400
call fcn.004024c0
mov edx, dword [0x4099f4]
push 3
push edx
call esi
mov eax, dword [0x4099f4]
push 0
push 0x64
push 3
push eax
call edi
mov ecx, dword [0x4099f4]
push 0
push 0x1388
push 1
push ecx
call edi
pop edi
pop esi
ret
Function at 0x402a50
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x27c
push ebp
push esi
push edi
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0xc], 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0x2001f
push 0
push 0x409a80
lea edx, [esp + 0x2c]
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [esp + 0x180]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, 0x409084
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x78]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x180]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x409084
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x78]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x78]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x78]
mov byte [esp + ecx + 0x78], al
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push 1
push 0
push str.SystemCenter
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
add esp, 0x27c
ret
Function at 0x402bc0
Capabilities:
Check mutex on windows
Log keystrokes via application hook

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push str.SOLKEY
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x402bf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402bf3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x74
ret 0x10
mov esi, dword [esp + 0x88]
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x65
push esi
mov dword [esp + 0x5c], 0x30
mov dword [esp + 0x60], 3
mov dword [esp + 0x64], 0x402dc0
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], esi
call edi
mov ebp, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f00
push ebx
mov dword [esp + 0x74], eax
call ebp
push 0xad8568
mov dword [esp + 0x74], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, str.SystemCenter
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], eax
xor eax, eax
mov ax, cx
mov dword [esp + 0x7c], 0x409000
push eax
push ebx
call edi
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x84], eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
jne 0x402c9e
push 0x10
push section..data
push str.This_program_requires_Windows_NT_
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x74
ret 0x10
push 0x7f00
push ebx
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], 0x403220
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], esi
call edi
push 0x7f00
push ebx
mov dword [esp + 0x48], eax
call ebp
push 1
mov dword [esp + 0x48], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 0x409010
mov dword [esp + 0x48], eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
push esi
push ebx
push ebx
push 0x78
push 0x1f4
push 1
call edi
sub eax, 0x78
cdq
sub eax, edx
sar eax, 1
push eax
push ebx
call edi
sub eax, 0x226
cdq
sub eax, edx
sar eax, 1
push eax
push 0xca0000
push str.SOLKEY_v3.0.4
push section..data
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, eax
push ebx
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push ebx
push esi
push 0x402660
push 0xd
mov dword [0x4099f4], edi
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
lea ecx, [esp + 0x18]
push ebx
push ecx
mov dword [0x4099f8], eax
call esi
test eax, eax
je 0x402da4
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
lea edx, [esp + 0x10]
push edx
call edi
lea eax, [esp + 0x10]
push eax
call ebp
push ebx
push ebx
lea ecx, [esp + 0x18]
push ebx
push ecx
call esi
test eax, eax
jne 0x402d88
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 0x10
Function at 0x403428
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x407238
call fcn.00404298
mov edi, 0x94
mov eax, edi
call fcn.004042f0
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 [0x409a88], ecx
mov eax, dword [esi + 4]
mov dword [0x409a94], eax
mov edx, dword [esi + 8]
mov dword [0x409a98], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x409a8c], esi
cmp ecx, 2
je 0x403488
or esi, 0x8000
mov dword [0x409a8c], esi
shl eax, 8
add eax, edx
mov dword [0x409a90], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4034c3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4034c3
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4034db
cmp eax, 0x20b
je 0x4034c8
mov dword [ebp - 0x1c], esi
jmp 0x4034ef
cmp dword [ecx + 0x84], 0xe
jbe 0x4034c3
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4034e9
cmp dword [ecx + 0x74], 0xe
jbe 0x4034c3
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00404247
pop ecx
test eax, eax
jne 0x403503
push 0x1c
call fcn.00403404
pop ecx
call fcn.004041be
test eax, eax
jne 0x403514
push 0x10
call fcn.00403404
pop ecx
mov dword [ebp - 4], esi
call fcn.00403f31
test eax, eax
jge 0x403528
push 0x1b
call fcn.004033df
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40a240], eax
call fcn.00403e0b
mov dword [0x409acc], eax
call fcn.00403d69
test eax, eax
jge 0x40354e
push 8
call fcn.004033df
pop ecx
call fcn.00403b1d
test eax, eax
jge 0x40355f
push 9
call fcn.004033df
pop ecx
call fcn.00403280
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x403572
push eax
call fcn.004033df
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00403ab4
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x403593
movzx eax, word [ebp - 0x34]
jmp 0x403596
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00402bc0
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4035b4
push edi
call fcn.0040339f
call fcn.004033c1
jmp 0x4035e6
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004042d1
ret
Function at 0x40374e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x409268]
je 0x40376e
inc eax
cmp eax, 0x12
jb 0x40375f
shl eax, 3
cmp edx, dword [eax + 0x409268]
mov dword [ebp + 8], eax
jne 0x40390c
mov ecx, dword [0x409ad4]
cmp ecx, 1
je 0x4038e1
test ecx, ecx
jne 0x4037a0
cmp dword [0x409144], 1
je 0x4038e1
cmp edx, 0xfc
je 0x40390c
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4037db
push 5
pop ecx
mov esi, str._program_name_unknown_
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4037ea
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x403822
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403802
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x407590
push ebx
call fcn.00404600
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403827
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x40926c]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40383e
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.004042f0
mov edx, esp
push 6
pop ecx
mov esi, str.Runtime_Error__n_nProgram:
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40386a
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403876
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40388f
mov eax, dword [ebp + 8]
mov esi, 0x407570
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x40926c]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4038aa
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4038b6
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.004044fb
add esp, 0xc
jmp 0x40390c
mov ecx, dword [eax + 0x40926c]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4038ec
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4044fb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x409d40], ebx
push esi
push edi
jne 0x40457b
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4045b6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40766c
push edi
call esi
test eax, eax
mov dword [0x409d40], eax
je 0x4045b6
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x409d44], eax
call esi
cmp dword [0x409a88], 2
mov dword [0x409d48], eax
jne 0x40457b
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x409d50], eax
je 0x40457b
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x409d4c], eax
mov eax, dword [0x409d4c]
test eax, eax
je 0x4045c0
call eax
test eax, eax
je 0x4045a7
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x409d50]
test eax, eax
je 0x4045a7
test byte [ebp - 8], 1
jne 0x4045c0
cmp dword [0x409a94], 4
jb 0x4045ba
or byte [ebp + 0x12], 0x20
jmp 0x4045df
xor eax, eax
jmp 0x4045ef
or byte [ebp + 0x12], 4
jmp 0x4045df
mov eax, dword [0x409d44]
test eax, eax
je 0x4045df
call eax
mov ebx, eax
test ebx, ebx
je 0x4045df
mov eax, dword [0x409d48]
test eax, eax
je 0x4045df
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x409d40]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406714
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.004042f0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4067a9
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x409a88]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4067a9
cmp eax, 1
je 0x4067c1
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4067a9
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x40677e
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4067a5
xor eax, eax
inc eax
jmp 0x4067dd
cmp esi, ebx
jae 0x4067ad
xor eax, eax
jmp 0x4067dd
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x409a88]
jmp 0x4067c3
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219