joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b570
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
xor eax, eax
xor edx, edx
lea ecx, [ebp - 0x110]
push ebx
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push 0x104
push 0
push ecx
call fcn.00479bb4
add esp, 0xc
push 0x104
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov ebx, eax
push 0x104
push 0
lea eax, [ebp - 0x214]
push eax
call fcn.00479bb4
add esp, 0xc
test ebx, ebx
je 0x47b5ec
lea edx, [ebp - 0x110]
push edx
push 0x4d2db3
push 0x104
lea ecx, [ebp - 0x214]
push ecx
call fcn.0047bbd4
add esp, 0x10
test eax, eax
jge 0x47b5f0
xor eax, eax
jmp 0x47b5f5
mov eax, 1
mov ebx, eax
test ebx, ebx
je 0x47b771
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 0x214]
push ecx
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
push ebx
call fcn.00479c00
mov esi, eax
test esi, esi
jne 0x47b639
jmp 0x47b62b
push 0xe
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x47b781
test esi, esi
je 0x47b651
push esi
push ebx
push 0
lea edx, [ebp - 0x214]
push edx
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x47b655
xor ecx, ecx
jmp 0x47b65a
mov ecx, 1
mov ebx, ecx
test ebx, ebx
je 0x47b767
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0xc]
push edx
push 0x4d2dc3
push esi
call sub.version.dll_VerQueryValueA
mov ebx, eax
xor edx, edx
xor eax, eax
mov ecx, dword [ebp + 8]
dec ecx
je 0x47b68e
dec ecx
je 0x47b697
dec ecx
je 0x47b6a3
dec ecx
je 0x47b6ac
jmp 0x47b6b8
mov edx, 5
xor eax, eax
jmp 0x47b6ba
mov edx, 5
mov eax, 1
jmp 0x47b6ba
mov edx, 6
xor eax, eax
jmp 0x47b6ba
mov edx, 6
mov eax, 1
jmp 0x47b6ba
xor ebx, ebx
cmp dword [ebp + 0xc], 0
je 0x47b71f
test ebx, ebx
je 0x47b6d9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 8]
shr ecx, 0x10
and cx, 0xffff
movzx ecx, cx
cmp edx, ecx
jbe 0x47b6dd
xor ecx, ecx
jmp 0x47b6e2
mov ecx, 1
mov ebx, ecx
cmp eax, 0xffffffff
je 0x47b767
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 8]
shr ecx, 0x10
and cx, 0xffff
movzx ecx, cx
cmp edx, ecx
jne 0x47b767
test ebx, ebx
je 0x47b712
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 8]
and edx, 0xffff
cmp eax, edx
jbe 0x47b716
xor eax, eax
jmp 0x47b71b
mov eax, 1
mov ebx, eax
jmp 0x47b767
test ebx, ebx
je 0x47b738
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 8]
shr ecx, 0x10
and cx, 0xffff
movzx ecx, cx
cmp edx, ecx
je 0x47b73c
xor edx, edx
jmp 0x47b741
mov edx, 1
mov ebx, edx
cmp eax, 0xffffffff
je 0x47b767
test ebx, ebx
je 0x47b75c
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 8]
and ecx, 0xffff
cmp eax, ecx
je 0x47b760
xor eax, eax
jmp 0x47b765
mov eax, 1
mov ebx, eax
test esi, esi
je 0x47b771
push esi
call fcn.00479c14
test ebx, ebx
jne 0x47b77f
push 0x47e
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47b840
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor eax, eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], eax
test edi, edi
jne 0x47b863
xor eax, eax
jmp 0x47b98c
cmp dword [ebp + 0xc], 0
jne 0x47b883
lea edx, [ebp - 4]
push edx
push 1
push 0x20008
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
test eax, eax
jne 0x47b8a2
lea ecx, [ebp - 4]
push ecx
push 0x20008
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x47b8a2
xor eax, eax
jmp 0x47b98c
lea edx, [ebp - 8]
push edx
push 0
push 0
push 3
mov ecx, dword [ebp - 4]
push ecx
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x47b8d3
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
je 0x47b8d3
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
jmp 0x47b98c
mov edx, dword [ebp - 8]
push edx
call fcn.00479c00
mov ebx, eax
test ebx, ebx
jne 0x47b90b
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
jne 0x47b90b
jmp 0x47b8fd
push 0xe
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x47b98c
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp - 8]
push ecx
push ebx
push 3
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x47b936
mov edx, dword [ebp - 4]
push edx
call sub.kernel32.dll_CloseHandle_1
push ebx
call fcn.00479c14
xor eax, eax
jmp 0x47b98c
xor esi, esi
lea eax, [ebp - 0x10]
push eax
push edi
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0x47b97b
xor edi, edi
jmp 0x47b973
mov edx, edi
lea eax, [ebp - 0x10]
shl edx, 2
push 8
push eax
lea edx, [edx + edx*2]
add edx, ebx
add edx, 4
push edx
call fcn.00479be0
add esp, 0xc
test eax, eax
sete cl
and ecx, 1
inc edi
mov esi, ecx
test esi, esi
jne 0x47b97b
cmp edi, dword [ebx]
jb 0x47b94c
push ebx
call fcn.00479c14
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47b994
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 2
cmp ebx, 0xffffffff
je 0x47b9d7
cmp dword [0x4d13d4], 0
je 0x47b9c7
call dword [0x4d13d4]
jmp 0x47b9c9
xor eax, eax
cmp ebx, eax
je 0x47b9d7
mov eax, 1
jmp 0x47bbcd
test edi, edi
jne 0x47b9e4
xor eax, eax
jmp 0x47bbcd
mov esi, edi
mov esi, dword [esi]
push 0
call sub.kernel32.dll_SetLastError
lea eax, [ebp - 4]
push eax
push 0x10103
push 0
push 0x4d1422
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
je 0x47ba2b
lea eax, [ebp - 4]
push eax
push 0x103
push 0
push 0x4d1422
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
cmp ebx, 5
jne 0x47ba3e
push 5
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x47bbcd
test ebx, ebx
jne 0x47bbba
xor edx, edx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], 4
push ecx
push eax
lea edx, [ebp - 8]
push edx
push 0
push 0x4d140c
mov ecx, dword [ebp - 4]
push ecx
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
cmp ebx, 2
jne 0x47ba83
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x47bab4
test ebx, ebx
je 0x47bab4
mov edx, dword [ebp - 4]
push edx
call sub.advapi32.dll_RegCloseKey_1
call sub.kernel32.dll_GetLastError_1
push eax
push 0x4d2e80
call fcn.0047b568
add esp, 8
push 0x4ec
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x47bbcd
cmp esi, 0xffffffff
je 0x47bb50
cmp esi, 1
je 0x47bb50
cmp dword [ebp - 0xc], 1
jne 0x47bb50
xor ebx, ebx
test esi, esi
jne 0x47bafd
push 0x4d140c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov ebx, eax
test ebx, ebx
je 0x47bafd
call sub.kernel32.dll_GetLastError_1
push eax
push 0x4d2eb1
call fcn.0047b568
add esp, 8
test ebx, ebx
je 0x47bbaf
push 4
push edi
push 4
push 0
push 0x4d140c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je 0x47bbaf
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
call sub.kernel32.dll_GetLastError_1
push eax
push 0x4d2ee1
call fcn.0047b568
add esp, 8
push 0x4ec
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x47bbcd
cmp esi, 0xffffffff
jne 0x47bbaf
cmp dword [ebp - 0xc], 1
je 0x47bbaf
mov edx, dword [ebp - 0xc]
mov dword [edi], edx
mov dword [ebp - 0x14], 1
push 4
lea ecx, [ebp - 0x14]
push ecx
push 4
push 0
push 0x4d140c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
je 0x47bbaf
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
call sub.kernel32.dll_GetLastError_1
push eax
push 0x4d2f11
call fcn.0047b568
add esp, 8
push 0x18000065
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x47bbcd
mov edx, dword [ebp - 4]
push edx
call sub.advapi32.dll_RegCloseKey_1
jmp 0x47bbc8
push 0x4ec
call sub.kernel32.dll_SetLastError
xor eax, eax
jmp 0x47bbcd
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x483bb0
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x483afc
call sub.user32.dll_EnumWindows
ret

Function at 0x483cd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x483d4d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00483730
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x3e8
jbe 0x483cf5
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00483330
cmp dword [ebp - 4], 0
je 0x483d37
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00405504
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483d54
lea eax, [ebp - 4]
call fcn.00405044
ret

Function at 0x486d20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x4d71d8], 0
je 0x486e6f
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4d3c68]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x486e6f
mov eax, dword [0x4d71dc]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4d71d8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x486e3e
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4d71d8]
call fcn.0041c964
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x486e36
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x486e36
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x486e36
mov eax, dword [ebp - 0x14]
call fcn.0048f9ec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x486e36
push ebp
call fcn.00486cdc
pop ecx
test al, al
jne 0x486e36
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x486df2
mov eax, dword [ebp - 0x14]
call fcn.0048e51c
dec eax
jle 0x486e36
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.0040441c
cmp byte [ebp - 1], 0
je 0x486e36
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x486e36
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4d71dc]
call fcn.004864a8
inc edi
dec ebx
jne 0x486d85
mov eax, dword [0x4d71dc]
cmp dword [eax + 8], 0
jle 0x486e56
mov eax, dword [0x4d71dc]
call fcn.00486538
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x486e6f
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00486b44
pop ecx
test al, al
jne 0x486e6f
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48a470
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x48a4bc
mov eax, esi
call fcn.0049fd60
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48a4bc
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x48a4bc
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x48a5fb
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x48a4fc
cmp eax, 0x108
ja 0x48a4fc
mov eax, esi
call fcn.0049fd60
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48a5f2
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x48a5fb
jmp 0x48a5f2
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x48a5db
cmp eax, 0x20a
ja 0x48a5db
test byte [esi + 0x50], 0x80
jne 0x48a52e
sub eax, 0x203
je 0x48a52b
sub eax, 3
je 0x48a52b
sub eax, 3
jne 0x48a52e
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x48a542
dec eax
je 0x48a557
dec eax
je 0x48a574
dec eax
je 0x48a557
jmp 0x48a57b
mov ecx, ebx
mov eax, dword [0x4d3c68]
mov eax, dword [eax]
mov edx, esi
call fcn.004a94bc
jmp 0x48a5f2
cmp byte [esi + 0x5d], 1
jne 0x48a56d
mov eax, esi
mov si, 0xffed
call fcn.0040441c
jmp 0x48a5fb
or word [esi + 0x54], 1
jmp 0x48a5f2
and word [esi + 0x54], 0xfffe
jmp 0x48a5f2
mov eax, dword [0x4d7194]
cmp byte [eax + 0x20], 0
je 0x48a5f2
mov eax, dword [0x4d7194]
cmp dword [eax + 0x1c], 0
je 0x48a5f2
mov eax, dword [ebx]
mov edx, dword [0x4d7194]
cmp eax, dword [edx + 0x1c]
jne 0x48a5f2
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0049fca4
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.0040441c
jmp 0x48a5fb
cmp eax, 0xb00b
jne 0x48a5f2
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00488d84
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48db7c
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 0x48db98
cmp dword [esi + 4], 0
je 0x48dbc5
test byte [ebx + 0x55], 1
jne 0x48dbb7
mov eax, ebx
call fcn.0048c71c
test eax, eax
jne 0x48dbb7
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x48dcd5
mov edx, esi
mov eax, ebx
call fcn.0048d6a0
jmp 0x48dcd5
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 0x48dcce
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0048f9ec
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.0048a3a4
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0048db7c
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.0048f9ec
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48dcd5
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 0x4943d4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4d3f38]
cmp byte [eax + 0xc], 0
je 0x494541
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49453a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4d71e8], 0
jne 0x494428
push 0x494548
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x494550
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d71e8], eax
cmp dword [0x4d32e4], 0
jne 0x494523
push 0x494560
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4d32e4], eax
cmp dword [0x4d32e4], 0
je 0x494523
push 0x49456c
mov eax, dword [0x4d32e4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d71ec], eax
push 0x49457c
mov eax, dword [0x4d32e4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d71f0], eax
push 0x494590
mov eax, dword [0x4d32e4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d71f4], eax
push 0x4945a8
mov eax, dword [0x4d32e4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d71f8], eax
push 0x4945c0
mov eax, dword [0x4d32e4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d71fc], eax
push 0x4945d4
mov eax, dword [0x4d32e4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d7200], eax
push 0x4945ec
mov eax, dword [0x4d32e4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d7204], eax
push 0x494604
mov eax, dword [0x4d32e4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d7208], eax
push 0x494620
mov eax, dword [0x4d32e4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d720c], eax
push 0x49462c
mov eax, dword [0x4d32e4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4d7210], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494541
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4983f4
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.00405044
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x498443
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.004052b4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49fc14
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x49fc64]
test si, 4
je 0x49fc28
or bl, 1
test si, 8
je 0x49fc32
or bl, 4
test si, 1
je 0x49fc3c
or bl, 8
test si, 2
je 0x49fc46
or bl, 0x10
test si, 0x10
je 0x49fc50
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49fc5f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x49fc68
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x49fca0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49fc81
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49fc90
or bl, 4
test esi, 0x20000000
je 0x49fc9b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4a6364
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4a6376
add esp, 0xfffffff0
call fcn.0040454c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422d08
mov eax, dword [0x4d3920]
mov dword [eax + 4], ebx
mov dword [eax], 0x4a6708
mov eax, dword [0x4d3934]
mov dword [eax + 4], ebx
mov dword [eax], 0x4a6714
mov eax, ebx
call fcn.004a6720
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41a58c]
call fcn.004041e4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41a58c]
call fcn.004041e4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41a58c]
call fcn.004041e4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41a58c]
call fcn.004041e4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41a58c]
call fcn.004041e4
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, 0x4a2b38
push eax
push 0
push 0
mov eax, dword [0x4d3b8c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x465f58]
call fcn.004676f0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x465f58]
call fcn.004676f0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x465f58]
call fcn.004676f0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004a6b70
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a6a38
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a6a38
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a6a38
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4a64b3
call fcn.004045a4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4a681c
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 0x4a69c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4a69a8
mov dl, 1
mov eax, dword [0x41a9a8]
call fcn.004041e4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00405044
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4a6997
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.00494734
test al, al
je 0x4a698a
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, 0x4a69d8
lea eax, [ebp - 0x254]
call fcn.0040b208
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4a698a
xor eax, eax
push ebp
push 0x4a6983
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 0x4a6a10
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4a696c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004052b4
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 0x4a696c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004052b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a698a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4a688d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041e8d8
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 0x4a69ce
lea eax, [ebp - 0x260]
call fcn.00405044
ret

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

Disassembly:
push ecx
mov eax, dword [0x4d7234]
cmp byte [eax + 0xa5], 0
jne 0x4a7381
cmp dword [0x4d724c], 0
jne 0x4a7342
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4a72cc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4d724c], eax
cmp dword [0x4d7248], 0
jne 0x4a735d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4d7248], eax
cmp dword [0x4d7250], 0
jne 0x4a7381
push esp
push 0
push 0
push 0x4a7270
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4d7250], eax
pop edx
ret