joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42af60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42af8b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42afaf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42afca
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x42e012
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x42e04a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0042d0de
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042d0b6
jmp 0x42e056
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x42e05a
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x466820
mov ecx, edi
call fcn.0042cde7
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x42e0ad
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x42e0c0
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0042d0de
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0042d0b6
jmp 0x42e0c0
mov ecx, esi
call fcn.0043026d
test eax, eax
je 0x42e0c0
push edi
mov ecx, eax
call fcn.0042e012
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x42f6bc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x42f6fe
call fcn.00434a99
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42f6fe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42f6f5
xor eax, eax
jmp 0x42f706
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042f70c
pop edi
pop esi
pop ebx
ret 4
Function at 0x431351
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x431381
push edi
call ebx
push eax
call fcn.00431b88
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x4313ab
test byte [ebp - 4], 1
je 0x4313ab
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4313ab
push edi
call ebx
push eax
call fcn.00431b88
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x431451
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0043129e
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x4313dd
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.0043129e
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x4313f3
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0043129e
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43141d
push 0
call ebx
push eax
call fcn.00431b88
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x43143b
push eax
call ebx
push eax
call fcn.00431b88
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x43144f
push eax
call ebx
push eax
call fcn.00431b88
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x431478
test byte [ebp - 4], 1
jne 0x431478
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x431478
push edi
call ebx
push eax
call fcn.00431b88
pop edi
pop ebx
leave
ret 8

Function at 0x435607
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x435635
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x435653
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043556d
jmp 0x435653
mov eax, dword [esi + 0x14]
test eax, eax
je 0x435653
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0043556d
test edi, edi
mov eax, edi
jne 0x43563d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x4c249f]
shl eax, 2
mov dword [0x4c24a3], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004b51d4
pop edx
call fcn.004b5138
call fcn.004b5214
push 0
call fcn.004b64b8
pop ecx
push 0x4c2448
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4c24a7], eax
push 0
jmp fcn.004bc7fc
Function at 0x409414
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
lea ebx, [ebp - 0x3c]
mov eax, 0x4c57cc
call fcn.004b58a4
mov word [ebx + 0x10], 8
xor edx, edx
xor ecx, ecx
mov dword [ebp - 4], edx
xor eax, eax
inc dword [ebx + 0x1c]
lea edx, [ebp - 0xc]
mov word [ebx + 0x10], 0x14
mov word [ebx + 0x10], 0x20
mov dword [ebp - 8], ecx
inc dword [ebx + 0x1c]
mov word [ebx + 0x10], 0x14
mov word [ebx + 0x10], 0x2c
mov dword [ebp - 0xc], eax
inc dword [ebx + 0x1c]
mov ecx, dword [0x4eda5c]
mov eax, dword [ecx]
call fcn.00475494
lea eax, [ebp - 0xc]
mov eax, dword [eax]
xor edx, edx
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x10]
inc dword [ebx + 0x1c]
call fcn.004ac97c
lea edx, [ebp - 0x10]
lea eax, [ebp - 8]
call fcn.004c1034
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004c1004
dec dword [ebx + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004c1004
mov word [ebx + 0x10], 0x38
mov edx, str.Help_
lea eax, [ebp - 0x14]
call fcn.004c0ef0
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x14]
lea eax, [ebp - 8]
call fcn.004c1048
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004c1004
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.004c1034
mov word [ebx + 0x10], 0x44
mov edx, str.index.html
lea eax, [ebp - 0x18]
call fcn.004c0ef0
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x18]
lea eax, [ebp - 4]
call fcn.004c1048
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004c1004
push 1
cmp dword [ebp - 8], 0
je 0x409528
mov ecx, dword [ebp - 8]
jmp 0x40952d
mov ecx, 0x4c34a5
push ecx
push 0
cmp dword [ebp - 4], 0
je 0x40953b
mov eax, dword [ebp - 4]
jmp 0x409540
mov eax, 0x4c34a4
mov edx, dword [0x4eda5c]
push eax
push 0x4c349f
mov ecx, dword [edx]
mov eax, dword [ecx + 0x24]
push eax
call sub.SHELL32.DLL_ShellExecuteA
dec dword [ebx + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004c1004
dec dword [ebx + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004c1004
mov ecx, dword [ebx]
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450874
Capabilities:
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
lea ecx, [ebp - 0x320]
push ebx
push esi
push edi
or esi, 0xffffffff
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x18], eax
lea edi, [ebp - 0x21c]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0x104
mov eax, dword [str.eSellerateEngine]
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov ebx, eax
test ebx, ebx
jne 0x4508c6
mov eax, 0xfffffffe
jmp 0x4509d3
push 0x104
lea edx, [ebp - 0x424]
push edx
push ebx
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, dword [str.MVESD_Entry2]
push ecx
push ebx
call sub.KERNEL32.DLL_GetProcAddress
test eax, eax
je 0x4509cb
lea edx, [ebp - 0x18]
push edx
call eax
mov esi, eax
test esi, esi
jne 0x4509cb
cmp dword [ebp - 0x10], 0
je 0x4509cb
xor eax, eax
mov dword [ebp - 0x14], eax
push ebx
call sub.KERNEL32.DLL_FreeLibrary
push 0x104
lea edx, [ebp - 0x424]
push edx
push ebx
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
push 0
lea ecx, [ebp - 0x118]
push ecx
lea eax, [ebp - 3]
push eax
lea edx, [ebp - 0x424]
push edx
call fcn.004b7dfc
add esp, 0x14
lea ecx, [ebp - 0x118]
lea eax, [ebp - 3]
push 0
push 0
push ecx
push eax
push edi
call fcn.004b78c0
add esp, 0x14
push edi
push 0
push 0x4e94ca
push edi
call sub.KERNEL32.DLL_GetTempFileNameA
push edi
call sub.KERNEL32.DLL_DeleteFileA
push 0x80
lea edx, [ebp - 0x424]
push edx
call sub.KERNEL32.DLL_SetFileAttributesA
push edi
lea ecx, [ebp - 0x424]
push ecx
call sub.KERNEL32.DLL_MoveFileA
test eax, eax
je 0x4509b4
lea eax, [ebp - 0x424]
push eax
lea edx, [ebp - 0x320]
push edx
call sub.KERNEL32.DLL_MoveFileA
test eax, eax
jne 0x4509b4
lea ecx, [ebp - 0x424]
push ecx
push edi
call sub.KERNEL32.DLL_MoveFileA
push edi
call sub.KERNEL32.DLL_DeleteFileA
lea eax, [ebp - 0x320]
push eax
call sub.KERNEL32.DLL_DeleteFileA
jmp 0x4508ab
push ebx
call sub.KERNEL32.DLL_FreeLibrary
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451280
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x108]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push str.eSellerateEngine.dll
lea edx, [ebp - 0x108]
push edx
call fcn.004b55ac
add esp, 8
lea ecx, [ebp - 0x248]
push ecx
lea eax, [ebp - 0x108]
push eax
call sub.KERNEL32.DLL_FindFirstFileA
cmp eax, 0xffffffff
je 0x4512d9
push eax
call sub.KERNEL32.DLL_FindClose
xor eax, eax
jmp 0x45136f
push eax
call sub.KERNEL32.DLL_FindClose
push 0x4e94e6
push 1
push esi
call sub.KERNEL32.DLL_FindResourceA
mov edi, eax
push edi
push esi
call sub.KERNEL32.DLL_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x451302
mov eax, 1
jmp 0x45136f
push edi
push esi
call sub.KERNEL32.DLL_SizeofResource
mov edi, eax
push 0x4e94ea
lea edx, [ebp - 0x108]
push edx
call fcn.004b7084
add esp, 8
mov esi, eax
test esi, esi
jne 0x451332
push ebx
call sub.KERNEL32.DLL_FreeResource
mov eax, 1
jmp 0x45136f
push esi
push edi
push 1
push ebx
call sub.KERNEL32.DLL_LockResource
push eax
call fcn.004b72f0
add esp, 0x10
mov dword [ebp - 4], eax
push ebx
call sub.KERNEL32.DLL_FreeResource
push esi
call fcn.004b6d1c
pop ecx
cmp edi, dword [ebp - 4]
jbe 0x45136d
lea edx, [ebp - 0x108]
push edx
call sub.KERNEL32.DLL_DeleteFileA
mov eax, 1
jmp 0x45136f
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x45937c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00458f9c
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004b2dc8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x4593da
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4edb4c]
mov dl, 1
mov eax, dword [0x458e94]
call fcn.004adc28
call fcn.004b264c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4593e4
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.004b2dc8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x45943c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4edb50]
mov dl, 1
mov eax, dword [0x458e94]
call fcn.004adc28
call fcn.004b264c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00458fcc
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 0x45b334
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.004b2984
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x45b383
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.004b2bb4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4615a8
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 0x4615ae
ret

Function at 0x463af0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x463b41
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x463b28
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x463b18
jmp 0x463b41
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x463b29
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46c458
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4ee0d8
cmp dword [edi], 0
jne 0x46c4d4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4ee0d4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4e99f4
mov ecx, 2
call fcn.004b1940
mov edx, 0x46c430
lea eax, [esi + 5]
call fcn.0046c450
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0046c450
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 0x46c4a9
mov dword [0x4ee0d4], 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 0x46c5f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x46c640]
test si, 4
je 0x46c604
or bl, 1
test si, 8
je 0x46c60e
or bl, 4
test si, 1
je 0x46c618
or bl, 8
test si, 2
je 0x46c622
or bl, 0x10
test si, 0x10
je 0x46c62c
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x46c63b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46c644
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x46c67c]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x46c65d
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x46c66c
or bl, 4
test esi, 0x20000000
je 0x46c677
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x472bcc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x472bde
add esp, 0xfffffff0
call fcn.004b2214
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004a6220
mov eax, ebx
call fcn.00472f18
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x49ddfc]
call fcn.004b1ea4
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x49ddfc]
call fcn.004b1ea4
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x49ddfc]
call fcn.004b1ea4
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x49ddfc]
call fcn.004b1ea4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x49ddfc]
call fcn.004b1ea4
mov dword [ebx + 0x70], eax
push 0
call sub.USER32.DLL_GetDC
mov esi, eax
push 0x5a
push esi
call sub.GDI32.DLL_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.USER32.DLL_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x46f6bc
push eax
push 0
push 0
mov eax, dword [0x4edc0c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x460ad0]
call fcn.00462008
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x460ad0]
call fcn.00462008
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x460ad0]
call fcn.00462008
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.004732f8
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x473214
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x473214
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x473214
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x472ced
call fcn.004b226c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x472ff8
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 0x4731a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x473184
mov dl, 1
mov eax, dword [0x49e2b0]
call fcn.004b1ea4
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004b2984
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x473173
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.004883b8
test al, al
je 0x473166
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, 0x4731b4
lea eax, [ebp - 0x254]
call fcn.004ad16c
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x473166
xor eax, eax
push ebp
push 0x47315f
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 0x4731ec
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x473148
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.004b2bb4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x473148
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.004b2bb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473166
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x473069
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.004a19d0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4731aa
lea eax, [ebp - 0x260]
call fcn.004b2984
ret

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

Disassembly:
push ecx
mov eax, dword [0x4ee0c8]
cmp byte [eax + 0x95], 0
jne 0x473a61
cmp dword [0x4ee0e4], 0
jne 0x473a22
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x4739ac
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x4ee0e4], eax
cmp dword [0x4ee0e0], 0
jne 0x473a3d
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x4ee0e0], eax
cmp dword [0x4ee0e8], 0
jne 0x473a61
push esp
push 0
push 0
push 0x473950
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x4ee0e8], eax
pop edx
ret