joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4491e0
Capabilities:
Access peb ldr_data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rcx, r14
test rcx, rcx
je 0x449228
mov rcx, qword [rcx + 0x30]
mov rcx, qword [rcx + 0x90]
nop dword [rax + rax]
test rcx, rcx
je 0x449228
mov qword [rsp + 0x68], rcx
nop
mov rax, qword [rdi + 0x28]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
jmp 0x449238
mov eax, 1
add rsp, 0x70
pop rbp
ret
mov rax, qword [rsp + 0x60]
mov rcx, qword [sym.imp.kernel32.dll_RtlLookupFunctionEntry]
lea rdx, [rsp + 0x58]
mov rbx, qword [rax + 0xf8]
mov qword [rsp], rcx
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], 0
call fcn.00432f80
xorps xmm15, xmm15
mov r14, qword [0x0061fb30]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x20]
nop
test rax, rax
je 0x449311
mov rcx, qword [rsp + 0x58]
mov rdx, qword [sym.imp.kernel32.dll_RtlVirtualUnwind]
mov rbx, qword [rsp + 0x60]
mov rsi, rbx
lea rdi, [rsp + 0x50]
mov r8, qword [rsi + 0xf8]
mov qword [rsp], rdx
mov qword [rsp + 8], 0
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 0
call fcn.00433200
xorps xmm15, xmm15
mov r14, qword [0x0061fb30]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
cmp qword [rcx], rax
ja 0x449311
cmp qword [rcx + 8], rax
ja 0x449233
mov eax, 1
add rsp, 0x70
pop rbp
ret
Function at 0x450f80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x4510f7
movzx edx, byte [rax]
test edx, edx
jne 0x450fb4
nop dword [rax]
test r8b, r8b
jne 0x450fb4
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x450fc7
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x4510b7
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x4510a5
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x451097
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x45101d
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x451060
mov eax, 1
cmp rax, rbx
ja 0x45104b
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.00464120
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x45108f
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x451053
mov rcx, r11
mov eax, r12d
jmp 0x451022
mov rcx, rbx
call fcn.00464060
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.00464060
mov eax, r8d
mov rcx, rbx
call fcn.00464120
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x4510ed
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x4510b0
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x450fcd
mov eax, edx
mov rcx, rbx
call fcn.00464060
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.00464060
nop
int3

Function at 0x456cc0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x456d75
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdi
test byte [rax], al
lea rdx, [rax + 0x10]
mov rsi, qword [rsp + 0x68]
mov rcx, rdi
mov rax, rdx
mov rbx, rsi
call fcn.00454940
nop
test bl, bl
je 0x456d6f
mov qword [rsp + 0x18], rax
movups xmmword [rsp + 0x20], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
lea rcx, [0x00456dc0]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp], rcx
call fcn.00461c60
xorps xmm15, xmm15
mov r14, qword [0x0061fb30]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00461d80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00456cc0
Function at 0x459d20
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x459dcf
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x00459e20]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00461c60
xorps xmm15, xmm15
mov r14, qword [0x0061fb30]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00461d80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.00459d20
Function at 0x463b80
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x404323
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.0040a2a0
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00461d80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x404300
cmp byte [0x0061f92a], 0
je 0x463b95
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x460dc0
jmp 0x404300

Function at 0x463ba0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x0061fc20]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x0061f92a], 0
je 0x463bd5
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x0061ff40]
aesenc xmm0, xmmword [0x0061ff50]
aesenc xmm0, xmmword [0x0061ff60]
movq rax, xmm0
ret
jmp 0x40a4c0

Function at 0x463be0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x0061fc20]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x0061f92a], 0
je 0x463c16
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x0061ff40]
aesenc xmm0, xmmword [0x0061ff50]
aesenc xmm0, xmmword [0x0061ff60]
movq rax, xmm0
ret
jmp 0x40a520

Function at 0x4659a0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x4659d4
mov rcx, 0x28
jmp 0x4659df
shl rcx, 3
add rcx, 0x1480
mov qword [0x0061fb30], rcx
pop rbp
ret
Function at 0x479b20
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x479d5b
push rbp
mov rbp, rsp
sub rsp, 0x78
mov ebx, dword [rax + 0x2c]
test ebx, ebx
jne 0x479bba
mov qword [rsp + 0x88], rax
lea rbx, [0x004c8700]
mov rcx, rax
lea rax, [0x0059ae80]
call fcn.004751e0
test cl, cl
jne 0x479ba3
mov rax, qword [rsp + 0x88]
call fcn.00479380
mov ecx, 1
mov rdi, rax
mov rsi, rbx
lea rax, [rsp + 0x28]
lea rbx, [0x004f2118]
call fcn.0044dba0
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x48], rbx
call fcn.00479da0
mov rcx, qword [rsp + 0x88]
xor edx, edx
jmp 0x479be0
lea rdx, [0x004c6960]
cmp rax, rdx
jne 0x479bcb
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
ret
nop
nop dword [rax + rax]
call fcn.0045fb00
add rsp, 0x78
pop rbp
ret
mov rbx, rdx
lea rcx, [0x004b79e0]
call fcn.0040afc0
inc rdx
nop dword [rax]
cmp rbx, rdx
jle 0x479c24
mov rsi, qword [rax + rdx*8]
cmp qword [rsi + 0x30], rcx
jne 0x479bda
lea rax, [0x0059ae80]
lea rbx, [0x004c8700]
lea rdi, [0x004c6960]
call fcn.004753a0
lea rdx, [0x004c6960]
cmp rax, rdx
jne 0x479d4b
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
ret
lea rcx, [0x004b1d40]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x68], rcx
lea rax, [0x004bab40]
call fcn.0040e260
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x68]
test byte [rcx], al
cmp dword [0x0061fb70], 0
je 0x479c7d
mov rbx, rax
lea rax, [0x004bab40]
call fcn.00413020
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rcx]
mov qword [rax], rdx
movups xmm0, xmmword [rcx + 8]
movups xmmword [rax + 8], xmm0
movups xmm0, xmmword [rcx + 0x18]
movups xmmword [rax + 0x18], xmm0
movups xmm0, xmmword [rcx + 0x28]
movups xmmword [rax + 0x28], xmm0
nop
mov rbx, qword [rsp + 0x48]
xor ecx, ecx
xor edi, edi
xor esi, esi
mov r8d, esi
mov rax, qword [rsp + 0x60]
call fcn.00401400
nop
call fcn.0045fbc0
mov rsi, qword [rsp + 0x70]
mov dword [rsi + 0x28], eax
mov dword [rsi + 0x2c], 0
mov rcx, qword [rsp + 0x88]
mov edx, dword [rcx + 0x10]
xor eax, eax
jmp 0x479ce6
imul edx, edx, 0x1000193
xor edx, 0x2a
mov eax, 1
test rax, rax
jle 0x479cd8
mov dword [rsi + 0x10], edx
cmp dword [0x0061fb70], 0
je 0x479d07
call fcn.00463cc0
mov qword [r11], rcx
mov rdx, qword [rsi + 0x30]
mov qword [r11 + 8], rdx
mov qword [rsi + 0x30], rcx
lea rax, [0x0059ae80]
lea rbx, [0x004c8700]
lea rdi, [0x004c6960]
call fcn.004753a0
lea rdx, [0x004c6960]
cmp rax, rdx
jne 0x479d3c
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
ret
mov rbx, rdx
lea rcx, [0x004b79e0]
call fcn.0040afc0
mov rbx, rdx
lea rcx, [0x004b79e0]
call fcn.0040afc0
nop
mov qword [rsp + 8], rax
call fcn.00461d80
mov rax, qword [rsp + 8]
jmp fcn.00479b20
Function at 0x482820
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4828ea
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.00403880
xorps xmm15, xmm15
mov r14, qword [0x0061fb30]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x4828cf
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004b4880]
xor ebx, ebx
mov rcx, rdx
call fcn.00449da0
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.004832a0
inc rbx
cmp rcx, rbx
jae 0x4828be
mov edi, 1
lea rsi, [0x004b4880]
call fcn.00449e80
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x004f3758]
lea rsi, [0x004f2dd0]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00461d80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00482820
Function at 0x1400010d0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
and dword [rsp + 0x48], 0
mov rdi, rcx
cmp qword [0x14000a050], 0
je 0x140001107
test rcx, rcx
je 0x1400011f6
mov eax, dword [0x14000a058]
mov dword [rcx], eax
jmp 0x1400011f6
lea rdx, [0x140007e40]
lea rcx, [rsp + 0x20]
call fcn.1400025a4
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rsi, rax
test rax, rax
je 0x1400011ff
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
xor edx, edx
lea ecx, [rdx + 0xb]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x1400011ff
mov edx, eax
xor ecx, ecx
mov r8d, 0x454e4f45
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.140007980
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
mov rdx, rbx
mov ecx, 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
js 0x1400011e3
mov r8d, dword [rbx]
xor edx, edx
test r8d, r8d
je 0x1400011e3
lea rcx, [rbx + 0x20]
mov r9, qword [rcx - 8]
cmp rsi, r9
jb 0x1400011ad
mov eax, dword [rcx]
add rax, r9
cmp rsi, rax
jb 0x1400011bd
inc edx
add rcx, 0x128
cmp edx, r8d
jb 0x14000119a
jmp 0x1400011e3
mov eax, edx
imul rcx, rax, 0x128
mov rax, qword [rcx + rbx + 0x18]
mov qword [0x14000a050], rax
mov eax, dword [rcx + rbx + 0x20]
mov dword [0x14000a058], eax
test rdi, rdi
je 0x1400011e3
mov dword [rdi], eax
test rbx, rbx
je 0x1400011f6
mov edx, 0x454e4f45
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x14000a050]
jmp 0x140001201
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140001220
Capabilities:
Access pe header

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r15, qword [rsp + 0xa0]
mov rbp, r9
mov r12b, r8b
mov r13, rdx
test r15, r15
jne 0x140001260
mov eax, 0xc000000d
jmp 0x1400012f8
xor ecx, ecx
call fcn.1400010d0
mov rbx, rax
test rax, rax
je 0x1400012f3
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rsi, rax
test rax, rax
jne 0x14000128b
mov eax, 0xc000007b
jmp 0x1400012f8
lea r14, [rax + 0x108]
movzx eax, word [rax + 6]
mov rdi, r14
lea rcx, [rax + rax*4]
lea rax, [r14 + rcx*8]
cmp r14, rax
jae 0x1400012f3
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
je 0x140001316
movzx eax, word [rsi + 6]
add rdi, 0x28
lea rcx, [rax + rax*4]
lea rax, [r14 + rcx*8]
cmp rdi, rax
jb 0x1400012a6
mov eax, 0xc0000225
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r9d, dword [rdi + 0xc]
lea rcx, [rsp + 0xa0]
mov eax, dword [rdi + 8]
add r9, rbx
and qword [rsp + 0xa0], 0
mov r8, rbp
mov qword [rsp + 0x28], rcx
mov dl, r12b
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.140001020
test eax, eax
js 0x1400012f8
mov ecx, dword [rsp + 0xa0]
sub ecx, ebx
mov dword [r15], ecx
jmp 0x1400012f8

Function at 0x140003650
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebp, ebp
lea r9, [rax + 0x10]
mov rsi, rcx
mov dword [rax + 0x10], ebp
xor r8d, r8d
xor edx, edx
lea ebx, [rbp + 0xb]
mov ecx, ebx
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140003716
mov edx, eax
xor ecx, ecx
mov r8d, 0x4e554c4c
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rax
mov ecx, ebx
mov rdi, rax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
js 0x140003716
mov r8d, dword [rdi]
mov ebx, ebp
mov ecx, ebp
test r8d, r8d
je 0x1400036ff
mov eax, ecx
mov r10, rsi
imul r11, rax, 0x128
lea rax, [rdi + 0x30]
add rax, r11
sub r10, rax
movzx edx, byte [rax]
movzx r9d, byte [rax + r10]
sub edx, r9d
jne 0x1400036ed
inc rax
test r9d, r9d
jne 0x1400036d8
test edx, edx
je 0x1400036fa
inc ecx
cmp ecx, r8d
jb 0x1400036c2
jmp 0x1400036ff
mov rbx, qword [r11 + rdi + 0x18]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rbx, rbx
cmove rbx, rbp
mov rax, rbx
jmp 0x140003718
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140003850
Capabilities:
Find process by pid
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
mov edi, r9d
lea rcx, [0x140007f50]
mov rsi, r8
mov rbp, rdx
call sub.ntoskrnl.exe_DbgPrint
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rsp + 0x40], 0
jne 0x1400038a8
lea rcx, [0x140007f70]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
jmp 0x1400038e5
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r8, qword [rsp + 0x40]
mov r9, rbp
mov rcx, rax
mov rdx, rsi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rdi
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140003900
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x50
and qword [rax - 0x18], 0
mov rsi, rdx
lea rdx, [rax - 0x18]
mov ebx, r9d
mov rdi, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rsp + 0x40], 0
jne 0x140003934
xor eax, eax
jmp 0x140003971
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, qword [rsp + 0x40]
mov r9, rdi
mov r8, rax
mov rdx, rsi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140003990
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
and qword [rsp + 0x30], 0
mov rbx, rdx
lea rdx, [rsp + 0x30]
mov edi, r8d
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
jne 0x1400039d1
xor eax, eax
jmp 0x140003a25
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x40], rbx
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
lea rdx, [rsp + 0x38]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400077c0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140003a50
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
and qword [rsp + 0x20], 0
mov rbx, rdx
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140003ad7
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x30], rbx
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
and qword [rsp + 0x28], 0
lea r8, [rsp + 0x28]
mov r9d, 0x8000
lea rdx, [rsp + 0x30]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
mov edx, eax
lea rcx, [0x140007f90]
call sub.ntoskrnl.exe_DbgPrint
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400077c0
add rsp, 0x70
pop rbx
ret

Function at 0x140003af0
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x98
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
mov ebp, r9d
lea rcx, [0x140007fb0]
mov rsi, r8
mov rdi, rdx
call sub.ntoskrnl.exe_DbgPrint
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
jne 0x140003b54
lea rcx, [0x140007f70]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
jmp 0x140003bb3
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rsi
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea rax, [rsp + 0x38]
mov r9d, ebp
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x48]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
mov edx, eax
lea rcx, [0x140007fd0]
call sub.ntoskrnl.exe_DbgPrint
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400077c0
add rsp, 0x98
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140003be0
Capabilities:
Find process by pid
Print debug messages

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
lea rcx, [0x140007ff0]
call sub.ntoskrnl.exe_DbgPrint
and qword [rsp + 0x58], 0
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jne 0x140003c23
lea rcx, [0x140007f70]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
jmp 0x140003c76
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov r9d, 0x1fffff
mov rax, qword [sym.imp.ntoskrnl.exe_PsProcessType]
xor r8d, r8d
mov byte [rsp + 0x28], 0
mov rdx, qword [rax]
mov qword [rsp + 0x20], rdx
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov edx, eax
lea rcx, [0x140008010]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret

Function at 0x140003c90
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x50
and qword [rax - 0x18], 0
mov rsi, rdx
lea rdx, [rax - 0x18]
mov ebx, r9d
mov rdi, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rsp + 0x40], 0
jne 0x140003cc4
xor eax, eax
jmp 0x140003d01
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r8, qword [rsp + 0x40]
mov r9, rsi
mov rcx, rax
mov rdx, rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140003d20
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x50
and qword [rax - 0x18], 0
mov rsi, rdx
lea rdx, [rax - 0x18]
mov ebx, r9d
mov rdi, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rsp + 0x40], 0
jne 0x140003d54
xor eax, eax
jmp 0x140003d91
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, qword [rsp + 0x40]
mov r9, rdi
mov r8, rax
mov rdx, rsi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret