joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449314
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44934c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44932d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44933c
or bl, 4
test esi, 0x20000000
je 0x449347
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44fa10
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44fa22
add esp, 0xfffffff0
call fcn.0040381c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a93c
mov eax, dword [0x463ed4]
mov dword [eax + 4], ebx
mov dword [eax], 0x44fdb4
mov eax, dword [0x463ee0]
mov dword [eax + 4], ebx
mov dword [eax], 0x44fdc0
mov eax, ebx
call fcn.0044fdcc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411f58]
call fcn.004034b4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411f58]
call fcn.004034b4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411f58]
call fcn.004034b4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411f58]
call fcn.004034b4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411f58]
call fcn.004034b4
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, 0x44c1e4
push eax
push 0
push 0
mov eax, dword [0x464028]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c3e4]
call fcn.0041daa4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41c3e4]
call fcn.0041daa4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41c3e4]
call fcn.0041daa4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045021c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4500e4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4500e4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4500e4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44fb5f
call fcn.00403874
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44fec8
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 0x450073
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x450054
mov dl, 1
mov eax, dword [0x412500]
call fcn.004034b4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404270
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x450043
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.0043dde0
test al, al
je 0x450036
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, 0x450084
lea eax, [ebp - 0x254]
call fcn.004091bc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x450036
xor eax, eax
push ebp
push 0x45002f
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 0x4500bc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x450018
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044e0
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 0x450018
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450036
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44ff39
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416a80
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 0x45007a
lea eax, [ebp - 0x260]
call fcn.00404270
ret

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

Disassembly:
push ecx
mov eax, dword [0x465b4c]
cmp byte [eax + 0xa5], 0
jne 0x450a2d
cmp dword [0x465b64], 0
jne 0x4509ee
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x450978
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x465b64], eax
cmp dword [0x465b60], 0
jne 0x450a09
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x465b60], eax
cmp dword [0x465b68], 0
jne 0x450a2d
push esp
push 0
push 0
push 0x45091c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x465b68], eax
pop edx
ret
Function at 0x4510c0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x465b4c]
cmp dword [eax + 0x30], 0
je 0x45116a
cmp dword [ebx + 0x94], 0
jne 0x451164
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451050
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451164
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 0x45112a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451164
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.00414460
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451139
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451cc8
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 0x451cfd
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.00404360
jmp 0x451d0a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042c4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452e1c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x452e5d
mov eax, esi
call fcn.00439450
test al, al
je 0x452e5d
mov eax, dword [ebx + 0x84]
call fcn.0043914c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x452e5d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043914c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x456ca4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x456f04
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x456d07
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0045676c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040c4e0
cmp al, 1
jne 0x456d07
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00456a84
test al, al
je 0x456e93
cmp dword [ebp - 8], 0
jge 0x456d25
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0045676c
mov eax, dword [ebp - 0x210]
call fcn.00404530
cmp ebx, eax
jge 0x456d6f
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0045676c
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x464204]
and eax, 0xff
bt dword [edx], eax
jae 0x456d6f
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x456d83
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00456c80
cmp ebx, dword [ebp - 8]
je 0x456e85
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x456daf
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004036ec
and eax, 0x7f
movzx eax, word [eax*2 + 0x463dec]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x456e72
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004036ec
and eax, 0x7f
movzx eax, word [eax*2 + 0x463dec]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0043914c
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004036ec
and eax, 0x7f
movzx eax, word [eax*2 + 0x463dec]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0043914c
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456e79
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x456ee6
cmp dword [ebp - 8], 0
jge 0x456e9e
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0045676c
mov eax, dword [ebp - 0x218]
call fcn.00404530
cmp eax, dword [ebp - 8]
jg 0x456ed8
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0045676c
mov eax, dword [ebp - 0x21c]
call fcn.00404530
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00456c80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456f0b
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404294
ret
Function at 0x47d441
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x53266c]
cmp eax, 0xffffffff
jne 0x47d54d
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
mov dword [esp], 0xa3e3e0
call sub.msvcrt.dll_memset
mov dword [0xa3e3e0], 0x44
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], 0xa3e424
call sub.msvcrt.dll_memset
mov dword [esp + 0x24], 0xa3e424
mov dword [esp + 0x20], 0xa3e3e0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x8000000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.cmd.exe__c_ver
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessA]
call eax
sub esp, 0x28
test eax, eax
setne al
test al, al
je 0x47d543
mov eax, dword [0xa3e424]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
mov eax, dword [0xa3e424]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [0xa3e428]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0x53266c], 1
jmp 0x47d54d
mov dword [0x53266c], 0
mov eax, dword [0x53266c]
leave
ret
Function at 0x48e53a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0048e136
test eax, eax
sete al
test al, al
je 0x48e566
mov eax, 0xfffffffe
mov edx, 0xffffffff
jmp 0x48e619
mov edx, dword [0x6a3c7c]
mov eax, dword [ebp + 8]
shl eax, 3
mov ecx, eax
shl ecx, 4
mov edi, ecx
sub edi, eax
mov eax, edi
add eax, edx
mov dword [0xa2d6ec], eax
mov eax, dword [0xa2d6ec]
movzx eax, byte [eax + 0x70]
test al, al
je 0x48e59d
mov eax, 0xfffffffc
mov edx, 0xffffffff
jmp 0x48e619
mov eax, dword [0x6a3c78]
mov edx, dword [ebp + 8]
shl edx, 2
add eax, edx
mov dword [0xa2d6f0], eax
mov edi, 0xa2d6f8
mov eax, dword [0xa2d6f0]
mov eax, dword [eax]
mov dword [esp + 4], 0xa2d6fc
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileSize]
call eax
sub esp, 8
mov dword [edi], eax
mov eax, dword [0xa2d6f8]
mov edx, dword [0xa2d6fc]
mov ebx, eax
and bh, 0xff
mov esi, edx
and esi, 0
mov eax, ebx
xor eax, 0xffffffff
or eax, esi
test eax, eax
jne 0x48e60e
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
test eax, eax
setne al
test al, al
je 0x48e60e
mov eax, 0xfffffffd
mov edx, 0xffffffff
jmp 0x48e619
mov eax, dword [0xa2d6f8]
mov edx, dword [0xa2d6fc]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x48ffbf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0048e136
test eax, eax
sete al
test al, al
je 0x48fffd
mov eax, 0xfffffffe
jmp 0x4901b7
mov edx, dword [0x6a3c7c]
mov eax, dword [ebp + 8]
shl eax, 3
mov ecx, eax
shl ecx, 4
mov ebx, ecx
sub ebx, eax
mov eax, ebx
add eax, edx
mov dword [0xa2d634], eax
mov eax, dword [0xa2d634]
movzx eax, byte [eax + 0xa]
test al, al
jne 0x490032
mov eax, 0xfffffffd
jmp 0x4901b7
cmp dword [ebp - 0x14], 0
jns 0x490042
mov eax, 0xfffffffc
jmp 0x4901b7
mov eax, dword [ebp - 0xc]
mov edx, eax
xor edx, 0xffffffff
mov eax, dword [ebp - 0x10]
xor eax, 0xffffffff
or eax, edx
test eax, eax
je 0x49008c
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0048fe85
mov dword [0xa2d638], eax
mov eax, dword [0xa2d638]
test eax, eax
setne al
test al, al
je 0x49008c
mov eax, dword [0xa2d638]
jmp 0x4901b7
mov eax, dword [0x6a3c78]
mov edx, dword [ebp + 8]
shl edx, 2
add eax, edx
mov dword [0xa2d63c], eax
jmp 0x49019d
cmp dword [ebp - 0x14], 0
jle 0x4900bd
mov dword [0xa2d640], 0xffffffff
add dword [ebp - 0x18], 1
adc dword [ebp - 0x14], 0xffffffff
jmp 0x4900d3
mov eax, dword [ebp - 0x18]
mov dword [0xa2d640], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edx, dword [0xa2d640]
mov eax, dword [0xa2d63c]
mov eax, dword [eax]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xa2d648
mov dword [esp + 8], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
test eax, eax
sete al
test al, al
je 0x49013f
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [0xa2d650], eax
mov eax, dword [0xa2d650]
cmp eax, 5
je 0x490131
mov eax, dword [0xa2d650]
cmp eax, 0x21
jne 0x490138
mov eax, 0xfffffff9
jmp 0x4901b7
mov eax, 0xfffffff7
jmp 0x4901b7
mov eax, dword [0xa2d648]
mov edx, dword [0xa2d64c]
add dword [ebp + 0x14], eax
mov esi, dword [0xa2d634]
mov eax, dword [0xa2d634]
mov ecx, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
mov eax, dword [0xa2d648]
mov edx, dword [0xa2d64c]
add eax, ecx
adc edx, ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov eax, dword [0xa2d640]
mov ecx, eax
mov ebx, 0
mov eax, dword [0xa2d648]
mov edx, dword [0xa2d64c]
mov esi, ebx
xor esi, edx
xor eax, ecx
or eax, esi
test eax, eax
je 0x49019d
mov eax, 0xffffffff
jmp 0x4901b7
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
or eax, edx
test eax, eax
setne al
test al, al
jne 0x4900a3
mov eax, 0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x4a706b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call eax
sub esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4a70b5
mov dword [esp], 7
call fcn.0045a484
mov eax, dword [ebp - 0x14]
jmp 0x4a7150
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call eax
sub esp, 8
mov edx, eax
sub dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp edx, eax
setne al
test al, al
je 0x4a7111
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp + 4], 1
mov dword [esp], 0
call fcn.0045bb9e
mov dword [ebp - 0x14], eax
mov dword [esp], 0x33
call fcn.0045a484
mov eax, dword [ebp - 0x14]
jmp 0x4a7150
mov dword [esp + 4], 1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.0045bb9e
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x18]
leave
ret
Function at 0x4af6d0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 0xc]
mov dword [0xa4fd80], eax
jmp fcn.004aeec0
Function at 0x4b12b0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
cmp byte [0x5329bc], 0
je 0x4b12f0
mov eax, dword [0xa4fe18]
test eax, eax
je 0x4b130d
mov dword [esp + 4], 0
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0xa4fe18]
mov byte [eax + 0x38], 0
sub esp, 8
add esp, 0x1c
ret
mov dword [esp + 4], str.glutHideWindow
mov dword [esp], 0x562858
call fcn.004b4d30
mov eax, dword [0xa4fe18]
test eax, eax
jne 0x4b12c5
cmp dword [0x532a14], 2
je 0x4b12c5
mov dword [esp + 4], str.glutHideWindow
mov dword [esp], 0x562904
call fcn.004b4d30
mov eax, dword [0xa4fe18]
jmp 0x4b12c5

Function at 0x4b1340
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
cmp byte [0x5329bc], 0
je 0x4b1380
mov eax, dword [0xa4fe18]
test eax, eax
je 0x4b139d
mov byte [eax + 0x39], 0
mov dword [esp + 4], 6
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0xa4fe18]
mov byte [eax + 0x38], 0
sub esp, 8
add esp, 0x1c
ret
mov dword [esp + 4], str.glutIconifyWindow
mov dword [esp], 0x562858
call fcn.004b4d30
mov eax, dword [0xa4fe18]
test eax, eax
jne 0x4b1355
cmp dword [0x532a14], 2
je 0x4b1355
mov dword [esp + 4], str.glutIconifyWindow
mov dword [esp], 0x562904
call fcn.004b4d30
mov eax, dword [0xa4fe18]
jmp 0x4b1355

Function at 0x4b4b30
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, 1
push ebx
sub esp, 0x14
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [esp], 0xa0
call ebx
sub esp, 4
test ax, ax
js 0x4b4b63
mov dword [esp], 0xa1
call ebx
movsx esi, ax
sub esp, 4
shr esi, 0x1f
mov dword [esp], 0xa2
call ebx
mov edx, 2
sub esp, 4
test ax, ax
js 0x4b4b8d
mov dword [esp], 0xa3
call ebx
mov edx, eax
sub esp, 4
shr edx, 0xe
and edx, 2
or esi, edx
mov dword [esp], 0xa4
call ebx
mov edx, 4
sub esp, 4
test ax, ax
js 0x4b4bb9
mov dword [esp], 0xa5
call ebx
mov edx, eax
sub esp, 4
shr edx, 0xd
and edx, 4
mov eax, esi
add esp, 0x14
or eax, edx
pop ebx
pop esi
ret

Function at 0x4b4d30
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x532a48]
test ebx, ebx
je 0x4b4d58
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [0x532a48]
add esp, 0x18
pop ebx
ret
mov eax, dword [sym.imp.msvcrt.dll__iob]
lea ebx, [esp + 0x24]
mov dword [esp + 8], 9
mov dword [esp + 4], 1
mov dword [esp], str.freeglut
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [0x532a1c]
test eax, eax
je 0x4b4da9
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.__s_:
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], 0xa
add eax, 0x40
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputc
cmp byte [0x5329bc], 0
jne 0x4b4df2
mov dword [esp], 1
call sub.msvcrt.dll_exit
call fcn.004aec30
jmp 0x4b4de6
Function at 0x4b4e00
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [0x532a4c]
test eax, eax
je 0x4b4e27
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [0x532a4c]
add esp, 0x18
pop ebx
ret
mov eax, dword [sym.imp.msvcrt.dll__iob]
lea ebx, [esp + 0x24]
mov dword [esp + 8], 9
mov dword [esp + 4], 1
mov dword [esp], str.freeglut
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [0x532a1c]
test eax, eax
je 0x4b4e78
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.__s_:
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], 0xa
add eax, 0x40
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputc
add esp, 0x18
pop ebx
ret

Function at 0x4b6bd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
movzx edx, byte [esp + 0x68]
mov dword [esp + 4], 1
mov ebp, dword [esp + 0x60]
mov dword [esp], 0xe8
movzx esi, byte [esp + 0x74]
movzx edi, byte [esp + 0x80]
mov byte [esp + 0x3f], dl
movzx ebx, byte [esp + 0x84]
call sub.msvcrt.dll_calloc
xor edx, edx
test eax, eax
je 0x4b6c23
mov dword [eax + edx*4 + 0x54], 0
add edx, 1
cmp edx, 0x1c
jne 0x4b6c13
mov edx, dword [0xa4fe28]
mov dword [eax + 0xdc], 0
mov dword [eax + 0xe0], 0
add edx, 1
test ebp, ebp
mov dword [0xa4fe28], edx
mov dword [eax + 8], edx
je 0x4b6cf7
mov edx, dword [ebp + 0xe0]
test edx, edx
je 0x4b6d16
mov dword [edx], eax
mov dword [eax + 4], edx
mov dword [eax], 0
mov dword [ebp + 0xe0], eax
mov dword [eax + 0xd8], ebp
xor edx, edx
test ebp, ebp
setne dl
and edi, 0xff
mov byte [eax + 0xe4], bl
movzx ebx, byte [esp + 0x3f]
and esi, 0xff
mov dword [eax + 0x3c], 0x64
mov byte [eax + 0x50], 0
mov byte [eax + 0x51], 0
mov byte [eax + 0x53], 0
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], esi
mov dword [esp + 8], ebx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x78]
mov dword [esp], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 4], edx
call fcn.004b0a10
mov eax, dword [esp + 0x38]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [0xa4fe04]
test edx, edx
je 0x4b6d28
mov dword [edx], eax
mov dword [eax + 4], edx
mov dword [eax], 0
mov dword [0xa4fe04], eax
jmp 0x4b6c76
mov dword [eax + 4], 0
mov dword [ebp + 0xdc], eax
jmp 0x4b6c64
mov dword [eax + 4], 0
mov dword [0xa4fe00], eax
jmp 0x4b6d06
Function at 0x4b7c00
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x4c
test eax, eax
mov byte [esp + 0x2c], dl
je 0x4b7c40
lea edx, [esp + 0x3c]
mov dword [esp + 0xc], edx
lea edx, [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 1
mov dword [esp + 4], edx
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
add esp, 0x4c
ret
xor eax, eax
add esp, 0x4c
ret