joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140125fe0
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 [0x140181020]
mov rdi, rax
test rax, rax
jne 0x140126022
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 0x140126069
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 0x1401260c2
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 0x140126080
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140126103
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140156272]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140156273]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1401260d0
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 0x1401261b0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1401261ea
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1401261ef
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140126238
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140126238
dec r8
sub rdx, 1
jne 0x14012621e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140127854
Capabilities:
Parse pe header

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

Function at 0x14090a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14090a1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14090a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14090a06f
add dl, dl
jne 0x14090a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14090a0f6
xor eax, eax
add dl, dl
jne 0x14090a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14090a1ad
add dl, dl
jne 0x14090a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14090a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14090a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14090a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14090a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14090a07e
mov eax, 1
add dl, dl
jne 0x14090a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14090a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14090a0fb
sub eax, ebx
mov ebx, 1
jne 0x14090a14c
mov ecx, 1
add dl, dl
jne 0x14090a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14090a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14090a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14090a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14090a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14090a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14090a15d
cmp eax, 0x7d00
jae 0x14090a19b
cmp eax, 0x500
jb 0x14090a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14090a07e
cmp eax, 0x7f
ja 0x14090a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14090a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14090a1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14090a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001cac
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r15
sub rsp, 0x20
xor edi, edi
lea r9, [rsp + 0x58]
mov rbp, r8
mov rsi, rdx
xor r8d, r8d
xor edx, edx
lea ecx, [rdi + 0xb]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov r15d, 0x100
jmp 0x140001d50
test rdi, rdi
je 0x140001cf3
mov edx, 0x6864694e
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x140012050]
mov edx, dword [rsp + 0x58]
test rax, rax
je 0x140001d20
cmp dword [0x140012048], 0x4a61
jb 0x140001d20
mov r8d, 0x6864694e
mov rcx, r15
call qword [0x1400102d0]
jmp 0x140001d31
mov ecx, 1
mov r8d, 0x6864694e
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x140001d94
mov r8d, dword [rsp + 0x58]
lea r9, [rsp + 0x58]
mov rdx, rax
mov ecx, 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov ebx, eax
cmp eax, 0xc0000004
je 0x140001ce0
test eax, eax
js 0x140001dcb
test rdi, rdi
je 0x140001dcb
mov r8d, dword [rdi]
xor ecx, ecx
test r8d, r8d
je 0x140001dcb
mov eax, ecx
imul rdx, rax, 0x128
mov r9, qword [rdx + rdi + 0x18]
cmp rsi, r9
jb 0x140001d8b
mov eax, dword [rdx + rdi + 0x20]
add rax, r9
cmp rsi, rax
jb 0x140001d9b
inc ecx
cmp ecx, r8d
jb 0x140001d6c
jmp 0x140001dcb
mov ebx, 0xc000009a
jmp 0x140001dcb
lea r8, [rdi + 0x30]
add r8, rdx
je 0x140001dc6
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x140001da8
cmp rax, r15
ja 0x140001dcb
mov rdx, r15
mov rcx, rbp
call sub.ntoskrnl.exe_strcpy_s
test eax, eax
je 0x140001dcb
mov ebx, 0xc0000001
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
Function at 0x140004464
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
lea r9, [rax + 0x20]
and dword [rax + 0x20], ebx
mov rsi, r8
mov rdi, rdx
xor r8d, r8d
xor edx, edx
lea ecx, [rbx + 5]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
jne 0x140004510
mov ebp, 0x6864694e
test rbx, rbx
je 0x1400044b0
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x140012050]
mov edx, dword [rsp + 0x48]
test rax, rax
je 0x1400044dc
cmp dword [0x140012048], 0x4a61
jb 0x1400044dc
mov r8d, ebp
mov ecx, 0x100
call qword [0x1400102d0]
jmp 0x1400044ea
mov r8d, ebp
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x14000451b
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
mov rdx, rax
mov ecx, 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
je 0x1400044a0
test eax, eax
js 0x140004537
test rbx, rbx
je 0x140004537
jmp 0x14000452d
mov eax, 0xc000009a
jmp 0x140004537
cmp qword [rbx + 0x50], rdi
je 0x14000454c
mov eax, dword [rbx]
add rbx, rax
cmp dword [rbx], 0
jne 0x140004522
mov eax, 0xc0000225
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor edi, edi
cmp dword [rbx + 4], edi
jbe 0x1400045bd
lea rcx, [rdi + rdi*4]
add rcx, rcx
mov rbp, qword [rbx + rcx*8 + 0x130]
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
cmp rbp, rax
je 0x1400045b6
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_PsLookupThreadByThreadId]
test eax, eax
js 0x1400045b6
mov rcx, qword [rsi]
call qword [sym.imp.ntoskrnl.exe_PsIsThreadTerminating]
mov rcx, qword [rsi]
test al, al
jne 0x1400045ac
mov eax, dword [rcx + 0x78]
test al, al
js 0x1400045ac
mov eax, dword [rcx + 0x74]
test al, 0x10
je 0x1400045ac
cmp qword [rcx + 0x58], 0
je 0x1400045ac
cmp qword [rcx + 0x2c8], 0
jne 0x1400045bd
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
and qword [rsi], 0
inc edi
cmp edi, dword [rbx + 4]
jb 0x140004553
mov rax, qword [rsi]
neg rax
sbb eax, eax
not eax
and eax, 0xc0000225
jmp 0x140004537
Function at 0x1400049a0
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x140012010]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x28], rbx
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
test r9d, r9d
jne 0x1400049f3
mov rcx, qword [0x140012070]
lea r8, [rsp + 0x20]
lea rdx, [0x14000ee80]
call fcn.14000a28c
test eax, eax
js 0x140004a05
mov r9d, dword [rsp + 0x20]
mov ecx, r9d
lea rdx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140004a09
xor eax, eax
jmp 0x140004a58
mov rcx, qword [rsp + 0x28]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rdx, qword [rsp + 0x28]
mov r8, rbp
mov rcx, rdi
call fcn.140004bd8
test rax, rax
je 0x140004a3f
mov r8, rsi
mov rdx, rax
mov rcx, rdi
call fcn.140004a70
mov rbx, rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000e590
add rsp, 0x78
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140004a70
Capabilities:
Parse pe header

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x110
xor edi, edi
mov rbx, rdx
test rdx, rdx
je 0x140004bb2
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140004bb2
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140004bb2
movups xmm1, xmmword [rax + 0x28]
add rax, 0x18
lea rcx, [rsp + 0x20]
mov edx, 0x80
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
add rcx, rdx
movups xmm0, xmmword [rax + 0x70]
add rax, rdx
movups xmmword [rcx - 0x10], xmm0
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rcx], xmm1
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm0
movups xmm0, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm1
movups xmm1, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm0
movups xmm0, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm1
movups xmm1, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx + 0x60], xmm1
cmp dword [rsp + 0x90], edi
je 0x140004bb2
mov esi, dword [r11 - 0xa8]
mov ebp, edi
add rsi, rbx
mov r14d, dword [rsi + 0x1c]
mov r15d, dword [rsi + 0x24]
add r14, rbx
mov r13d, dword [rsi + 0x20]
add r15, rbx
add r13, rbx
cmp dword [rsi + 0x18], edi
jbe 0x140004bad
mov r12d, ebp
mov rdx, r8
mov ecx, dword [r13 + r12*4]
add rcx, rbx
call sub.ntoskrnl.exe__stricmp
test eax, eax
je 0x140004ba1
mov r8, qword [rsp + 0x150]
inc ebp
cmp ebp, dword [rsi + 0x18]
jb 0x140004b79
jmp 0x140004bad
movzx eax, word [r15 + r12*2]
mov edi, dword [r14 + rax*4]
add rdi, rbx
mov rax, rdi
jmp 0x140004bb4
xor eax, eax
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140004c8c
Capabilities:
Check for software breakpoints
Get system information on windows
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
movups xmm0, xmmword [0x14000eee0]
and dword [rax + 0x10], 0
lea r9, [rax + 0x10]
xor ebx, ebx
mov r15, rcx
xor r8d, r8d
xor edx, edx
movdqu xmmword [rax - 0x38], xmm0
lea edi, [rbx + 0xb]
mov ecx, edi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov esi, 0xc0000004
mov r12d, 0x6864694e
jmp 0x140004d43
test rbx, rbx
je 0x140004ce9
mov edx, r12d
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x140012050]
mov edx, dword [rsp + 0x68]
test rax, rax
je 0x140004d15
cmp dword [0x140012048], 0x4a61
jb 0x140004d15
mov r8d, r12d
mov ecx, 0x100
call qword [0x1400102d0]
jmp 0x140004d23
mov r8d, r12d
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x140004db0
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x68]
mov rdx, rax
mov ecx, edi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, esi
je 0x140004cd8
test eax, eax
js 0x140004d99
test rbx, rbx
je 0x140004d99
mov edx, dword [rbx]
xor ecx, ecx
test edx, edx
je 0x140004d86
mov eax, ecx
imul r8, rax, 0x128
mov rsi, qword [rbx + r8 + 0x18]
cmp qword [sym.imp.ntoskrnl.exe_NtCreateFile], rsi
jb 0x140004d80
mov eax, dword [rbx + r8 + 0x20]
add rax, rsi
cmp qword [sym.imp.ntoskrnl.exe_NtCreateFile], rax
jb 0x140004db7
inc ecx
cmp ecx, edx
jb 0x140004d58
mov edi, 0xc0000225
mov edx, r12d
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov eax, 0xc000009a
jmp 0x140004d99
test rsi, rsi
je 0x140004d86
mov eax, 0x5a4d
mov edi, 0xc0000225
cmp word [rsi], ax
jne 0x140004e7d
movsxd rax, dword [rsi + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x140004e7d
lea r14, [rsi + 0x108]
add r14, rax
movzx eax, word [rax + rsi + 6]
lea rcx, [rax + rax*4]
lea rbp, [r14 + rcx*8]
jmp 0x140004e50
lea rdx, [0x14000eef0]
mov rcx, r14
call sub.ntoskrnl.exe_strcmp
test eax, eax
jne 0x140004e4c
mov r10d, dword [r14 + 0xc]
mov r9d, dword [r14 + 8]
add r10, rsi
je 0x140004e4c
test r9d, r9d
je 0x140004e4c
xor r8d, r8d
test r9d, r9d
je 0x140004e4c
xor edx, edx
mov r11b, byte [rsp + rdx + 0x20]
cmp r11b, 0xcc
je 0x140004e3d
lea eax, [rdx + r8]
cmp r11b, byte [rax + r10]
jne 0x140004e5a
inc edx
cmp edx, 0xf
jb 0x140004e28
mov eax, r8d
add rax, r10
jne 0x140004e64
add r14, 0x28
cmp r14, rbp
jb 0x140004df9
jmp 0x140004d8b
inc r8d
cmp r8d, r9d
jb 0x140004e26
jmp 0x140004e4c
mov r8d, dword [rax + 3]
xor edi, edi
add r8, 7
add r8, rax
mov qword [r15 + 0x1030], r8
jmp 0x140004d8b
mov edi, 0xc0000141
jmp 0x140004d8b
Function at 0x140004e88
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140012010]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor ebx, ebx
lea r8, [rbp - 0x48]
mov r15, rdx
mov qword [rbp - 0x50], rbx
mov r14, rcx
mov dword [rbp - 0x48], ebx
mov rcx, qword [0x140012070]
lea rdx, [0x14000ee80]
mov edi, ebx
mov sil, bl
call fcn.14000a28c
test eax, eax
js 0x140004f23
mov ecx, dword [rbp - 0x48]
lea rdx, [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140004f23
mov rcx, qword [rbp - 0x50]
lea rdx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rdx, qword [rbp - 0x50]
lea r8, [0x14000eea0]
mov rcx, r14
call fcn.140004bd8
test rax, rax
jne 0x140004f45
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14000e590
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov r8, r15
mov rdx, rax
mov rcx, r14
call fcn.140004a70
mov rcx, rax
test rax, rax
je 0x140004f0f
mov al, byte [rax]
jmp 0x140004f6c
inc edi
cmp al, 0xb8
jne 0x140004f69
mov sil, byte [rdi + rcx]
mov al, byte [rdi + rcx]
cmp al, 0xc3
jne 0x140004f5f
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
test sil, sil
je 0x140004f98
mov rax, qword [r14 + 0x1030]
mov rcx, qword [rax]
movzx eax, sil
movsxd rbx, dword [rcx + rax*4]
sar rbx, 4
add rbx, rcx
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rbx
jmp 0x140004f25
Function at 0x140005ac0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov edi, dword [rdx + 4]
xor r15d, r15d
mov eax, dword [rdx + 8]
mov rbx, rdx
mov r14, rcx
mov dword [rbp + 0xb], r15d
mov ecx, edi
mov dword [rbp + 0x23], r15d
lea rdx, [rbp - 0x19]
mov qword [rbp + 0x77], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 0x19], r15
mov qword [rbp + 0x6f], r15
mov qword [rbp + 0x7f], rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140005c96
xorps xmm0, xmm0
mov dword [rbp + 7], 0x30
lea r9, [rbp - 9]
mov qword [rbp + 0xf], r15
lea r8, [rbp + 7]
mov dword [rbp + 0x1f], 0x200
mov edx, 0x1fffff
mov qword [rbp + 0x17], r15
lea rcx, [rbp + 0x77]
mov qword [rbp - 9], rdi
movdqu xmmword [rbp + 0x27], xmm0
mov qword [rbp - 1], r15
call qword [sym.imp.ntoskrnl.exe_ZwOpenProcess]
mov esi, eax
test eax, eax
js 0x140005c45
mov rcx, qword [rbp + 0x77]
lea r9, [rbp + 0x7f]
mov dword [rsp + 0x28], 0x20
lea rdx, [rbp + 0x6f]
xor r8d, r8d
mov dword [rsp + 0x20], 0x3000
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov esi, eax
test eax, eax
js 0x140005c45
mov eax, dword [rbx + 8]
mov rcx, r14
mov r9, qword [rbp + 0x6f]
mov r8, qword [rbp - 0x19]
mov rdx, qword [rbx + 0x10]
mov byte [rsp + 0x30], 1
mov dword [rsp + 0x28], 1
mov qword [rbp + 0x7f], rax
mov qword [rsp + 0x20], rax
call fcn.140005dcc
mov esi, eax
test eax, eax
js 0x140005c45
mov qword [rsp + 0x50], r15
lea r8, [rbp + 7]
mov qword [rsp + 0x48], r15
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x27], xmm0
mov dword [rbp + 7], 0x30
mov edx, 0x1fffff
mov qword [rbp + 0xf], r15
mov dword [rbp + 0x1f], 0x200
mov qword [rbp + 0x17], r15
mov rdi, qword gs:[0x188]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], r15d
mov bl, byte [rdi + 0x232]
mov byte [rdi + 0x232], r15b
mov rcx, qword [rbp + 0x6f]
mov rax, qword [r14 + 0x1038]
mov r9, qword [rbp + 0x77]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x11]
call qword [0x1400102d0]
mov esi, eax
mov byte [rdi + 0x232], bl
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x140005c54
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test esi, esi
jns 0x140005c76
cmp qword [rbp + 0x6f], r15
je 0x140005c76
mov rcx, qword [rbp + 0x77]
lea r8, [rbp + 0x7f]
mov r9d, 0x4000
lea rdx, [rbp + 0x6f]
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x140005c85
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x140005c94
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, esi
mov rbx, qword [rsp + 0xe0]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005fc8
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x140012010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rax, qword [rdx + 0x20]
xor r15d, r15d
or rsi, 0xffffffffffffffff
mov qword [rbp - 0x31], r15
mov rbx, rsi
mov qword [rbp - 0x29], r15
mov rdi, rdx
mov r14, rcx
inc rbx
cmp word [rax + rbx*2], r15w
jne 0x14000600a
lea rbx, [rbx*2 + 2]
mov r8, rbx
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x11]
call fcn.140003804
mov rdx, qword [rdi + 0x20]
lea rcx, [rbp - 0x11]
mov r8, rbx
call fcn.140003c44
mov ebx, eax
test eax, eax
js 0x140006142
mov rax, qword [rdi + 0x20]
inc rsi
cmp word [rax + rsi*2], r15w
jne 0x14000604a
lea rbx, [rsi*2 + 2]
mov r8, rbx
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x21]
call fcn.140003804
mov rdx, qword [rdi + 0x18]
lea rcx, [rbp - 0x21]
mov r8, rbx
call fcn.140003c44
mov ebx, eax
test eax, eax
js 0x14000612e
mov ecx, dword [rdi]
lea rdx, [rbp - 0x39]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x14000612e
mov rcx, qword [rbp - 0x39]
lea rdx, [rbp - 1]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r8, qword [rbp - 0x31]
mov rcx, r14
mov rdx, qword [rbp - 0x39]
call fcn.140004bd8
test rax, rax
jne 0x1400060c5
lea rcx, [rbp - 1]
jmp 0x1400060e0
mov r8, qword [rbp - 0x29]
mov rdx, rax
mov rcx, r14
call fcn.140004a70
lea rcx, [rbp - 1]
mov rbx, rax
test rax, rax
jne 0x1400060f7
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov ebx, 0xc0000001
jmp 0x14000612e
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, dword [rdi + 0x10]
mov r9, rbx
mov r8, qword [rbp - 0x39]
mov rcx, r14
mov rdx, qword [rdi + 8]
mov byte [rsp + 0x30], 1
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
call fcn.140005dcc
mov rcx, qword [rbp - 0x39]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x140006142
mov edx, 0x6864694e
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x140006156
mov edx, 0x6864694e
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14000e590
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret