joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007e7f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14007e86a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14007e860
cmp r11, r10
ja 0x14007e903
cmp r10, rdx
ja 0x14007e917
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14007e862
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14007e840
jmp 0x14007e8d7
ja 0x14007e86a
mov r11, r10
cmp rax, r8
jne 0x14007e812
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14007e8db
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14007e8b0
mov r8, r10
sub ecx, r9d
jns 0x14007e8ce
jmp 0x14007e8dd
cmp r10, rdx
je 0x14007e8e9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14007e8dd
xor al, 1
cmp r8, rdx
jne 0x14007e890
jmp 0x14007e8dd
xor eax, eax
jmp 0x14007e8dd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valueout_of_range_integral_type_conversion_attemptedcannot_parse_integer_from_empty_stringinvalid_digit_found_in_stringnumber_too_large_to_fit_in_target_typenumber_too_small_to_fit_in_target_typenumber_would_be_zero_for_non_zero_typefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400821a0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140082670
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400825f0
ud2
Function at 0x140003f4c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140003b5c
add rsp, 0x28
jmp 0x140003f70
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x14001d938], rdi
jne 0x140008848
mov eax, dword [0x14001d930]
cmp eax, 1
je 0x140008868
mov eax, dword [0x14001d930]
cmp eax, ebx
jne 0x14000887f
mov dword [0x14001d930], 1
lea r13, [0x140014218]
lea rdi, [0x140014200]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x14000401c
cmp eax, ebx
jne 0x14000401c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x140004011
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140003ffa
cmp eax, ebx
jne 0x140008875
mov eax, dword [0x14001d930]
cmp eax, 1
jne 0x14000404c
lea rdx, [0x1400141f8]
lea rcx, [0x1400141c0]
call fcn.14018f000
mov dword [0x14001d930], 2
cmp r12d, ebx
jne 0x14000405b
mov rax, rbx
xchg qword [0x14001d938], rax
cmp qword [0x14001d950], rbx
jne 0x14000888e
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
je 0x1400088b7
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
jbe 0x14000409f
cmp word [rcx], 0x22
je 0x140008912
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140004084
cmp word [rcx], bx
jne 0x1400088c1
cmp word [rcx], bx
jne 0x1400088ce
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400040e8
nop
jmp 0x1400088e6
cmp rax, rdi
jne 0x140008858
mov r12d, 1
jmp 0x140003fba
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140003fa9
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140004024
mov eax, 0xff
jmp 0x140008951
mov dword [0x14001db2c], 1
jmp 0x140004024
lea rcx, [0x14001d950]
call fcn.140011e1c
cmp eax, ebx
je 0x140004068
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x14001d950]
nop
jmp 0x140004068
mov eax, 0xff
jmp 0x140008951
cmp edx, ebx
je 0x1400040a8
jmp 0x14000408a
cmp word [rcx], 0x20
ja 0x1400040b1
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400040a8
mov dword [0x14001db28], eax
cmp dword [0x14001d30c], ebx
jne 0x1400088fc
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14001db2c], ebx
jne 0x140008910
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14001db28]
jmp 0x140008951
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
jmp 0x140004094
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
Function at 0x100405f20
Capabilities:
Encode data using xor

Disassembly:
popfq
movabs byte [0x97a34fa19e954f94], al
xchg esp, eax
movabs byte [0x4f9298959892949f], al
Function at 0x140001000
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
sub rsp, 0x78
mov rax, qword [0x14000a5d0]
xor rax, rsp
mov qword [rsp + 0x68], rax
test rcx, rcx
jne 0x140001020
and dword [0x14000a7b0], ecx
jmp 0x140001097
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140001097
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r8, qword [0x140a0a7c0]
lea rdx, [0x14000a7c0]
mov r9b, 1
mov dword [0x14000a7b0], 1
lea rcx, [0x14000a7a0]
mov byte [rsp + 0x20], 1
call fcn.140001a4c
lea rcx, [0x14000a7a0]
call fcn.14000172c
mov r8, qword [0x140a0a7c0]
lea rcx, [0x14000a7c0]
xor edx, edx
call fcn.140006bc0
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140006400
add rsp, 0x78
ret

Function at 0x140002604
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
xor esi, esi
mov qword [rbp + 0x27], rcx
mov qword [rax - 0x68], rsi
lea r9, [rbp + 7]
mov dword [rax - 0x70], 0x100
lea r8, [rbp + 0x17]
mov qword [rax - 0x78], rsi
lea rcx, [rbp + 0x67]
mov dword [rax - 0x80], esi
xorps xmm0, xmm0
mov dword [rsp + 0x50], esi
mov ebx, 0x110000
mov qword [rsp + 0x48], rsi
mov edx, ebx
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rsi
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x67], rsi
mov qword [rbp + 0x17], 0x30
mov qword [rbp + 0x2f], 0x240
mov qword [rbp + 0x1f], rsi
movdqu xmmword [rbp + 0x37], xmm0
call qword [sym.imp.ntoskrnl.exe_IoCreateFileEx]
test eax, eax
js 0x14000272c
mov r8, qword [sym.imp.ntoskrnl.exe_IoFileObjectType]
lea rax, [rbp + 0x6f]
mov rcx, qword [rbp + 0x67]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov edx, ebx
mov qword [rsp + 0x28], rax
mov r8, qword [r8]
mov dword [rsp + 0x20], 0x656c6946
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandleWithTag]
xor edx, edx
mov edi, eax
test eax, eax
jns 0x1400026ec
lfence
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ntoskrnl.exe_ObCloseHandle]
mov eax, edi
jmp 0x14000272f
mov rax, qword [rbp + 0x6f]
mov rcx, qword [rax + 0x28]
mov qword [rcx + 0x10], rsi
call qword [sym.imp.ntoskrnl.exe_MmFlushImageSection]
mov rcx, qword [rbp + 0x6f]
mov bl, al
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp + 0x67]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObCloseHandle]
test bl, bl
je 0x14000272a
lea rcx, [rbp + 0x17]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov edi, eax
test eax, eax
jns 0x14000272c
mov eax, edi
lfence
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400030c4
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x14000a5d0]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov r14b, r9b
mov r15, r8
mov rsi, rdx
and qword [rsp + 0x20], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
jns 0x140003130
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x140003130
mov eax, 0xc0000001
jmp 0x1400031d7
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov ecx, esi
call fcn.14000330c
mov rbx, rax
test r14b, r14b
je 0x1400031a8
lea rcx, [rsp + 0x28]
call fcn.140004bd8
test eax, eax
js 0x1400031a8
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rdx, rax
lea r9, [rsp + 0x30]
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.140004c74
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rdx, rax
xor r9d, r9d
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.140004b18
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rdx, rax
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.140004b54
nop
mov r8, rsi
xor edx, edx
mov rcx, rbx
call fcn.140006bc0
mov qword [r15], rbx
jmp 0x1400031bf
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140006400
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400031f8
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14000a5d0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, r8
mov qword [r11 - 0x50], rdx
and qword [r11 - 0x68], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
and qword [r11 - 0x58], 0
mov ecx, ecx
lea rdx, [r11 - 0x68]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140003265
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x140003265
mov eax, 0xc0000001
jmp 0x1400032e9
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, [rsp + 0x40]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov ebx, eax
mov dword [rsp + 0x38], eax
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140006bc0
mov rcx, qword [rsp + 0x40]
mov qword [rdi], rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x1400032dc
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140006400
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
Function at 0x140003870
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov esi, r8d
mov r15, rdx
test rcx, rcx
je 0x140003945
test rdx, rdx
je 0x140003945
test r8d, r8d
je 0x140003945
mov rax, qword [rcx + 0x28]
mov rbx, qword [rax + 0x30]
test rbx, rbx
je 0x140003945
mov eax, 0x5a4d
mov dword [rbp - 0x20], 0xc7b84853
mov dword [rbp - 0x1c], 0x2b36211
mov dword [rbp - 0x18], 0x48000001
mov dword [rbp - 0x14], 0x9de38ebb
mov dword [rbp - 0x10], 0xca1c24
mov dword [rbp - 0xc], 0xc3334800
mov word [rbp - 8], 0x505b
mov byte [rbp - 6], 0xc3
cmp word [rbx], ax
jne 0x140003945
movsxd rcx, dword [rbx + 0x3c]
add rcx, rbx
cmp dword [rcx], 0x4550
jne 0x140003945
movzx eax, word [rcx + 0x14]
lea rdi, [rcx + 0x18]
movzx r12d, word [rcx + 6]
add rdi, rax
xor r14d, r14d
test r12d, r12d
je 0x140003945
lea rdx, [0x140007280]
mov rcx, rdi
call sub.ntoskrnl.exe_strcmp
test eax, eax
je 0x140003965
add rdi, 0x28
inc r14d
cmp r14d, r12d
jl 0x140003926
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
mov ecx, dword [rdi + 8]
test ecx, 0xfff
je 0x140003945
mov edx, ecx
shl esi, 5
and edx, 0xfffff000
add edx, 0x1000
mov eax, edx
sub eax, ecx
cmp eax, esi
jb 0x140003945
mov ecx, dword [rdi + 0xc]
mov eax, esi
sub rcx, rax
mov eax, edx
add rbx, rax
add rbx, rcx
cmp byte [rbx], 0x53
je 0x140003945
lfence
movabs rdx, 0xfffff78000000014
mov r8d, 0x1b
mov rdx, qword [rdx]
mov rcx, rdx
mov qword [rbp - 0x13], rdx
xor rcx, r15
lea rdx, [rbp - 0x20]
mov qword [rbp - 0x1d], rcx
mov rcx, rbx
call fcn.140004258
mov rax, rbx
jmp 0x140003947
Function at 0x1400039d8
Capabilities:
Parse pe header
Resolve function by parsing pe exports

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 r13
push r14
push r15
xor r9d, r9d
mov rbp, rdx
mov r8, rcx
test rcx, rcx
je 0x140003ae6
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140003ae6
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140003ae6
mov ecx, 0x20b
cmp word [rax + r8 + 0x18], cx
jne 0x140003a43
mov r11d, dword [rax + r8 + 0x8c]
mov ecx, dword [rax + r8 + 0x88]
jmp 0x140003a4d
mov r11d, dword [rax + r8 + 0x7c]
mov ecx, dword [rax + r8 + 0x78]
mov edx, ecx
mov r10d, r9d
add rdx, r8
mov r15d, dword [rdx + 0x24]
mov r12d, dword [rdx + 0x20]
add r15, r8
mov esi, dword [rdx + 0x1c]
add r12, r8
mov r13d, dword [rdx + 0x14]
add rsi, r8
test r13d, r13d
je 0x140003ae1
cmp rbp, 0xffff
ja 0x140003a8b
movzx ebx, r10w
mov ecx, ebx
movzx eax, bp
add ecx, dword [rdx + 0x10]
cmp eax, ecx
jmp 0x140003abb
cmp r10d, dword [rdx + 0x18]
jae 0x140003ae6
mov eax, r10d
mov r14, rbp
mov ecx, dword [r12 + rax*4]
movzx ebx, word [r15 + rax*2]
add rcx, r8
sub r14, rcx
movzx eax, byte [rcx]
movzx edi, byte [rcx + r14]
sub eax, edi
jne 0x140003ab9
inc rcx
test edi, edi
jne 0x140003aa6
test eax, eax
je 0x140003ac7
inc r10d
cmp r10d, r13d
jb 0x140003a72
jmp 0x140003ae1
movzx eax, bx
mov r9d, dword [rsi + rax*4]
add r9, r8
cmp r9, rdx
jb 0x140003ae1
mov ecx, r11d
add rcx, rdx
cmp r9, rcx
jbe 0x140003ae6
mov rax, r9
jmp 0x140003ae8
xor eax, eax
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x140003b2c
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, 0x80
mov rax, qword [0x14000a5d0]
xor rax, rsp
mov qword [rbp - 8], rax
movups xmm0, xmmword [rdx]
xor ebx, ebx
mov ecx, ecx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x60], rbx
movdqu xmmword [rbp - 0x48], xmm0
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140003b8e
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x140003b8e
xor eax, eax
jmp 0x140003c47
mov rcx, qword [rbp - 0x60]
lea rdx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rcx, qword [rax + 0x18]
mov rsi, qword [rcx + 0x20]
mov rdi, rsi
xorps xmm0, xmm0
lea rcx, [rbp - 0x58]
movups xmmword [rbp - 0x58], xmm0
mov rdx, qword [rdi + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x140003c2c
mov rdi, qword [rdi]
cmp rdi, rsi
jne 0x140003bb1
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov ecx, dword [rax + 0xc]
mov esi, dword [rcx + 0x14]
mov edi, esi
xorps xmm0, xmm0
lea rcx, [rbp - 0x58]
movups xmmword [rbp - 0x58], xmm0
mov edx, dword [rdi + 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x140003c27
mov edi, dword [rdi]
cmp rdi, rsi
je 0x140003c30
jmp 0x140003bf5
mov ebx, dword [rdi + 0x10]
jmp 0x140003c30
mov rbx, qword [rdi + 0x20]
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140006400
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003cf8
Capabilities:
Map section object

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
and qword [rbp + 0x6f], 0
lea rax, [rbp - 1]
and qword [rbp + 0x77], 0
xorps xmm0, xmm0
and qword [rbp + 0x7f], 0
xorps xmm1, xmm1
and qword [rbp - 9], 0
mov rdx, rcx
and qword [rbp + 0x27], 0
lea rcx, [rbp - 1]
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0x2f], rax
movups xmmword [rbp + 0x3f], xmm0
mov dword [rbp + 0x1f], 0x30
movups xmmword [rbp + 0xf], xmm1
mov dword [rbp + 0x37], 0x40
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r9, [rbp + 0xf]
mov dword [rsp + 0x28], 0x20
lea r8, [rbp + 0x1f]
mov dword [rsp + 0x20], 1
mov edx, 0x100020
lea rcx, [rbp + 0x77]
call qword [sym.imp.ntoskrnl.exe_ZwOpenFile]
test eax, eax
js 0x140003e1e
mov rax, qword [rbp + 0x77]
lea r8, [rbp + 0x1f]
and qword [rbp + 0x2f], 0
lea rcx, [rbp + 0x6f]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], 0x1000000
mov edx, 0xf001f
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ntoskrnl.exe_ZwCreateSection]
test eax, eax
js 0x140003e1e
mov rcx, qword [rbp + 0x6f]
lea rax, [rbp - 9]
mov dword [rsp + 0x48], 4
lea r8, [rbp + 0x7f]
mov dword [rsp + 0x40], 0x100000
xor r9d, r9d
mov dword [rsp + 0x38], 1
or rdx, 0xffffffffffffffff
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x3e8
call qword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
test eax, eax
js 0x140003e1e
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rax, qword [rbp + 0x7f]
jmp 0x140003e20
xor eax, eax
add rsp, 0xb0
pop rbp
ret
Function at 0x140003e2c
Capabilities:
Map section object

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x14000a5d0]
xor rax, rsp
mov qword [rbp + 0x37], rax
movups xmm0, xmmword [0x1400072f0]
mov eax, dword [0x140007318]
mov rbx, rcx
movups xmm1, xmmword [0x140007300]
mov dword [rbp + 0x2f], eax
xor edi, edi
movzx eax, word [0x14000731c]
lea rcx, [rbp - 0x39]
movups xmmword [rbp + 7], xmm0
mov qword [rbp - 0x59], rdx
lea rdx, [rbp + 7]
movsd xmm0, qword [0x140007310]
movsd qword [rbp + 0x27], xmm0
mov qword [rbp - 0x51], rdi
movups xmmword [rbp + 0x17], xmm1
mov word [rbp + 0x33], ax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rbp - 0x39]
mov dword [rbp - 0x29], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x19], rax
lea r8, [rbp - 0x29]
mov qword [rbp - 0x21], rdi
mov edx, 0xf001f
mov dword [rbp - 0x11], 0x40
lea rcx, [rbp - 0x49]
movdqu xmmword [rbp - 9], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenSection]
test eax, eax
js 0x140003f45
mov rsi, qword [rbp - 0x49]
lea rax, [rsi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140003f45
mov rdx, qword [rbp - 0x59]
lea rax, [rbp - 0x59]
mov dword [rsp + 0x48], 4
lea r8, [rbp - 0x51]
mov dword [rsp + 0x40], edi
xor r9d, r9d
mov dword [rsp + 0x38], 1
mov rcx, rsi
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
or rdx, 0xffffffffffffffff
mov qword [rbp - 0x41], rbx
call qword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test ebx, ebx
cmove rdi, qword [rbp - 0x51]
mov rax, rdi
jmp 0x140003f47
xor eax, eax
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140006400
mov rbx, qword [rsp + 0x120]
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret

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

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x78
mov rax, qword [0x14000a5d0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, r9
mov rsi, r8
mov rbx, rdx
mov r8, rcx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], r9
lea rdi, [rsp + 0x20]
xor eax, eax
lea ecx, [rax + 8]
rep stosb byte [rdi], al
lea rdi, [rsp + 0x38]
lea ecx, [rax + 0x30]
rep stosb byte [rdi], al
lea rdx, [rsp + 0x20]
mov rcx, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
jns 0x1400041d3
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x1400041d3
mov eax, 0xc0000001
jmp 0x140004240
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140004210
mov r8d, 1
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov r8, rsi
mov rdx, rbx
mov rcx, r14
call fcn.140006cc0
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x14000423e
mov eax, edi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140006400
add rsp, 0x78
pop r14
pop rdi
pop rsi
pop rbx
ret