joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f044
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4f04d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4f16a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x400
call fcn.00019248
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f140
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00018ad4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x2800
mov eax, dword [ebx]
mov edx, 0x2800
call fcn.00018028
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00018af0
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx]
push eax
mov eax, esi
call fcn.00014538
push eax
push 0
call sub.advapi32.dll_LookupAccountNameW
test eax, eax
jne 0x4f12a
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
lea edx, [ebp - 0x1c]
mov eax, 0x4f17c
call fcn.00031d88
push dword [ebp - 0x1c]
push edi
lea edx, [ebp - 0x20]
mov eax, 0x4f184
call fcn.00031d88
push dword [ebp - 0x20]
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0002b100
push dword [ebp - 0x24]
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00013f8c
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
call fcn.000144c4
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
call fcn.000199bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f147
lea eax, [ebp - 4]
call fcn.00019258
ret

Function at 0x4fdfc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4fee7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x10], 1
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4feca
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [0x2a9118]
mov eax, dword [eax]
add eax, 0x20019
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
call fcn.00025330
mov eax, dword [ebp - 0x1c]
call fcn.00014090
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x4fea8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x4fef8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4fea8
cmp dword [ebp - 0x18], 4
jne 0x4fea8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fed1
cmp dword [ebp - 0xc], 0
je 0x4fec4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0xc], eax
ret
Function at 0x4ff1c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4fff9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4ffdc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [0x2a9118]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x14]
call fcn.00025330
mov eax, dword [ebp - 0x14]
call fcn.00014090
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x4ffb2
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x50008
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4ffba
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 8], eax
jmp 0x4ffba
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ffe3
cmp dword [ebp - 0xc], 0
je 0x4ffd6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0xc], eax
ret
Function at 0x52d0c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x52ded
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x52dd0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [0x2a9118]
mov eax, dword [eax]
add eax, 0x20019
push eax
push 0
lea eax, [ebp - 0x18]
call fcn.00025330
mov eax, dword [ebp - 0x18]
call fcn.00014090
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x52dae
mov dword [ebp - 0x10], 4
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x52dfc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x52dae
cmp dword [ebp - 8], 4
jne 0x52dae
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52dd7
cmp dword [ebp - 0xc], 0
je 0x52dca
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0xc], eax
ret
Function at 0x52e98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
mov dword [edx], 0xffffffff
mov edx, dword [ebp - 8]
mov dword [edx], 0xffffffff
mov edx, dword [ebp + 0xc]
mov dword [edx], 0xffffffff
mov edx, dword [ebp + 8]
mov byte [edx], 0
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x53068
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x53057
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x10]
push edx
mov edx, dword [0x2a9118]
mov edx, dword [edx]
add edx, 0x20019
push edx
push 0
push 0x530a0
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x53035
mov dword [ebp - 0x1c], 4
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x530dc
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x52f61
cmp dword [ebp - 0x18], 4
jne 0x52f61
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
mov dword [ebp - 0x1c], 4
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x530f4
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x52fa7
cmp dword [ebp - 0x18], 4
jne 0x52fa7
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
mov dword [ebp - 0x1c], 4
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x53108
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x52fed
cmp dword [ebp - 0x18], 4
jne 0x52fed
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
mov dword [ebp - 0x1c], 4
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x53114
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x53035
cmp dword [ebp - 0x18], 4
jne 0x53035
cmp dword [ebp - 0x14], 1
mov eax, dword [ebp + 8]
sete byte [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5305e
cmp dword [ebp - 0x10], 0
je 0x53051
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x10], eax
ret
Function at 0x536f8
Capabilities:
Hash data with md5

Disassembly:
push ebx
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
mov edx, 0x40
lea ecx, [eax + 0x18]
mov byte [ecx], 0
inc ecx
dec edx
jne 0x5370b
mov edx, 0x10
lea ecx, [eax + 0x58]
xor ebx, ebx
mov dword [ecx], ebx
add ecx, 4
dec edx
jne 0x5371a
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebx
ret

Function at 0x54228
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff50
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00014080
mov eax, dword [ebp - 8]
call fcn.00014080
xor eax, eax
push ebp
push 0x5439d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00013ecc
cmp eax, 0x40
jle 0x54294
lea edx, [ebp - 0xb0]
mov eax, dword [ebp - 8]
call fcn.000541ec
mov edx, dword [ebp - 0xb0]
lea eax, [ebp - 8]
call fcn.00013cd4
lea ecx, [ebp - 0xc]
mov edx, 0x40
mov al, 0x36
call fcn.00014264
lea ecx, [ebp - 0x10]
mov edx, 0x40
mov al, 0x5c
call fcn.00014264
mov eax, dword [ebp - 8]
call fcn.00013ecc
mov esi, eax
test esi, esi
jle 0x542fd
mov ebx, 1
lea eax, [ebp - 0xc]
call fcn.0001409c
mov edx, dword [ebp - 0xc]
mov dl, byte [edx + ebx - 1]
mov ecx, dword [ebp - 8]
xor dl, byte [ecx + ebx - 1]
mov byte [eax + ebx - 1], dl
lea eax, [ebp - 0x10]
call fcn.0001409c
mov edx, dword [ebp - 0x10]
mov dl, byte [edx + ebx - 1]
mov ecx, dword [ebp - 8]
xor dl, byte [ecx + ebx - 1]
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x542c5
lea eax, [ebp - 0xac]
call fcn.000536f8
mov ebx, 0x5382c
mov ecx, ebx
lea eax, [ebp - 0xac]
mov edx, dword [ebp - 0xc]
call fcn.00053f48
mov ecx, ebx
lea eax, [ebp - 0xac]
mov edx, dword [ebp - 4]
call fcn.00053f48
lea ecx, [ebp - 0x14]
mov edx, ebx
lea eax, [ebp - 0xac]
call fcn.00054070
lea eax, [ebp - 0xac]
call fcn.000536f8
mov ecx, ebx
lea eax, [ebp - 0xac]
mov edx, dword [ebp - 0x10]
call fcn.00053f48
mov ecx, ebx
lea eax, [ebp - 0xac]
mov edx, dword [ebp - 0x14]
call fcn.00053f48
mov ecx, edi
mov edx, ebx
lea eax, [ebp - 0xac]
call fcn.00054070
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x543a4
lea eax, [ebp - 0xb0]
call fcn.00013c3c
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00013c60
ret
Function at 0x5e6b8
Capabilities:
Get memory capacity

Disassembly:
push ebx
add esp, 0xfffffec0
mov ebx, eax
mov eax, esp
xor ecx, ecx
mov edx, 0x40
call fcn.00012b94
mov dword [esp], 0x40
push esp
call sub.kernel32.dll_GlobalMemoryStatusEx
test eax, eax
je 0x5e6fe
push dword [esp + 0xc]
push dword [esp + 0xc]
lea eax, [esp + 0x48]
call fcn.00015474
lea edx, [esp + 0x40]
mov eax, ebx
call fcn.00013e70
jmp 0x5e70a
mov edx, ebx
mov eax, 0x5e714
call fcn.0005e6a4
add esp, 0x140
pop ebx
ret
Function at 0x62148
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 0x6214e
ret

Function at 0x64500
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 0x64551
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x64538
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x64528
jmp 0x64551
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 0x64539
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x703b8
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 - 0xc]
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
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x2ad18c], 0
sete dl
or al, dl
jne 0x704f8
mov eax, dword [0x2ad190]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x2ad18c]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x704c7
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x2ad18c]
call fcn.0003a1f0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x704bf
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x704bf
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x704bf
mov eax, dword [ebp - 0x14]
call fcn.000786c0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x704bf
push ebp
call fcn.00070374
pop ecx
test al, al
jne 0x704bf
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x7047b
mov eax, dword [ebp - 0x14]
call fcn.0007704c
dec eax
jle 0x704bf
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.000130f0
cmp byte [ebp - 1], 0
je 0x704bf
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x704bf
mov edx, dword [ebp - 0x14]
mov eax, dword [0x2ad190]
call fcn.0006fbc0
inc edi
dec esi
jne 0x7040e
mov eax, dword [0x2ad190]
cmp dword [eax + 8], 0
jle 0x704df
mov eax, dword [0x2ad190]
call fcn.0006fc50
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x704f8
push ebp
mov eax, dword [ebp - 0x18]
call fcn.000701dc
pop ecx
test al, al
jne 0x704f8
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 0x76058
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x76089
je 0x760e3
sub eax, 7
je 0x760aa
dec eax
je 0x760d4
sub eax, 0x17
je 0x76188
jmp 0x761c6
add eax, 0xffffff00
sub eax, 9
jb 0x76174
add eax, 0xffffff09
sub eax, 0xb
jb 0x7613c
jmp 0x761c6
mov eax, ebx
call fcn.00087e14
mov edi, eax
test edi, edi
je 0x76226
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x7622f
jmp 0x76226
test byte [ebx + 0x44], 0x20
jne 0x7622f
jmp 0x76226
mov edx, esi
mov eax, ebx
call fcn.00073658
cmp dword [esi + 0xc], 0xffffffff
jne 0x7622f
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00018080
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.00072194
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.00075f30
test eax, eax
je 0x7622f
mov dword [esi + 0xc], 1
jmp 0x7622f
mov edx, esi
mov eax, ebx
call fcn.00075fc4
test al, al
je 0x76226
cmp dword [esi + 0xc], 0
jne 0x7622f
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.000786c0
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x7622f
mov eax, ebx
call fcn.00072cf4
test al, al
jne 0x7622f
jmp 0x76226
mov eax, ebx
call fcn.000786c0
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x76226
cmp dword [0x2a3578], 0
je 0x76226
mov eax, dword [0x2a3578]
cmp ebx, dword [eax + 0x24]
jne 0x76226
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x2a3578]
call fcn.0007358c
jmp 0x76226
mov eax, dword [0x2ad154]
cmp byte [eax + 0x20], 0
je 0x76226
mov eax, dword [0x2ad154]
cmp dword [eax + 0x1c], 0
je 0x76226
mov eax, dword [esi]
mov edx, dword [0x2ad154]
cmp eax, dword [edx + 0x1c]
jne 0x76226
lea eax, [ebp - 0x110]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.00087d58
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.000130f0
jmp 0x7622f
mov edx, esi
mov eax, ebx
call fcn.00073658
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x766f0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x7670c
cmp dword [esi + 4], 0
je 0x76739
test byte [ebx + 0x45], 1
jne 0x7672b
mov eax, ebx
call fcn.00075628
test eax, eax
jne 0x7672b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x76849
mov edx, esi
mov eax, ebx
call fcn.00076368
jmp 0x76849
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x76842
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.000786c0
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0007358c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.000766f0
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.000786c0
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x76849
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x7ffe8
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.00013c3c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x80037
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.00013e7c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x87b30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x2ad1ec
cmp dword [edi], 0
jne 0x87bac
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x2ad1e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x2a370c
mov ecx, 2
call fcn.00012840
mov edx, 0x87b08
lea eax, [esi + 5]
call fcn.00087b28
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00087b28
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 0x87b81
mov dword [0x2ad1e8], 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 0x87cc8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x87d18]
test si, 4
je 0x87cdc
or bl, 1
test si, 8
je 0x87ce6
or bl, 4
test si, 1
je 0x87cf0
or bl, 8
test si, 2
je 0x87cfa
or bl, 0x10
test si, 0x10
je 0x87d04
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x87d13
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x87d1c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x87d54]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x87d35
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x87d44
or bl, 4
test esi, 0x20000000
je 0x87d4f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x8e55c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x8e56e
add esp, 0xfffffff0
call fcn.00013214
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0003f8c0
mov eax, ebx
call fcn.0008e8c0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x38798]
call fcn.00012ee4
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x38798]
call fcn.00012ee4
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x38798]
call fcn.00012ee4
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x38798]
call fcn.00012ee4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x38798]
call fcn.00012ee4
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, 0x8aa74
push eax
push 0
push 0
mov eax, dword [0x2a946c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x61670]
call fcn.00062ba8
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x61670]
call fcn.00062ba8
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x61670]
call fcn.00062ba8
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.0008eca0
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x8ebbc
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x8ebbc
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x8ebbc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x8e67d
call fcn.0001326c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret