joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b09a0
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 0x4b0a76
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004c2a4c
lea eax, [ebp - 4]
call fcn.004c3478
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004c2a84
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4b0a60
mov eax, ebx
call fcn.004bfa68
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4b0a59
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.004c2a84
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
test eax, eax
je 0x4b0a43
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4b0a88
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueW
test eax, eax
je 0x4b0a43
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 0x4b0a60
mov eax, dword [ebp - 0x10]
call fcn.004bfa84
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0a7d
lea eax, [ebp - 4]
call fcn.004c29e8
ret

Function at 0x4b1ce3
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004c1f30
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar
mov edi, eax
cmp edi, 0x104
jbe 0x4b1d06
mov eax, edi
add eax, eax
call fcn.004bfa68
mov esi, eax
jmp 0x4b1d08
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar
push edi
push esi
call sub.USER32.DLL_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4b1d41
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4b1d2b
mov eax, esp
cmp esi, eax
je 0x4b1d4e
mov eax, esi
call fcn.004bfa84
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x4b1d88
cmp bl, 0
je 0x4b1d84
cmp bl, 0x41
jl 0x4b1d7f
cmp bl, 0x5a
jg 0x4b1d7f
or bl, 0x20
xor al, bl
inc esi
jmp 0x4b1d63
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4b1cc8

Function at 0x4bfefc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004c29f8
test esi, esi
jne 0x4bff34
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004c2b34
jmp 0x4bff52
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004bfde0
mov edi, eax
test esi, esi
je 0x4bff52
cmp dword [ebx], 0
je 0x4bff52
dec esi
jmp 0x4bff3b
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x4bff84
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x7a9c00], 0x8088405
inc edx
mov dword [ebx + 0x7a9c00], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4c078c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x7a9c08]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4c0824
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x4c0804
xor eax, eax
push ebp
push 0x4c07fd
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 0x4c085c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0804
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
movzx eax, word [0x7a9c08]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x7a9c08], ax
mov esp, ebp
pop ebp
ret

Function at 0x4c18f4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x7bc50c], 0
je 0x4c1955
cmp word [0x7bc7e8], 0xd7b2
jne 0x4c191d
cmp dword [0x7bc7f0], 0
jbe 0x4c191d
mov eax, 0x7bc7e4
call dword [0x7bc800]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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 0x4c1980
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x7a9c18], 0
jne 0x4c1971
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x4c1b20
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 [0x7a9bf0], 0
je 0x4c1b46
mov edx, esi
mov eax, ebx
call dword [0x7a9bf0]
jmp 0x4c1b55
mov eax, 8
call fcn.004bfa68
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x7bc50d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4c1ae8
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 0x4c5568
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 0x4c5620
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x7bcda4], 1
jae 0x4c56cd
call fcn.004bf844
mov byte [0x7a9c04], 2
mov dword [0x7bc4c8], 0x78773c
mov dword [0x7bc4cc], 0x787766
mov byte [0x7bc50e], 2
call fcn.004c5568
mov dword [0x7bc510], eax
mov dword [0x7bc4b4], 0x4c3f24
call fcn.004c075c
test al, al
je 0x4c5676
call fcn.004c078c
call fcn.004c0878
mov word [0x7bc518], 0xd7b0
mov word [0x7bc7e8], 0xd7b0
mov word [0x7bcab8], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x7bc500], eax
call fcn.004bde3c
mov dword [0x7bc4fc], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x7bcd8c], eax
mov dword [0x7bcd90], 0x4b0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x7bc4f4], eax
call fcn.004c557c
ret
Function at 0x4e31bc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea esi, [ebp - 4]
xor eax, eax
push ebp
push 0x4e339e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [esi]
call fcn.0053227c
mov eax, dword [esi]
cmp byte [eax + 0x268], 0
je 0x4e3383
call sub.KERNEL32.DLL_GetTickCount
mov edx, dword [esi]
sub eax, dword [edx + 0x278]
mov edx, dword [esi]
cmp eax, dword [edx + 0x2d0]
jb 0x4e3224
mov eax, dword [esi]
add eax, 0x274
xor edx, edx
call fcn.004c29f8
call sub.KERNEL32.DLL_GetTickCount
mov edx, dword [esi]
mov dword [edx + 0x278], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp ax, 8
je 0x4e330a
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp ax, 0xd800
jb 0x4e3253
cmp ax, 0xdfff
jbe 0x4e3257
xor eax, eax
jmp 0x4e3259
mov al, 1
test al, al
je 0x4e32c7
push 1
push 0x102
push 0x102
mov eax, dword [esi]
call fcn.005333f8
push eax
lea eax, [ebp - 0x24]
push eax
call sub.USER32.DLL_PeekMessageW
test eax, eax
je 0x4e334e
mov eax, dword [esi]
push dword [eax + 0x274]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
movzx edx, word [edx]
call fcn.004c2b74
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
call fcn.004c2b74
push dword [ebp - 0x2c]
mov eax, dword [esi]
add eax, 0x274
mov edx, 3
call fcn.004c2fc0
mov eax, dword [ebp - 8]
mov word [eax], 0
jmp 0x4e334e
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
movzx edx, word [edx]
call fcn.004c2b74
mov edx, dword [ebp - 0x30]
mov eax, dword [esi]
add eax, 0x274
call fcn.004c2e1c
jmp 0x4e334e
mov eax, dword [esi]
mov ebx, dword [eax + 0x274]
test ebx, ebx
je 0x4e32f7
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esi]
add eax, 0x274
mov ecx, 1
mov edx, ebx
call fcn.004c3284
mov eax, dword [esi]
mov eax, dword [eax + 0x274]
call fcn.004c2d78
mov edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x274]
call fcn.004b0b2c
cmp al, 2
je 0x4e32e6
mov eax, dword [esi]
mov eax, dword [eax + 0x274]
test eax, eax
je 0x4e333b
sub eax, 4
mov eax, dword [eax]
mov edx, dword [esi]
add edx, 0x274
mov ecx, 1
xchg edx, eax
call fcn.004c3284
mov eax, dword [esi]
mov eax, dword [eax + 0x274]
test eax, eax
je 0x4e335f
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x4e336c
push ebp
call fcn.004e30d4
pop ecx
jmp 0x4e3383
xor edx, edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, dword [esi]
mov si, 0xffeb
call fcn.004c0c04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e33a5
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004c29f0
ret
Function at 0x4e5070
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.004c29f8
push 0
mov eax, esi
movzx eax, al
push eax
call sub.USER32.DLL_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4e50b7
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.004c2c08
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x4ea614
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 0x4ea74d
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 [sym.StartupControl.exe__Registry_TRegistry_]
call sym.StartupControl.exe__Registry_TRegistry__bctr_qqrv
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4ea723
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, SysStringLen
mov eax, dword [ebp - 0xc]
call sym.StartupControl.exe__Registry_TRegistry_SetRootKey_qqrp6HKEY__
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.004c2c08
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x4ea768
call fcn.004c2edc
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call sym.StartupControl.exe__Registry_TRegistry_OpenKeyReadOnly_qqrx20System_UnicodeString
test al, al
je 0x4ea70d
lea ecx, [ebp - 4]
mov edx, 0x4ea7dc
mov eax, dword [ebp - 0xc]
call sym.StartupControl.exe__Registry_TRegistry_ReadString_qqrx20System_UnicodeString
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.004b2528
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4ea706
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4ea7f4
mov eax, dword [ebp - 8]
push eax
call fcn.0048c3e8
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x7aace4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ea70d
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 0x4ea72a
mov eax, dword [ebp - 0xc]
call fcn.004c09bc
ret

Function at 0x4ea858
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 0x4ea89f
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4ea882
add bx, 0x2000
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4ea893
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4ea89f
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4fb374
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 0x4fb37a
ret
Function at 0x5093ec
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 0x50940d
test edi, 0x40000
je 0x509427
test bl, bl
jne 0x5094a8
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x5094a8
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 0x50945a
push 0
push esi
call sub.USER32.DLL_ShowWindow
test bl, bl
je 0x50946f
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongW
jmp 0x50947e
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x50948f
cmp byte [esp + 2], 0
je 0x5094a8
cmp byte [esp + 2], 0
je 0x5094a0
push 6
push esi
call sub.USER32.DLL_ShowWindow
jmp 0x5094a8
push 5
push esi
call sub.USER32.DLL_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x509754
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 0x50977a
mov eax, esp
push eax
push 0x50971c
call sub.USER32.DLL_EnumWindows
jmp 0x50978d
mov eax, esp
push eax
push 0x5096fc
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 0x509850
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x5098a4]
test si, 4
je 0x509865
or bl, 1
test si, 8
je 0x50986f
or bl, 4
test si, 1
je 0x509879
or bl, 8
test si, 2
je 0x509883
or bl, 0x10
test si, 0x10
je 0x50988d
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x50989c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x5098a8
Capabilities:
Log keystrokes via polling

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

Function at 0x509934
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add esp, 0xffffff00
push esp
call sub.USER32.DLL_GetKeyboardState
mov eax, esp
call fcn.005098e8
mov ebx, eax
mov eax, ebx
add esp, 0x100
pop ebx
ret
Function at 0x5122dc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x5122ee
add esp, 0xfffffff0
call fcn.004c0ea0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0049f8a4
mov eax, dword [0x7b96b0]
mov dword [eax + 4], ebx
mov dword [eax], 0x5126f0
mov eax, dword [0x7b96b4]
mov dword [eax + 4], ebx
mov dword [eax], 0x5126fc
mov eax, ebx
call fcn.00512708
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x492478]
call fcn.004c098c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x492478]
call fcn.004c098c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x492478]
call fcn.004c098c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x492478]
call fcn.004c098c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x492478]
call fcn.004c098c
mov dword [ebx + 0x74], 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, 0x50d524
push eax
push 0
push 0
mov eax, dword [0x7b9bb4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4fa560]
call fcn.004fc3f4
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x4fa560]
call fcn.004fc3f4
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x4fa560]
call fcn.004fc3f4
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x4fa560]
call fcn.004fc3f4
mov dword [ebx + 0x84], eax
mov eax, ebx
call fcn.00512c9c
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x512b24
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x512b24
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x512b24
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x512b24
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x512441
call fcn.004c0ef8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5128c4
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 0x512a71
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x512a52
mov dl, 1
mov eax, dword [0x492bcc]
call fcn.00498728
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
xor edx, edx
call fcn.004c29f8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x512a41
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.00538f54
test al, al
je 0x512a34
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, 0x512a80
lea eax, [ebp - 0x394]
call fcn.004ac0b8
push eax
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x512a34
xor eax, eax
push ebp
push 0x512a2d
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 0x512af0
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x512a16
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.004c2c08
mov edx, dword [ebp - 0x3a0]
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 0x512a16
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x314]
mov ecx, 0x100
call fcn.004c2c08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x512a34
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x512937
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.00498514
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 0x512a78
lea eax, [ebp - 0x3a0]
call fcn.004c29e8
ret

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

Disassembly:
push ecx
mov eax, dword [0x7bf110]
cmp byte [eax + 0xa9], 0
jne 0x513522
cmp dword [0x7bf128], 0
jne 0x5134e2
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x7ab0d4]
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExW
mov dword [0x7bf128], eax
cmp dword [0x7bf124], 0
jne 0x5134fd
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventW
mov dword [0x7bf124], eax
cmp dword [0x7bf12c], 0
jne 0x513522
push esp
push 0
push 0
mov eax, dword [0x7ab1d8]
push eax
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x7bf12c], eax
pop edx
ret
Function at 0x513764
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x51377b
add esp, 0xfffffff0
call fcn.004c0ea0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0049f8a4
mov eax, dword [0x7b9560]
cmp byte [eax], 0
jne 0x5137a8
push 0
call sub.OLE32.DLL_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x7b96b8]
cmp word [eax + 2], 0
jne 0x5137c2
mov eax, dword [0x7b96b8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00515738
mov eax, dword [0x7b96bc]
cmp word [eax + 2], 0
jne 0x5137dc
mov eax, dword [0x7b96bc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00515948
mov byte [ebx + 0x31], 0
mov dl, 1
mov eax, dword [0x4fa560]
call fcn.004fc3f4
mov esi, eax
mov dword [ebx + 0x38], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x515ddc
mov dl, 1
mov eax, dword [0x492478]
call fcn.004c098c
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x492478]
call fcn.004c098c
mov dword [ebx + 0xac], eax
xor eax, eax
mov dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x58], 0xff000018
mov dword [ebx + 0x74], 0x1f4
mov byte [ebx + 0x78], 1
xor eax, eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x70], 0x9c4
mov byte [ebx + 0x84], 0
mov byte [ebx + 0xa1], 1
mov byte [ebx + 0xb8], 1
mov dl, 1
mov eax, dword [0x4fb184]
call fcn.0050459c
mov esi, eax
mov dword [ebx + 0x9c], esi
push 0x5139b8
mov eax, dword [0x7b9558]
mov eax, dword [eax]
push eax
call sub.USER32.DLL_LoadIconW
mov edx, eax
mov eax, esi
call fcn.005049dc
mov eax, dword [ebx + 0x9c]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x51608c
mov dl, 1
mov eax, dword [0x492478]
call fcn.004c098c
mov dword [ebx + 0x94], eax
push 0x100
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x7b9558]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.004abed8
test eax, eax
je 0x5138ea
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.004abcc4
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.004abec0
test eax, eax
je 0x513902
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 + 0x88]
lea edx, [ebp - 0x202]
mov ecx, 0x100
call fcn.004c2c08
push ebx
push 0x515108
call fcn.00509834
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xcc], 0
mov eax, dword [0x7b9560]
cmp byte [eax], 0
jne 0x513953
mov eax, ebx
call fcn.00513b2c
mov byte [ebx + 0x55], 1
mov byte [ebx + 0x56], 1
mov byte [ebx + 0x57], 1
mov byte [ebx + 0xa2], 1
mov byte [ebx + 0xcd], 0
mov byte [ebx + 0xd8], 0
xor eax, eax
mov dword [ebx + 0xd0], eax
mov byte [ebx + 0xcf], 0
xor eax, eax
mov dword [ebx + 0xa4], eax
mov eax, ebx
call fcn.005162b4
mov eax, ebx
call fcn.00516e78
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5139b0
call fcn.004c0ef8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret