joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b490
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 0x44b4ac
cmp dword [esi + 4], 0
je 0x44b4d9
test byte [ebx + 0x55], 1
jne 0x44b4cb
mov eax, ebx
call fcn.0044a030
test eax, eax
jne 0x44b4cb
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x44b5e9
mov edx, esi
mov eax, ebx
call fcn.0044afb4
jmp 0x44b5e9
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 0x44b5e2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044d384
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.00447ccc
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0044b490
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.0044d384
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b5e9
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 0x451da4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4ade2c]
cmp byte [eax + 0xc], 0
je 0x451f11
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x451f0a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4aeb94], 0
jne 0x451df8
push 0x451f18
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x451f20
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4aeb94], eax
cmp dword [0x4acf18], 0
jne 0x451ef3
push 0x451f30
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4acf18], eax
cmp dword [0x4acf18], 0
je 0x451ef3
push 0x451f3c
mov eax, dword [0x4acf18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4aeb98], eax
push 0x451f4c
mov eax, dword [0x4acf18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4aeb9c], eax
push 0x451f60
mov eax, dword [0x4acf18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4aeba0], eax
push 0x451f78
mov eax, dword [0x4acf18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4aeba4], eax
push 0x451f90
mov eax, dword [0x4acf18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4aeba8], eax
push 0x451fa4
mov eax, dword [0x4acf18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4aebac], eax
push 0x451fbc
mov eax, dword [0x4acf18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4aebb0], eax
push 0x451fd4
mov eax, dword [0x4acf18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4aebb4], eax
push 0x451ff0
mov eax, dword [0x4acf18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4aebb8], eax
push 0x451ffc
mov eax, dword [0x4acf18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4aebbc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451f11
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x45614c
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.00404820
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x45619b
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.00404a90
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45d8d8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45d928]
test si, 4
je 0x45d8ec
or bl, 1
test si, 8
je 0x45d8f6
or bl, 4
test si, 1
je 0x45d900
or bl, 8
test si, 2
je 0x45d90a
or bl, 0x10
test si, 0x10
je 0x45d914
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45d923
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45d92c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45d964]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45d945
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45d954
or bl, 4
test esi, 0x20000000
je 0x45d95f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46400c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46401e
add esp, 0xfffffff0
call fcn.00403d14
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00426b04
mov eax, dword [0x4ad928]
mov dword [eax + 4], ebx
mov dword [eax], 0x4643b0
mov eax, dword [0x4ad93c]
mov dword [eax + 4], ebx
mov dword [eax], 0x4643bc
mov eax, ebx
call fcn.004643c8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41bfec]
call fcn.00403980
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41bfec]
call fcn.00403980
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41bfec]
call fcn.00403980
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41bfec]
call fcn.00403980
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41bfec]
call fcn.00403980
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, 0x4607e4
push eax
push 0
push 0
mov eax, dword [0x4adb3c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x428588]
call fcn.00429cfc
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x428588]
call fcn.00429cfc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x428588]
call fcn.00429cfc
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004647e8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4646c4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4646c4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4646c4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46415b
call fcn.00403d6c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4644a8
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 0x464653
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x464634
mov dl, 1
mov eax, dword [0x41c650]
call fcn.00403980
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404820
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x464623
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.00452208
test al, al
je 0x464616
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, 0x464664
lea eax, [ebp - 0x254]
call fcn.0040ae5c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x464616
xor eax, eax
push ebp
push 0x46460f
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 0x46469c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4645f8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a90
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 0x4645f8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464616
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x464519
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00420ba0
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 0x46465a
lea eax, [ebp - 0x260]
call fcn.00404820
ret

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

Disassembly:
push ecx
mov eax, dword [0x4aebe0]
cmp byte [eax + 0xa5], 0
jne 0x464ff9
cmp dword [0x4aebf8], 0
jne 0x464fba
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x464f44
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4aebf8], eax
cmp dword [0x4aebf4], 0
jne 0x464fd5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4aebf4], eax
cmp dword [0x4aebfc], 0
jne 0x464ff9
push esp
push 0
push 0
push 0x464ee8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4aebfc], eax
pop edx
ret
Function at 0x4650f0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x465107
add esp, 0xfffffff0
call fcn.00403d14
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00426b04
mov eax, dword [0x4adb28]
cmp word [eax + 2], 0
jne 0x46512f
mov eax, dword [0x4adb28]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00466870
mov eax, dword [0x4adc40]
cmp word [eax + 2], 0
jne 0x465149
mov eax, dword [0x4adc40]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00466a68
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41bfec]
call fcn.00403980
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41bfec]
call fcn.00403980
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 [0x429068]
call fcn.0043078c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4652d0
mov eax, dword [0x4ad9cc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00430b5c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x467008
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4ad9cc]
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.0040ec54
test eax, eax
je 0x46523e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040a83c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ec7c
test eax, eax
je 0x465252
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.00404a90
mov eax, dword [0x4ad7f4]
cmp byte [eax], 0
jne 0x465286
mov eax, ebx
call fcn.004653f8
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.004671e4
mov eax, ebx
call fcn.00467ba8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4652c6
call fcn.00403d6c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x465678
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4aebe0]
cmp dword [eax + 0x30], 0
je 0x465722
cmp dword [ebx + 0x94], 0
jne 0x46571c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x465608
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46571c
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 0x4656e2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46571c
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.0041e820
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4656f1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x466284
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 0x4662b9
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.00404910
jmp 0x4662c6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404874
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4673c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x467401
mov eax, esi
call fcn.0044d688
test al, al
je 0x467401
mov eax, dword [ebx + 0x84]
call fcn.0044d384
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x467401
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044d384
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4849d8
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x4849fd
cmp dword [esp + 4], 5
jb 0x4849fd
mov al, 1
jmp 0x4849ff
xor eax, eax
add esp, 0x94
ret
Function at 0x49552c
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 0x49578c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x49558f
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00494ff4
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040e7c8
cmp al, 1
jne 0x49558f
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0049530c
test al, al
je 0x49571b
cmp dword [ebp - 8], 0
jge 0x4955ad
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.00494ff4
mov eax, dword [ebp - 0x210]
call fcn.00404ae0
cmp ebx, eax
jge 0x4955f7
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00494ff4
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4ade10]
and eax, 0xff
bt dword [edx], eax
jae 0x4955f7
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x49560b
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00495508
cmp ebx, dword [ebp - 8]
je 0x49570d
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 0x495637
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403bac
and eax, 0x7f
movzx eax, word [eax*2 + 0x4ad770]
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 0x4956fa
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403bac
and eax, 0x7f
movzx eax, word [eax*2 + 0x4ad770]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0044d384
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403bac
and eax, 0x7f
movzx eax, word [eax*2 + 0x4ad770]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0044d384
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495701
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 0x49576e
cmp dword [ebp - 8], 0
jge 0x495726
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00494ff4
mov eax, dword [ebp - 0x218]
call fcn.00404ae0
cmp eax, dword [ebp - 8]
jg 0x495760
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00494ff4
mov eax, dword [ebp - 0x21c]
call fcn.00404ae0
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00495508
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495793
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404844
ret
Function at 0x416153
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x416192
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x416192
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x416192
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x416192
cmp dword [ecx + 0x74], 0xe
jbe 0x416192
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x428560
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42858d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42858d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401d25
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x405110
cmp edx, dword [eax]
je 0x401d47
add eax, 8
inc ecx
cmp eax, 0x4051a0
jl 0x401d38
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x405110]
jne 0x401e75
mov eax, dword [0x4054c8]
cmp eax, 1
je 0x401e4f
test eax, eax
jne 0x401d78
cmp dword [0x405064], 1
je 0x401e4f
cmp edx, 0xfc
je 0x401e75
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401daf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004022d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402440
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x401df2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402440
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x404378
push edi
call fcn.004030d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004022d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004022e0
lea eax, [ebp - 0xa0]
push 0x404358
push eax
call fcn.004022e0
push dword [esi + 0x405114]
lea eax, [ebp - 0xa0]
push eax
call fcn.004022e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040303e
add esp, 0x2c
pop edi
jmp 0x401e75
lea eax, [ebp + 8]
lea esi, [esi + 0x405114]
push 0
push eax
push dword [esi]
call fcn.00402440
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 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x403e59
pop dword [ebp - 0x50]
mov eax, 0x4b00429f
add eax, 0xb53ffbba
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xa1b6a2cd
add dword [ebp - 0x60], 0xac9ba27e
mov dword [ebp - 0x5c], 0x3708186
sub dword [ebp - 0x5c], 0xd13d3541
mov dword [ebp - 0x58], 0x8785c02e
sub dword [ebp - 0x58], 0x3b397c00
mov dword [ebp - 0x54], 0x79c4944b
sub dword [ebp - 0x54], 0x79c4944b
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x4ed17ad
add dword [ebp - 0x60], 0x6f8551a9
mov dword [ebp - 0x5c], 0x1b8f6fc
add dword [ebp - 0x5c], 0x3fb36a79
mov dword [ebp - 0x58], 0x60b81196
add dword [ebp - 0x58], 0x2b75ad6
mov dword [ebp - 0x54], 0x962ce1fa
sub dword [ebp - 0x54], 0x962ce1fa
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x391d1
push 0
call eax
mov ecx, 0xde2503c7
sub ecx, 0xde24b250
mov esi, eax
mov edx, 0x429d01cc
sub edx, 0x425c01cc
add edx, dword [ebp - 0x50]
mov edi, 0x251de7b6
sub edi, 0x6d586e03
mov dword [ebp - 0x2c], 0xbfb341d6
mov ebx, dword [edx]
xor dword [ebp - 8], esi
sub ebx, edi
xor dword [ebp - 0x24], 0xb041d782
mov dword [esi], ebx
add dword [ebp - 0x18], eax
add esi, 0xa0a4747
sub esi, 0xa0a4743
add edx, 0x2ad5139d
add edx, 0xd52aec67
loop 0x403f71
add eax, 0x138af
mov ebx, eax
add eax, 0xdabe4b39
add eax, 0x2541b4cc
mov ecx, 0x20344290
add ecx, 0xe00bbd70
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x4bb48c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xf8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x4bb4f8
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x18]
jae 0x4bb541
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.004de850
add esp, 8
test eax, eax
jne 0x4bb53f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x4bb543
jmp 0x4bb4ef
xor eax, eax
mov esp, ebp
pop ebp
ret