joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401584
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401596
mov eax, dword [0x53208b]
shl eax, 2
mov dword [0x53208f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0051e8a0
pop edx
call fcn.0051e7c8
call fcn.0051e8e0
push 0
call fcn.0051f9a4
pop ecx
push 0x532034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x532093], eax
push 0
jmp fcn.00526de8

Function at 0x414d44
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x53b478
cmp dword [edi], 0
jne 0x414dc0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x53b474]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x53283c
mov ecx, 2
call fcn.0042b018
mov edx, 0x414d1c
lea eax, [esi + 5]
call fcn.00414d3c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00414d3c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x414d95
mov dword [0x53b474], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x417398
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0042ceac
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4173f0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x53afcc]
mov dl, 1
mov eax, dword [0x416ebc]
call fcn.0041e264
call fcn.0042c428
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00416fc4
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x419920
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4199b0
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4199b0
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x419963
test edx, 3
jne 0x419952
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x41995d
jmp 0x419963
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x419963
cmp dword [ecx - 8], 1
je 0x41996d
mov edx, ebx
or edx, 3
call fcn.0042d134
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x41997f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.0042c9e8
Function at 0x4199bc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x419a4c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x419a4c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4199ff
test edx, 3
jne 0x4199ee
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4199f9
jmp 0x4199ff
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4199ff
cmp dword [ecx - 8], 1
je 0x419a09
mov edx, ebx
or edx, 3
call fcn.0042d134
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x419a1b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.0042c9e8

Function at 0x41a6d4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0042ceac
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x41a6ed
test al, 0x10
je 0x41a6f1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x41d980
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x41d9b9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0042cad8
jmp 0x41d9c2
mov eax, ebx
mov edx, esi
call fcn.0042ca3c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41d9cc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x41d9ee
movzx eax, byte [esp]
jmp 0x41d9f0
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x41e9fc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41ead2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0042ca80
lea eax, [ebp - 4]
call fcn.0042cefc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0042ceac
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x41eabc
mov eax, ebx
call fcn.0042adb8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41eab5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0042ceac
push eax
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x41ea9f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41eae4
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x41ea9f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41eabc
mov eax, dword [ebp - 0x10]
call fcn.0042add4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ead9
lea eax, [ebp - 4]
call fcn.0042c9e8
ret

Function at 0x42b974
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x532d78]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x42ba0c
push reloc.OLEAUT32.DLL_SysReAllocString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x42b9ec
xor eax, eax
push ebp
push 0x42b9e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x42ba28
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b9ec
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
movzx eax, word [0x532d78]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x532d78], ax
mov esp, ebp
pop ebp
ret

Function at 0x42c7b4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x53bfd8], 0
je 0x42c815
cmp word [0x53c1ac], 0xd7b2
jne 0x42c7dd
cmp dword [0x53c1b4], 0
jbe 0x42c7dd
mov eax, 0x53c1a8
call dword [0x53c1c4]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x42c83c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x532d84], 0
jne 0x42c831
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x42c96c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x532d64], 0
je 0x42c992
mov edx, esi
mov eax, ebx
call dword [0x532d64]
jmp 0x42c9a1
mov eax, 8
call fcn.0042adb8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x53bfd9], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x42c934
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x42e340
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x42e570
push SysReAllocString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x42e3c3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x42e570
push reloc.OLEAUT32.DLL_SysReAllocString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x42e3c3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x42e58c
push SysReAllocString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x42e44c
xor eax, eax
push ebp
push 0x42e445
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0042e17c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x42e42a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x42e5ac
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x42e42a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e44c
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x42e566
cmp byte [ebp - 0xd], 0
jne 0x42e493
cmp byte [ebp - 0x12], 0
je 0x42e566
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x42e4ac
dec ebx
cmp byte [ebx], 0x2e
je 0x42e4bb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x42e4ab
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x42e566
inc ebx
cmp byte [ebp - 0x12], 0
je 0x42e4f8
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x42e566
cmp byte [ebp - 0xd], 0
je 0x42e566
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x42e566
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ecb8
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x53c550], 1
jae 0x42ed4c
call fcn.0042ab94
mov byte [0x532d74], 2
mov dword [0x53bf9c], 0x531202
mov dword [0x53bfa0], 0x531220
mov byte [0x53bfda], 2
mov dword [0x53bf88], 0x42db1c
call fcn.0042b944
test al, al
je 0x42ed04
call fcn.0042b974
call fcn.0042ba38
mov word [0x53bfe0], 0xd7b0
mov word [0x53c1ac], 0xd7b0
mov word [0x53c378], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x53bfcc], eax
call fcn.00429454
mov dword [0x53bfc8], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x53c554], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x53bfc0], eax
ret

Function at 0x44870c
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.0042c9e8
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44875a
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.0042cc58
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44c7dc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44c90f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.USER32.DLL_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x416f1c]
call fcn.00416fec
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x44c8e5
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, reloc.OLEAUT32.DLL_SysReAllocString
mov eax, dword [ebp - 0xc]
call fcn.0041708c
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.0042cc58
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x44c924
call fcn.0042ccf8
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004170f0
lea ecx, [ebp - 4]
mov edx, 0x44c960
mov eax, dword [ebp - 0xc]
call fcn.00417320
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0041fea4
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x44c8c8
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x44c96c
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x533d9c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c8cf
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeLibrary
ret
Function at 0x44c9bc
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 0x44ca03
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x44c9e6
add bx, 0x2000
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x44c9f7
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x44ca03
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x459f50
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 0x459f56
ret
Function at 0x4667e4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x466838]
test si, 4
je 0x4667f9
or bl, 1
test si, 8
je 0x466803
or bl, 4
test si, 1
je 0x46680d
or bl, 8
test si, 2
je 0x466817
or bl, 0x10
test si, 0x10
je 0x466821
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x466830
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46683c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x466878]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x466856
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x466865
or bl, 4
test esi, 0x20000000
je 0x466870
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46e308
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46e31a
add esp, 0xfffffff0
call fcn.0042bed8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00413c84
mov eax, dword [0x53af20]
mov dword [eax + 4], ebx
mov dword [eax], 0x46e6ac
mov eax, dword [0x53af24]
mov dword [eax + 4], ebx
mov dword [eax], 0x46e6b8
mov eax, ebx
call fcn.0046e6c4
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x407730]
call fcn.0042bb44
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x407730]
call fcn.0042bb44
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x407730]
call fcn.0042bb44
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x407730]
call fcn.0042bb44
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x407730]
call fcn.0042bb44
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, 0x46a15c
push eax
push 0
push 0
mov eax, dword [0x53afa8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x45927c]
call fcn.0045aad0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x45927c]
call fcn.0045aad0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x45927c]
call fcn.0045aad0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046ebcc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46ea54
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46ea54
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46ea54
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46e457
call fcn.0042bf30
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46e838
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 0x46e9e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46e9c4
mov dl, 1
mov eax, dword [0x407f10]
call fcn.0042bb44
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0042c9e8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46e9b3
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.0048bc40
test al, al
je 0x46e9a6
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, 0x46e9f4
lea eax, [ebp - 0x254]
call fcn.0041af7c
push eax
push reloc.OLEAUT32.DLL_SysReAllocString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x46e9a6
xor eax, eax
push ebp
push 0x46e99f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x46ea2c
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x46e988
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.0042cc58
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 0x46e988
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.0042cc58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e9a6
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46e8a9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0040d0c4
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 0x46e9ea
lea eax, [ebp - 0x260]
call fcn.0042c9e8
ret

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

Disassembly:
push ecx
mov eax, dword [0x53e89c]
cmp byte [eax + 0xad], 0
jne 0x46f415
cmp dword [0x53e8b4], 0
jne 0x46f3d6
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x46f360
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x53e8b4], eax
cmp dword [0x53e8b0], 0
jne 0x46f3f1
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x53e8b0], eax
cmp dword [0x53e8b8], 0
jne 0x46f415
push esp
push 0
push 0
push 0x46f304
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x53e8b8], eax
pop edx
ret
Function at 0x46f618
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46f62f
add esp, 0xfffffff0
call fcn.0042bed8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00413c84
mov eax, dword [0x53af28]
cmp word [eax + 2], 0
jne 0x46f657
mov eax, dword [0x53af28]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00471170
mov eax, dword [0x53af2c]
cmp word [eax + 2], 0
jne 0x46f671
mov eax, dword [0x53af2c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0047137c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x407730]
call fcn.0042bb44
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x407730]
call fcn.0042bb44
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x407730]
call fcn.0042bb44
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 [0x459d8c]
call fcn.00462348
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x46f828
mov eax, dword [0x53aee4]
mov eax, dword [eax]
push eax
call sub.USER32.DLL_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0046271c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x471a3c
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x53aee4]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.USER32.DLL_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0041efb4
test eax, eax
je 0x46f778
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0041a920
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0041efe8
test eax, eax
je 0x46f78c
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.USER32.DLL_CharNextA
push eax
call sub.USER32.DLL_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.0042cc58
mov byte [ebx + 0xd4], 0
push ebx
push 0x470cb8
call fcn.00414e00
mov dword [ebx + 0xc8], eax
mov eax, dword [0x53aeec]
cmp byte [eax], 0
jne 0x46f7dd
mov eax, ebx
call fcn.0046f96c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00471c18
mov eax, ebx
call fcn.00472778
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46f81d
call fcn.0042bf30
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret