joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4696c8
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 0x46982d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00466eb4
cmp si, word [0x57f998]
jb 0x469760
cmp si, word [0x57fb98]
ja 0x469760
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x469760
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x57f998]
jae 0x46973a
mov edi, ebx
dec edi
jmp 0x46975b
cmp si, word [ebx*8 + 0x57f998]
jbe 0x46974a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x46975b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x57f99c]
call fcn.004695d8
jmp 0x469760
cmp edi, dword [ebp - 8]
jae 0x469724
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x46980f
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x46980f
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.00467d04
push dword [ebp - 0x160]
push 0x469848
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00467d04
push dword [ebp - 0x164]
push 0x469858
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00467d04
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00467f3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469834
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00466f14
ret
Function at 0x4699e0
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 0x469ae3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x590421
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x59043a]
jne 0x469a2c
mov eax, esi
mov edx, 0x59043c
mov ecx, 0x55
call fcn.00467d04
push 0x590421
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x469acd
push 0x590421
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.00466eb4
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x469a9b
cmp byte [0x590420], 0
je 0x469a60
mov edx, esi
mov eax, ebx
call fcn.004698c4
jmp 0x469a9b
mov edx, esi
mov eax, ebx
call fcn.004696c8
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x469a9b
cmp dword [esi], 0
je 0x469a84
mov eax, esi
mov edx, 0x469afc
call fcn.00467e5c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004696c8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00467e5c
push 0x590421
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x59043a], bx
push 0xaa
mov eax, dword [esi]
call fcn.00467c60
push eax
push 0x59043c
call sub.KERNEL32.DLL_lstrcpynW
push 0x590421
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469aea
lea eax, [ebp - 4]
call fcn.00466eb4
ret
Function at 0x469d18
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.00466f98
xor eax, eax
push ebp
push 0x469f3d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x469d58
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x469d72
push 0x105
mov eax, dword [ebp - 4]
call fcn.00467c60
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x469f27
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x469f4c
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x469e41
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x469f4c
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x469e41
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x469f88
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x469e41
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x469f88
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x469e41
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x469fbc
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x469e41
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x469ff0
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x469f27
xor eax, eax
push ebp
push 0x469f20
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00469b24
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 0x469eb0
mov eax, dword [ebp - 0x10]
call fcn.0046489c
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.00467cb0
jmp 0x469efb
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x46a030
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x469efb
mov eax, dword [ebp - 0x10]
call fcn.0046489c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x46a030
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00467cb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469f27
cmp dword [ebp - 8], 0
je 0x469f16
mov eax, dword [ebp - 8]
call fcn.004648b8
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 0x469f44
lea eax, [ebp - 4]
call fcn.00466eb4
ret
Function at 0x46a27c
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.00466f98
xor eax, eax
push ebp
push 0x46a33c
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.00467d04
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00467eb4
mov eax, dword [ebx]
call fcn.0046a144
test al, al
jne 0x46a319
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00467d04
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00467eb4
mov eax, dword [ebx]
call fcn.0046a144
test al, al
jne 0x46a319
mov eax, ebx
call fcn.00466eb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a343
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00466f14
lea eax, [ebp - 4]
call fcn.00466eb4
ret

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

Disassembly:
sub dword [0x58e1ac], 1
jae 0x46ad89
call fcn.004615f4
call fcn.0046465c
call fcn.00469470
mov byte [0x57f1c4], 2
mov dword [0x58d8d4], 0x57c534
mov dword [0x58d8d8], 0x57c552
mov byte [0x58d91a], 2
call fcn.0046ac00
mov dword [0x58d91c], eax
mov dword [0x58d8c0], 0x468a30
call fcn.004653d4
mov word [0x58d924], 0xd7b0
mov word [0x58dbf4], 0xd7b0
mov word [0x58dec4], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x58d90c], eax
call fcn.00462c50
mov dword [0x58d908], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x58e194], eax
mov dword [0x58e198], 0x4b0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x58d900], eax
call fcn.0046ac14
ret

Function at 0x480b18
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.00466eb4
push 0
mov eax, esi
movzx eax, al
push eax
call sub.USER32.DLL_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x480b5d
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.00467d04
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x48610c
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 0x486245
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 [0x429568]
call fcn.0042a6a4
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x48621b
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, SysStringLen
mov eax, dword [ebp - 0xc]
call fcn.0042a78c
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00467d04
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x486260
call fcn.00467eb4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0042aa08
test al, al
je 0x486205
lea ecx, [ebp - 4]
mov edx, 0x4862d4
mov eax, dword [ebp - 0xc]
call fcn.0042b250
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.004527fc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4861fe
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4862ec
mov eax, dword [ebp - 8]
push eax
call fcn.004605e0
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x580254]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486205
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 0x486222
mov eax, dword [ebp - 0xc]
call fcn.00465500
ret

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

Function at 0x48dc64
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 0x48dc6a
ret
Function at 0x4992ec
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 0x4994a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x30], 0
jne 0x499485
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x499485
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 [0x4992b8]
call fcn.00469000
add esp, 4
lea eax, [ebp - 4]
call fcn.0046a6d0
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [0x58ad7c]
push eax
call fcn.0057ce84
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00468e38
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.00464ee4
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 [0x48c5a4]
call fcn.00495c78
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], ebx
xor ecx, ecx
push ebp
push 0x499463
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, ebx
mov dl, 7
call fcn.004978f4
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.00496598
call fcn.00490c64
push eax
call sub.GDI32.DLL_SetDIBits
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.00496904
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x499485
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4994b0
lea eax, [ebp - 8]
mov edx, dword [0x4992b8]
call fcn.00469124
lea eax, [ebp - 4]
call fcn.0046a6d0
ret
Function at 0x4a1b8c
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 0x4a1bad
test edi, 0x40000
je 0x4a1bc7
test bl, bl
jne 0x4a1c48
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x4a1c48
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 0x4a1bfa
push 0
push esi
call sub.USER32.DLL_ShowWindow
test bl, bl
je 0x4a1c0f
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongW
jmp 0x4a1c1e
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x4a1c2f
cmp byte [esp + 2], 0
je 0x4a1c48
cmp byte [esp + 2], 0
je 0x4a1c40
push 6
push esi
call sub.USER32.DLL_ShowWindow
jmp 0x4a1c48
push 5
push esi
call sub.USER32.DLL_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4a1ef4
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 0x4a1f1a
mov eax, esp
push eax
push 0x4a1ebc
call sub.USER32.DLL_EnumWindows
jmp 0x4a1f2d
mov eax, esp
push eax
push 0x4a1e9c
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 0x4a1ff0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x4a2040]
test bl, 4
je 0x4a2004
or si, 1
test bl, 8
je 0x4a200d
or si, 4
test bl, 1
je 0x4a2016
or si, 8
test bl, 2
je 0x4a201f
or si, 0x10
test bl, 0x10
je 0x4a2028
or si, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4a2038
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4a2044
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x4a2080]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4a205f
or bx, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4a206f
or bx, 4
test esi, 0x20000000
je 0x4a207b
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4aac80
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4aac92
add esp, 0xfffffff0
call fcn.00465a30
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00424cd8
mov eax, dword [0x58aaf8]
mov dword [eax + 4], ebx
mov dword [eax], 0x4ab0bc
mov eax, dword [0x58aafc]
mov dword [eax + 4], ebx
mov dword [eax], 0x4ab0c8
mov eax, ebx
call fcn.004ab0d4
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x40d354]
call fcn.004654d0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x40d354]
call fcn.004654d0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x40d354]
call fcn.004654d0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x40d354]
call fcn.004654d0
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x40d354]
call fcn.004654d0
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, 0x4a5af8
push eax
push 0
push 0
call sub.USER32.DLL_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x4887d4]
call fcn.0048ed38
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x4887d4]
call fcn.0048ed38
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4887d4]
call fcn.0048ed38
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x4887d4]
call fcn.0048ed38
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4887d4]
call fcn.0048ed38
mov dword [ebx + 0x8c], eax
mov eax, ebx
call fcn.004ab62c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4ab49c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4ab49c
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4ab49c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4ab49c
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4ab49c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4aae09
call fcn.00465a88
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4ab23c
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 0x4ab3e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4ab3c8
mov dl, 1
mov eax, dword [0x40fc68]
call fcn.0041c42c
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
call fcn.00466eb4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4ab3b7
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.004d4650
test al, al
je 0x4ab3aa
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, 0x4ab3f8
lea eax, [ebp - 0x394]
call fcn.0044bf20
push eax
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x4ab3aa
xor eax, eax
push ebp
push 0x4ab3a3
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 0x4ab468
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x4ab38c
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.00467d04
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 0x4ab38c
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.00467d04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab3aa
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4ab2ad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.0041c368
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 0x4ab3ee
lea eax, [ebp - 0x3a0]
call fcn.00466eb4
ret

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

Disassembly:
push ecx
mov eax, dword [0x5905b8]
cmp byte [eax + 0xad], 0
jne 0x4abfb6
cmp dword [0x5905d0], 0
jne 0x4abf76
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x580640]
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExW
mov dword [0x5905d0], eax
cmp dword [0x5905cc], 0
jne 0x4abf91
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventW
mov dword [0x5905cc], eax
cmp dword [0x5905d4], 0
jne 0x4abfb6
push esp
push 0
push 0
mov eax, dword [0x580748]
push eax
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x5905d4], eax
pop edx
ret