joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005995
Capabilities:
Access peb ldr_data
Get process heap flags
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov ebx, dword [ebp + 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea edi, [ebx + 0xc]
push edi
push dword [0x1038030]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x100fda6
lea eax, [ebp + 0xc]
push eax
push edi
push esi
push 2
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov edi, eax
test edi, edi
jl 0x1005a13
mov eax, dword [esi + 8]
cmp ebx, eax
jb 0x1005a31
push eax
lea eax, [esi + 0xc]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.msvcrt.dll_memmove]
mov eax, dword [ebp + 0x18]
add esp, 0xc
test eax, eax
jne 0x100fdb0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14
mov edi, 0xc0000023
jmp 0x1005a13
mov eax, 0xc0000017
jmp 0x1005a2a
mov ecx, dword [esi + 8]
mov dword [eax], ecx
jmp 0x1005a13

Function at 0x1005a3d
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push dword [ebp + 8]
call esi
lea eax, [eax + eax + 2]
mov ebx, 0x7ffe0030
push ebx
movzx edi, ax
call esi
add eax, eax
cmp dword [ebp + 0xc], 0
movzx esi, ax
je 0x1005b1e
push 1
push esi
push ebx
push dword [ebp + 8]
call fcn.01003a83
test eax, eax
jne 0x1005b1e
movzx eax, si
push 0x18
sub edi, esi
add dword [ebp + 8], eax
pop edx
mov ecx, dword [0x1038030]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx ebx, dx
movzx edx, di
add edx, ebx
push edx
add ecx, 0x100000
push ecx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov dword [ebp + 0xc], esi
test esi, esi
je 0x1005afc
push ebx
push 0x1005b04
push esi
call dword [sym.imp.msvcrt.dll_memmove]
xor eax, eax
add esp, 0xc
add esi, ebx
cmp ax, di
jae 0x1005af9
dec di
shr di, 1
inc di
movzx eax, di
cmp dword [ebp + 0x10], 0
jne 0x1005b25
mov ecx, dword [ebp + 8]
mov cx, word [ecx]
add dword [ebp + 8], 2
mov word [esi], cx
inc esi
inc esi
dec eax
jne 0x1005ae1
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
xor edx, edx
jmp 0x1005a8d
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5c
jne 0x1005ae7
push 0x5f
pop ecx
jmp 0x1005aed
Function at 0x1005c9e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
lea edi, [ebx + eax + 0x18]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [0x1038030]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x100fdba
lea eax, [ebp - 4]
push eax
push edi
push esi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtEnumerateValueKey]
mov dword [ebp + 0x10], eax
test eax, eax
jl 0x1005d59
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.msvcrt.dll_memmove]
cmp ebx, eax
jb 0x1005d78
mov ebx, dword [ebp + 0x14]
push eax
lea eax, [esi + 0x14]
push eax
push ebx
call edi
mov eax, dword [esi + 0x10]
shr eax, 1
add esp, 0xc
xor ecx, ecx
mov word [ebx + eax*2], cx
cmp dword [ebp + 0x10], 0
jl 0x1005d81
mov eax, dword [esi + 0xc]
cmp dword [ebp + 0x18], eax
jb 0x1005d81
mov ebx, dword [ebp + 0x1c]
push eax
mov eax, dword [esi + 8]
add eax, esi
push eax
push ebx
call edi
add esp, 0xc
cmp dword [esi + 4], 1
jne 0x1005d59
mov eax, dword [esi + 0xc]
lea ecx, [eax + 2]
cmp ecx, dword [ebp + 0x18]
ja 0x100fdc4
mov eax, dword [esi + 0xc]
mov byte [ebx + eax], 0
inc dword [esi + 0xc]
mov eax, dword [esi + 0xc]
mov byte [ebx + eax], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x18
mov dword [ebp + 0x10], 0xc0000023
jmp 0x1005d15
mov dword [ebp + 0x10], 0xc0000023
jmp 0x1005d59
mov eax, 0xc0000017
jmp 0x1005d71
add eax, 0xfffffffe
mov dword [esi + 0xc], eax
jmp 0x1005d48

Function at 0x10063b3
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
call fcn.01006424
xor esi, esi
cmp eax, esi
jl 0x100641a
push esi
push esi
lea eax, [ebp - 0x18]
push eax
push 0x1f0003
push 0x1038084
mov dword [ebp - 0x18], 0x18
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ntdll.dll_NtCreateEvent]
cmp eax, esi
jl 0x100641a
push esi
push esi
push dword [ebp + 8]
push 0x10015ba
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x1010197
push eax
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
pop esi
leave
ret 4
mov eax, 0xc0000017
jmp 0x100641a
Function at 0x1006a39
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x1038008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x5a
pop eax
push 0x5c
mov word [ebp - 0x138], ax
pop eax
mov word [ebp - 0x136], ax
lea eax, [ebp - 0x138]
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x158]
push eax
xor esi, esi
push 0x20019
lea eax, [ebp - 0x128]
push eax
mov dword [edi], 0x10000
mov dword [ebp - 0x134], 0x1006c18
mov dword [ebp - 0x158], 0x18
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x14c], 0x40
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x144], esi
call dword [sym.imp.ntdll.dll_NtOpenKey]
cmp eax, esi
jl 0x1006bc0
push 0x14
pop eax
push 0x16
mov word [ebp - 0x130], ax
pop eax
mov word [ebp - 0x12e], ax
lea eax, [ebp - 0x164]
push eax
push 0x11c
lea eax, [ebp - 0x120]
push eax
push 1
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x128]
mov dword [ebp - 0x12c], 0x1006c00
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
push dword [ebp - 0x128]
mov dword [ebp - 0x124], eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp - 0x124], esi
jl 0x1006bba
cmp dword [ebp - 0x114], esi
je 0x1011fd3
mov eax, dword [ebp - 0x118]
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp + eax - 0x120]
push eax
lea eax, [ebp - 0x140]
push eax
call esi
push 0x1006be4
lea eax, [ebp - 0x160]
push eax
call esi
push 0x1006bd0
lea eax, [ebp - 0x16c]
push eax
call esi
mov esi, dword [sym.imp.ntdll.dll_RtlPrefixUnicodeString]
push 1
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x160]
push eax
call esi
test al, al
jne 0x1011fc8
push 1
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x16c]
push eax
call esi
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x10001
add eax, 0x10000
mov dword [edi], eax
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010015a8
leave
ret 4
mov dword [edi], 0x40002
jmp 0x1006bba
mov dword [ebp - 0x124], 0xc0000034
jmp 0x1006bba
Function at 0x1007422
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
push edi
cmp byte [0x1038416], bl
jne 0x100e309
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax], ebx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword fs:[0x18]
mov edx, dword [ebp + 8]
movsx esi, word [ebp + 8]
mov ecx, dword [0x1038030]
mov eax, dword [eax + 0x30]
mov edi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
shr edx, 0x10
movsx edx, dx
imul edx, esi
lea edx, [edx + edx + 2]
push edx
add ecx, 0x340000
push ecx
push dword [eax + 0x18]
call edi
mov esi, dword [ebp + 0xc]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x100e350
xor eax, eax
jmp 0x1007449
mov eax, dword fs:[0x18]
movsx edx, word [ebp + 0xa]
movsx ebx, word [ebp + 8]
mov ecx, dword [0x1038030]
imul edx, ebx
mov eax, dword [eax + 0x30]
add ecx, 0x340000
inc edx
push edx
push ecx
push dword [eax + 0x18]
call edi
mov dword [esi + 8], eax
test eax, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
jne 0x100e398
push dword [esi + 4]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x100e349
movsx edx, word [ebp + 0xa]
movsx ebx, word [ebp + 8]
mov ecx, dword [0x1038030]
imul edx, ebx
lea edx, [edx + edx + 2]
push edx
add ecx, 0x340000
push ecx
push dword [eax + 0x18]
call edi
mov dword [esi + 0xc], eax
test eax, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
jne 0x100e3f2
push dword [esi + 8]
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
push 0
push dword [eax + 0x18]
call edi
push dword [esi + 4]
push 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call edi
jmp 0x100e349
movsx edx, word [ebp + 0xa]
movsx ebx, word [ebp + 8]
mov ecx, dword [0x1038030]
imul edx, ebx
push edx
add ecx, 0x340000
push ecx
push dword [eax + 0x18]
call edi
xor ebx, ebx
mov dword [esi], eax
cmp eax, ebx
jne 0x1007446
push dword [esi + 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
push ebx
push dword [eax + 0x18]
call edi
push dword [esi + 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call edi
push dword [esi + 4]
push ebx
jmp 0x100e3df
Function at 0x10096f7
Capabilities:
Query environment variable
Query or enumerate registry value
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1038008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x220], 0x1009888
mov dword [ebp - 0x21c], 0x100986c
mov dword [ebp - 0x218], 0x100984c
mov dword [ebp - 0x214], 0x1009824
xor edi, edi
mov esi, dword [ebp + edi*8 - 0x21c]
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x10097a5
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 2
push dword [ebp + edi*8 - 0x220]
mov dword [ebp - 0x210], 0x208
push 0x10097d0
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x10097a5
mov eax, dword [ebp - 0x210]
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x20e], cx
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
inc edi
cmp edi, 2
jb 0x1009738
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.010098ad
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010015a8
leave
ret

Function at 0x10098ad
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
xor ebx, ebx
push 7
mov dword [ebp - 0x24], ebx
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp dword [eax + 0x200], ebx
jne 0x1009962
cmp dword [eax + 0x1f8], ebx
jne 0x1009962
mov edi, dword [ebp + 0xc]
xor eax, eax
push edi
push esi
mov word [esi], ax
mov word [esi + 2], ax
mov word [esi + 4], ax
mov word [esi + 6], ax
mov word [esi + 8], ax
mov word [esi + 0xa], ax
mov word [esi + 0xc], ax
push ebx
mov word [esi + edi*2 - 4], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x100c9a2
cmp word [esi + edi*2 - 4], bx
jne 0x100c9b0
cmp word [esi], 0x5c
je 0x100c9b8
mov eax, ebx
lea eax, [esi + eax*2]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x10], 0x64
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
cmp eax, 0xffffffff
je 0x100c9f7
xor eax, eax
pop edi
mov word [esi], ax
pop esi
pop ebx
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100caac
jmp 0x100ca03
push edi
push 0x100ca68
jmp 0x100ca03
cmp word [esi + 2], 0x3f
jne 0x1009932
cmp word [esi + 4], 0x3f
jne 0x1009932
cmp word [esi + 6], 0x5c
jne 0x1009932
cmp word [esi + 0xa], 0x3a
jne 0x1009932
cmp word [esi + 0xc], 0x5c
jne 0x1009932
push 4
pop eax
jmp 0x1009934
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100ca24
mov edi, dword [sym.imp.ntdll.dll_DbgPrintEx]
push 1
push 0x70
call edi
push 0x100aba0
push 1
push 0x70
call edi
add esp, 0x1c
jmp 0x1009962
Function at 0x1009a8f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1f8
mov eax, dword [0x1038008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, 0xdc
push esi
lea eax, [ebp - 0x1e8]
push edi
push eax
mov dword [ebp - 0x1ec], edi
mov dword [ebp - 0x1f4], edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1e8]
push eax
push edi
mov ebx, 0x1009b08
mov dword [ebp - 0x1f0], edi
mov edi, dword [sym.imp.USER32.dll_EnumDisplaySettingsW]
push ebx
mov word [ebp - 0x1a4], si
call edi
test eax, eax
jne 0x100f908
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010015a8
leave
ret
mov esi, 0x8000
xor ecx, ecx
mov dword [ebp - 0x1f8], ecx
cmp dword [0x1038e6c], ecx
jbe 0x100f97a
mov eax, dword [0x1038e48]
mov dx, word [ebp - 0x13c]
add eax, ecx
cmp dx, word [eax + 8]
jne 0x100f963
mov dx, word [ebp - 0x138]
cmp dx, word [eax + 0xa]
jne 0x100f963
test byte [ebp - 0x134], 4
je 0x100f956
test byte [eax], 1
je 0x100f963
or dword [eax], esi
inc dword [ebp - 0x1ec]
jmp 0x100f963
test byte [eax], 2
je 0x100f963
or dword [eax], esi
inc dword [ebp - 0x1f4]
inc dword [ebp - 0x1f8]
mov eax, dword [ebp - 0x1f8]
add ecx, 0x10
cmp eax, dword [0x1038e6c]
jb 0x100f91d
inc dword [ebp - 0x1f0]
lea eax, [ebp - 0x1e8]
push eax
push dword [ebp - 0x1f0]
push ebx
call edi
test eax, eax
jne 0x100f90d
cmp dword [ebp - 0x1ec], 2
jb 0x1009af6
xor edi, edi
xor ebx, ebx
inc edi
cmp dword [ebp - 0x1f4], ebx
jbe 0x100f9b8
mov dword [0x1038f2c], edi
mov esi, 0x105
push esi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, ebx
je 0x100fa46
cmp eax, esi
jae 0x100fa46
push 0x100fad4
sub esi, eax
push esi
lea eax, [ebp + eax - 0x10c]
push eax
call fcn.010227f2
cmp eax, ebx
jge 0x100fa0f
push eax
push 0x1012050
mov esi, dword [sym.imp.ntdll.dll_DbgPrintEx]
push edi
push 0x70
call esi
push 0x100aba0
push edi
push 0x70
call esi
add esp, 0x1c
jmp 0x1009af6
push ebx
push ebx
push 3
push ebx
push edi
push 0x80000000
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x1038f24], eax
cmp eax, 0xffffffff
jne 0x100fa3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100faa8
jmp 0x100f9f2
mov eax, edi
jmp 0x1009af8
mov esi, dword [sym.imp.ntdll.dll_DbgPrintEx]
push 0x100fa68
push edi
push 0x70
call esi
push 0x100aba0
push edi
push 0x70
call esi
add esp, 0x18
jmp 0x1009af6
Function at 0x1009e0a
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0xa4
xor ebx, ebx
call esi
mov edi, 0x8000
mov ecx, edi
test cx, ax
jne 0x100a33d
push 0xa5
call esi
mov ecx, edi
test cx, ax
jne 0x100cacb
push 0xa2
call esi
mov ecx, edi
test cx, ax
jne 0x100cad3
push 0xa3
call esi
mov ecx, edi
test cx, ax
jne 0x100cadb
push 0x10
call esi
test di, ax
jne 0x100cae3
push 0x90
call esi
test al, 1
jne 0x100caeb
push 0x91
call esi
test al, 1
jne 0x100caf3
push 0x14
call esi
test al, 1
jne 0x100cafb
mov eax, dword [ebp + 8]
test eax, 0x1000000
jne 0x100b423
pop edi
and eax, 0x4000000
pop esi
or eax, ebx
pop ebx
pop ebp
ret 4
push 2
pop ebx
jmp 0x1009e31
or ebx, 0x100
jmp 0x1009eac
or ebx, 1
jmp 0x1009e43
or ebx, 8
jmp 0x1009e55
or ebx, 4
jmp 0x1009e67
or ebx, 0x10
jmp 0x1009e74
or ebx, 0x20
jmp 0x1009e83
or ebx, 0x40
jmp 0x1009e92
or ebx, 0x80
jmp 0x1009e9e
Function at 0x100a188
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x100a1d5
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x28]
push edi
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
test al, 2
jne 0x100c44b
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlDeleteCriticalSection]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call edi
and dword [ebx + 0x10], 0
pop edi
pop esi
pop ebx
pop ebp
ret 4
push dword [esi + 0x34]
and eax, 0xfffffffd
mov dword [esi + 0x28], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call edi
jmp 0x100a1b5
Function at 0x100a5df
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0x14
pop ecx
lea eax, [esi + 1]
mul ecx
push edx
push eax
call fcn.01005077
test eax, eax
jl 0x100cd35
mov eax, dword fs:[0x18]
mov ecx, dword [0x1038030]
mov eax, dword [eax + 0x30]
push edi
push dword [ebp - 4]
add ecx, 0x200000
push ecx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
je 0x100cd3f
push ebx
push 1
lea eax, [ebp - 0xc]
push eax
push 0
push 1
lea eax, [ebp - 8]
push eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0100a50b
mov ebx, eax
test ebx, ebx
jl 0x100cd49
mov eax, dword [ebp - 8]
push dword [esi]
imul eax, eax, 0x14
add eax, edi
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 4]
add eax, edi
mov dword [esi + 0x18], eax
mov eax, dword fs:[0x18]
mov dword [esi + 0x14], edi
mov dword [esi + 0xc], edi
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov dword [esi], edi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 8
mov eax, 0xc0000095
jmp 0x100a692
mov eax, 0xc0000017
jmp 0x100a691
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x100a68e

Function at 0x100b50d
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [ebp + 0x1c], 0
push esi
je 0x100bbd1
mov eax, 0xc0030001
pop esi
pop ebp
ret 0x18
mov ecx, dword [0x1038030]
push dword [ebp + 0x18]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
add ecx, 0x240000
push ecx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x100ccd4
push edi
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
cmp dword [ebp + 0x18], 0x64
jne 0x100bc23
cmp dword [0x10383cc], edi
jne 0x100bc23
mov dword [0x10383cc], esi
mov eax, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
add eax, 0x1c
push dword [ebp + 0x10]
push eax
call fcn.0100bc49
pop edi
test eax, eax
jne 0x100b51d
jmp 0x100ccde
mov eax, 0xc0000017
jmp 0x100b522
push esi
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
and dword [0x10383cc], 0
jmp 0x100ccd4
Function at 0x100b678
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x2c]
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
je 0x100b68f
mov byte [eax], 0
mov eax, dword [ebp + 0x30]
cmp eax, esi
jne 0x10101e6
mov eax, dword [ebp + 0x34]
cmp eax, esi
je 0x100b6a4
mov byte [eax], 0
mov eax, dword [ebp + 0x38]
cmp eax, esi
je 0x100b6ad
mov dword [eax], esi
movzx edi, byte [ebp + 0x10]
xor ebx, ebx
inc ebx
mov dword [ebp + 0x34], ebx
push ebx
push dword [ebp + 0x28]
lea eax, [ebp + 0x34]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push edi
push esi
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.0100b52c
cmp eax, esi
jl 0x100b6f1
cmp dword [ebp + 0x34], esi
je 0x100b6f8
cmp word [ebp - 0x14], bx
jne 0x100b6b7
jmp 0x10101ee
pop edi
pop esi
pop ebx
leave
ret 0x34
mov eax, 0xc0000001
jmp 0x100b6f1
mov byte [eax], 0
jmp 0x100b69a
cmp dword [ebp + 0x2c], esi
je 0x10101fe
lea eax, [ebp - 0x10]
push eax
call fcn.010142cc
jmp 0x1010210
cmp dword [ebp + 0x30], esi
je 0x101020e
lea eax, [ebp - 0x10]
push eax
call fcn.01014276
jmp 0x1010210
xor eax, eax
mov ecx, dword [ebp + 0x38]
mov edx, dword [ebp - 4]
cmp ecx, esi
je 0x101021c
mov dword [ecx], edx
mov cx, word [ebp - 6]
cmp cx, si
je 0x1010289
cmp eax, esi
jne 0x1010289
cmp dword [ebp - 0x10], esi
jne 0x1010278
cmp word [ebp - 0xa], 0x12
jne 0x100b6b7
test edx, 0x4000000
je 0x1010336
mov al, byte [0x1038415]
test al, al
je 0x10102ea
mov dx, cx
shr dx, 8
test dl, dl
je 0x10102ea
push 2
lea eax, [ebp + 0x10]
push eax
push dword [0x1038330]
mov byte [ebp + 0x10], dl
mov byte [ebp + 0x11], cl
jmp 0x1010314
cmp word [ebp - 0xa], 0x1b
je 0x1010289
cmp cx, 0xa
jne 0x1010336
cmp dword [ebp - 0x10], esi
je 0x100b6b7
mov ecx, dword [ebp + 0x2c]
cmp ecx, esi
je 0x10102a1
cmp eax, esi
jne 0x1010321
mov ecx, dword [ebp + 0x30]
cmp ecx, esi
je 0x10102ac
cmp eax, esi
jne 0x1010329
push esi
call dword [sym.imp.USER32.dll_VkKeyScanW]
movzx eax, ax
movzx cx, al
cmp cx, word [ebp - 0xa]
jne 0x100b6b7
mov ecx, dword [ebp - 4]
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x1038e70]
test ecx, eax
je 0x100b6b7
not eax
and eax, ecx
test al, 0x1f
jne 0x100b6b7
jmp 0x1010332
mov edx, dword [0x1038330]
mov byte [ebp + 0x13], cl
test al, al
je 0x101030e
movsx ax, cl
movzx eax, ax
push eax
push edx
call fcn.010232c9
test eax, eax
je 0x101030e
mov edx, 0x4e4
push ebx
lea eax, [ebp + 0x13]
push eax
push edx
call fcn.0102417f
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
jmp 0x101033c
mov byte [ecx], bl
mov cx, word [ebp - 0xa]
jmp 0x1010336
movsx ax, byte [ebp - 0xa]
mov byte [ecx], bl
jmp 0x1010319
mov cx, word [ebp - 6]
mov eax, dword [ebp + 0xc]
mov word [eax], cx
xor eax, eax
jmp 0x100b6f1