joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435fc8
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 0x435fe4
cmp dword [esi + 4], 0
je 0x436011
test byte [ebx + 0x55], 1
jne 0x436003
mov eax, ebx
call fcn.00434b68
test eax, eax
jne 0x436003
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x436121
mov edx, esi
mov eax, ebx
call fcn.00435aec
jmp 0x436121
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 0x43611a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00437e38
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.00432804
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00435fc8
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.00437e38
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x436121
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 0x43c7b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45e99c]
cmp byte [eax + 0xc], 0
je 0x43c91d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43c916
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45fb68], 0
jne 0x43c804
push 0x43c924
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43c92c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fb68], eax
cmp dword [0x45db80], 0
jne 0x43c8ff
push 0x43c93c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45db80], eax
cmp dword [0x45db80], 0
je 0x43c8ff
push 0x43c948
mov eax, dword [0x45db80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fb6c], eax
push 0x43c958
mov eax, dword [0x45db80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fb70], eax
push 0x43c96c
mov eax, dword [0x45db80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fb74], eax
push 0x43c984
mov eax, dword [0x45db80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fb78], eax
push 0x43c99c
mov eax, dword [0x45db80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fb7c], eax
push 0x43c9b0
mov eax, dword [0x45db80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fb80], eax
push 0x43c9c8
mov eax, dword [0x45db80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fb84], eax
push 0x43c9e0
mov eax, dword [0x45db80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fb88], eax
push 0x43c9fc
mov eax, dword [0x45db80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fb8c], eax
push 0x43ca08
mov eax, dword [0x45db80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45fb90], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c91d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4407a8
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.00403ea4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4407f7
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.00404114
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x447f34
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x447f84]
test si, 4
je 0x447f48
or bl, 1
test si, 8
je 0x447f52
or bl, 4
test si, 1
je 0x447f5c
or bl, 8
test si, 2
je 0x447f66
or bl, 0x10
test si, 0x10
je 0x447f70
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447f7f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x447f88
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x447fc0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447fa1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447fb0
or bl, 4
test esi, 0x20000000
je 0x447fbb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44e668
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44e67a
add esp, 0xfffffff0
call fcn.004033f4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419db8
mov eax, dword [0x45e508]
mov dword [eax + 4], ebx
mov dword [eax], 0x44ea0c
mov eax, dword [0x45e518]
mov dword [eax + 4], ebx
mov dword [eax], 0x44ea18
mov eax, ebx
call fcn.0044ea24
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41166c]
call fcn.004030b8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41166c]
call fcn.004030b8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41166c]
call fcn.004030b8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41166c]
call fcn.004030b8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41166c]
call fcn.004030b8
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, 0x44ae40
push eax
push 0
push 0
mov eax, dword [0x45e6fc]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b7e4]
call fcn.0041cc28
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b7e4]
call fcn.0041cc28
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b7e4]
call fcn.0041cc28
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044ee44
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44ed20
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44ed20
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44ed20
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44e7b7
call fcn.0040344c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44eb04
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 0x44ecaf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44ec90
mov dl, 1
mov eax, dword [0x411b40]
call fcn.004030b8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403ea4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44ec7f
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.0043cb10
test al, al
je 0x44ec72
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, 0x44ecc0
lea eax, [ebp - 0x254]
call fcn.00408a74
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44ec72
xor eax, eax
push ebp
push 0x44ec6b
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 0x44ecf8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44ec54
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404114
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 0x44ec54
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404114
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ec72
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44eb75
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415aa0
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 0x44ecb6
lea eax, [ebp - 0x260]
call fcn.00403ea4
ret

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

Disassembly:
push ecx
mov eax, dword [0x45fbb4]
cmp byte [eax + 0xa5], 0
jne 0x44f655
cmp dword [0x45fbcc], 0
jne 0x44f616
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44f5a0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45fbcc], eax
cmp dword [0x45fbc8], 0
jne 0x44f631
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45fbc8], eax
cmp dword [0x45fbd0], 0
jne 0x44f655
push esp
push 0
push 0
push 0x44f544
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x45fbd0], eax
pop edx
ret
Function at 0x44f74c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44f763
add esp, 0xfffffff0
call fcn.004033f4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419db8
mov eax, dword [0x45e6dc]
cmp word [eax + 2], 0
jne 0x44f78b
mov eax, dword [0x45e6dc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450e24
mov eax, dword [0x45e7dc]
cmp word [eax + 2], 0
jne 0x44f7a5
mov eax, dword [0x45e7dc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045101c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41166c]
call fcn.004030b8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41166c]
call fcn.004030b8
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 [0x41bf94]
call fcn.00421bdc
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44f92c
mov eax, dword [0x45e59c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00421fac
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4515bc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45e59c]
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.0040c1f8
test eax, eax
je 0x44f89a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408468
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c220
test eax, eax
je 0x44f8ae
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.00404114
mov eax, dword [0x45e3f8]
cmp byte [eax], 0
jne 0x44f8e2
mov eax, ebx
call fcn.0044fa54
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.00451798
mov eax, ebx
call fcn.0045215c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f922
call fcn.0040344c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44fcd4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45fbb4]
cmp dword [eax + 0x30], 0
je 0x44fd7e
cmp dword [ebx + 0x94], 0
jne 0x44fd78
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44fc64
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44fd78
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 0x44fd3e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44fd78
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.00413b0c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44fd4d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4508e0
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 0x450915
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.00403f94
jmp 0x450922
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ef8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x451974
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4519b5
mov eax, esi
call fcn.0043813c
test al, al
je 0x4519b5
mov eax, dword [ebx + 0x84]
call fcn.00437e38
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4519b5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00437e38
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45b6dc
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45b911
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
mov ecx, ebx
mov edx, 0x45b92c
call fcn.004041b0
mov eax, dword [ebp - 0x28]
call fcn.00404364
push eax
call sub.kernel32.dll_OutputDebugStringA
mov byte [ebp - 1], 0
test ebx, ebx
je 0x45b8e8
test esi, esi
je 0x45b8e8
xor ecx, ecx
mov dl, 1
mov eax, dword [0x45b208]
call fcn.0045b5c8
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x45b8e1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x45b88d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x2afa
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
or edx, 0xffffffff
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x94]
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x18
call fcn.00402b04
mov dword [ebp - 0x24], 1
push 0
lea edx, [ebp - 0x24]
mov ecx, 0x18
mov eax, dword [ebp - 0xc]
call fcn.0045a610
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x9c], edx
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x18
call fcn.00402b04
lea edx, [ebp - 0x24]
mov ecx, 0x18
mov eax, dword [ebp - 0xc]
call fcn.00459f30
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x10]
call fcn.00407dcc
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x45b944
call fcn.004041b0
mov eax, dword [ebp - 0x2c]
call fcn.00404364
push eax
call sub.kernel32.dll_OutputDebugStringA
cmp dword [ebp - 0x10], 1
jne 0x45b87b
mov edi, dword [ebp - 0x14]
push edi
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x45b6a8]
call fcn.00404e28
add esp, 4
mov edx, dword [ebp - 8]
mov ecx, edi
mov eax, dword [ebp - 0xc]
call fcn.00459f30
mov eax, esi
call fcn.00416260
mov edx, dword [ebp - 8]
mov ecx, edi
mov eax, esi
call fcn.00415db4
push 0
push 0
mov eax, esi
call fcn.00415b70
mov byte [ebp - 1], 1
lea eax, [ebp - 0x34]
mov ecx, ebx
mov edx, 0x45b95c
call fcn.004041b0
mov eax, dword [ebp - 0x34]
call fcn.00404364
push eax
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45b8cb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b8e8
mov eax, dword [ebp - 0xc]
call fcn.004030e8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b918
lea eax, [ebp - 0x38]
mov edx, 5
call fcn.00403ec8
lea eax, [ebp - 8]
mov edx, dword [0x45b6a8]
call fcn.00404e34
ret
Function at 0x4e4665
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
Function at 0x3386230
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2c15000]
push edi
or ebp, 0xffffffff
jmp 0x3386252
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x3386259
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x3386248
mov eax, 1
add ebx, ebx
jne 0x338626b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x338627c
jne 0x338629b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x338629b
dec eax
add ebx, ebx
jne 0x3386288
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x3386260
add ebx, ebx
jne 0x3386297
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x33862ed
xor ecx, ecx
sub eax, 3
jb 0x33862b3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x3386322
sar eax, 1
mov ebp, eax
jmp 0x33862be
add ebx, ebx
jne 0x33862be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x338628c
inc ecx
add ebx, ebx
jne 0x33862cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x338628c
add ebx, ebx
jne 0x33862d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x33862ce
jne 0x33862ea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x33862ce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x338630c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x33862fe
jmp 0x338624e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x338630c
add edi, ecx
jmp 0x338624e
pop esi
mov edi, esi
mov ecx, 0xa45a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x338632a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x338632f
lea edi, [esi + 0x2f84000]
mov eax, dword [edi]
or eax, eax
je 0x33863a0
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2f8c4ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2f8c528]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x3386355
mov ecx, edi
jns 0x3386384
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2f8c52c]
or eax, eax
je 0x338639a
mov dword [ebx], eax
add ebx, 4
jmp 0x3386372
call dword [esi + 0x2f8c53c]
mov ebp, dword [esi + 0x2f8c530]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x33863d4
sub esp, 0xffffff80
jmp 0x401478
Function at 0x40e504
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42e7a0
cmp edx, dword [eax]
je 0x40e526
add eax, 8
inc ecx
cmp eax, 0x42e830
jl 0x40e517
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42e7a0]
jne 0x40e654
mov eax, dword [0x43143c]
cmp eax, 1
je 0x40e62e
test eax, eax
jne 0x40e557
cmp dword [0x42e0f4], 1
je 0x40e62e
cmp edx, 0xfc
je 0x40e654
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40e58e
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040e790
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040dc50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40e5d1
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040dc50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x426d70
push edi
call fcn.004114a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040e790
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040e7a0
lea eax, [ebp - 0xa0]
push 0x426d50
push eax
call fcn.0040e7a0
push dword [esi + 0x42e7a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040e7a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00411412
add esp, 0x2c
pop edi
jmp 0x40e654
lea eax, [ebp + 8]
lea esi, [esi + 0x42e7a4]
push 0
push eax
push dword [esi]
call fcn.0040dc50
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]
pop esi
leave
ret
Function at 0x4164e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040be40
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4165ab
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4165ab
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41655e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x416569
or bh, 8
and edi, 0x8000000
je 0x416584
mov eax, dword [0x432bdc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4165ab
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret