joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100245cf
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10037098
push 0x10037090
push str.FlsAlloc
push 0x1f
call fcn.10024497
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10024603
push dword [ebp + 8]
mov ecx, esi
call dword [0x100331a0]
call esi
jmp 0x10024609
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002464d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100370a8
push 0x100370a0
push str.FlsGetValue
push 0x21
call fcn.10024497
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10024684
push dword [ebp + 8]
mov ecx, esi
call dword [0x100331a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1002468c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100370b0
push 0x100370a8
push str.FlsSetValue
push 0x22
call fcn.10024497
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100246c6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100331a0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10028f28
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 0x10028fc5
push ebx
push esi
call fcn.10028ef1
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.10025cb6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10028f72
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10028fc4
push edi
push eax
call fcn.10024d3a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10028f92
call fcn.100227f5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10028fc3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10025cb6
add esp, 0x20
test eax, eax
jne 0x10028fb1
push edi
call fcn.100227f5
jmp 0x10028fb9
push ebx
call fcn.100227f5
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 0x1002b209
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1002019c
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002b278
cmp esi, dword [ebp - 4]
je 0x1002b273
cmp dword [ebp + 0xc], 0
je 0x1002b273
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1002b250
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1002ad5b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1002b27a
xor eax, eax
inc eax
jmp 0x1002b27a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1002b2df
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10044080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1002019c
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1002019c
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1002b356
cmp word [ecx], dx
je 0x1002b356
mov eax, dword [0x1003779c]
push edi
dec eax
push eax
push 0x10037688
call fcn.1002b27e
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1002b3c9
cmp word [eax], dx
je 0x1002b3c9
mov eax, dword [edi]
test eax, eax
je 0x1002b37a
cmp word [eax], dx
je 0x1002b37a
lea eax, [ebp - 0x10]
push eax
call fcn.1002ac61
jmp 0x1002b383
lea eax, [ebp - 0x10]
push eax
call fcn.1002acfc
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1002b3f3
mov eax, dword [0x10037684]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10037378
call fcn.1002b27e
add esp, 0xc
test al, al
je 0x1002b3f3
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1002b3be
cmp word [eax], di
je 0x1002b3be
lea eax, [ebp - 0x10]
push eax
call fcn.1002ac61
pop ecx
jmp 0x1002b3f5
lea eax, [ebp - 0x10]
push eax
call fcn.1002acfc
jmp 0x1002b3bb
mov eax, dword [edi]
test eax, eax
je 0x1002b3e0
cmp word [eax], dx
je 0x1002b3e0
lea eax, [ebp - 0x10]
push eax
call fcn.1002ac16
pop ecx
jmp 0x1002b3f3
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1002b4be
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1002b103
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1002b4be
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1002b4be
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1002b4be
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1002b44b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100247cc
test ebx, ebx
je 0x1002b4b9
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100247cc
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002b4be
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002b4be
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1002eec1
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1002b4c0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100130c2
leave
ret
Function at 0x1002f681
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1002f5fd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1002f7f0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1002f7f0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1002f7a5
jg 0x1002f6dd
test eax, eax
je 0x1002f79b
push 1
push 0x1000
call fcn.10022798
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1002f700
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1002f792
push 0x8000
push ebx
call fcn.1002f52e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1002f729
jg 0x1002f724
cmp ecx, 0x1000
jb 0x1002f729
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1002257c
add esp, 0x10
cmp eax, 0xffffffff
je 0x1002f76e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1002f724
jl 0x1002f755
test ecx, ecx
jne 0x1002f716
push dword [ebp - 0xc]
push ebx
call fcn.1002f52e
push esi
call fcn.100227f5
add esp, 0xc
xor ebx, ebx
jmp 0x1002f7fe
cmp byte [edi + 0x24], 0
je 0x1002f785
cmp dword [edi + 0x20], 5
jne 0x1002f785
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1002f790
mov ebx, dword [edi + 0x18]
jmp 0x1002f792
xor ebx, ebx
push esi
call fcn.100227f5
pop ecx
jmp 0x1002f7fe
test ecx, ecx
jg 0x1002f767
jl 0x1002f7a5
test eax, eax
jae 0x1002f767
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10022a75
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1002f7c5
cmp byte [edi + 0x1c], 0
je 0x1002f767
jmp 0x1002f7f6
push ebx
call fcn.1002b899
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1002f767
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1002f7fe
cmp byte [edi + 0x1c], 0
je 0x1002f7fb
mov ebx, dword [edi + 0x18]
jmp 0x1002f7fe
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10022a75
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10030e20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10030e4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10030e4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40f2ac
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x421c43
call fcn.00420f90
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00410415
xor edi, edi
mov dword [esi + 0x1c], 0xa
mov dword [ebp - 4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov dword [esi + 0x18], edi
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 1
mov dword [esi], 0x4230e0
mov dword [esi + 0x30], ebx
call fcn.004173f8
push edi
mov dword [esi + 4], eax
push dword [ebp + 0xc]
push ebx
push eax
call fcn.0041741f
push 8
call sub.MFC42.DLL_operatornew
mov dword [esi + 0x24], eax
mov ecx, dword [0x42941c]
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 0xc]
add esp, 0x14
mov dword [eax + 4], esi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x402990
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 8], edx
lea ecx, [ebp - 4]
push ecx
push 0x20008
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
test eax, eax
je 0x402a94
mov eax, dword [0x452335]
mov dword [ebp - 0x10], eax
mov ax, word [0x452339]
mov word [ebp - 0xc], ax
xor edx, edx
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
call sub.ADVAPI32.DLL_AllocateAndInitializeSid
test eax, eax
je 0x402a87
xor edx, edx
mov dword [ebp - 0x18], edx
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x18]
push 0
push 2
push dword [ebp - 4]
call sub.ADVAPI32.DLL_GetTokenInformation
push dword [ebp - 0x18]
call fcn.00445fb4
pop ecx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x20]
push 2
push dword [ebp - 4]
call sub.ADVAPI32.DLL_GetTokenInformation
test eax, eax
je 0x402a74
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
jmp 0x402a6a
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
push dword [edx + eax*8 + 4]
call sub.ADVAPI32.DLL_EqualSid
test eax, eax
je 0x402a67
mov dword [ebp - 8], 1
jmp 0x402a74
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
cmp ecx, dword [eax]
jb 0x402a48
push dword [ebp - 0x20]
call fcn.00445df0
pop ecx
push dword [ebp - 0x14]
call sub.ADVAPI32.DLL_FreeSid
jmp 0x402a9f
push str._Install__Unable_to_create_administrator_SID__n
call fcn.004483e8
pop ecx
jmp 0x402a9f
push str._Install__Unable_to_open_process_token__n
call fcn.004483e8
pop ecx
cmp dword [ebp - 4], 0
je 0x402aad
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x403320
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov eax, 0x453214
call fcn.00446ab4
mov dword [ebp - 8], 1
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.00450b70
inc dword [ebp - 8]
mov word [ebp - 0x14], 8
mov eax, dword [ebp + 8]
call fcn.0043c728
test al, al
je 0x4033a4
call fcn.00402514
test al, al
je 0x403383
mov eax, 1
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.00450bac
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4033c2
push 0x80
lea eax, [ebp + 8]
call fcn.00401ae8
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
lea eax, [ebp + 8]
call fcn.00401ae8
push eax
call sub.KERNEL32.DLL_DeleteFileA
xor eax, eax
push eax
dec dword [ebp - 8]
lea eax, [ebp + 8]
mov edx, 2
call fcn.00450bac
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret

Function at 0x4033c8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68
push 0x94
push 0
lea eax, [ebp - 0x98]
push eax
call fcn.00446798
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea edx, [ebp - 0x98]
push edx
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
jne 0x403405
xor eax, eax
jmp 0x403414
cmp dword [ebp - 0x94], 5
jbe 0x403412
mov al, 1
jmp 0x403414
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x406a90
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.004066d4
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.004445cc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x406aee
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x457544]
mov dl, 1
mov eax, dword [0x4065cc]
call fcn.0043f358
call fcn.00443e50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x406af8
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.004445cc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x406b50
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x457548]
mov dl, 1
mov eax, dword [0x4065cc]
call fcn.0043f358
call fcn.00443e50
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00406704
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 0x407b48
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.00444188
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x407b97
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.004443b8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e768
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 0x40e76e
ret

Function at 0x410acc
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 0x410b1d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x410b04
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x410af4
jmp 0x410b1d
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 0x410b05
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417b78
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x457910
cmp dword [edi], 0
jne 0x417bf4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x45790c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45378c
mov ecx, 2
call fcn.004431f4
mov edx, 0x417b50
lea eax, [esi + 5]
call fcn.00417b70
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00417b70
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 0x417bc9
mov dword [0x45790c], 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 0x417d10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x417d60]
test si, 4
je 0x417d24
or bl, 1
test si, 8
je 0x417d2e
or bl, 4
test si, 1
je 0x417d38
or bl, 8
test si, 2
je 0x417d42
or bl, 0x10
test si, 0x10
je 0x417d4c
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x417d5b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x417d64
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x417d9c]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x417d7d
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x417d8c
or bl, 4
test esi, 0x20000000
je 0x417d97
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x41e2ec
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x41e2fe
add esp, 0xfffffff0
call fcn.00443a18
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043753c
mov eax, ebx
call fcn.0041e638
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x43110c]
call fcn.00443700
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x43110c]
call fcn.00443700
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x43110c]
call fcn.00443700
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x43110c]
call fcn.00443700
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x43110c]
call fcn.00443700
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, 0x41addc
push eax
push 0
push 0
mov eax, dword [0x4575dc]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x40deec]
call fcn.0040f1c8
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x40deec]
call fcn.0040f1c8
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x40deec]
call fcn.0040f1c8
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.0041ea18
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x41e934
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x41e934
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x41e934
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x41e40d
call fcn.00443a70
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x41e718
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 0x41e8c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x41e8a4
mov dl, 1
mov eax, dword [0x431448]
call fcn.00443700
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00444188
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x41e893
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.00430450
test al, al
je 0x41e886
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, 0x41e8d4
lea eax, [ebp - 0x254]
call fcn.0043cffc
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x41e886
xor eax, eax
push ebp
push 0x41e87f
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 0x41e90c
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x41e868
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.004443b8
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 0x41e868
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.004443b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e886
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x41e789
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.004345d0
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 0x41e8ca
lea eax, [ebp - 0x260]
call fcn.00444188
ret

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

Disassembly:
push ecx
mov eax, dword [0x457900]
cmp byte [eax + 0x95], 0
jne 0x41f181
cmp dword [0x45791c], 0
jne 0x41f142
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x41f0cc
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x45791c], eax
cmp dword [0x457918], 0
jne 0x41f15d
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x457918], eax
cmp dword [0x457920], 0
jne 0x41f181
push esp
push 0
push 0
push 0x41f070
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x457920], eax
pop edx
ret