joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5cd400
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push eax
push esi
mov ebx, ecx
mov dword [ebp - 4], 0
call fcn.005aacd0
mov edi, eax
add esp, 8
test edi, edi
jne 0x5cd4a4
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5cd499
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
test eax, eax
je 0x5cd499
push eax
mov dword [ebp + 8], edi
call fcn.005a5d06
add esp, 4
mov edi, eax
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp - 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
cmp dword [ebp + 8], eax
je 0x5cd495
push edi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test edi, edi
jne 0x5cd4a7
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push edi
mov ecx, ebx
call fcn.005cd4d0
push edi
mov esi, eax
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5dfa30
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6af320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esi
call fcn.005df980
test ebx, ebx
je 0x5dfa67
mov edi, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
sub edi, dword [ebx]
sub esi, dword [ebx + 4]
jmp 0x5dfa96
test esi, esi
je 0x5dfa84
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
sub edi, dword [ebp - 0x14]
sub esi, dword [ebp - 0x10]
jmp 0x5dfa96
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov edi, eax
call esi
mov esi, eax
test edi, edi
jle 0x5dfb4b
test esi, esi
jle 0x5dfb4b
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x5dfb4b
push eax
mov byte [ebp - 0x15], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x798], eax
test eax, eax
je 0x5dfb29
push esi
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x79c], ecx
test ecx, ecx
je 0x5dfb29
push ecx
push dword [eax + 0x798]
mov byte [ebp - 0x15], 1
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0x20]
push 0xcc0020
test ebx, ebx
je 0x5dfb10
push dword [ebx + 4]
push dword [ebx]
jmp 0x5dfb14
push 0
push 0
push dword [ebp - 0x1c]
push esi
push edi
push 0
push 0
push dword [ecx + 0x798]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov al, byte [ebp - 0x15]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005f24e0
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005f24e0
mov esp, ebp
pop ebp
ret 8
Function at 0x5e05b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61c75b
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x6af320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x38]
xor eax, eax
mov dword [ebp - 4], 1
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x5e060d
mov esi, dword [esi]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x810]
push esi
push 0x400
push ecx
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0x6304a0
push eax
push 0x63e0d0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
cmp word [ebp - 0x810], ax
jne 0x5e0660
xor ecx, ecx
jmp 0x5e067f
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5e0670
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x828]
call fcn.00413650
cmp dword [ebp - 0x818], 0
setne bl
cmp dword [ebp - 0x814], 8
jb 0x5e06b3
push dword [ebp - 0x828]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
test bl, bl
je 0x5e0740
xor eax, eax
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
cmp word [ebp - 0x810], ax
jne 0x5e06e5
xor ecx, ecx
jmp 0x5e06ff
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5e06f0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x828]
call fcn.00413650
lea eax, [ebp - 0x828]
mov byte [ebp - 4], 2
push eax
mov ecx, 0x6d4280
call fcn.0046df30
cmp dword [ebp - 0x814], 8
jb 0x5e074e
push dword [ebp - 0x828]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x5e074e
lea eax, [ebp + 0x20]
mov ecx, 0x6d4280
push eax
call fcn.0043ee50
cmp dword [ebp + 0x1c], 8
jb 0x5e075f
push dword [ebp + 8]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x5e0784
push dword [ebp + 0x20]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005f24e0
mov esp, ebp
pop ebp
ret
Function at 0x5e37f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x79c], 0
je 0x5e385f
cmp dword [ebp + 8], 0x100
jne 0x5e384f
cmp word [ebp + 0xc], 0xd
jne 0x5e384f
cmp byte [esi + 0x7a2], 0
je 0x5e382e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x5e384f
cmp byte [esi + 0x7a3], 0
jne 0x5e384f
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x5e3848
push 1
push 0
push 0
push 0
push str.return
push esi
call fcn.005af0e0
xor eax, eax
pop esi
pop ebp
ret 0x10
mov eax, dword [esi + 0x79c]
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
mov eax, 1
pop esi
pop ebp
ret 0x10

Function at 0x5eb110
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
and edi, 7
je 0x5eb137
cmp eax, edi
jge 0x5eb12f
push esi
call fcn.005e6f80
add esp, 4
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x5eb160
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x5eb143
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x5eb17c
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x5eb16d
xor dl, dl
jmp 0x5eb172
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x5eb163
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x5eb1b1
pop edi
pop esi
mov dword [ebp + 8], str.zlib_corrupt
pop ebp
jmp fcn.005e6e90
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x5eb1c9
pop edi
pop esi
mov dword [ebp + 8], str.read_past_buffer
pop ebp
jmp fcn.005e6e90
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x5eb1e7
push edi
push ecx
push esi
call fcn.005ee390
add esp, 0xc
test eax, eax
jne 0x5eb1e7
pop edi
pop esi
pop ebp
ret
push edi
push dword [esi]
push dword [esi + 0x10]
call sub.MSVCR120.dll_memcpy
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x10], edi
mov eax, 1
pop edi
pop esi
pop ebp
ret
Function at 0x5f2070
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61b04b
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x6af320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
mov dword [eax + 0x7f8], 0
cmp dword [edi + 4], 0
jne 0x5f211d
lea eax, [ebp - 0xa4]
push eax
call fcn.005f1ba0
mov ecx, dword [edi + 0x10]
movdqu xmm0, xmmword [ebp - 0xa4]
push 0
sub esp, 0x10
mov eax, esp
push 0
movdqu xmmword [eax], xmm0
mov eax, dword [ecx]
push 0x40000000
push 0
call dword [eax + 0x24]
mov ecx, eax
call fcn.005aacb0
push eax
mov ecx, edi
call fcn.005b1c90
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.005b97b0
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov ecx, eax
call fcn.005aa730
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.005a78d0
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.005a6ee0
test bl, bl
je 0x5f2161
mov eax, dword [edi + 0x10]
add eax, 0x7e8
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, 0x7e8
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005f24e0
mov esp, ebp
pop ebp
ret 4

Function at 0x5f21b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6af320]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005b34b0
mov ecx, dword [esi + 0x800]
test ecx, ecx
je 0x5f2241
lea eax, [ebp - 0x14]
push eax
call fcn.005f1ba0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x5f2217
mov ecx, dword [esi + 0x800]
push 0
call fcn.004eeab0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005f24e0
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x800]
push 0
call fcn.004eeab0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005f24e0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5f2350
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6af320]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [ebp + 8]
push esi
push dword [ebp + 0x18]
mov esi, ecx
sub esp, 0x10
mov eax, esp
movdqu xmmword [eax], xmm0
call fcn.005b5c30
mov ecx, dword [esi + 0x800]
test ecx, ecx
je 0x5f23e9
lea eax, [ebp - 0x14]
push eax
call fcn.005f1ba0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x5f23bf
mov ecx, dword [esi + 0x800]
push 0
call fcn.004eeab0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005f24e0
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x800]
push 0
call fcn.004eeab0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005f24e0
mov esp, ebp
pop ebp
ret 0x14
Function at 0x401e60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x402bc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xc], eax
push str.WaitForSingleObject
push 0x40b14c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0xc]
push ecx
call dword [ebp - 0x10]
push str.CloseHandle
push 0x40b168
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4051a5
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40d488]
je 0x4051c0
inc edi
cmp edi, 0x17
jb 0x4051b1
cmp edi, 0x17
jae 0x405340
push ebp
push 3
call fcn.00407280
cmp eax, 1
pop ecx
je 0x40530c
push 3
call fcn.00407280
test eax, eax
pop ecx
jne 0x4051f4
cmp dword [0x40d300], 1
je 0x40530c
cmp ebx, 0xfc
je 0x40533f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x40e968
push ebp
call fcn.0040721b
add esp, 0xc
test eax, eax
je 0x40522a
push esi
push esi
push esi
push esi
push esi
call fcn.00404a84
add esp, 0x14
push 0x104
mov esi, 0x40e981
push esi
push 0
mov byte [0x40ea85], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40526e
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040721b
add esp, 0xc
test eax, eax
je 0x40526e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00404a84
add esp, 0x14
push esi
call fcn.00407190
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4052b3
push esi
call fcn.00407190
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x40ec7c
push 0x40b794
sub ecx, eax
push ecx
push eax
call fcn.004070d2
add esp, 0x14
test eax, eax
je 0x4052b3
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00404a84
add esp, 0x14
jmp 0x4052b5
xor esi, esi
push 0x40b790
push ebx
push ebp
call fcn.00407061
add esp, 0xc
test eax, eax
je 0x4052d5
push esi
push esi
push esi
push esi
push esi
call fcn.00404a84
add esp, 0x14
push dword [edi*8 + 0x40d48c]
push ebx
push ebp
call fcn.00407061
add esp, 0xc
test eax, eax
je 0x4052f7
push esi
push esi
push esi
push esi
push esi
call fcn.00404a84
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00406ea4
add esp, 0xc
jmp 0x40533f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40533f
cmp ebp, 0xffffffff
je 0x40533f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40d48c]
push dword [esi]
call fcn.00407190
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x406628
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d614]
jne 0x406632
repz ret
jmp fcn.00408bb3
Function at 0x406ea4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00405d11
xor ebx, ebx
cmp dword [0x40ef24], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x406f7a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40705a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40705a
push eax
call fcn.00405ca3
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40ef24], eax
call esi
push eax
call fcn.00405ca3
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40ef28], eax
call esi
push eax
call fcn.00405ca3
mov dword [0x40ef2c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00404f32
test eax, eax
pop ecx
pop ecx
je 0x406f48
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404a84
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x406f7a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00405ca3
cmp eax, ebx
pop ecx
mov dword [0x40ef34], eax
je 0x406f7a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405ca3
pop ecx
mov dword [0x40ef30], eax
mov eax, dword [0x40ef30]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x406fff
cmp dword [0x40ef34], ecx
je 0x406fff
push eax
call fcn.00405d1a
push dword [0x40ef34]
mov esi, eax
call fcn.00405d1a
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x406fff
cmp edi, ebx
je 0x406fff
call esi
cmp eax, ebx
je 0x406fcc
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406fcc
test byte [ebp - 0x18], 1
jne 0x406fff
lea eax, [ebp - 0x10]
push eax
call fcn.00404f69
test eax, eax
pop ecx
je 0x406fe7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404a84
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x406ff6
or dword [ebp + 0x10], 0x200000
jmp 0x40703a
or dword [ebp + 0x10], 0x40000
jmp 0x40703a
mov eax, dword [0x40ef28]
cmp eax, dword [ebp - 8]
je 0x40703a
push eax
call fcn.00405d1a
cmp eax, ebx
pop ecx
je 0x40703a
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40703a
mov eax, dword [0x40ef2c]
cmp eax, dword [ebp - 8]
je 0x40703a
push eax
call fcn.00405d1a
cmp eax, ebx
pop ecx
je 0x40703a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40ef24]
call fcn.00405d1a
cmp eax, ebx
pop ecx
je 0x40705a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40705c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000209b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
push esi
jne 0x10002178
mov eax, 0x94
call fcn.10002fd0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000213f
mov ecx, dword [esi + 0x10]
mov dword [0x1000a5f8], ecx
mov eax, dword [esi + 4]
mov dword [0x1000a604], eax
mov edx, dword [esi + 8]
mov dword [0x1000a608], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1000a5fc], esi
je 0x10002100
or esi, 0x8000
mov dword [0x1000a5fc], esi
shl eax, 8
add eax, edx
xor esi, esi
push esi
mov dword [0x1000a600], eax
call fcn.10002d51
test eax, eax
pop ecx
je 0x1000213f
call fcn.10002f43
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1000ab90], eax
call fcn.10002e21
mov dword [0x1000a5cc], eax
call fcn.10002894
test eax, eax
jge 0x10002143
call fcn.10002da2
xor eax, eax
jmp 0x10002169
call fcn.10002c95
test eax, eax
jl 0x10002171
call fcn.10002a62
test eax, eax
jl 0x10002171
push esi
call fcn.10002749
test eax, eax
pop ecx
jne 0x10002171
inc dword [0x1000a5c8]
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
call fcn.10002a3f
jmp 0x1000213a
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x10002166
cmp dword [0x1000a5c8], esi
jle 0x1000213f
dec dword [0x1000a5c8]
cmp dword [0x1000a634], esi
jne 0x1000219a
call fcn.10002885
call fcn.10002a3f
call fcn.10002da2
jmp 0x10002166

Function at 0x100027b3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x1000a638], esi
push edi
jne 0x100027d3
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 [0x1000a634], esi
mov byte [0x1000a630], al
jne 0x10002839
mov ecx, dword [0x1000ab88]
test ecx, ecx
je 0x1000281a
mov eax, dword [0x1000ab84]
sub eax, 4
cmp eax, ecx
jmp 0x10002813
mov eax, dword [eax]
test eax, eax
je 0x10002805
call eax
mov eax, dword [0x1000ab84]
sub eax, 4
cmp eax, dword [0x1000ab88]
mov dword [0x1000ab84], eax
jae 0x100027fd
mov eax, 0x1000a01c
mov esi, 0x1000a020
cmp eax, esi
mov edi, eax
jae 0x10002839
mov eax, dword [edi]
test eax, eax
je 0x10002832
call eax
add edi, 4
cmp edi, esi
jb 0x1000282a
mov eax, 0x1000a024
mov esi, 0x1000a028
cmp eax, esi
mov edi, eax
jae 0x10002858
mov eax, dword [edi]
test eax, eax
je 0x10002851
call eax
add edi, 4
cmp edi, esi
jb 0x10002849
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x10002872
push dword [ebp + 8]
mov dword [0x1000a638], 1
call fcn.10002719
pop ebp
ret
Function at 0x100032f1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1000a2f0]
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 + 0x1000a0f8]
je 0x10003326
inc eax
cmp eax, 0x13
jb 0x10003317
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1000a0f8]
jne 0x1000344c
mov eax, dword [0x1000a5d4]
cmp eax, 1
je 0x10003424
cmp eax, edx
jne 0x10003356
cmp dword [0x1000a5d8], 1
je 0x10003424
cmp ecx, 0xfc
je 0x1000344c
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 0x1000338c
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.10003d70
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10003ce0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100033c0
mov eax, edi
push eax
call fcn.10003ce0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x10008588
push edi
call fcn.100059c0
add esp, 0x10
push edi
call fcn.10003ce0
push dword [esi + 0x1000a0fc]
mov ebx, eax
call fcn.10003ce0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10002fd0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10003d70
push edi
push ebx
call fcn.10003d80
push 0x10008568
push ebx
call fcn.10003d80
push dword [esi + 0x1000a0fc]
push ebx
call fcn.10003d80
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.100058c7
add esp, 0x2c
jmp 0x1000344c
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1000a0fc]
push dword [esi]
call fcn.10003ce0
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.10005b15
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x100058c7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1000a7d4], ebx
push esi
push edi
jne 0x10005947
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10005982
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x1000a7d4], eax
je 0x10005982
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x1000a7d8], eax
call esi
cmp dword [0x1000a5f8], 2
mov dword [0x1000a7dc], eax
jne 0x10005947
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1000a7e4], eax
je 0x10005947
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x1000a7e0], eax
mov eax, dword [0x1000a7e0]
test eax, eax
je 0x1000598c
call eax
test eax, eax
je 0x10005973
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1000a7e4]
test eax, eax
je 0x10005973
test byte [ebp - 8], 1
jne 0x1000598c
cmp dword [0x1000a604], 4
jb 0x10005986
or byte [ebp + 0x12], 0x20
jmp 0x100059ab
xor eax, eax
jmp 0x100059bb
or byte [ebp + 0x12], 4
jmp 0x100059ab
mov eax, dword [0x1000a7d8]
test eax, eax
je 0x100059ab
call eax
mov ebx, eax
test ebx, ebx
je 0x100059ab
mov eax, dword [0x1000a7dc]
test eax, eax
je 0x100059ab
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1000a7d4]
pop edi
pop esi
pop ebx
leave
ret