joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001d1a4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140042840]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001d1fb
cmp word [rdx], r13w
jne 0x14001d1fb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001d200
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001d325
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001d346
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001d239
mov rdx, r9
mov word [rbx], cx
jmp 0x14001d260
cmp r9, r8
jae 0x14001d270
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001d21a
jmp 0x14001d325
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001d31a
cmp dword [rsp + 0x80], esi
je 0x14001d31a
lea r8, [0x140042840]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001d2f2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001d2c2
mov word [rbx], r13w
jmp 0x14001d322
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001d2cf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001d322
cmp word [rsp + 0x70], r13w
jne 0x14001d2ff
cmp rbx, r14
je 0x14001d2bc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001de0c
cmp word [rsp + 0x70], r13w
je 0x14001d325
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140042840]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001d31f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001d325
Function at 0x140021ba4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140021bd4
xor eax, eax
jmp 0x140021c97
mov rbp, rbx
cmp word [rax], si
je 0x140021bf9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140021be0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140021bdc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400201a4
movsxd r14, eax
test eax, eax
jne 0x140021c37
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140021bcd
mov rcx, r14
call fcn.14001e030
mov rdi, rax
test rax, rax
jne 0x140021c50
xor ecx, ecx
call fcn.14001b8e8
jmp 0x140021c2c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400201a4
test eax, eax
jne 0x140021c81
mov rcx, rdi
call fcn.14001b8e8
jmp 0x140021c8b
xor ecx, ecx
call fcn.14001b8e8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140024b30
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14001a52c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140024bd1
cmp ebx, dword [rsp + 0x30]
je 0x140024bca
test esi, esi
je 0x140024bca
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140024ba5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140024bb2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140024b8f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140024bb6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140024bd3
mov eax, 1
jmp 0x140024bd3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002749c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140016260
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140027526
cmp byte [rbp - 0x21], r15b
je 0x140027521
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002755c
call fcn.14001c214
test eax, eax
jne 0x140027548
cmp byte [rbp - 0x21], r15b
je 0x140027540
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002755c
cmp byte [rbp - 0x21], r15b
je 0x140027559
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140016390
test eax, eax
jne 0x1400275fc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140016260
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002759b
cmp byte [rbp - 0x21], r15b
je 0x1400275d0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400275d0
call fcn.14001c214
test eax, eax
jne 0x1400275bc
cmp byte [rbp - 0x21], r15b
je 0x1400275b5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400275d0
cmp byte [rbp - 0x21], r15b
je 0x1400275cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140016390
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400275fc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400275ff
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002760d
mov rcx, rdi
call fcn.14001b8e8
cmp byte [rbp + 0x3f], r15b
je 0x14002761c
mov rcx, qword [rbp + 0x27]
call fcn.14001b8e8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140027c68
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001de0c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001de0c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027db8
cmp rax, 0xffffffffffffffff
je 0x140027db8
xor edi, edi
test rbp, rbp
jle 0x140027d63
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001bed4
mov rbx, rax
test rax, rax
jne 0x140027cf0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027d59
mov edx, 0x8000
mov ecx, r14d
call fcn.140017598
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001b5e0
cmp eax, 0xffffffff
je 0x140027d39
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027d00
mov edx, r15d
mov ecx, r14d
call fcn.140017598
jmp 0x140027d59
cmp byte [rsi + 0x38], dil
je 0x140027d50
cmp dword [rsi + 0x34], 5
jne 0x140027d50
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027d59
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b8e8
jmp 0x140027dcc
jns 0x140027dcc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001de0c
cmp rax, 0xffffffffffffffff
jne 0x140027d84
cmp byte [rsi + 0x30], dil
je 0x140027dcc
mov edi, dword [rsi + 0x2c]
jmp 0x140027dcc
mov ecx, r14d
call fcn.1400225dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027dcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027dcc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027dc5
mov eax, dword [rsi + 0x2c]
jmp 0x140027dca
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001de0c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140001100
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
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
lea r15, [rsp + 0x48]
mov r14, qword [r15]
mov rsi, rcx
mov qword [r15], rbx
cmp qword [0x140004050], rbx
mov dword [rax + 0x10], ebx
je 0x14000114a
test rcx, rcx
je 0x140001239
mov eax, dword [0x140004058]
mov dword [rcx], eax
jmp 0x140001239
lea rdx, [0x140002980]
lea rcx, [rsp + 0x20]
call fcn.140001844
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rbp, rax
test rax, rax
je 0x140001240
mov r8d, dword [rsp + 0x58]
lea r9, [rsp + 0x58]
xor edx, edx
lea ecx, [rdx + 0xb]
call fcn.140002337
cmp dword [rsp + 0x58], ebx
je 0x140001240
mov edx, dword [rsp + 0x58]
xor ecx, ecx
mov r8d, 0x454e4f45
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.1400024c0
mov r8d, dword [rsp + 0x58]
lea r9, [rsp + 0x58]
mov rdx, rdi
mov ecx, 0xb
call fcn.140002337
test eax, eax
js 0x140001226
mov r9d, dword [rdi]
mov edx, ebx
test r9d, r9d
je 0x140001226
lea rcx, [rdi + 0x20]
mov r8, qword [rcx - 8]
cmp rbp, r8
jb 0x1400011f0
mov eax, dword [rcx]
add rax, r8
cmp rbp, rax
jb 0x140001200
inc edx
add rcx, 0x128
cmp edx, r9d
jae 0x140001226
jmp 0x1400011dd
mov eax, edx
imul rcx, rax, 0x128
mov rax, qword [rcx + rdi + 0x18]
mov qword [0x140004050], rax
mov eax, dword [rcx + rdi + 0x20]
mov dword [0x140004058], eax
test rsi, rsi
je 0x140001226
mov dword [rsi], eax
test rdi, rdi
je 0x140001239
mov edx, 0x454e4f45
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rbx, qword [0x140004050]
mov rbp, qword [rsp + 0x60]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
mov qword [r15], r14
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140001270
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r15, qword [rsp + 0xb0]
lea rax, [rsp + 0x88]
mov rbp, qword [rax]
mov r12, r9
and qword [rax], 0
mov r13b, r8b
test r15, r15
jne 0x1400012ba
mov ecx, 0xc000000d
jmp 0x140001352
xor ecx, ecx
call fcn.140001100
mov rbx, rax
test rax, rax
je 0x14000134d
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rsi, rax
test rax, rax
jne 0x1400012e5
mov ecx, 0xc000007b
jmp 0x140001352
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 0x14000134d
mov rdx, qword [rsp + 0x90]
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 0x140001377
movzx eax, word [rsi + 6]
add rdi, 0x28
lea rcx, [rax + rax*4]
lea rax, [r14 + rcx*8]
cmp rdi, rax
jb 0x140001300
mov ecx, 0xc0000225
mov rbx, qword [rsp + 0xa0]
lea rax, [rsp + 0x88]
mov qword [rax], rbp
mov eax, ecx
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r9d, dword [rdi + 0xc]
lea rcx, [rsp + 0xb0]
mov eax, dword [rdi + 8]
add r9, rbx
and qword [rsp + 0xb0], 0
mov r8, r12
mov qword [rsp + 0x28], rcx
mov dl, r13b
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
call fcn.140001030
mov ecx, eax
test eax, eax
js 0x140001352
mov eax, dword [rsp + 0xb0]
sub eax, ebx
mov dword [r15], eax
jmp 0x140001352

Function at 0x140001aa0
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
xor edx, edx
lea r14, [rsp + 0x38]
mov rsi, qword [r14]
lea r9, [rax + 0x10]
and qword [r14], 0
mov rbp, rcx
and dword [rax + 0x10], 0
xor r8d, r8d
lea ebx, [rdx + 0xb]
mov ecx, ebx
call fcn.140002337
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x140001b69
mov edx, eax
xor ecx, ecx
mov r8d, 0x4e554c4c
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
mov rdx, rax
mov ecx, ebx
mov rdi, rax
call fcn.140002337
test eax, eax
js 0x140001b69
mov r9d, dword [rdi]
xor ebx, ebx
xor ecx, ecx
test r9d, r9d
je 0x140001b59
mov eax, ecx
mov r10, rbp
imul r11, rax, 0x128
lea rax, [rdi + 0x30]
add rax, r11
sub r10, rax
movzx edx, byte [rax]
movzx r8d, byte [rax + r10]
sub edx, r8d
jne 0x140001b47
inc rax
test r8d, r8d
jne 0x140001b32
test edx, edx
je 0x140001b54
inc ecx
cmp ecx, r9d
jb 0x140001b1c
jmp 0x140001b59
mov rbx, qword [r11 + rdi + 0x18]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rbx, rbx
jne 0x140001b6b
xor ebx, ebx
mov rbp, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov qword [r14], rsi
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140001d40
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
lea r15, [rsp + 0x68]
mov ebx, r9d
mov rsi, qword [r15]
xor edi, edi
mov r14, rdx
mov qword [r15], rdi
lea rdx, [rax - 0x28]
mov qword [rax - 0x28], rdi
mov rbp, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rsp + 0x40], rdi
je 0x140001dc0
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r8, qword [rsp + 0x40]
mov r9, r14
mov rcx, rax
mov rdx, rbp
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], dil
mov qword [rsp + 0x20], rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov edi, 1
lea r11, [rsp + 0x50]
mov qword [r15], rsi
mov rbx, qword [r11 + 0x20]
mov eax, edi
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x140001df0
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
lea r15, [rsp + 0x68]
mov ebx, r9d
mov rsi, qword [r15]
xor edi, edi
mov r14, rdx
mov qword [r15], rdi
lea rdx, [rax - 0x28]
mov qword [rax - 0x28], rdi
mov rbp, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rsp + 0x40], rdi
je 0x140001e70
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, qword [rsp + 0x40]
mov r9, rbp
mov r8, rax
mov rdx, r14
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], dil
mov qword [rsp + 0x20], rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov edi, 1
lea r11, [rsp + 0x50]
mov qword [r15], rsi
mov rbx, qword [r11 + 0x20]
mov eax, edi
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140001ea0
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea r14, [rsp + 0xa8]
xor ebx, ebx
mov rdi, qword [r14]
mov rsi, rdx
mov qword [r14], rbx
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
mov ebp, r8d
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001f40
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rsi
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x28], ebp
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 rbx, qword [rsp + 0x38]
mov qword [r14], rdi
mov rax, rbx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140002310
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140001f70
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rsi, [rsp + 0x78]
mov rdi, rdx
mov rbx, qword [rsi]
lea rdx, [r11 - 0x58]
and qword [rsi], 0
and qword [r11 - 0x58], 0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140001ffd
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x30], rdi
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]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov qword [rsi], rbx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140002310
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140002030
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea r15, [rsp + 0xc8]
xor ebx, ebx
mov rdi, qword [r15]
mov rsi, rdx
mov qword [r15], rbx
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
mov r14d, r9d
mov rbp, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400020d6
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rbp
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea rax, [rsp + 0x38]
mov r9d, r14d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x48]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov ebx, 1
mov qword [r15], rdi
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140002310
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140002110
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
lea rsi, [rsp + 0x48]
xor ebx, ebx
mov rdi, qword [rsi]
lea rdx, [rax + 0x10]
mov qword [rsi], rbx
mov qword [rax + 0x10], rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140002188
lea rax, [rsp + 0x60]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x30], rax
mov r9d, 0x1fffff
mov rax, qword [sym.imp.ntoskrnl.exe_PsProcessType]
xor r8d, r8d
mov byte [rsp + 0x28], bl
mov rdx, qword [rax]
mov qword [rsp + 0x20], rdx
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rbx, qword [rsp + 0x60]
mov qword [rsi], rdi
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x1400021b0
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
lea r15, [rsp + 0x68]
mov ebx, r9d
mov rsi, qword [r15]
xor edi, edi
mov r14, rdx
mov qword [r15], rdi
lea rdx, [rax - 0x28]
mov qword [rax - 0x28], rdi
mov rbp, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rsp + 0x40], rdi
je 0x140002230
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r8, qword [rsp + 0x40]
mov r9, r14
mov rcx, rax
mov rdx, rbp
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], dil
mov qword [rsp + 0x20], rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov edi, 1
lea r11, [rsp + 0x50]
mov qword [r15], rsi
mov rbx, qword [r11 + 0x20]
mov eax, edi
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140002260
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
lea r15, [rsp + 0x68]
mov ebx, r9d
mov rsi, qword [r15]
xor edi, edi
mov r14, rdx
mov qword [r15], rdi
lea rdx, [rax - 0x28]
mov qword [rax - 0x28], rdi
mov rbp, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rsp + 0x40], rdi
je 0x1400022e0
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, qword [rsp + 0x40]
mov r9, rbp
mov r8, rax
mov rdx, r14
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], dil
mov qword [rsp + 0x20], rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov edi, 1
lea r11, [rsp + 0x50]
mov qword [r15], rsi
mov rbx, qword [r11 + 0x20]
mov eax, edi
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret