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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x487395
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00484994
cmp si, word [0x5cc434]
jb 0x4872c8
cmp si, word [0x5cc634]
ja 0x4872c8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4872c8
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5cc434]
jae 0x4872a2
mov edi, ebx
dec edi
jmp 0x4872c3
cmp si, word [ebx*8 + 0x5cc434]
jbe 0x4872b2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4872c3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5cc438]
call fcn.00487140
jmp 0x4872c8
cmp edi, dword [ebp - 8]
jae 0x48728c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x487377
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x487377
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0048589c
push dword [ebp - 0x160]
push 0x4873b0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0048589c
push dword [ebp - 0x164]
push 0x4873c0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0048589c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00485ad4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48739c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004849f4
ret
Function at 0x487548
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48764b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5ed19d
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x5ed1b6]
jne 0x487594
mov eax, esi
mov edx, 0x5ed1b8
mov ecx, 0x55
call fcn.0048589c
push 0x5ed19d
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x487635
push 0x5ed19d
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.00484994
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x487603
cmp byte [0x5ed19c], 0
je 0x4875c8
mov edx, esi
mov eax, ebx
call fcn.0048742c
jmp 0x487603
mov edx, esi
mov eax, ebx
call fcn.00487230
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x487603
cmp dword [esi], 0
je 0x4875ec
mov eax, esi
mov edx, 0x487664
call fcn.004859f4
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00487230
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004859f4
push 0x5ed19d
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x5ed1b6], bx
push 0xaa
mov eax, dword [esi]
call fcn.004857f8
push eax
push 0x5ed1b8
call sub.KERNEL32.DLL_lstrcpynW
push 0x5ed19d
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487652
lea eax, [ebp - 4]
call fcn.00484994
ret
Function at 0x487880
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.00484a78
xor eax, eax
push ebp
push 0x487aa5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4878c0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x4878da
push 0x105
mov eax, dword [ebp - 4]
call fcn.004857f8
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x487a8f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x487ab4
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4879a9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x487ab4
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4879a9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x487af0
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4879a9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x487af0
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4879a9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x487b24
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4879a9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x487b58
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x487a8f
xor eax, eax
push ebp
push 0x487a88
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0048768c
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 0x487a18
mov eax, dword [ebp - 0x10]
call fcn.00482378
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.00485848
jmp 0x487a63
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x487b98
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x487a63
mov eax, dword [ebp - 0x10]
call fcn.00482378
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x487b98
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00485848
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487a8f
cmp dword [ebp - 8], 0
je 0x487a7e
mov eax, dword [ebp - 8]
call fcn.00482394
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 0x487aac
lea eax, [ebp - 4]
call fcn.00484994
ret
Function at 0x487de4
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00484a78
xor eax, eax
push ebp
push 0x487ea4
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
lea eax, [ebp - 0xc]
push eax
push 3
call sub.KERNEL32.DLL_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0048589c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00485a4c
mov eax, dword [ebx]
call fcn.00487cac
test al, al
jne 0x487e81
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0048589c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00485a4c
mov eax, dword [ebx]
call fcn.00487cac
test al, al
jne 0x487e81
mov eax, ebx
call fcn.00484994
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487eab
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004849f4
lea eax, [ebp - 4]
call fcn.00484994
ret

Function at 0x4887b8
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 0x488898
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x5eaf28], 1
jae 0x488941
call fcn.0047f0d0
call fcn.00482138
call fcn.00486fd8
mov byte [0x5cbc60], 2
mov dword [0x5ea650], 0x5bc91a
mov dword [0x5ea654], 0x5bc93e
mov byte [0x5ea696], 2
call fcn.004887b8
mov dword [0x5ea698], eax
mov dword [0x5ea63c], 0x4865c8
call fcn.00482ee4
mov word [0x5ea6a0], 0xd7b0
mov word [0x5ea970], 0xd7b0
mov word [0x5eac40], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x5ea688], eax
call fcn.0048072c
mov dword [0x5ea684], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x5eaf10], eax
mov dword [0x5eaf14], 0x4b0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x5ea67c], eax
call fcn.004887cc
ret

Function at 0x4a3034
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00484994
push 0
mov eax, esi
movzx eax, al
push eax
call sub.USER32.DLL_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4a3079
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.0048589c
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x4a8628
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 0x4a8761
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 [0x44228c]
call fcn.00444320
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4a8737
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, SysStringLen
mov eax, dword [ebp - 0xc]
call fcn.00444408
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.0048589c
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x4a877c
call fcn.00485a4c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00444684
test al, al
je 0x4a8721
lea ecx, [ebp - 4]
mov edx, 0x4a87f0
mov eax, dword [ebp - 0xc]
call fcn.00444ecc
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00470290
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4a871a
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4a8808
mov eax, dword [ebp - 8]
push eax
call fcn.0047e074
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x5ccd88]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8721
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 0x4a873e
mov eax, dword [ebp - 0xc]
call fcn.00483010
ret

Function at 0x4a886c
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 0x4a88b3
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4a8896
add bx, 0x2000
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4a88a7
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4a88b3
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x4b0180
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 0x4b0186
ret
Function at 0x4bb82c
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 0x4bb9e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x30], 0
jne 0x4bb9c5
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x4bb9c5
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 [0x4bb7f8]
call fcn.00486b68
add esp, 4
lea eax, [ebp - 4]
call fcn.00488238
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [0x5e77a0]
push eax
call fcn.005bd2f0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.004869a0
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.004829f4
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 [0x4aeac0]
call fcn.004b81b8
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], ebx
xor ecx, ecx
push ebp
push 0x4bb9a3
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, ebx
mov dl, 7
call fcn.004b9e34
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.004b8ad8
call fcn.004b31a4
push eax
call sub.GDI32.DLL_SetDIBits
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.004b8e44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4bb9c5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bb9f0
lea eax, [ebp - 8]
mov edx, dword [0x4bb7f8]
call fcn.00486c8c
lea eax, [ebp - 4]
call fcn.00488238
ret
Function at 0x4c40cc
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 0x4c40ed
test edi, 0x40000
je 0x4c4107
test bl, bl
jne 0x4c4188
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x4c4188
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 0x4c413a
push 0
push esi
call sub.USER32.DLL_ShowWindow
test bl, bl
je 0x4c414f
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongW
jmp 0x4c415e
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x4c416f
cmp byte [esp + 2], 0
je 0x4c4188
cmp byte [esp + 2], 0
je 0x4c4180
push 6
push esi
call sub.USER32.DLL_ShowWindow
jmp 0x4c4188
push 5
push esi
call sub.USER32.DLL_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4c4434
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 0x4c445a
mov eax, esp
push eax
push 0x4c43fc
call sub.USER32.DLL_EnumWindows
jmp 0x4c446d
mov eax, esp
push eax
push 0x4c43dc
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 0x4c4530
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x4c4580]
test bl, 4
je 0x4c4544
or si, 1
test bl, 8
je 0x4c454d
or si, 4
test bl, 1
je 0x4c4556
or si, 8
test bl, 2
je 0x4c455f
or si, 0x10
test bl, 0x10
je 0x4c4568
or si, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4c4578
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4c4584
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x4c45c0]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4c459f
or bx, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4c45af
or bx, 4
test esi, 0x20000000
je 0x4c45bb
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4cd1c0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4cd1d2
add esp, 0xfffffff0
call fcn.00483540
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043d958
mov eax, dword [0x5e753c]
mov dword [eax + 4], ebx
mov dword [eax], 0x4cd5fc
mov eax, dword [0x5e7540]
mov dword [eax + 4], ebx
mov dword [eax], 0x4cd608
mov eax, ebx
call fcn.004cd614
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x425f88]
call fcn.00482fe0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x425f88]
call fcn.00482fe0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x425f88]
call fcn.00482fe0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x425f88]
call fcn.00482fe0
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x425f88]
call fcn.00482fe0
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, 0x4c8038
push eax
push 0
push 0
call sub.USER32.DLL_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x4aacf0]
call fcn.004b1278
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x4aacf0]
call fcn.004b1278
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4aacf0]
call fcn.004b1278
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x4aacf0]
call fcn.004b1278
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4aacf0]
call fcn.004b1278
mov dword [ebx + 0x8c], eax
mov eax, ebx
call fcn.004cdb6c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4cd9dc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4cd9dc
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4cd9dc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4cd9dc
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4cd9dc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4cd349
call fcn.00483598
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4cd77c
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 0x4cd927
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4cd908
mov dl, 1
mov eax, dword [0x428764]
call fcn.004350c0
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
call fcn.00484994
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4cd8f7
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.004f4880
test al, al
je 0x4cd8ea
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, 0x4cd938
lea eax, [ebp - 0x394]
call fcn.004699a0
push eax
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x4cd8ea
xor eax, eax
push ebp
push 0x4cd8e3
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 0x4cd9a8
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x4cd8cc
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.0048589c
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 0x4cd8cc
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.0048589c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cd8ea
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4cd7ed
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.00434ffc
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 0x4cd92e
lea eax, [ebp - 0x3a0]
call fcn.00484994
ret

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

Disassembly:
push ecx
mov eax, dword [0x5ed380]
cmp byte [eax + 0xad], 0
jne 0x4ce4f6
cmp dword [0x5ed398], 0
jne 0x4ce4b6
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x5cd174]
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExW
mov dword [0x5ed398], eax
cmp dword [0x5ed394], 0
jne 0x4ce4d1
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventW
mov dword [0x5ed394], eax
cmp dword [0x5ed39c], 0
jne 0x4ce4f6
push esp
push 0
push 0
mov eax, dword [0x5cd27c]
push eax
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x5ed39c], eax
pop edx
ret