joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c524
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x45c68b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0045a41c
cmp si, word [0x59475c]
jb 0x45c5be
cmp si, word [0x59495c]
ja 0x45c5be
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x45c5be
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x59475c]
jae 0x45c598
mov edi, ebx
dec edi
jmp 0x45c5b9
cmp si, word [ebx*8 + 0x59475c]
jbe 0x45c5a8
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x45c5b9
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x594760]
call fcn.0045c434
jmp 0x45c5be
cmp edi, dword [ebp - 0xc]
jae 0x45c582
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x45c66d
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x45c66d
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.0045a61c
push dword [ebp - 0x164]
push 0x45c6a8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.0045a61c
push dword [ebp - 0x168]
push 0x45c6b8
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.0045a61c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.0045a9d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c692
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.0045a414
ret
Function at 0x45c6bc
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x45c8a2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5a3c44
call sub.KERNEL32.DLL_EnterCriticalSection
movzx eax, word [0x5a3c5c]
cmp ax, word [ebp - 2]
jne 0x45c714
mov eax, dword [ebp - 6]
mov edx, 0x5a3c60
mov ecx, 0x55
call fcn.0045a61c
push 0x5a3c44
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x45c88c
push 0x5a3c44
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.0045a41c
push 2
movzx eax, word [ebp - 2]
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x45c854
cmp byte [0x5a3c40], 0
je 0x45c80a
call dword [0x5a3c38]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x5a3c3c]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x45c803
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x5a3c34]
test al, al
je 0x45c7dc
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.004574d0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x5a3c34]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x45c7d1
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x45c7cd
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x45c7ba
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.0045a5c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c854
movzx eax, word [ebp - 0x16]
push eax
call dword [0x5a3c3c]
cmp dword [ebp - 0x10], 0
je 0x45c802
mov eax, dword [ebp - 0x10]
call fcn.004574ec
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.0045c524
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x45c854
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x45c839
mov eax, dword [ebp - 6]
mov edx, 0x45c8bc
call fcn.0045a830
mov eax, dword [ebp - 6]
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.0045c524
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.0045a830
mov eax, dword [ebp - 6]
push 0x5a3c44
call sub.KERNEL32.DLL_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x5a3c5c], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.0045a4a8
push eax
push 0x5a3c60
call sub.KERNEL32.DLL_lstrcpynW
push 0x5a3c44
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c8a9
lea eax, [ebp - 0x1c]
call fcn.0045a40c
ret
Function at 0x45cae0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0045a404
xor eax, eax
push ebp
push 0x45ccc5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x45cb20
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x45cb3a
push 0x105
mov eax, dword [ebp - 4]
call fcn.0045a4a8
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x45ccaf
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x45ccd4
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x45cbc9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x45ccd4
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x45cbc9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x45cd08
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x45cbc9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x45cd3c
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x45ccaf
xor eax, eax
push ebp
push 0x45cca8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0045c8e4
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x45cc38
mov eax, dword [ebp - 0x10]
call fcn.004574d0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0045a5c8
jmp 0x45cc83
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x45cd7c
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x45cc83
mov eax, dword [ebp - 0x10]
call fcn.004574d0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x45cd7c
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0045a5c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ccaf
cmp dword [ebp - 8], 0
je 0x45cc9e
mov eax, dword [ebp - 8]
call fcn.004574ec
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45cccc
lea eax, [ebp - 4]
call fcn.0045a40c
ret
Function at 0x45cf90
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.0045a404
mov eax, dword [ebp - 0x21c]
call fcn.0045a404
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x45d12f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.0045a41c
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.0045a4a8
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.KERNEL32.DLL_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x45d030
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x45d042
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x45d02d
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x45d0fb
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x45d06b
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.0045cae0
cmp dword [ebp - 0x220], 0
je 0x45d0a3
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0045ce84
pop ecx
mov ebx, eax
jmp 0x45d0fb
push ebp
call sub.KERNEL32.DLL_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.0045c6bc
mov eax, dword [ebp - 0x224]
call fcn.0045ce84
pop ecx
mov ebx, eax
test bl, bl
jne 0x45d0ee
cmp byte [0x5a3c40], 0
jne 0x45d0ee
push ebp
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.0045c6bc
mov eax, dword [ebp - 0x228]
call fcn.0045ce84
pop ecx
mov ebx, eax
test bl, bl
jne 0x45d0fb
push ebp
call fcn.0045cf34
pop ecx
mov ebx, eax
test bl, bl
je 0x45d111
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.0045a61c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d136
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.0045a414
ret

Function at 0x45d8b8
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.KERNEL32.DLL_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x45d9a4
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x5a19c8], 1
jae 0x45da4d
call fcn.004541e4
call fcn.004572ac
call fcn.0045c2a4
mov byte [0x593fa8], 2
mov dword [0x5a10ec], 0x5900ca
mov dword [0x5a10f0], 0x5900e8
mov byte [0x5a1132], 2
call fcn.0045d8b8
mov dword [0x5a1134], eax
mov dword [0x5a10d8], 0x45b7bc
call fcn.00457fe0
mov word [0x5a113c], 0xd7b0
mov word [0x5a140c], 0xd7b0
mov word [0x5a16dc], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x5a1124], eax
call fcn.004558a4
mov dword [0x5a1120], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x5a19b0], eax
mov dword [0x5a19b4], 0x4b0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x5a1118], eax
call fcn.0045d8cc
ret
Function at 0x4840a4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.0045a41c
push 0
mov eax, esi
movzx eax, al
push eax
call sub.USER32.DLL_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4840eb
push 0x100
lea edx, [esp + 4]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, 0x100
call fcn.0045a61c
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x4898e8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x489a21
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.USER32.DLL_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x42dcc0]
call fcn.0042eec4
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4899f7
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, SysStringLen
mov eax, dword [ebp - 0xc]
call fcn.0042efac
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.0045a61c
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x489a3c
call fcn.0045a8f0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0042f228
test al, al
je 0x4899e1
lea ecx, [ebp - 4]
mov edx, 0x489ab0
mov eax, dword [ebp - 0xc]
call fcn.0042fb24
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.004457a0
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4899da
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x489ac8
mov eax, dword [ebp - 8]
push eax
call fcn.00409274
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x59518c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4899e1
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeLibrary
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4899fe
mov eax, dword [ebp - 0xc]
call fcn.0045812c
ret

Function at 0x489b2c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x489b73
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x489b56
add bx, 0x2000
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x489b67
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x489b73
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x4911f4
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4911fa
ret
Function at 0x49c768
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x49c925
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x30], 0
jne 0x49c901
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x49c901
mov eax, dword [ebp - 0xc]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x28
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x28]
add ebx, ebx
add ebx, ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
imul ebx
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x49c734]
call fcn.0045be38
add esp, 4
lea eax, [ebp - 4]
call fcn.0045d2e4
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [0x59e604]
push eax
call fcn.00590a10
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.0045bc70
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0x2c
call fcn.00457af0
mov dword [ebp - 0x38], 0x2c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
neg eax
mov dword [ebp - 0x30], eax
mov word [ebp - 0x2c], 1
mov word [ebp - 0x2a], 0x20
mov dl, 1
mov eax, dword [0x48fb34]
call fcn.0049915c
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], ebx
xor ecx, ecx
push ebp
push 0x49c8df
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, ebx
mov dl, 7
call fcn.0049ad70
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x70]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
call fcn.00499a7c
call fcn.004941e4
push eax
call sub.GDI32.DLL_SetDIBits
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.00499d80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49c901
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c92c
lea eax, [ebp - 8]
mov edx, dword [0x49c734]
call fcn.0045bf58
lea eax, [ebp - 4]
call fcn.0045d2e4
ret
Function at 0x4a4ffc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_GetWindowLongW
mov edi, eax
test bl, bl
je 0x4a501d
test edi, 0x40000
je 0x4a5037
test bl, bl
jne 0x4a50b8
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x4a50b8
push esi
call sub.USER32.DLL_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.USER32.DLL_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x4a506a
push 0
push esi
call sub.USER32.DLL_ShowWindow
test bl, bl
je 0x4a507f
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongW
jmp 0x4a508e
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x4a509f
cmp byte [esp + 2], 0
je 0x4a50b8
cmp byte [esp + 2], 0
je 0x4a50b0
push 6
push esi
call sub.USER32.DLL_ShowWindow
jmp 0x4a50b8
push 5
push esi
call sub.USER32.DLL_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4a5364
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.USER32.DLL_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x4a538a
mov eax, esp
push eax
push 0x4a532c
call sub.USER32.DLL_EnumWindows
jmp 0x4a539d
mov eax, esp
push eax
push 0x4a530c
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
call sub.USER32.DLL_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x4a5460
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x4a54b0]
test bl, 4
je 0x4a5474
or si, 1
test bl, 8
je 0x4a547d
or si, 4
test bl, 1
je 0x4a5486
or si, 8
test bl, 2
je 0x4a548f
or si, 0x10
test bl, 0x10
je 0x4a5498
or si, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4a54a8
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4a54b4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x4a54f0]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4a54cf
or bx, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4a54df
or bx, 4
test esi, 0x20000000
je 0x4a54eb
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4ae270
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4ae282
add esp, 0xfffffff0
call fcn.00458660
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004293a4
mov eax, dword [0x59e2d8]
mov dword [eax + 4], ebx
mov dword [eax], 0x4ae6cc
mov eax, dword [0x59e2dc]
mov dword [eax + 4], ebx
mov dword [eax], 0x4ae6d8
mov eax, ebx
call fcn.004ae6e4
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x412344]
call fcn.004580fc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412344]
call fcn.004580fc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412344]
call fcn.004580fc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412344]
call fcn.004580fc
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x412344]
call fcn.004580fc
mov dword [ebx + 0x78], eax
push 0
call sub.USER32.DLL_GetDC
mov esi, eax
push 0x5a
push esi
call sub.GDI32.DLL_GetDeviceCaps
mov dword [ebx + 0x44], eax
push esi
push 0
call sub.USER32.DLL_ReleaseDC
mov eax, dword [ebx + 0x5c]
push eax
mov eax, 0x4a8f64
push eax
push 0
push 0
mov eax, dword [0x59e650]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x48bfc8]
call fcn.0049229c
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x48bfc8]
call fcn.0049229c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x48bfc8]
call fcn.0049229c
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x48bfc8]
call fcn.0049229c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x48bfc8]
call fcn.0049229c
mov dword [ebx + 0x8c], eax
mov eax, ebx
call fcn.004aec44
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4aeab4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4aeab4
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4aeab4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4aeab4
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4aeab4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4ae3fd
call fcn.004586b8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4ae854
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4aea01
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4ae9e2
mov dl, 1
mov eax, dword [0x414a44]
call fcn.00420c70
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
xor edx, edx
call fcn.0045a41c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4ae9d1
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.004e00d8
test al, al
je 0x4ae9c4
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4aea10
lea eax, [ebp - 0x394]
call fcn.0043d860
push eax
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x4ae9c4
xor eax, eax
push ebp
push 0x4ae9bd
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 - 0x314]
push eax
push 0
push 0
push 0x4aea80
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x4ae9a6
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.0045a61c
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
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 + 0x40]
jne 0x4ae9a6
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.0045a61c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae9c4
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4ae8c7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.00420bac
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aea08
lea eax, [ebp - 0x3a0]
call fcn.0045a40c
ret

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

Disassembly:
push ecx
mov eax, dword [0x5a3e10]
cmp byte [eax + 0xad], 0
jne 0x4af5d2
cmp dword [0x5a3e28], 0
jne 0x4af592
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x595574]
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExW
mov dword [0x5a3e28], eax
cmp dword [0x5a3e24], 0
jne 0x4af5ad
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventW
mov dword [0x5a3e24], eax
cmp dword [0x5a3e2c], 0
jne 0x4af5d2
push esp
push 0
push 0
mov eax, dword [0x59567c]
push eax
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x5a3e2c], eax
pop edx
ret