joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009ef10
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x14009f0b8
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x14009ef75
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x14009ef75
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14009ef75
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14009efac
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x14009f002
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009f002
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009f002
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009f002
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009f002
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.14009e9c0
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x14009f064
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14007ad70
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.14009ed90
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14009f0b0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14007ad70
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400a0820
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400e5080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400a08b5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400a0916
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14007ad70
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400b4250
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400a09d1
sub ecx, 1
je 0x1400a0a44
sub ecx, 1
je 0x1400a0980
cmp ecx, 1
je 0x1400a0963
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400cb6a0]
call fcn.14007ad70
jmp 0x1400a0a44
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400a0550
test eax, eax
je 0x1400a0a44
jmp 0x1400a08ea
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400a0a44
sub rax, rsi
cmp rax, rbp
jae 0x1400a0a44
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14007aef0
jmp 0x1400a0a44
cmp r8d, 4
jle 0x1400a0a44
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400a0a44
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14007ac90
mov esi, eax
test eax, eax
je 0x1400a0a23
mov edx, 5
mov rcx, rbx
call fcn.1400a1510
mov eax, esi
jmp 0x1400a08ea
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140089770
mov rcx, r14
call fcn.140089a50
test eax, eax
je 0x1400a08e8
mov edx, 5
mov rcx, rbx
call fcn.1400a1510
mov eax, Ordinal_46
jmp 0x1400a08ea
Function at 0x1400b37e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400b3822
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400b3869
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400b38c2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400b3880
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400b3903
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400c654a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400c654b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400b38d0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400b4a7c
Capabilities:
Parse pe header

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

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov r12, rcx
test edx, edx
je 0x140001be4
mov r13d, edx
mov edi, 0
lea r14, [0x140001530]
lea rbx, [0x1409ec9c1]
jmp 0x140001ad6
mov byte [0x1409ec9c1], 0
mov edx, esi
sar edx, 0x1f
shr edx, 0x1b
lea eax, [rsi + rdx]
and eax, 0x1f
sub eax, edx
cdqe
lea rdx, [0x1409ec9a0]
xor bpl, byte [rdx + rax]
mov byte [r12 + rdi], bpl
add rdi, 1
cmp r13, rdi
je 0x140001be4
mov esi, edi
movzx ebp, byte [r12 + rdi]
mov byte [rsp + 0x20], 0x8c
mov byte [rsp + 0x21], 0x81
mov byte [rsp + 0x22], 0x75
mov byte [rsp + 0x23], 0x82
mov byte [rsp + 0x24], 0x85
mov byte [rsp + 0x25], 0x77
mov byte [rsp + 0x26], 0x7c
mov byte [rsp + 0x27], 0x88
mov byte [rsp + 0x28], 0x7c
mov byte [rsp + 0x29], 0x7d
mov byte [rsp + 0x2a], 0x7e
mov byte [rsp + 0x2b], 0x77
mov byte [rsp + 0x2c], 0x8a
mov byte [rsp + 0x2d], 0x78
mov byte [rsp + 0x2e], 0x8c
mov byte [rsp + 0x2f], 0x85
mov byte [rsp + 0x30], 0x8a
mov byte [rsp + 0x31], 0x78
mov byte [rsp + 0x32], 0x83
mov byte [rsp + 0x33], 0x75
mov byte [rsp + 0x34], 0x83
mov byte [rsp + 0x35], 0x84
mov byte [rsp + 0x36], 0x87
mov byte [rsp + 0x37], 0x88
mov byte [rsp + 0x38], 0x8a
mov byte [rsp + 0x39], 0x7d
mov byte [rsp + 0x3a], 0x83
mov byte [rsp + 0x3b], 0x76
mov byte [rsp + 0x3c], 0x79
mov byte [rsp + 0x3d], 0x7c
mov byte [rsp + 0x3e], 0x75
mov byte [rsp + 0x3f], 0x7b
mov byte [rsp + 0x40], 0x13
cmp byte [0x1409ec980], 0
jne 0x140001bbf
mov byte [0x1409ec9c1], 1
mov eax, 0
lea rcx, [0x1409ec9a0]
movzx edx, byte [rsp + rax + 0x20]
mov byte [rcx + rax], dl
add rax, 1
cmp rax, 0x21
jne 0x140001b9e
mov byte [0x1409ec980], 1
mov rcx, r14
call fcn.1400014f0
cmp byte [0x1409ec9c1], 0
je 0x140001aa8
lea rax, [0x1409ec9a0]
sub byte [rax], 0x13
add rax, 1
cmp rbx, rax
jne 0x140001bd3
jmp 0x140001aa1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140006e70
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140006ea0
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x140006e9f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140006ea5
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x140006e9f
mov eax, 0
jmp 0x140006e9f

Function at 0x140007520
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400074d0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140011700
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409e68d0]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14001176f
mov rcx, r9
call fcn.1400115d0
test eax, eax
je 0x14001176f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14001176d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140011764
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14001176f
add rdx, 0x28
cmp rdx, r9
jne 0x140011750
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x140045788
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r13
push r14
sub rsp, 0x4a0
mov rax, qword [0x14009e140]
xor rax, rsp
mov qword [rsp + 0x490], rax
xor ebx, ebx
Function at 0x140e765ec
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140e765f6
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140e7661f
pop rbp
sub rbp, 0x33
sub rbp, 0xe765ec
sub rsp, 0x20
jmp 0x140e7663e
mov rax, 0xe765ec
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffe70e90a0
xor byte [rax], dl
inc rax
dec rcx
jne 0x140e7665d
jmp 0x140e76674
call 0x16a12afa2
pushfq
movabs al, byte [0xa0a1a86121e8a0a0]
movabs al, byte [0xa0a86067e849a1e8]
movabs al, byte [0xa0a0a0886267e8a0]
call 0xe2cfa8f1
invalid
Function at 0x140001000
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rdi, rcx
mov rcx, qword [rcx]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x14000108b
mov edx, dword [rdi + 0x10]
mov rcx, qword [rsp + 0x40]
and qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rdx
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
mov ecx, dword [rdi + 0x14]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x28], ecx
lea rdx, [rsp + 0x48]
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], 0x3000
xor r8d, r8d
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x48]
mov r8d, 8
call fcn.140002f5c
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140001098
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
cmp qword [0x140005008], 0
mov rbx, rcx
jne 0x1400010f8
call fcn.140002c9c
mov rcx, rax
lea r8, [0x140003140]
lea rdx, [0x140003170]
call fcn.140002afc
mov qword [0x140005008], rax
test rax, rax
jne 0x1400010f8
lea r8, [0x1400031a0]
xor edx, edx
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
cmp qword [0x140005010], 0
jne 0x140001132
call fcn.140002c9c
mov rcx, rax
lea r8, [0x1400031c0]
lea rdx, [0x1400031f0]
call fcn.140002afc
mov qword [0x140005010], rax
test rax, rax
jne 0x140001132
lea r8, [0x140003220]
jmp 0x1400010dd
cmp qword [0x140005018], 0
jne 0x14000116f
call fcn.140002c9c
mov rcx, rax
lea r8, [0x140003240]
lea rdx, [0x140003270]
call fcn.140002afc
mov qword [0x140005018], rax
test rax, rax
jne 0x14000116f
lea r8, [0x1400032a0]
jmp 0x1400010dd
mov rcx, qword [rbx]
lea rdx, [rsp + 0x78]
and qword [rsp + 0x78], 0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x78]
test eax, eax
jns 0x140001197
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1400010e8
mov rdi, qword [rbx + 8]
mov rbx, qword [rbx + 0x10]
add rbx, rdi
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
and qword [rsp + 0x28], 0
lea r9, [rsp + 0x30]
xorps xmm0, xmm0
mov qword [rsp + 0x20], 0x30
xor r8d, r8d
mov rdx, rdi
or rcx, 0xffffffffffffffff
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwQueryVirtualMemory]
test eax, eax
js 0x1400010e8
lfence
mov rax, qword [0x140005008]
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call qword [0x140004100]
mov rbx, rax
test rax, rax
je 0x1400010e8
lfence
mov ecx, dword [rax + 0x30]
and ecx, 0xfffff377
or ecx, 0x300
mov dword [rax + 0x30], ecx
mov rcx, rbx
mov rax, qword [0x140005010]
mov rdx, qword [rsp + 0x78]
call qword [0x140004100]
lfence
mov rcx, rbx
test eax, eax
jns 0x14000124f
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x1400010e8
mov rax, qword [0x140005018]
mov rdx, qword [rsp + 0x78]
call qword [0x140004100]
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
jmp 0x1400010ed

Function at 0x14000127c
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov rcx, qword [rcx]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x1400012de
mov rcx, qword [rsp + 0x30]
and qword [rsp + 0x38], 0
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
lea rdx, [rdi + 8]
mov r9d, 0x8000
lea r8, [rsp + 0x38]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400012ec
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
sub rsp, 0x50
and qword [rsp + 0x68], 0
lea rdx, [rsp + 0x60]
and qword [rsp + 0x60], 0
mov rbx, rcx
mov rcx, qword [rcx]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x14000135b
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rdx, cr3
mov rcx, qword [rbx + 8]
call fcn.140002de8
test rax, rax
je 0x14000133c
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x68]
mov r8d, 8
call fcn.140002f5c
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
add rsp, 0x50
pop rbx
ret

Function at 0x140001370
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov rcx, qword [rcx]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x14000139c
mov ebx, 0xc0000001
jmp 0x1400013d3
mov rdx, qword [rdi + 8]
lea r8, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
and qword [rsp + 0x38], 0
call fcn.140002bac
mov ebx, eax
test eax, eax
js 0x1400013d3
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov rcx, qword [rdi + 0x10]
add rdx, 0x30
call fcn.140002f5c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400013ec
Capabilities:
Allocate or change rwx memory
Find process by pid

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x48], 0
lea rdx, [rsp + 0x48]
mov rdi, rcx
mov rcx, qword [rcx]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x140001497
mov rdx, qword [rdi + 0x18]
lea rcx, [rsp + 0x40]
and dword [rsp + 0x40], 0
mov r8d, 4
call fcn.140002f5c
test eax, eax
je 0x140001487
mov eax, dword [rdi + 0x10]
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
mov r9d, dword [rsp + 0x40]
lea rax, [rsp + 0x40]
lea rdx, [rdi + 8]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
mov rcx, qword [rdi + 0x18]
lea rdx, [rsp + 0x40]
mov r8d, 4
call fcn.140002f5c
jmp 0x14000148c
mov ebx, 0xc0000005
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400014a4
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x60
and qword [rsp + 0x70], 0
lea rdx, [rsp + 0x70]
mov rbx, rcx
mov rcx, qword [rcx]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x1400014cc
mov eax, 0xc0000001
jmp 0x140001518
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
mov rdx, qword [rbx + 8]
lea r9, [rsp + 0x30]
and qword [rsp + 0x28], 0
xor r8d, r8d
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x20], 0x30
call qword [sym.imp.ntoskrnl.exe_ZwQueryVirtualMemory]
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x30]
mov r8d, 0x30
call fcn.140002f5c
xor eax, eax
add rsp, 0x60
pop rbx
ret

Function at 0x140001520
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x50
mov rsi, rcx
and qword [rax + 8], 0
lea rdx, [rax + 8]
mov rcx, qword [rcx]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x140001556
lfence
mov eax, dword [rsp + 0x40]
jmp 0x1400015b0
mov qword [rsp + 0x68], 0
mov ebx, dword [rsi + 0x10]
mov rdi, qword [rsi + 0x18]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rdx, qword [rsi + 8]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x30], rcx
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
mov r9, rdi
mov r8, rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_MmCopyVirtualMemory]
mov ebx, eax
mov dword [rsp + 0x40], eax
jmp 0x1400015a3
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x1400015c0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov rcx, qword [rcx]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test eax, eax
jns 0x1400015f7
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xc0000001
jmp 0x140001622
mov rdx, qword [rdi + 8]
lea r8, [rsp + 0x38]
and qword [rsp + 0x38], 0
lea rbx, [rcx + 0x7d8]
call fcn.140002bac
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_RtlAvlRemoveNode]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001630
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rbx, rcx
mov rcx, qword [rcx]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x1400017ec
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
mov rdx, cr3
mov rcx, qword [rbx + 8]
call fcn.140002de8
mov r8, rax
test rax, rax
je 0x1400017e6
mov rax, qword [rax]
test al, 1
je 0x1400017e6
mov rcx, qword [rbx + 0x10]
mov rdx, rcx
xor rdx, rax
and rdx, 0xfffffffffffffffe
xor rdx, rcx
movabs rcx, 0xffff000000000fff
mov qword [r8], rdx
mov rax, qword [rbx + 0x10]
xor rdx, rax
and rdx, 0xfffffffffffffffd
xor rdx, rax
mov qword [r8], rdx
mov rax, qword [rbx + 0x10]
xor rdx, rax
and rdx, 0xfffffffffffffffb
xor rdx, rax
mov qword [r8], rdx
mov rax, qword [rbx + 0x10]
xor rdx, rax
and rdx, 0xfffffffffffffff7
xor rdx, rax
mov qword [r8], rdx
mov rax, qword [rbx + 0x10]
xor rdx, rax
and rdx, 0xffffffffffffffef
xor rdx, rax
mov qword [r8], rdx
mov rax, qword [rbx + 0x10]
xor rdx, rax
and rdx, 0xffffffffffffffdf
xor rdx, rax
mov qword [r8], rdx
mov rax, qword [rbx + 0x10]
xor rdx, rax
and rdx, 0xffffffffffffffbf
xor rdx, rax
mov qword [r8], rdx
mov rax, qword [rbx + 0x10]
xor rdx, rax
btr rdx, 7
xor rdx, rax
mov qword [r8], rdx
mov rax, qword [rbx + 0x10]
xor rdx, rax
btr rdx, 8
xor rdx, rax
mov qword [r8], rdx
mov rax, qword [rbx + 0x10]
add rax, rax
xor rdx, rax
btr rdx, 9
xor rdx, rax
mov qword [r8], rdx
mov rax, qword [rbx + 0x10]
xor rdx, rax
btr rdx, 0xa
xor rdx, rax
mov qword [r8], rdx
mov rax, qword [rbx + 0x10]
xor rdx, rax
btr rdx, 0xb
xor rdx, rax
mov qword [r8], rdx
mov rax, qword [rbx + 0x10]
xor rdx, rax
and rdx, rcx
movabs rcx, 0xfff0ffffffffffff
xor rdx, rax
mov qword [r8], rdx
mov rax, qword [rbx + 0x10]
xor rdx, rax
and rdx, rcx
movabs rcx, 0xf80fffffffffffff
xor rdx, rax
mov qword [r8], rdx
mov rax, qword [rbx + 0x10]
xor rdx, rax
and rdx, rcx
xor rdx, rax
mov qword [r8], rdx
mov rax, qword [rbx + 0x10]
mov rcx, rax
xor rcx, rdx
movabs rdx, 0x87ffffffffffffff
and rcx, rdx
movabs rdx, 0x8000000000000000
xor rcx, rax
mov qword [r8], rcx
mov rax, rcx
xor rax, qword [rbx + 0x10]
and rax, rdx
xor rax, rcx
mov qword [r8], rax
mov rax, qword [rbx + 0x10]
mov qword [r8], rax
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
add rsp, 0x20
pop rbx
ret