joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454284
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 0x454389
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x51f49c
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x51f4b4]
jne 0x4542d0
mov eax, esi
mov edx, 0x51f4b8
mov ecx, 0x55
call fcn.00452250
push 0x51f49c
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x454373
push 0x51f49c
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00452068
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x454341
cmp byte [0x51f498], 0
je 0x454306
mov edx, esi
mov eax, ebx
call fcn.00454164
jmp 0x454341
mov edx, esi
mov eax, ebx
call fcn.00453f64
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x454341
cmp dword [esi], 0
je 0x45432a
mov eax, esi
mov edx, 0x4543a4
call fcn.00452464
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00453f64
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00452464
push 0x51f49c
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x51f4b4], bx
push 0xaa
mov eax, dword [esi]
call fcn.004520f4
push eax
push 0x51f4b8
call sub.KERNEL32.DLL_lstrcpynW
push 0x51f49c
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454390
lea eax, [ebp - 4]
call fcn.00452058
ret
Function at 0x4545c8
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.00452050
xor eax, eax
push ebp
push 0x4547ad
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x454608
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x454622
push 0x105
mov eax, dword [ebp - 4]
call fcn.004520f4
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x454797
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4547bc
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4546b1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4547bc
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4546b1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4547f0
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4546b1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x454824
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x454797
xor eax, eax
push ebp
push 0x454790
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004543cc
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 0x454720
mov eax, dword [ebp - 0x10]
call fcn.0044f764
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.00452214
jmp 0x45476b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x454864
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x45476b
mov eax, dword [ebp - 0x10]
call fcn.0044f764
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x454864
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00452214
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454797
cmp dword [ebp - 8], 0
je 0x454786
mov eax, dword [ebp - 8]
call fcn.0044f780
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 0x4547b4
lea eax, [ebp - 4]
call fcn.00452058
ret
Function at 0x454a78
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.00452050
mov eax, dword [ebp - 0x21c]
call fcn.00452050
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x454c17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00452068
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004520f4
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 0x454b18
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x454b2a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x454b15
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x454be3
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 0x454b53
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.004545c8
cmp dword [ebp - 0x220], 0
je 0x454b8b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0045496c
pop ecx
mov ebx, eax
jmp 0x454be3
push ebp
call sub.KERNEL32.DLL_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00454284
mov eax, dword [ebp - 0x224]
call fcn.0045496c
pop ecx
mov ebx, eax
test bl, bl
jne 0x454bd6
cmp byte [0x51f498], 0
jne 0x454bd6
push ebp
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00454284
mov eax, dword [ebp - 0x228]
call fcn.0045496c
pop ecx
mov ebx, eax
test bl, bl
jne 0x454be3
push ebp
call fcn.00454a1c
pop ecx
mov ebx, eax
test bl, bl
je 0x454bf9
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00452250
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454c1e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00452060
ret

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

Disassembly:
sub dword [0x51d220], 1
jae 0x455535
call fcn.0044c700
call fcn.0044f540
call fcn.00453cb8
mov byte [0x510aac], 2
mov dword [0x51c944], 0x50b3e6
mov dword [0x51c948], 0x50b404
mov byte [0x51c98a], 2
call fcn.004553a0
mov dword [0x51c98c], eax
mov dword [0x51c930], 0x4532e4
call fcn.004502d4
mov word [0x51c994], 0xd7b0
mov word [0x51cc64], 0xd7b0
mov word [0x51cf34], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x51c97c], eax
call fcn.0044db38
mov dword [0x51c978], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x51d208], eax
mov dword [0x51d20c], 0x4b0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x51c970], eax
call fcn.004553b4
ret
Function at 0x4738cc
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.00452068
push 0
mov eax, esi
movzx eax, al
push eax
call sub.USER32.DLL_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x473913
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.00452250
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x479110
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 0x479249
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 [0x42d364]
call fcn.0042e568
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x47921f
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, SysStringLen
mov eax, dword [ebp - 0xc]
call fcn.0042e650
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00452250
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x479264
call fcn.00452524
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0042e8cc
test al, al
je 0x479209
lea ecx, [ebp - 4]
mov edx, 0x4792d8
mov eax, dword [ebp - 0xc]
call fcn.0042f1c8
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0043fccc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x479202
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4792f0
mov eax, dword [ebp - 8]
push eax
call fcn.0040ca34
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x511bf8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479209
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 0x479226
mov eax, dword [ebp - 0xc]
call fcn.00450420
ret

Function at 0x479354
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 0x47939b
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x47937e
add bx, 0x2000
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x47938f
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x47939b
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x48f2d8
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 0x48f2de
ret
Function at 0x49a84c
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 0x49aa09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x30], 0
jne 0x49a9e5
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x49a9e5
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 [0x49a818]
call fcn.00453960
add esp, 4
lea eax, [ebp - 4]
call fcn.00454dcc
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [0x51a060]
push eax
call fcn.0050bd54
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00453798
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.0044fde4
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 [0x48dc18]
call fcn.00497240
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], ebx
xor ecx, ecx
push ebp
push 0x49a9c3
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, ebx
mov dl, 7
call fcn.00498e54
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.00497b60
call fcn.004922c8
push eax
call sub.GDI32.DLL_SetDIBits
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.00497e64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49a9e5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49aa10
lea eax, [ebp - 8]
mov edx, dword [0x49a818]
call fcn.0045396c
lea eax, [ebp - 4]
call fcn.00454dcc
ret
Function at 0x4a4894
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 0x4a48b5
test edi, 0x40000
je 0x4a48cf
test bl, bl
jne 0x4a4950
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x4a4950
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 0x4a4902
push 0
push esi
call sub.USER32.DLL_ShowWindow
test bl, bl
je 0x4a4917
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongW
jmp 0x4a4926
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x4a4937
cmp byte [esp + 2], 0
je 0x4a4950
cmp byte [esp + 2], 0
je 0x4a4948
push 6
push esi
call sub.USER32.DLL_ShowWindow
jmp 0x4a4950
push 5
push esi
call sub.USER32.DLL_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4a4bfc
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 0x4a4c22
mov eax, esp
push eax
push 0x4a4bc4
call sub.USER32.DLL_EnumWindows
jmp 0x4a4c35
mov eax, esp
push eax
push 0x4a4ba4
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 0x4a4cf8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x4a4d48]
test bl, 4
je 0x4a4d0c
or si, 1
test bl, 8
je 0x4a4d15
or si, 4
test bl, 1
je 0x4a4d1e
or si, 8
test bl, 2
je 0x4a4d27
or si, 0x10
test bl, 0x10
je 0x4a4d30
or si, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4a4d40
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4a4d4c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x4a4d88]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4a4d67
or bx, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4a4d77
or bx, 4
test esi, 0x20000000
je 0x4a4d83
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4adde0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4addf2
add esp, 0xfffffff0
call fcn.00450954
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00429d4c
mov eax, dword [0x519ff8]
mov dword [eax + 4], ebx
mov dword [eax], 0x4ae23c
mov eax, dword [0x519ffc]
mov dword [eax + 4], ebx
mov dword [eax], 0x4ae248
mov eax, ebx
call fcn.004ae254
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x413224]
call fcn.004503f0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x413224]
call fcn.004503f0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x413224]
call fcn.004503f0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x413224]
call fcn.004503f0
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x413224]
call fcn.004503f0
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, 0x4a8b88
push eax
push 0
push 0
mov eax, dword [0x51a094]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x48a0ac]
call fcn.00490380
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x48a0ac]
call fcn.00490380
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x48a0ac]
call fcn.00490380
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x48a0ac]
call fcn.00490380
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x48a0ac]
call fcn.00490380
mov dword [ebx + 0x8c], eax
mov eax, ebx
call fcn.004ae7ac
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4ae61c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4ae61c
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4ae61c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4ae61c
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4ae61c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4adf6d
call fcn.004509ac
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4ae3bc
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 0x4ae569
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4ae54a
mov dl, 1
mov eax, dword [0x415924]
call fcn.004217b4
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
xor edx, edx
call fcn.00452068
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4ae539
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.004dc440
test al, al
je 0x4ae52c
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, 0x4ae578
lea eax, [ebp - 0x394]
call fcn.004399c0
push eax
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x4ae52c
xor eax, eax
push ebp
push 0x4ae525
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 0x4ae5e8
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x4ae50e
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.00452250
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 0x4ae50e
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.00452250
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae52c
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4ae42f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.004216f0
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 0x4ae570
lea eax, [ebp - 0x3a0]
call fcn.00452058
ret

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

Disassembly:
push ecx
mov eax, dword [0x51f66c]
cmp byte [eax + 0xad], 0
jne 0x4af13a
cmp dword [0x51f684], 0
jne 0x4af0fa
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x51200c]
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExW
mov dword [0x51f684], eax
cmp dword [0x51f680], 0
jne 0x4af115
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventW
mov dword [0x51f680], eax
cmp dword [0x51f688], 0
jne 0x4af13a
push esp
push 0
push 0
mov eax, dword [0x512114]
push eax
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x51f688], eax
pop edx
ret
Function at 0x4af460
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4af477
add esp, 0xfffffff0
call fcn.00450954
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00429d4c
mov eax, dword [0x519fbc]
cmp byte [eax], 0
jne 0x4af4a4
push 0
call sub.OLE32.DLL_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x51a000]
cmp word [eax + 2], 0
jne 0x4af4be
mov eax, dword [0x51a000]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004b1558
mov eax, dword [0x51a004]
cmp word [eax + 2], 0
jne 0x4af4d8
mov eax, dword [0x51a004]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004b1768
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x48a0ac]
call fcn.00490380
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4b1d18
mov dl, 1
mov eax, dword [0x413224]
call fcn.004503f0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x413224]
call fcn.004503f0
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x48e544]
call fcn.004997f0
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4af6b8
mov eax, dword [0x519fb4]
mov eax, dword [eax]
push eax
call sub.USER32.DLL_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00499c84
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4b2000
mov dl, 1
mov eax, dword [0x413224]
call fcn.004503f0
mov dword [ebx + 0x98], eax
push 0x100
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x519fb4]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0043980c
test eax, eax
je 0x4af5e9
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.004395f0
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.004397f0
test eax, eax
je 0x4af601
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.USER32.DLL_CharNextW
push eax
call sub.USER32.DLL_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, 0x100
call fcn.00452250
push ebx
push 0x4b0f28
call fcn.004a4cdc
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x519fbc]
cmp byte [eax], 0
jne 0x4af652
mov eax, ebx
call fcn.004af82c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004b222c
mov eax, ebx
call fcn.004b2e60
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4af6af
call fcn.004509ac
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret