joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4388b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438ecd
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x44e040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], 0
push 0x800
call fcn.0042106c
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x38], 0x400
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x38]
jbe 0x438970
cmp dword [ebp - 0x10], 0
je 0x43892e
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
push edx
call fcn.00421a5c
add esp, 4
mov eax, dword [ebp - 0x34]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042106c
add esp, 4
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
call fcn.00404a20
mov dword [ebp - 4], 0
cmp dword [ebp - 0x34], 0
jbe 0x4389a5
lea ecx, [ebp - 0x30]
push ecx
mov eax, dword [ebp - 0x10]
call fcn.0040b2d0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
push eax
call fcn.00421a5c
add esp, 4
jmp 0x4389b3
lea ecx, [ebp - 0x30]
push ecx
mov eax, 0x43e970
call fcn.0040b2d0
lea edx, [ebp - 0x30]
push edx
mov esi, dword [ebp + 8]
call fcn.004092e0
mov eax, dword [ebp - 0x4c]
or eax, 1
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x30]
call fcn.00404500
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004216dc
mov esp, ebp
pop ebp
ret
Function at 0x10008114
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100081b1
push ebx
push esi
call fcn.100080dd
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10008071
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000815e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100081b0
push edi
push eax
call fcn.100090cf
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000817e
call fcn.10006bb9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100081af
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10008071
add esp, 0x20
test eax, eax
jne 0x1000819d
push edi
call fcn.10006bb9
jmp 0x100081a5
push ebx
call fcn.10006bb9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000841e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f508
push 0x1000f500
push str.FlsAlloc
push 0x1f
call fcn.1000833a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10008452
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e120]
call esi
jmp 0x10008458
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000849c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f518
push 0x1000f510
push str.FlsGetValue
push 0x21
call fcn.1000833a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100084d3
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100084db
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000f520
push 0x1000f518
push str.FlsSetValue
push 0x22
call fcn.1000833a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10008515
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000e120]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4030c8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405050
test esi, esi
jne 0x4030fe
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405140
jmp 0x40311c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402fcc
mov edi, eax
test esi, esi
je 0x40311c
cmp dword [ebx], 0
je 0x40311c
dec esi
jmp 0x403105
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x404024
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x47e020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4040bc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40409c
xor eax, eax
push ebp
push 0x404095
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 0x4040d8
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 0x40409c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x47e020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x47e020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404ed0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x482048], 0
je 0x404f31
cmp word [0x48221c], 0xd7b2
jne 0x404ef9
cmp dword [0x482224], 0
jbe 0x404ef9
mov eax, 0x482218
call dword [0x482234]
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 0x404f58
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47e02c], 0
jne 0x404f4d
push 0
push 0x47e75c
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40d840
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 0x40d916
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004050e8
lea eax, [ebp - 4]
call fcn.00405564
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405514
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d900
mov eax, ebx
call fcn.00402cdc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d8f9
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.00405514
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d8e3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d928
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d8e3
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 0x40d900
mov eax, dword [ebp - 0x10]
call fcn.00402cf8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d91d
lea eax, [ebp - 4]
call fcn.00405050
ret

Function at 0x4209c8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x485300
cmp dword [edi], 0
jne 0x420a44
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4852fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47eb74
mov ecx, 2
call fcn.00402ecc
mov edx, 0x4209a0
lea eax, [esi + 5]
call fcn.004209c0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004209c0
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 0x420a19
mov dword [0x4852fc], 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 0x422fd0
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.00405514
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x423028
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x481478]
mov dl, 1
mov eax, dword [0x422af4]
call fcn.0040d0f0
call fcn.00404a98
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00422bfc
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 0x43e478
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00405504
xor eax, eax
push ebp
push 0x43e5ad
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x43e580
xor edx, edx
push ebp
push 0x43e579
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x43e4c5
sub eax, 4
mov eax, dword [eax]
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x43e54e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov esi, eax
xor eax, eax
push ebp
push 0x43e53d
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x43e504
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.00405514
lea ecx, [ebx + 1]
mov edx, esi
call fcn.00402ecc
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e544
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x481078]
mov dl, 1
mov eax, dword [0x408278]
call fcn.0040d0b4
call fcn.00404a98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e5b4
lea eax, [ebp - 4]
call fcn.00405050
ret
Function at 0x44110c
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.00405050
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44115a
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004052c0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4451dc
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 0x44530f
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 [0x422b54]
call fcn.00422c24
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4452e5
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00422cc4
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.004052c0
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x445324
call fcn.00405360
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00422d28
lea ecx, [ebp - 4]
mov edx, 0x445360
mov eax, dword [ebp - 0xc]
call fcn.00422f58
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040ed94
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4452c8
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x44536c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x47f6f0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4452cf
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x4453bc
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 0x445403
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4453e6
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4453f7
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x445403
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x44a864
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x485560], 0
je 0x44a9ad
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4812dc]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x44a9ad
mov eax, dword [0x485564]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x485560]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x44a97c
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x485560]
call fcn.00419a98
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x44a974
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x44a974
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x44a974
mov eax, dword [ebp - 0x14]
call fcn.00454bbc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44a974
push ebp
call fcn.0044a820
pop ecx
test al, al
jne 0x44a974
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00404420
test al, al
je 0x44a974
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.00404420
cmp byte [ebp - 1], 0
je 0x44a974
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x44a974
mov edx, dword [ebp - 0x14]
mov eax, dword [0x485564]
call fcn.00449f90
inc edi
dec ebx
jne 0x44a8c9
mov eax, dword [0x485564]
cmp dword [eax + 8], 0
jle 0x44a994
mov eax, dword [0x485564]
call fcn.0044a048
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x44a9ad
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0044a684
pop ecx
test al, al
jne 0x44a9ad
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459f84
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x48146c]
cmp byte [eax + 0xc], 0
je 0x45a0f1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45a0ea
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x485570], 0
jne 0x459fd8
push 0x45a0f8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x45a100
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x485570], eax
cmp dword [0x47f834], 0
jne 0x45a0d3
push 0x45a110
call sub.kernel32.dll_LoadLibraryA
mov dword [0x47f834], eax
cmp dword [0x47f834], 0
je 0x45a0d3
push 0x45a11c
mov eax, dword [0x47f834]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x485574], eax
push 0x45a12c
mov eax, dword [0x47f834]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x485578], eax
push 0x45a140
mov eax, dword [0x47f834]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48557c], eax
push 0x45a158
mov eax, dword [0x47f834]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x485580], eax
push 0x45a170
mov eax, dword [0x47f834]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x485584], eax
push 0x45a184
mov eax, dword [0x47f834]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x485588], eax
push 0x45a19c
mov eax, dword [0x47f834]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48558c], eax
push 0x45a1b4
mov eax, dword [0x47f834]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x485590], eax
push 0x45a1d0
mov eax, dword [0x47f834]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x485594], eax
push 0x45a1dc
mov eax, dword [0x47f834]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x485598], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a0f1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x45fc34
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x45fc88]
test si, 4
je 0x45fc49
or bl, 1
test si, 8
je 0x45fc53
or bl, 4
test si, 1
je 0x45fc5d
or bl, 8
test si, 2
je 0x45fc67
or bl, 0x10
test si, 0x10
je 0x45fc71
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45fc80
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45fc8c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x45fcc8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45fca6
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45fcb5
or bl, 4
test esi, 0x20000000
je 0x45fcc0
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x46737c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46738e
add esp, 0xfffffff0
call fcn.00404548
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041f908
mov eax, dword [0x4810e4]
mov dword [eax + 4], ebx
mov dword [eax], 0x467720
mov eax, dword [0x4810f0]
mov dword [eax + 4], ebx
mov dword [eax], 0x46772c
mov eax, ebx
call fcn.00467738
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4176ec]
call fcn.004041f4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4176ec]
call fcn.004041f4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4176ec]
call fcn.004041f4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4176ec]
call fcn.004041f4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4176ec]
call fcn.004041f4
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, 0x4631d0
push eax
push 0
push 0
mov eax, dword [0x48125c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4234e4]
call fcn.00424d38
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4234e4]
call fcn.00424d38
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4234e4]
call fcn.00424d38
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00467b68
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x467a38
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x467a38
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x467a38
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4674cb
call fcn.004045a0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46781c
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 0x4679c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4679a8
mov dl, 1
mov eax, dword [0x417b10]
call fcn.004041f4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00405050
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x467997
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.0045a2e0
test al, al
je 0x46798a
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, 0x4679d8
lea eax, [ebp - 0x254]
call fcn.0040a478
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46798a
xor eax, eax
push ebp
push 0x467983
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 - 0x214]
push eax
push 0
push 0
push 0x467a10
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46796c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004052c0
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 0x46796c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004052c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46798a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46788d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041b808
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 0x4679ce
lea eax, [ebp - 0x260]
call fcn.00405050
ret

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

Disassembly:
push ecx
mov eax, dword [0x4855a8]
cmp byte [eax + 0xad], 0
jne 0x4683b1
cmp dword [0x4855c0], 0
jne 0x468372
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4682fc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4855c0], eax
cmp dword [0x4855bc], 0
jne 0x46838d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4855bc], eax
cmp dword [0x4855c4], 0
jne 0x4683b1
push esp
push 0
push 0
push 0x4682a0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4855c4], eax
pop edx
ret