joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e57
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp byte [edi], 0x25
jne 0x403ed4
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
call fcn.00403093
lea eax, [ebp + eax - 0x105]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x25
jne 0x403ebc
and byte [eax], 0
push dword [ebp + 0x1c]
lea eax, [ebp - 0x104]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push eax
push 0x4016ec
call esi
pop edi
pop esi
leave
ret 0x18

Function at 0x4041d7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0xc]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40422c
push esi
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
push esi
lea eax, [ebp + 8]
push esi
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x404223
cmp dword [ebp + 8], esi
jne 0x404223
cmp dword [ebp - 4], esi
jne 0x404223
push 1
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x156926fe
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..rsrc
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x4a1a5c28
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x1004e8d
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 0x100aaaf
push 0xa5
call esi
mov ecx, edi
test cx, ax
jne 0x100c70c
push 0xa2
call esi
mov ecx, edi
test cx, ax
jne 0x100c714
push 0xa3
call esi
mov ecx, edi
test cx, ax
jne 0x100c71c
push 0x10
call esi
test di, ax
jne 0x100c724
push 0x90
call esi
test al, 1
jne 0x100c72c
push 0x91
call esi
test al, 1
jne 0x100c734
push 0x14
call esi
test al, 1
jne 0x100c73c
mov eax, dword [ebp + 8]
test eax, 0x1000000
jne 0x100baae
pop edi
and eax, 0x4000000
pop esi
or eax, ebx
pop ebx
pop ebp
ret 4
push 2
pop ebx
jmp 0x1004eb4
or ebx, 0x100
jmp 0x1004f2f
or ebx, 1
jmp 0x1004ec6
or ebx, 8
jmp 0x1004ed8
or ebx, 4
jmp 0x1004eea
or ebx, 0x10
jmp 0x1004ef7
or ebx, 0x20
jmp 0x1004f06
or ebx, 0x40
jmp 0x1004f15
or ebx, 0x80
jmp 0x1004f21

Function at 0x10055c8
Capabilities:
Create thread

Disassembly:
or dword [0x10382cc], 0x100
jmp 0x1005660
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea eax, [esi + 0x314]
push eax
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x104]
push eax
push dword [esi + 0x100]
push esi
call fcn.010075b9
xor ebx, ebx
cmp eax, ebx
jl 0x1005660
cmp byte [esi + 0xf5], bl
je 0x100466a
push 0x10384e4
push ebx
push ebx
push 0x100300a
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
je 0x100fd71
call fcn.01001505
push ebx
push ebx
push dword [0x1038084]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
call fcn.01001579
push esi
mov esi, dword [sym.imp.ntdll.dll_NtClose]
call esi
push dword [0x1038084]
call esi
mov eax, dword [0x1038e64]
cmp eax, ebx
mov dword [0x1038084], ebx
jl 0x1005660
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
mov eax, 0xc0000017
jmp 0x1005660
Function at 0x1005c9b
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 0x100decb
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 0x100df12
xor eax, eax
jmp 0x1005cc2
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 0x100df5a
push dword [esi + 4]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x100df0b
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 0x100dfb4
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 0x100df0b
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 0x1005cbf
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 0x100dfa1
Function at 0x1006520
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, eax
mov eax, dword [eax]
push esi
test eax, eax
je 0x100656a
mov esi, eax
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1006572
test dx, dx
je 0x100655c
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1006572
add eax, 4
add ecx, 4
test dx, dx
jne 0x100653a
xor eax, eax
test eax, eax
jne 0x1006579
mov eax, dword [ebx]
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 2]
jmp 0x1006583
sbb eax, eax
sbb eax, 0xffffffff
jmp 0x100655e
mov ebx, esi
mov esi, dword [ebx]
test esi, esi
je 0x100656a
jmp 0x1006534
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1006583
sub eax, ecx
mov ecx, dword [0x1038030]
push edi
sar eax, 1
lea edi, [eax + eax + 2]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea edx, [edi + 8]
push edx
add ecx, 0x280000
push ecx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x10065d7
push dword [ebp + 0xc]
and dword [esi], 0
and dword [esi + 4], 0
push edi
lea eax, [esi + 8]
push eax
call fcn.01003418
mov dword [ebx], esi
mov eax, esi
pop edi
jmp 0x1006564
Function at 0x1006b9b
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 0x10076c1
push 1
push esi
push ebx
push dword [ebp + 8]
call fcn.01003a4a
test eax, eax
jne 0x10076c1
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 0x1006c5e
push ebx
push 0x1006c68
push esi
call dword [sym.imp.msvcrt.dll_memmove]
xor eax, eax
add esp, 0xc
add esi, ebx
cmp ax, di
jae 0x1006c5b
dec di
shr di, 1
inc di
movzx eax, di
cmp dword [ebp + 0x10], 0
jne 0x100925a
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 0x1006c3f
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
xor edx, edx
jmp 0x1006beb
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5c
jne 0x1006c49
push 0x5f
pop ecx
jmp 0x1006c4f

Function at 0x1006e61
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 0x100f990
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 0x1006edf
mov eax, dword [esi + 8]
cmp ebx, eax
jb 0x1006efd
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 0x100f99a
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 0x1006edf
mov eax, 0xc0000017
jmp 0x1006ef6
mov ecx, dword [esi + 8]
mov dword [eax], ecx
jmp 0x1006edf
Function at 0x10076cd
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 0x100f9a4
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 0x1007788
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.msvcrt.dll_memmove]
cmp ebx, eax
jb 0x10077a7
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 0x10077b0
mov eax, dword [esi + 0xc]
cmp dword [ebp + 0x18], eax
jb 0x10077b0
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 0x1007788
mov eax, dword [esi + 0xc]
lea ecx, [eax + 2]
cmp ecx, dword [ebp + 0x18]
ja 0x100f9ae
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 0x1007744
mov dword [ebp + 0x10], 0xc0000023
jmp 0x1007788
mov eax, 0xc0000017
jmp 0x10077a0
add eax, 0xfffffffe
mov dword [esi + 0xc], eax
jmp 0x1007777

Function at 0x1007ddf
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
call fcn.01007e4c
xor esi, esi
cmp eax, esi
jl 0x1007e44
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 0x1007e44
push esi
push esi
push esi
push 0x100159c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x100fd67
push eax
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
pop esi
leave
ret
mov eax, 0xc0000017
jmp 0x1007e44
Function at 0x1008219
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], 0x10083f8
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 0x10083a0
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], 0x10083e0
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 0x100839a
cmp dword [ebp - 0x114], esi
je 0x1011ba3
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 0x10083c4
lea eax, [ebp - 0x160]
push eax
call esi
push 0x10083b0
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 0x1011b98
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.0100158a
leave
ret 4
mov dword [edi], 0x40002
jmp 0x100839a
mov dword [ebp - 0x124], 0xc0000034
jmp 0x100839a
Function at 0x1008d58
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, 0x1008dd0
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 0x100f4cc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100158a
leave
ret
mov esi, 0x8000
xor ecx, ecx
mov dword [ebp - 0x1f8], ecx
cmp dword [0x1038e6c], ecx
jbe 0x100f53e
mov eax, dword [0x1038e48]
mov dx, word [ebp - 0x13c]
add eax, ecx
cmp dx, word [eax + 8]
jne 0x100f527
mov dx, word [ebp - 0x138]
cmp dx, word [eax + 0xa]
jne 0x100f527
test byte [ebp - 0x134], 4
je 0x100f51a
test byte [eax], 1
je 0x100f527
or dword [eax], esi
inc dword [ebp - 0x1ec]
jmp 0x100f527
test byte [eax], 2
je 0x100f527
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 0x100f4e1
inc dword [ebp - 0x1f0]
lea eax, [ebp - 0x1e8]
push eax
push dword [ebp - 0x1f0]
push ebx
call edi
test eax, eax
jne 0x100f4d1
cmp dword [ebp - 0x1ec], 2
jb 0x1008dbf
xor edi, edi
xor ebx, ebx
inc edi
cmp dword [ebp - 0x1f4], ebx
jbe 0x100f57c
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 0x100f60a
cmp eax, esi
jae 0x100f60a
push 0x100f69c
sub esi, eax
push esi
lea eax, [ebp + eax - 0x10c]
push eax
call fcn.0102279e
cmp eax, ebx
jge 0x100f5d3
push eax
push 0x1011c20
mov esi, dword [sym.imp.ntdll.dll_DbgPrintEx]
push edi
push 0x70
call esi
push 0x1009c78
push edi
push 0x70
call esi
add esp, 0x1c
jmp 0x1008dbf
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 0x100f603
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100f670
jmp 0x100f5b6
mov eax, edi
jmp 0x1008dc1
mov esi, dword [sym.imp.ntdll.dll_DbgPrintEx]
push 0x100f630
push edi
push 0x70
call esi
push 0x1009c78
push edi
push 0x70
call esi
add esp, 0x18
jmp 0x1008dbf
Function at 0x1008e67
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], 0x1008fd8
mov dword [ebp - 0x21c], 0x1008fbc
mov dword [ebp - 0x218], 0x1008f9c
mov dword [ebp - 0x214], 0x1008f74
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 0x1008f15
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 0x1008f20
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x1008f15
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 0x1008ea8
jmp 0x100c6f6
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100158a
leave
ret
push 0x104
lea eax, [ebp - 0x20c]
push eax
call 0x101a901
jmp 0x1008ff8
Function at 0x100a64c
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.01004f42
test eax, eax
jl 0x100c975
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 0x100c97f
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.0100a57a
mov ebx, eax
test ebx, ebx
jl 0x100c989
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 0x100a6ff
mov eax, 0xc0000017
jmp 0x100a6fe
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 0x100a6fb
Function at 0x100af71
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [ebp + 0x1c], 0
push esi
je 0x100b635
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 0x100c914
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 0x100b687
cmp dword [0x10383cc], edi
jne 0x100b687
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.0100b6ad
pop edi
test eax, eax
jne 0x100af81
jmp 0x100c91e
mov eax, 0xc0000017
jmp 0x100af86
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 0x100c914
Function at 0x100b0dc
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 0x100b0f3
mov byte [eax], 0
mov eax, dword [ebp + 0x30]
cmp eax, esi
jne 0x100fdb6
mov eax, dword [ebp + 0x34]
cmp eax, esi
je 0x100b108
mov byte [eax], 0
mov eax, dword [ebp + 0x38]
cmp eax, esi
je 0x100b111
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.0100aff7
cmp eax, esi
jl 0x100b155
cmp dword [ebp + 0x34], esi
je 0x100b15c
cmp word [ebp - 0x14], bx
jne 0x100b11b
jmp 0x100fdbe
pop edi
pop esi
pop ebx
leave
ret 0x34
mov eax, 0xc0000001
jmp 0x100b155
mov byte [eax], 0
jmp 0x100b0fe
cmp dword [ebp + 0x2c], esi
je 0x100fdce
lea eax, [ebp - 0x10]
push eax
call fcn.01013e9c
jmp 0x100fde0
cmp dword [ebp + 0x30], esi
je 0x100fdde
lea eax, [ebp - 0x10]
push eax
call fcn.01013e46
jmp 0x100fde0
xor eax, eax
mov ecx, dword [ebp + 0x38]
mov edx, dword [ebp - 4]
cmp ecx, esi
je 0x100fdec
mov dword [ecx], edx
mov cx, word [ebp - 6]
cmp cx, si
je 0x100fe59
cmp eax, esi
jne 0x100fe59
cmp dword [ebp - 0x10], esi
jne 0x100fe48
cmp word [ebp - 0xa], 0x12
jne 0x100b11b
test edx, 0x4000000
je 0x100ff06
mov al, byte [0x1038415]
test al, al
je 0x100feba
mov dx, cx
shr dx, 8
test dl, dl
je 0x100feba
push 2
lea eax, [ebp + 0x10]
push eax
push dword [0x1038330]
mov byte [ebp + 0x10], dl
mov byte [ebp + 0x11], cl
jmp 0x100fee4
cmp word [ebp - 0xa], 0x1b
je 0x100fe59
cmp cx, 0xa
jne 0x100ff06
cmp dword [ebp - 0x10], esi
je 0x100b11b
mov ecx, dword [ebp + 0x2c]
cmp ecx, esi
je 0x100fe71
cmp eax, esi
jne 0x100fef1
mov ecx, dword [ebp + 0x30]
cmp ecx, esi
je 0x100fe7c
cmp eax, esi
jne 0x100fef9
push esi
call dword [sym.imp.USER32.dll_VkKeyScanW]
movzx eax, ax
movzx cx, al
cmp cx, word [ebp - 0xa]
jne 0x100b11b
mov ecx, dword [ebp - 4]
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x1038e70]
test ecx, eax
je 0x100b11b
not eax
and eax, ecx
test al, 0x1f
jne 0x100b11b
jmp 0x100ff02
mov edx, dword [0x1038330]
mov byte [ebp + 0x13], cl
test al, al
je 0x100fede
movsx ax, cl
movzx eax, ax
push eax
push edx
call fcn.01023275
test eax, eax
je 0x100fede
mov edx, 0x4e4
push ebx
lea eax, [ebp + 0x13]
push eax
push edx
call fcn.0102412f
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
jmp 0x100ff0c
mov byte [ecx], bl
mov cx, word [ebp - 0xa]
jmp 0x100ff06
movsx ax, byte [ebp - 0xa]
mov byte [ecx], bl
jmp 0x100fee9
mov cx, word [ebp - 6]
mov eax, dword [ebp + 0xc]
mov word [eax], cx
xor eax, eax
jmp 0x100b155