joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000beb0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000befa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000befa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000befa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000befa
cmp dword [rcx + 0x84], 0xe
jbe 0x14000befa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000befc
xor al, al
add rsp, 0x28
ret

Function at 0x14000fc18
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000fa83
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fa83
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fa83
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fa83
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fa83
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fa83
cmp dword [rcx + 0xf8], 0
je 0x14000fa83
mov ecx, ebx
call fcn.14000fb34
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f910
nop
cmp dword [rbp + 0x20], 0
je 0x14000fad1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000fadc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000fa14
Function at 0x140019204
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001928b
mov rsi, rbx
cmp word [rax], bp
je 0x14001924a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140019234
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140019230
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016a34
mov rdi, rax
test rax, rax
je 0x140019278
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400204e0
mov rbp, rdi
xor ecx, ecx
call fcn.140015a58
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b854
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b86a
mov al, 1
jmp 0x14001b8ca
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b87b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b8c8
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400199a8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b8c8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b8c8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b8c8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b8ca
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001fce0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001fd08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001fd08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140007740
Capabilities:
Access pe header
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x60]
call sub.ntoskrnl.exe_RtlImageNtHeader
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140007899
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x24], 0
jmp 0x1400077dc
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x24], eax
jae 0x140007899
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x28
mov ecx, dword [rsp + 0x24]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x30]
mov ecx, dword [r8 + rcx + 8]
cmp dword [rdx + rax + 0x10], ecx
jbe 0x14000782b
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x10]
mov dword [rsp + 0x44], eax
jmp 0x140007840
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 8]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0xc]
cmp dword [rsp + 0x20], eax
jb 0x140007894
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0xc]
add eax, dword [rsp + 0x40]
cmp dword [rsp + 0x20], eax
jae 0x140007894
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x140007899
jmp 0x1400077d2
mov rax, qword [rsp + 0x28]
add rsp, 0x58
ret
Function at 0x1400078b0
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x60]
call sub.ntoskrnl.exe_RtlImageNtHeader
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400079b5
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x68]
call sub.ntoskrnl.exe_strlen
cmp rax, 8
jae 0x14000793d
mov rcx, qword [rsp + 0x68]
call sub.ntoskrnl.exe_strlen
mov qword [rsp + 0x48], rax
jmp 0x140007946
mov qword [rsp + 0x48], 8
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x20], 0
jmp 0x140007962
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x1400079b5
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x28]
add rdx, rcx
mov rcx, rdx
mov r8, rax
mov rdx, qword [rsp + 0x68]
call sub.ntoskrnl.exe__strnicmp
test eax, eax
jne 0x1400079b3
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
jmp 0x1400079b5
jmp 0x140007958
mov rax, qword [rsp + 0x30]
add rsp, 0x58
ret
Function at 0x140008b90
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
jmp 0x140008c34
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor edi, edi
mov r13, r9
mov r12b, dl
mov dword [rax - 0x48], edi
mov rbp, rcx
lea r9, [rax - 0x48]
xor r8d, r8d
xor edx, edx
lea r14d, [rdi + 5]
mov esi, edi
mov ecx, r14d
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov r15d, 0xc0000004
jmp 0x140008cb0
mov ebx, dword [rsp + 0x20]
mov ecx, 1
mov edx, ebx
mov r8d, 0x6a6e494b
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
lea r9, [rsp + 0x20]
mov r8d, ebx
mov rdx, rax
mov ecx, r14d
mov rsi, rax
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov ebx, eax
cmp eax, r15d
je 0x140008c82
test eax, eax
jns 0x140008cd5
test rsi, rsi
je 0x140008cce
mov edx, 0x6a6e494b
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
jmp 0x140008db7
mov r15, rsi
mov qword [rsp + 0x30], rsi
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_PsGetProcessId]
cmp qword [rsi + 0x50], rax
je 0x140008cff
mov eax, dword [rsi]
add rsi, rax
cmp dword [rsi], edi
jne 0x140008cdd
mov edi, 0xc0000225
jmp 0x140008da7
mov r14d, edi
cmp dword [rsi + 4], edi
jbe 0x140008da7
mov r15, qword [rsp + 0x80]
mov eax, r14d
lea rcx, [rax + rax*4]
add rcx, rcx
mov rbx, qword [rsi + rcx*8 + 0x130]
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
cmp rbx, rax
je 0x140008d95
lea rdx, [rsp + 0x28]
mov qword [rsp + 0x28], rdi
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupThreadByThreadId]
test eax, eax
js 0x140008d95
mov rbp, qword [rsp + 0x28]
test rbp, rbp
je 0x140008d95
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_PsGetThreadTeb]
mov rbx, rax
test rax, rax
je 0x140008d8a
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_PsIsThreadTerminating]
test al, al
jne 0x140008d8a
cmp qword [rbx + 0x78], rdi
jne 0x140008d8a
test r12b, r12b
je 0x140008dd5
cmp dword [rbx + 0x21a8], edi
je 0x140008d8a
cmp dword [rbx + 0x202c], edi
jne 0x140008de4
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
inc r14d
cmp r14d, dword [rsi + 4]
jb 0x140008d13
mov r15, qword [rsp + 0x30]
mov edx, 0x6a6e494b
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
cmp qword [rbx + 0x2c8], rdi
je 0x140008d8a
cmp qword [rbx + 0x58], rdi
je 0x140008d8a
mov rcx, qword [rsp + 0x28]
mov r8, r13
mov rdx, r15
call fcn.140008e08
mov rcx, qword [rsp + 0x28]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
test ebx, ebx
jns 0x140008da2
jmp 0x140008d95
Function at 0x140008ff0
Capabilities:
Create device object

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
mov qword [0x1400175f0], rcx
call fcn.140009d6c
lea rdx, str.Device_thnhlv
lea rcx, [0x140017690]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, str.DosDevices_thnhlv
lea rcx, [0x140017680]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [0x1400176a0]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
lea r8, [0x140017690]
mov byte [rsp + 0x28], 0
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
lea rdx, [0x140017690]
lea rcx, [0x140017680]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
lea rax, [0x140008f50]
mov qword [rbx + 0x70], rax
lea rax, [0x140008f50]
mov qword [rbx + 0x80], rax
lea rax, [0x140009210]
mov qword [rbx + 0xe0], rax
lea rax, [0x140009c10]
mov qword [rbx + 0x68], rax
call fcn.1400090e4
lea rcx, [0x140017600]
call fcn.14000a294
mov rcx, rbx
call fcn.14000ab0c
mov rcx, rbx
call fcn.14000ac70
mov rax, qword [0x1400176a0]
or dword [rax + 0x30], 0x10
mov rax, qword [0x1400176a0]
btr dword [rax + 0x30], 7
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x140009848
Capabilities:
Attach user process memory

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x140013640]
xor rax, rsp
mov qword [rbp + 0x37], rax
and dword [rbp - 0x19], 0
mov rdi, rdx
and dword [rbp - 0x15], 0
lea rdx, [rbp + 7]
mov rbx, rcx
mov qword [rbp - 9], r8
mov qword [rbp - 0x11], r9
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea rax, [rbp - 0x19]
mov r9d, 4
lea r8, [rbp - 0x11]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 9]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
test eax, eax
js 0x1400098e7
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r9, qword [rbp - 9]
mov rdx, rdi
mov r8, rax
mov rcx, rbx
lea rax, [rbp - 1]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x11]
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov ebx, eax
sar ebx, 0x1f
and ebx, 0xc0000022
jmp 0x1400098ec
mov ebx, 0xc0000022
mov r9d, dword [rbp - 0x19]
lea rax, [rbp - 0x15]
lea r8, [rbp - 0x11]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 9]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
lea rcx, [rbp + 7]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14000ddb0
add rsp, 0xa0
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400099ac
Capabilities:
Attach user process memory

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0xb8
mov rax, qword [0x140013640]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, rdx
mov qword [rbp - 0x29], r8
mov rbx, rcx
mov qword [rbp - 0x31], r9
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, qword [rbp - 0x29]
lea rdx, [rbp - 9]
and dword [rbp - 0x39], 0
mov rsi, rax
and dword [rbp - 0x35], 0
mov qword [rbp - 0x19], rcx
mov rcx, qword [rbp - 0x31]
mov qword [rbp - 0x21], rcx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea rax, [rbp - 0x39]
mov r9d, 4
lea r8, [rbp - 0x21]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x19]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
test eax, eax
js 0x140009a8d
mov r9, qword [rbp - 0x29]
lea rax, [rbp - 0x11]
mov qword [rsp + 0x30], rax
mov r8, rbx
mov rax, qword [rbp - 0x31]
mov rdx, rdi
mov byte [rsp + 0x28], 0
mov rcx, rsi
mov qword [rsp + 0x20], rax
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov r9d, dword [rbp - 0x39]
lea r8, [rbp - 0x31]
mov ebx, eax
lea rdx, [rbp - 0x29]
lea rax, [rbp - 0x35]
sar ebx, 0x1f
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
and ebx, 0xc0000022
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, ebx
jmp 0x140009a92
mov eax, 0xc0000022
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14000ddb0
add rsp, 0xb8
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x140009b30
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x40
and qword [rsp + 0x58], 0
lea rdx, [rsp + 0x58]
mov ebx, ecx
mov ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jne 0x140009ba8
lea rax, [rsp + 0x60]
mov r9d, 0x19
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov rax, qword [sym.imp.ntoskrnl.exe_PsProcessType]
xor edx, edx
mov byte [rsp + 0x28], 0
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
test eax, eax
jne 0x140009ba8
mov rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ZwTerminateProcess]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, ebx
call fcn.140009fac
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x140009fe4
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0x40
and dword [rax + 8], 0
and qword [rax - 0x20], 0
cmp qword [0x140013710], 0
jne 0x14000a0e7
lea rdx, str.NtOpenFile
lea rcx, [rax - 0x18]
call fcn.14000a7a4
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rdi, rax
test rax, rax
je 0x14000a0ee
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x50]
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [rsp + 0x50]
test eax, eax
jne 0x14000a052
xor eax, eax
jmp 0x14000a0ee
mov rdx, rax
xor ecx, ecx
mov r8d, 0x6a6e494b
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
mov qword [rsp + 0x28], rax
mov r8d, dword [rsp + 0x50]
xor edx, edx
mov rcx, rax
call fcn.14000e280
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x50]
mov rdx, rbx
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x14000a0cd
xor ecx, ecx
mov dword [rsp + 0x20], ecx
cmp ecx, dword [rbx]
jae 0x14000a0cd
mov eax, ecx
imul r8, rax, 0x128
mov rdx, qword [r8 + rbx + 0x18]
cmp rdi, rdx
jb 0x14000a0c9
mov eax, dword [r8 + rbx + 0x20]
add rax, rdx
cmp rdi, rax
jae 0x14000a0c9
mov qword [0x140013710], rdx
jmp 0x14000a0cd
inc ecx
jmp 0x14000a098
jmp 0x14000a0d4
test rbx, rbx
je 0x14000a0e7
mov edx, 0x6a6e494b
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x140013710]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14000a0fc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
xor ebx, ebx
xorps xmm0, xmm0
mov qword [rbp + 0x6f], rbx
xorps xmm1, xmm1
mov dword [rbp + 0x1b], ebx
mov r14, rcx
mov dword [rbp + 0x33], ebx
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm1
movups xmmword [rbp - 0x19], xmm0
test rcx, rcx
jne 0x14000a146
mov eax, 0xc000000d
jmp 0x14000a27b
lea rdx, str.RegistryMachineSoftwareMicrosoftWindows_NTCurrentVersion
lea rcx, [rbp - 9]
call fcn.14000a7a4
lea rdx, str.BuildLabEx
lea rcx, [rbp + 7]
call fcn.14000a7a4
lea rax, [rbp - 9]
mov dword [rbp + 0x17], 0x30
xorps xmm0, xmm0
mov qword [rbp + 0x27], rax
lea r8, [rbp + 0x17]
mov qword [rbp + 0x1f], rbx
mov edx, 0x20019
mov dword [rbp + 0x2f], 0x240
lea rcx, [rbp + 0x6f]
movdqu xmmword [rbp + 0x37], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov esi, eax
test eax, eax
js 0x14000a279
mov esi, 0x1000
mov r8d, 0x6a6e494b
mov edx, esi
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [rbp + 0x67], ebx
mov rdi, rax
test rax, rax
je 0x14000a26a
mov rcx, qword [rbp + 0x6f]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 7]
mov r9, rdi
mov dword [rsp + 0x20], esi
mov r8d, 1
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov esi, eax
test eax, eax
js 0x14000a25a
mov r8d, dword [rdi + 0x10]
mov edx, dword [rdi + 0xc]
add r8, rdi
test edx, edx
je 0x14000a25a
mov r9d, ebx
cmp word [r8 + r9*2 + 0x14], 0x2e
jne 0x14000a224
lea ecx, [rbx + 1]
jmp 0x14000a220
cmp word [r8 + rcx*2 + 0x14], 0x2e
je 0x14000a22c
inc ecx
cmp ecx, edx
jb 0x14000a215
inc ebx
cmp ebx, edx
jae 0x14000a25a
jmp 0x14000a204
add r8, 0x16
sub cx, bx
add cx, cx
mov edx, 0xa
mov word [rbp - 0x17], cx
mov word [rbp - 0x19], cx
lea rcx, [rbp - 0x19]
lea rax, [r8 + r9*2]
mov r8, r14
mov qword [rbp - 0x11], rax
call qword [sym.imp.ntoskrnl.exe_RtlUnicodeStringToInteger]
mov esi, eax
mov edx, 0x6a6e494b
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14000a26f
mov esi, 0xc0000017
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000a864
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140013640]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x50], 0
mov rsi, rdx
lea rdx, [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x14000a992
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14000a992
and qword [rbp - 0x48], 0
lea rax, [rbp - 0x48]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov rcx, qword [rbp - 0x50]
test eax, eax
jne 0x14000a8e1
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xc000010a
jmp 0x14000a997
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rcx, qword [rbp - 0x50]
lea rdx, [rbp - 0x38]
xorps xmm0, xmm0
test rax, rax
movups xmmword [rbp - 0x38], xmm0
setne dil
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rbp - 0x50]
mov dl, dil
call fcn.14000cc84
test rax, rax
je 0x14000a97a
and qword [rbp - 0x40], 0
lea rcx, [rbp - 0x48]
and qword [rbp - 0x48], 0
lea r9, [rbp - 0x40]
mov qword [rsp + 0x20], rcx
mov r8b, dil
mov rcx, rsi
mov rdx, rax
call fcn.14000a9b8
test eax, eax
jns 0x14000a949
mov ebx, eax
jmp 0x14000a97a
mov r9, qword [rbp - 0x48]
mov dl, dil
mov r8, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x50]
call fcn.140008b90
mov ebx, eax
test eax, eax
jns 0x14000a97a
mov r9d, 0x10000
lea rdx, [rbp - 0x40]
xor r8d, r8d
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
jmp 0x14000a997
mov eax, 0xc0000225
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14000ddb0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000a9b8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
and qword [rbp - 0x30], 0
mov r15, r9
mov r12b, r8b
mov dword [rax - 0x60], 0x40
mov rsi, rdx
mov qword [rbp - 0x20], 0x1000
mov r13, rcx
mov dword [rax - 0x68], 0x3000
lea r9, [rbp - 0x20]
xor r8d, r8d
lea rdx, [rbp - 0x30]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov edi, eax
test eax, eax
js 0x14000aaed
mov rcx, qword [rbp - 0x30]
lea rdx, [0x14000f658]
mov al, r12b
xorps xmm0, xmm0
neg al
movzx eax, word [r13]
sbb r14, r14
and qword [rbp - 0x28], 0
mov word [rbp - 0x26], ax
and r14, 0xfffffffffffffff4
mov word [rbp - 0x28], ax
add r14, 0x23
movups xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x16], ax
mov r8, r14
mov word [rbp - 0x18], ax
lea rax, [rcx + 0x10]
add rax, r14
mov qword [rbp - 0x10], rax
lea eax, [rcx + 8]
add eax, r14d
mov dword [rbp - 0x24], eax
mov al, r12b
neg al
lea rax, [0x14000f640]
sbb rbx, rbx
and rbx, 0xfffffffffffffff8
add rbx, 0x10
test r12b, r12b
cmovne rdx, rax
call fcn.14000e480
mov rcx, qword [rbp - 0x30]
lea rax, [rbp - 0x18]
test r12b, r12b
lea rdx, [rbp - 0x28]
mov r8, rbx
cmove rdx, rax
add rcx, r14
call fcn.14000e480
movzx r8d, word [r13]
lea rcx, [rbx + r14]
add rcx, qword [rbp - 0x30]
mov rdx, qword [r13 + 8]
call fcn.14000e480
mov rax, qword [rbp - 0x30]
test r12b, r12b
je 0x14000aad5
mov dword [rax + 1], esi
jmp 0x14000aad9
mov qword [rax + 2], rsi
mov rax, qword [rbp - 0x30]
mov qword [r15], rax
lea rcx, [r14 + rax]
mov rax, qword [rbp + 0x50]
mov qword [rax], rcx
mov eax, edi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret

Function at 0x14000c800
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd r9, dword [rcx + 0x3c]
lea rbx, [rcx + 0x18]
add rbx, r9
xor r10d, r10d
xor edi, edi
mov r14, r8
mov r15, rdx
mov rsi, rcx
movzx eax, word [r9 + rcx + 0x14]
movzx ebp, word [r9 + rcx + 6]
add rbx, rax
test ebp, ebp
je 0x14000c887
cmp dword [rbx], 0x45474150
je 0x14000c861
mov eax, dword [rbx]
cmp eax, dword [str..text]
jne 0x14000c87d
mov al, byte [rbx + 4]
cmp al, byte [0x14001360c]
jne 0x14000c87d
mov ecx, dword [rbx + 0xc]
mov r9, r14
mov edx, dword [rbx + 8]
add rcx, rsi
mov r8, r15
call fcn.14000c78c
mov r10, rax
test rax, rax
jne 0x14000c887
inc edi
add rbx, 0x28
cmp edi, ebp
jb 0x14000c844
mov rbx, qword [rsp + 0x40]
mov rax, r10
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret