joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455e88
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x564aec]
cmp byte [eax + 0xc], 0
je 0x455ff5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x455fee
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x565bf4], 0
jne 0x455edc
push 0x455ffc
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x456004
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x565bf4], eax
cmp dword [0x561c70], 0
jne 0x455fd7
push 0x456014
call sub.kernel32.dll_LoadLibraryA
mov dword [0x561c70], eax
cmp dword [0x561c70], 0
je 0x455fd7
push 0x456020
mov eax, dword [0x561c70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x565bf8], eax
push 0x456030
mov eax, dword [0x561c70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x565bfc], eax
push 0x456044
mov eax, dword [0x561c70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x565c00], eax
push 0x45605c
mov eax, dword [0x561c70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x565c04], eax
push 0x456074
mov eax, dword [0x561c70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x565c08], eax
push 0x456088
mov eax, dword [0x561c70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x565c0c], eax
push 0x4560a0
mov eax, dword [0x561c70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x565c10], eax
push 0x4560b8
mov eax, dword [0x561c70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x565c14], eax
push 0x4560d4
mov eax, dword [0x561c70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x565c18], eax
push 0x4560e0
mov eax, dword [0x561c70]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x565c1c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455ff5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x45a26c
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.004048a8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x45a2bb
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.00404b10
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x462ad0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x462b20]
test si, 4
je 0x462ae4
or bl, 1
test si, 8
je 0x462aee
or bl, 4
test si, 1
je 0x462af8
or bl, 8
test si, 2
je 0x462b02
or bl, 0x10
test si, 0x10
je 0x462b0c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x462b1b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x462b24
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x462b5c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x462b3d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x462b4c
or bl, 4
test esi, 0x20000000
je 0x462b57
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4694a0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4694b2
add esp, 0xfffffff0
call fcn.00403e84
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004214c8
mov eax, dword [0x5644f0]
mov dword [eax + 4], ebx
mov dword [eax], 0x469844
mov eax, dword [0x564504]
mov dword [eax + 4], ebx
mov dword [eax], 0x469850
mov eax, ebx
call fcn.0046985c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x416964]
call fcn.00403af0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x416964]
call fcn.00403af0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x416964]
call fcn.00403af0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x416964]
call fcn.00403af0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x416964]
call fcn.00403af0
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, 0x465d24
push eax
push 0
push 0
mov eax, dword [0x56476c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4235c8]
call fcn.00424d3c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4235c8]
call fcn.00424d3c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4235c8]
call fcn.00424d3c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00469d0c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x469ba0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x469ba0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x469ba0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4695ef
call fcn.00403edc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x469984
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 0x469b2f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x469b10
mov dl, 1
mov eax, dword [0x416fc8]
call fcn.00403af0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004048a8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x469aff
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.004562ec
test al, al
je 0x469af2
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, 0x469b40
lea eax, [ebp - 0x254]
call fcn.0040a40c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x469af2
xor eax, eax
push ebp
push 0x469aeb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x469b78
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x469ad4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00404b10
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 0x469ad4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00404b10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469af2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4699f5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041bb04
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 0x469b36
lea eax, [ebp - 0x260]
call fcn.004048a8
ret

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

Disassembly:
push ecx
mov eax, dword [0x565c38]
cmp byte [eax + 0xa5], 0
jne 0x46a51d
cmp dword [0x565c50], 0
jne 0x46a4de
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46a468
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x565c50], eax
cmp dword [0x565c4c], 0
jne 0x46a4f9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x565c4c], eax
cmp dword [0x565c54], 0
jne 0x46a51d
push esp
push 0
push 0
push 0x46a40c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x565c54], eax
pop edx
ret
Function at 0x46a614
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46a62b
add esp, 0xfffffff0
call fcn.00403e84
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004214c8
mov eax, dword [0x564754]
cmp word [eax + 2], 0
jne 0x46a653
mov eax, dword [0x564754]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046bcf0
mov eax, dword [0x564888]
cmp word [eax + 2], 0
jne 0x46a66d
mov eax, dword [0x564888]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046bee8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416964]
call fcn.00403af0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416964]
call fcn.00403af0
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], 0x80000018
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 [0x4240e8]
call fcn.0042c710
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x46a7f4
mov eax, dword [0x5645a0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042cae0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46c468
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x5645a0]
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.0040e1c8
test eax, eax
je 0x46a762
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409d38
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e1f0
test eax, eax
je 0x46a776
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, 0x100
call fcn.00404b10
mov eax, dword [0x564378]
cmp byte [eax], 0
jne 0x46a7aa
mov eax, ebx
call fcn.0046a91c
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.0046c644
mov eax, ebx
call fcn.0046cf84
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46a7ea
call fcn.00403edc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46ab90
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x565c38]
cmp dword [eax + 0x30], 0
je 0x46ac3a
cmp dword [ebx + 0x94], 0
jne 0x46ac34
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46ab20
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46ac34
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 0x46abfa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46ac34
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.004192d0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46ac09
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46b718
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 0x46b74d
push 0x100
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.00404998
jmp 0x46b75a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004048fc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46c820
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46c861
mov eax, esi
call fcn.004518dc
test al, al
je 0x46c861
mov eax, dword [ebx + 0x84]
call fcn.004515d8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46c861
push 0
mov eax, dword [ebx + 0x84]
call fcn.004515d8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x470dd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.004708d4
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404d58
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x470e2e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x564778]
mov dl, 1
mov eax, dword [0x470760]
call fcn.0040d4dc
call fcn.004042ec
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x470e38
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404d58
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x470e90
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x564af8]
mov dl, 1
mov eax, dword [0x470760]
call fcn.0040d4dc
call fcn.004042ec
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00470904
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4796d8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4797b0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x565cb8], 0
jne 0x479794
lea eax, [ebp - 4]
mov edx, 0x4797c8
call fcn.00404940
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404d58
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x479794
mov eax, ebx
call fcn.004027a0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47978d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x479777
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4797d8
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x479777
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x565cb8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479794
mov eax, dword [ebp - 0xc]
call fcn.004027c0
ret
mov ebx, dword [0x565cb8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4797b7
lea eax, [ebp - 4]
call fcn.004048a8
ret

Function at 0x4ac6fb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x563002
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4ac753
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x563023
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4ac749
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4ac757
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x4c6dc0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4c6dee
mov eax, ebx
call fcn.004c7878
cmp dword [ebx + 0x3c], 0
je 0x4c6de7
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4c6e5f
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4c6e51
cmp dword [ebx + 8], 0
je 0x4c6e10
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x4c6e22
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4c6e51
cmp dword [ebx + 8], 0
je 0x4c6e03
cmp eax, 3
je 0x4c6e35
dec eax
jne 0x4c6e03
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4c6e03
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x4c6e03
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4c6e7d
cmp dword [ebx + 0x10], 0xcc
je 0x4c6e7d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004c6e88
pop ebx
ret
Function at 0x4d8034
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 0x4d8294
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4d8097
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004d7afc
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040dcb0
cmp al, 1
jne 0x4d8097
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004d7e14
test al, al
je 0x4d8223
cmp dword [ebp - 8], 0
jge 0x4d80b5
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.004d7afc
mov eax, dword [ebp - 0x210]
call fcn.00404b60
cmp ebx, eax
jge 0x4d80ff
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004d7afc
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x564ac4]
and eax, 0xff
bt dword [edx], eax
jae 0x4d80ff
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4d8113
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004d8010
cmp ebx, dword [ebp - 8]
je 0x4d8215
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, 0x100
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4d813f
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403d1c
and eax, 0x7f
movzx eax, word [eax*2 + 0x563bc4]
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 0x4d8202
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403d1c
and eax, 0x7f
movzx eax, word [eax*2 + 0x563bc4]
push eax
push 0x100
mov eax, dword [ebp - 4]
call fcn.004515d8
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403d1c
and eax, 0x7f
movzx eax, word [eax*2 + 0x563bc4]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.004515d8
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8209
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 0x4d8276
cmp dword [ebp - 8], 0
jge 0x4d822e
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004d7afc
mov eax, dword [ebp - 0x218]
call fcn.00404b60
cmp eax, dword [ebp - 8]
jg 0x4d8268
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004d7afc
mov eax, dword [ebp - 0x21c]
call fcn.00404b60
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004d8010
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d829b
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004048cc
ret
Function at 0x4f9838
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
mov ebx, eax
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
mov eax, dword [esp + 0x10]
sub eax, 1
jb 0x4f985e
je 0x4f986c
dec eax
je 0x4f98a5
jmp 0x4f98b1
mov eax, ebx
mov edx, 0x4f98c4
call fcn.004048fc
jmp 0x4f98b1
and dword [esp + 0xc], 0xffff
cmp dword [esp + 4], 4
ja 0x4f9889
cmp dword [esp + 4], 4
jne 0x4f9897
cmp dword [esp + 8], 0xa
jb 0x4f9897
mov eax, ebx
mov edx, 0x4f98d0
call fcn.004048fc
jmp 0x4f98b1
mov eax, ebx
mov edx, 0x4f98dc
call fcn.004048fc
jmp 0x4f98b1
mov eax, ebx
mov edx, 0x4f98e8
call fcn.004048fc
add esp, 0x94
pop ebx
ret
Function at 0x508460
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x5085d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x98]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x14]
add eax, dword [edx + 0xc8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
call fcn.004250f0
mov ebx, eax
neg ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
fild dword [eax + 0x11c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
fmul qword [eax + 0x80]
call fcn.00402b9c
add ebx, eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
xor edx, edx
mov dword [eax + 0x100], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x108]
mov dword [ebp - 0xc], eax
cmp byte [0x5669e0], 0
jne 0x50856a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x44]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
jne 0x50856a
lea ecx, [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x44]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x30]
call fcn.00426190
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov ecx, dword [ebp + 8]
sub edx, dword [ecx - 0x10]
cmp eax, edx
jle 0x50856a
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x44]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0x5b
jne 0x50856a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov dword [eax + 0x108], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x44]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x5085a7
inc ebx
xor esi, esi
push ebp
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov eax, dword [eax + 0x44]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x18]
call fcn.00508080
pop ecx
test al, al
jne 0x5085a7
inc esi
dec ebx
jne 0x508582
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x108], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5085d8
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004048cc
ret