joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43aac4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x43aae0
cmp dword [esi + 4], 0
je 0x43ab0d
test byte [ebx + 0x55], 1
jne 0x43aaff
mov eax, ebx
call fcn.00439664
test eax, eax
jne 0x43aaff
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43ac1d
mov edx, esi
mov eax, ebx
call fcn.0043a5e8
jmp 0x43ac1d
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43ac16
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043c934
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004371ec
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043aac4
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043c934
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ac1d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4411a8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x465a9c]
cmp byte [eax + 0xc], 0
je 0x441315
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44130e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x466b6c], 0
jne 0x4411fc
push 0x44131c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x441324
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b6c], eax
cmp dword [0x458bcc], 0
jne 0x4412f7
push 0x441334
call sub.kernel32.dll_LoadLibraryA
mov dword [0x458bcc], eax
cmp dword [0x458bcc], 0
je 0x4412f7
push 0x441340
mov eax, dword [0x458bcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b70], eax
push 0x441350
mov eax, dword [0x458bcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b74], eax
push 0x441364
mov eax, dword [0x458bcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b78], eax
push 0x44137c
mov eax, dword [0x458bcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b7c], eax
push 0x441394
mov eax, dword [0x458bcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b80], eax
push 0x4413a8
mov eax, dword [0x458bcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b84], eax
push 0x4413c0
mov eax, dword [0x458bcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b88], eax
push 0x4413d8
mov eax, dword [0x458bcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b8c], eax
push 0x4413f4
mov eax, dword [0x458bcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b90], eax
push 0x441400
mov eax, dword [0x458bcc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x466b94], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441315
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4451a0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403e28
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4451ef
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404098
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44c92c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44c97c]
test si, 4
je 0x44c940
or bl, 1
test si, 8
je 0x44c94a
or bl, 4
test si, 1
je 0x44c954
or bl, 8
test si, 2
je 0x44c95e
or bl, 0x10
test si, 0x10
je 0x44c968
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c977
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44c980
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44c9b8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c999
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44c9a8
or bl, 4
test esi, 0x20000000
je 0x44c9b3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x453060
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x453072
add esp, 0xfffffff0
call fcn.004033fc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419a48
mov eax, dword [0x465748]
mov dword [eax + 4], ebx
mov dword [eax], 0x453404
mov eax, dword [0x465754]
mov dword [eax + 4], ebx
mov dword [eax], 0x453410
mov eax, ebx
call fcn.0045341c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41140c]
call fcn.004030c0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41140c]
call fcn.004030c0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41140c]
call fcn.004030c0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41140c]
call fcn.004030c0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41140c]
call fcn.004030c0
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44f838
push eax
push 0
push 0
mov eax, dword [0x4658a4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b494]
call fcn.0041c8d8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b494]
call fcn.0041c8d8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b494]
call fcn.0041c8d8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045383c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453718
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453718
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453718
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4531af
call fcn.00403454
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4534fc
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4536a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x453688
mov dl, 1
mov eax, dword [0x4119b4]
call fcn.004030c0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e28
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x453677
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00441508
test al, al
je 0x45366a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4536b8
lea eax, [ebp - 0x254]
call fcn.00408918
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45366a
xor eax, eax
push ebp
push 0x453663
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4536f0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45364c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404098
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45364c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404098
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45366a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45356d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415c38
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4536ae
lea eax, [ebp - 0x260]
call fcn.00403e28
ret

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

Disassembly:
push ecx
mov eax, dword [0x466bb8]
cmp byte [eax + 0xa5], 0
jne 0x45404d
cmp dword [0x466bd0], 0
jne 0x45400e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x453f98
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x466bd0], eax
cmp dword [0x466bcc], 0
jne 0x454029
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x466bcc], eax
cmp dword [0x466bd4], 0
jne 0x45404d
push esp
push 0
push 0
push 0x453f3c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x466bd4], eax
pop edx
ret
Function at 0x454144
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45415b
add esp, 0xfffffff0
call fcn.004033fc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419a48
mov eax, dword [0x465888]
cmp word [eax + 2], 0
jne 0x454183
mov eax, dword [0x465888]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045581c
mov eax, dword [0x465948]
cmp word [eax + 2], 0
jne 0x45419d
mov eax, dword [0x465948]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00455a14
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41140c]
call fcn.004030c0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41140c]
call fcn.004030c0
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41bc44]
call fcn.004218c8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x454324
mov eax, dword [0x4657a8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00421c98
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x455fb4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4657a8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040bf54
test eax, eax
je 0x454292
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040830c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040bf7c
test eax, eax
je 0x4542a6
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404098
mov eax, dword [0x4656a0]
cmp byte [eax], 0
jne 0x4542da
mov eax, ebx
call fcn.0045444c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00456190
mov eax, ebx
call fcn.00456b54
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45431a
call fcn.00403454
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4546cc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x466bb8]
cmp dword [eax + 0x30], 0
je 0x454776
cmp dword [ebx + 0x94], 0
jne 0x454770
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45465c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x454770
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 0x454736
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x454770
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.00413900
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x454745
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4552d8
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 0x45530d
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.00403f18
jmp 0x45531a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403e7c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45636c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4563ad
mov eax, esi
call fcn.0043cc38
test al, al
je 0x4563ad
mov eax, dword [ebx + 0x84]
call fcn.0043c934
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4563ad
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043c934
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4013b4
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x406180
call fcn.00401738
mov edi, 0x94
mov eax, edi
call fcn.00402780
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 [0x4089e4], ecx
mov eax, dword [esi + 4]
mov dword [0x4089f0], eax
mov edx, dword [esi + 8]
mov dword [0x4089f4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4089e8], esi
cmp ecx, 2
je 0x401414
or esi, 0x8000
mov dword [0x4089e8], esi
shl eax, 8
add eax, edx
mov dword [0x4089ec], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40144f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40144f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401467
cmp eax, 0x20b
je 0x401454
mov dword [ebp - 0x1c], esi
jmp 0x40147b
cmp dword [ecx + 0x84], 0xe
jbe 0x40144f
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x401475
cmp dword [ecx + 0x74], 0xe
jbe 0x40144f
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00402729
pop ecx
test eax, eax
jne 0x40148f
push 0x1c
call fcn.00401390
pop ecx
call fcn.00402620
test eax, eax
jne 0x4014a0
push 0x10
call fcn.00401390
pop ecx
call fcn.004023ba
mov dword [ebp - 4], esi
call fcn.004021bc
test eax, eax
jge 0x4014b9
push 0x1b
call fcn.0040136b
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4091f4], eax
call fcn.0040209a
mov dword [0x4089d0], eax
call fcn.00401ff8
test eax, eax
jge 0x4014df
push 8
call fcn.0040136b
pop ecx
call fcn.00401dc5
test eax, eax
jge 0x4014f0
push 9
call fcn.0040136b
pop ecx
push 1
call fcn.004018e7
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401506
push eax
call fcn.0040136b
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401d68
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x401527
movzx eax, word [ebp - 0x40]
jmp 0x40152a
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call section..text
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x401548
push edi
call fcn.00401a14
call fcn.00401a36
jmp 0x40157a
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00401773
ret
Function at 0x401951
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4063a0
call fcn.00401738
push 8
call fcn.00402fe6
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x408a24], esi
jne 0x401985
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x408a20], esi
mov al, byte [ebp + 0x10]
mov byte [0x408a1c], al
cmp dword [ebp + 0xc], edi
jne 0x4019cf
cmp dword [0x4091e8], edi
je 0x4019bf
mov eax, dword [0x4091e4]
sub eax, 4
mov dword [0x4091e4], eax
cmp eax, dword [0x4091e8]
jb 0x4019bf
mov eax, dword [eax]
cmp eax, edi
je 0x4019a0
call eax
jmp 0x4019a0
push 0x408020
mov eax, 0x40801c
call fcn.004018cf
pop ecx
push 0x408028
mov eax, 0x408024
call fcn.004018cf
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x401a00
cmp dword [ebp + 0x10], edi
jne 0x401a0e
mov dword [0x408a24], esi
push dword [ebp + 8]
call fcn.0040188d
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x401a0d
push 8
call fcn.00402f31
pop ecx
ret
call fcn.00401773
ret

Function at 0x401a54
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x408030]
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 + 0x408040]
je 0x401a89
inc eax
cmp eax, 0x13
jb 0x401a7a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x408040]
jne 0x401baf
mov eax, dword [0x4089d8]
cmp eax, 1
je 0x401b87
cmp eax, edx
jne 0x401ab9
cmp dword [0x408038], 1
je 0x401b87
cmp ecx, 0xfc
je 0x401baf
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 0x401aef
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004028c0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00402af0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x401b23
mov eax, edi
push eax
call fcn.00402af0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4061c4
push edi
call fcn.004029c0
add esp, 0x10
push edi
call fcn.00402af0
push dword [esi + 0x408044]
mov ebx, eax
call fcn.00402af0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402780
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004028c0
push edi
push ebx
call fcn.004028d0
push 0x4061c0
push ebx
call fcn.004028d0
push dword [esi + 0x408044]
push ebx
call fcn.004028d0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004027bd
add esp, 0x2c
jmp 0x401baf
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x408044]
push dword [esi]
call fcn.00402af0
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.0040135d
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4027bd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x408b4c], ebx
push esi
push edi
jne 0x40283d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x402878
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x408b4c], eax
je 0x402878
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x408b50], eax
call esi
cmp dword [0x4089e4], 2
mov dword [0x408b54], eax
jne 0x40283d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x408b5c], eax
je 0x40283d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x408b58], eax
mov eax, dword [0x408b58]
test eax, eax
je 0x402882
call eax
test eax, eax
je 0x402869
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x408b5c]
test eax, eax
je 0x402869
test byte [ebp - 8], 1
jne 0x402882
cmp dword [0x4089f0], 4
jb 0x40287c
or byte [ebp + 0x12], 0x20
jmp 0x4028a1
xor eax, eax
jmp 0x4028b1
or byte [ebp + 0x12], 4
jmp 0x4028a1
mov eax, dword [0x408b50]
test eax, eax
je 0x4028a1
call eax
mov ebx, eax
test ebx, ebx
je 0x4028a1
mov eax, dword [0x408b54]
test eax, eax
je 0x4028a1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x408b4c]
pop edi
pop esi
pop ebx
leave
ret