joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001360c
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xa0
mov rsi, r9
mov r12b, r8b
mov rbx, rdx
mov dword [rsp + 0x40], 0xc0000001
and qword [rax - 0x80], 0
xorps xmm0, xmm0
movups xmmword [rax - 0x58], xmm0
movups xmmword [rax - 0x48], xmm0
movups xmmword [rax - 0x38], xmm0
and qword [rax - 0x60], 0
mov qword [rax - 0x68], 0x1000
xor dil, dil
and dword [rax - 0x78], 0
and qword [rax - 0x70], 0
test r9, r9
je 0x1400137e2
test rdx, rdx
je 0x140013678
mov qword [rax - 0x80], rdx
jmp 0x14001368f
lea rdx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x40], eax
test eax, eax
js 0x1400137e2
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov r15, rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov r14, rax
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov dil, 1
mov byte [rsp + 0xe8], dil
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, rax
call fcn.140012d40
cmp al, dil
je 0x1400137e2
mov dword [rsp + 0x40], 0xc0000225
mov dword [rsp + 0x20], 0xc8
mov r9, r14
mov r8, r15
lea rdx, [0x140019d30]
mov rcx, qword [rsp + 0x48]
call fcn.14001535c
mov rax, qword [rsp + 0x100]
test rax, rax
je 0x140013736
mov r9, qword [rsp + 0x108]
mov r8, qword [r15 + 0x10]
xor edx, edx
mov rcx, qword [rsp + 0x48]
mov r10, qword [0x14001a3a0]
call r10
test al, al
je 0x1400137e2
test r14, r14
sete al
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x30], rcx
mov byte [rsp + 0x28], al
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xf0]
lea r8, [rsp + 0x50]
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.140013824
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1400137c8
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x1400137c8
mov ecx, dword [rsp + 0x50]
test ecx, ecx
je 0x1400137c8
add rcx, rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9b, 1
mov r8d, 4
call fcn.140012c08
cmp r12b, 1
jne 0x1400137c6
mov r9d, 0x8000
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x68]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
jmp 0x1400137e2
jmp 0x1400137e2
cmp dil, 1
jne 0x1400137f3
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
test rbx, rbx
jne 0x140013808
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140013808
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140013824
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
xor r10d, r10d
mov rsi, r9
mov qword [rbp + 0x30], r10
mov rdi, rdx
mov dl, byte [rbp + 0x58]
mov r14, r8
mov r9, rcx
test rcx, rcx
je 0x140013a49
mov r13, qword [rbp + 0x60]
test r13, r13
je 0x140013a49
test rdi, rdi
je 0x140013a49
test r8, r8
je 0x140013a49
or r11, 0xffffffffffffffff
mov rbx, r11
inc rbx
cmp word [rdi + rbx*2], r10w
jne 0x140013888
add bx, bx
je 0x140013a49
movzx ecx, bx
mov eax, 0xf25
add ecx, 0x14
cmp dl, 1
mov dword [r8], ecx
mov r8d, 0xc29
cmovne eax, r8d
add rax, 0x100
test rsi, rsi
je 0x1400138ca
mov r15d, dword [rbp + 0x50]
test r15d, r15d
jne 0x1400138d0
mov r15d, r10d
mov rsi, r10
add rax, rcx
mov r12d, r15d
add rax, r12
mov dword [rsp + 0x28], 0x40
xor r8d, r8d
mov qword [r9], rax
lea rdx, [rbp + 0x30]
mov dword [rsp + 0x20], 0x1000
mov rcx, r11
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x140013a49
cmp byte [rbp + 0x58], 1
lea eax, [rbx + 2]
movzx r8d, ax
jne 0x1400139c1
mov rdx, qword [rbp + 0x30]
mov word [rdx], bx
mov word [rdx + 2], r8w
mov rcx, qword [rbp + 0x30]
add rcx, 0x10
mov qword [rdx + 8], rcx
mov rdx, rdi
call fcn.140018c40
mov ecx, dword [r14]
lea rdx, [0x140021c00]
add rcx, qword [rbp + 0x30]
mov r8d, 0xf00
call fcn.140018c40
test rsi, rsi
je 0x14001396e
mov rax, qword [rbp + 0x30]
mov r8d, r12d
mov ecx, dword [r14]
add rax, 0xf00
add rcx, rax
mov rdx, rsi
call fcn.140018c40
mov rdi, qword [rbp + 0x30]
mov ecx, dword [r14]
add rdi, 0xf00
add rdi, rcx
and dword [rdi], 0
and qword [rdi + 4], 0
and byte [rdi + 0xc], 0xfe
mov rax, qword [rbp + 0x30]
mov qword [rdi + 0xd], rax
mov eax, dword [r14]
mov dword [rdi + 0x15], eax
mov dword [rdi + 0x19], r15d
test rsi, rsi
je 0x1400139b8
lea rbx, [rdi + 0x25]
mov r8, r12
mov rcx, rbx
mov rdx, rsi
call fcn.140018c40
mov qword [rdi + 0x1d], rbx
mov qword [r13], rdi
jmp 0x140013a43
mov rcx, qword [rbp + 0x30]
mov rdx, rdi
mov word [rcx], bx
mov word [rcx + 2], r8w
mov eax, dword [rbp + 0x30]
add eax, 0x10
mov dword [rcx + 4], eax
mov ecx, eax
call fcn.140018c40
mov ecx, dword [r14]
lea rdx, [0x140022b00]
add rcx, qword [rbp + 0x30]
mov r8d, 0xc10
call fcn.140018c40
mov rbx, qword [rbp + 0x30]
mov ecx, dword [r14]
add rbx, 0xc10
add rbx, rcx
and dword [rbx], 0
and dword [rbx + 4], 0
and byte [rbx + 8], 0xfe
mov eax, dword [rbp + 0x30]
mov dword [rbx + 9], eax
mov eax, dword [r14]
mov dword [rbx + 0xd], eax
mov dword [rbx + 0x11], r15d
test rsi, rsi
je 0x140013a3f
lea rcx, [rbx + 0x19]
mov r8, r12
mov rdx, rsi
call fcn.140018c40
lea eax, [rbx + 0x19]
mov dword [rbx + 0x15], eax
mov qword [r13], rbx
mov rax, qword [rbp + 0x30]
jmp 0x140013a4b
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140014038
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0x90
xor r12d, r12d
mov rsi, r9
mov qword [rbp + 0x5f], r12
mov r14, r8
mov rdi, rcx
mov ebx, r12d
test rcx, rcx
je 0x14001424d
test rdx, rdx
je 0x14001424d
test r8, r8
jne 0x140014089
test r9, r9
je 0x14001424d
or rcx, 0xffffffffffffffff
test rsi, rsi
je 0x1400140a1
mov rbx, rcx
inc rbx
cmp word [r9 + rbx*2], r12w
jne 0x140014095
add ebx, ebx
mov r9, rdx
mov r15d, ebx
mov dword [rsp + 0x28], 0x40
xor r8d, r8d
mov dword [rbp - 0x31], 0x83ec8b55
mov dword [rbp - 0x2d], 0x8d5754ec
lea rax, [r15 + 0x2e4]
mov dword [rbp - 0x29], 0xf88bac45
mov qword [rdx], rax
lea rdx, [rbp + 0x5f]
mov dword [rbp - 0x25], 0x44b9c033
mov dword [rbp - 0x21], 0xf3000000
mov dword [rbp - 0x1d], 0xac45c7aa
mov dword [rbp - 0x19], 0x44
mov dword [rbp - 0x15], 0xdc45c766
mov dword [rbp - 0x11], 0x45c70005
mov dword [rbp - 0xd], 0xd8
mov dword [rbp - 9], 0x8dc03300
mov dword [rbp - 5], 0xababf07d
mov dword [rbp - 1], 0x6aabab
mov dword [rbp + 3], 0x50f0458d
mov dword [rbp + 7], 0x50ac458d
mov dword [rbp + 0xb], 0x6a006a
mov dword [rbp + 0xf], 0x68
mov dword [rbp + 0x13], 0x6a006a00
mov qword [rbp + 0x17], 0x68006a00
mov dword [rbp + 0x1f], 0x68
mov dword [rbp + 0x23], 0xe8006a00
mov dword [rbp + 0x27], r12d
mov word [rbp + 0x2b], 0xc95f
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x14001424d
mov rcx, qword [rbp + 0x5f]
mov eax, r12d
movaps xmm0, xmmword [rbp - 0x31]
movaps xmm1, xmmword [rbp - 0x21]
movups xmmword [rcx], xmm0
movaps xmm0, xmmword [rbp - 0x11]
movups xmmword [rcx + 0x10], xmm1
movaps xmm1, xmmword [rbp - 1]
movups xmmword [rcx + 0x20], xmm0
movaps xmm0, xmmword [rbp + 0xf]
movups xmmword [rcx + 0x30], xmm1
movsd xmm1, qword [rbp + 0x1f]
movups xmmword [rcx + 0x40], xmm0
movsd qword [rcx + 0x50], xmm1
mov dword [rcx + 0x58], eax
movzx eax, word [rbp + 0x2b]
mov word [rcx + 0x5c], ax
mov byte [rcx + 0x5e], 0xc3
mov cl, byte [rbp + 0x7f]
mov rax, qword [rbp + 0x5f]
mov byte [rax + 0x20], cl
test cl, cl
jne 0x1400141df
mov rax, qword [rbp + 0x5f]
mov dword [rax + 0x25], 1
mov rax, qword [rbp + 0x5f]
mov dword [rax + 0x41], 0x8000000
test ebx, ebx
je 0x14001420b
test rsi, rsi
je 0x14001420b
mov rcx, qword [rbp + 0x5f]
mov r8, r15
add rcx, 0x2d0
mov rdx, rsi
call fcn.140018c40
mov rcx, qword [rbp + 0x5f]
lea eax, [rcx + 0x2d0]
mov dword [rcx + 0x4c], eax
test r14, r14
je 0x14001423b
cmp word [r14], r12w
je 0x14001423b
mov rcx, qword [rbp + 0x5f]
mov r8, r14
add rcx, 0xc8
mov edx, 0x104
call sub.ntoskrnl.exe_wcscpy_s
mov rcx, qword [rbp + 0x5f]
lea eax, [rcx + 0xc8]
mov dword [rcx + 0x51], eax
mov rax, qword [rbp + 0x5f]
sub edi, eax
sub edi, 0x5c
mov dword [rax + 0x58], edi
mov rax, qword [rbp + 0x5f]
jmp 0x14001424f
xor eax, eax
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140014564
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor r9d, r9d
mov r12d, r8d
mov qword [rbp - 0x10], r9
mov rax, rdx
mov edx, r9d
test rcx, rcx
je 0x140014783
mov rsi, qword [rbp + 0x80]
test rsi, rsi
je 0x140014783
test rax, rax
je 0x140014783
test r8d, r8d
je 0x140014783
mov r14, qword [rbp + 0x68]
test r14, r14
je 0x140014783
or r10, 0xffffffffffffffff
mov rax, r10
inc rax
cmp word [r14 + rax*2], r9w
jne 0x1400145d4
mov rdi, qword [rbp + 0x70]
lea r8d, [rax*2 + 2]
mov dword [rbp + 0x40], r8d
test rdi, rdi
je 0x140014607
mov rax, r10
inc rax
cmp word [rdi + rax*2], r9w
jne 0x1400145f6
lea edx, [rax*2 + 2]
cmp byte [rbp + 0x78], 1
mov r9, rcx
mov r13d, r8d
mov eax, 0x17ce
mov r15d, edx
mov r8d, 0x101a
cmovne eax, r8d
mov dword [rsp + 0x28], 0x40
add rax, 0x100
mov dword [rsp + 0x20], 0x1000
add rax, r12
lea rdx, [rbp - 0x10]
add rax, r15
xor r8d, r8d
add rax, r13
mov rbx, r12
mov qword [rcx], rax
mov rcx, r10
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x140014783
mov rdx, qword [rbp + 0x48]
mov r8, rbx
mov rcx, qword [rbp - 0x10]
call fcn.140018c40
mov rcx, qword [rbp - 0x10]
add rcx, rbx
cmp byte [rbp + 0x78], 1
jne 0x1400146f9
mov r8d, 0x17a8
lea rdx, [0x140023710]
call fcn.140018c40
mov rcx, qword [rbp - 0x10]
mov edx, 0x17a8
add rcx, rbx
call fcn.1400189c4
mov rax, qword [rbp - 0x10]
mov r8d, r13d
add rax, 0x17a8
mov rdx, r14
add rbx, rax
mov eax, dword [rbp + 0x58]
and dword [rbx], 0
lea rcx, [rbx + 0x26]
mov dword [rbx + 4], eax
movzx eax, byte [rbp + 0x60]
mov word [rbx + 8], ax
mov rax, qword [rbp - 0x10]
mov qword [rbx + 0x1a], rax
mov dword [rbx + 0x22], r12d
mov qword [rbx + 0xa], rcx
call fcn.140018c40
test rdi, rdi
je 0x1400146ef
lea rcx, [rbx + 0x26]
add rcx, r13
mov qword [rbx + 0x12], rcx
jmp 0x140014769
and qword [rbx + 0x12], 0
jmp 0x14001477a
mov r8d, 0x1000
lea rdx, [0x140024ec0]
call fcn.140018c40
mov rcx, qword [rbp - 0x10]
mov edx, 0x1000
add rcx, rbx
call fcn.1400189c4
mov rax, qword [rbp - 0x10]
mov r8, r13
add rax, 0x1000
mov rdx, r14
add rbx, rax
mov eax, dword [rbp + 0x58]
and dword [rbx], 0
mov dword [rbx + 4], eax
movzx eax, byte [rbp + 0x60]
mov word [rbx + 8], ax
mov eax, dword [rbp - 0x10]
mov dword [rbx + 0x12], eax
lea eax, [rbx + 0x1a]
mov ecx, eax
mov dword [rbx + 0x16], r12d
mov dword [rbx + 0xa], eax
call fcn.140018c40
test rdi, rdi
je 0x140014776
mov eax, dword [rbp + 0x40]
add eax, 0x1a
add eax, ebx
mov dword [rbx + 0xe], eax
mov ecx, eax
mov r8, r15
mov rdx, rdi
call fcn.140018c40
jmp 0x14001477a
and dword [rbx + 0xe], 0
mov rax, qword [rbp - 0x10]
mov qword [rsi], rbx
jmp 0x140014785
xor eax, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001483c
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
and dword [rax + 0x10], 0
mov rdi, rcx
mov dword [rax - 0x18], 0x160014
lea rax, [0x140019d50]
mov qword [rsp + 0x28], rax
mov rax, qword [0x140026568]
test rax, rax
je 0x140014888
test rcx, rcx
je 0x140014974
mov ecx, dword [0x140026570]
mov dword [rdi], ecx
jmp 0x140014974
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rsi, rax
test rax, rax
je 0x140014972
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x140014972
mov edx, eax
xor ecx, ecx
mov r8d, 0x746b734b
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x140014972
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov rcx, rax
call fcn.140018a40
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
mov rdx, rbx
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x14001495e
mov r8d, dword [rbx]
xor edx, edx
test r8d, r8d
je 0x14001495e
lea rcx, [rbx + 0x20]
mov r9, qword [rcx - 8]
cmp rsi, r9
jb 0x140014928
mov eax, dword [rcx]
add rax, r9
cmp rsi, rax
jb 0x140014938
inc edx
add rcx, 0x128
cmp edx, r8d
jae 0x14001495e
jmp 0x140014915
mov eax, edx
imul rcx, rax, 0x128
mov rax, qword [rcx + rbx + 0x18]
mov qword [0x140026568], rax
mov eax, dword [rcx + rbx + 0x20]
mov dword [0x140026570], eax
test rdi, rdi
je 0x14001495e
mov dword [rdi], eax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x140026568]
jmp 0x140014974
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140014984
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140026578]
test rax, rax
jne 0x140014a76
xor ecx, ecx
call fcn.14001483c
mov rbp, rax
test rax, rax
je 0x140014a74
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rdi, rax
call fcn.140015400
test rax, rax
je 0x1400149d7
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
movzx ecx, word [rdi + 6]
lea rsi, [rdi + 0x108]
lea rdx, [rcx + rcx*4]
lea rcx, [rsi + rdx*8]
cmp rsi, rcx
jae 0x140014a74
lfence
lea rbx, [rsi + 8]
mov eax, dword [rbx + 0x1c]
and eax, 0x2a000000
cmp eax, 0x28000000
jne 0x140014a5b
mov eax, dword [rbx - 8]
cmp eax, 0x54494e49
je 0x140014a5b
cmp eax, 0x45474150
je 0x140014a5b
movups xmm0, xmmword [0x140019d70]
mov r9d, dword [rbx + 4]
lea rcx, [rsp + 0x50]
mov eax, dword [rbx]
add r9, rbp
and qword [rsp + 0x50], 0
mov r8d, 0xf
mov qword [rsp + 0x28], rcx
mov dl, 0xcc
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
movdqu xmmword [rsp + 0x30], xmm0
call fcn.1400147a0
test eax, eax
jns 0x140014a8b
movzx eax, word [rdi + 6]
add rbx, 0x28
lea rcx, [rax + rax*4]
lea rdx, [rsi + rcx*8]
lea rax, [rbx - 8]
cmp rax, rdx
jb 0x1400149fa
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rdx, qword [rsp + 0x50]
mov eax, dword [rdx + 3]
mov ecx, dword [rdx + 0xa]
add rax, 7
add rax, rdx
add rdx, 0xe
add rdx, rcx
mov qword [0x140026578], rax
mov qword [0x140026560], rdx
jmp 0x140014a76
Function at 0x140014ab4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r15, rdx
mov r14, r8
mov edx, 0x23e0
mov r12, rcx
mov ebp, 0x746b734b
mov dword [rsp + 0x68], edx
mov r8d, ebp
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x140014bf5
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x68]
mov esi, 0xb
mov rdx, rax
mov ecx, esi
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov edi, eax
cmp eax, 0xc0000004
jne 0x140014b6e
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [rsp + 0x68]
mov r8d, ebp
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x140014bf5
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x68]
mov rdx, rax
mov ecx, esi
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov edi, eax
test eax, eax
je 0x140014b72
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
jmp 0x140014bfa
test edi, edi
jmp 0x140014b5a
mov edi, 0xc000009a
test r12, r12
jne 0x140014b95
test r15, r15
je 0x140014b88
mov rax, qword [rbx + 0x18]
mov qword [r15], rax
test r14, r14
je 0x140014bee
mov eax, dword [rbx + 0x20]
mov dword [r14], eax
jmp 0x140014bee
xor esi, esi
cmp dword [rbx], esi
jbe 0x140014b5c
mov ebp, esi
mov rdx, r12
imul rax, rbp, 0x128
movzx ecx, word [rax + rbx + 0x2e]
add rax, 0x30
add rcx, rax
add rcx, rbx
call fcn.140006294
test eax, eax
je 0x140014bc7
inc esi
cmp esi, dword [rbx]
jb 0x140014b9b
jmp 0x140014b5c
test r15, r15
je 0x140014bdb
imul rax, rbp, 0x128
mov rcx, qword [rax + rbx + 0x18]
mov qword [r15], rcx
test r14, r14
je 0x140014bee
imul rax, rbp, 0x128
mov ecx, dword [rax + rbx + 0x20]
mov dword [r14], ecx
xor edi, edi
jmp 0x140014b5c
mov eax, 0xc000009a
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140014ca0
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12b, r8b
mov rdi, rcx
xor ebx, ebx
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rsi, rax
movzx eax, word [rax + 0x18]
mov ecx, 0x10b
cmp ax, cx
jne 0x140014dcf
mov edx, dword [rsi + 0x78]
test edx, edx
je 0x140014ece
test r12b, r12b
je 0x140014d01
lea r14, [rdi + rdx]
mov r15d, dword [r14 + 0x1c]
mov r13d, dword [r14 + 0x20]
mov eax, dword [r14 + 0x24]
jmp 0x140014d39
mov rcx, rsi
call fcn.1400152ec
mov r14d, eax
add r14, rdi
mov edx, dword [r14 + 0x1c]
mov rcx, rsi
call fcn.1400152ec
mov r15d, eax
mov edx, dword [r14 + 0x20]
mov rcx, rsi
call fcn.1400152ec
mov r13d, eax
mov edx, dword [r14 + 0x24]
mov rcx, rsi
call fcn.1400152ec
mov eax, eax
add rax, rdi
mov qword [rsp + 0x30], rax
mov ecx, r13d
add rcx, rdi
mov qword [rsp + 0x38], rcx
mov r13d, r15d
add r13, rdi
mov r15d, ebx
mov dword [rsp + 0x20], ebx
cmp r15d, dword [r14 + 0x18]
jae 0x140014ece
mov eax, r15d
mov ecx, dword [rcx + rax*4]
test r12b, r12b
jne 0x140014d7c
mov edx, ecx
mov rcx, rsi
call fcn.1400152ec
mov ecx, eax
mov eax, r15d
mov rdx, qword [rsp + 0x30]
movzx eax, word [rdx + rax*2]
mov word [rsp + 0x88], ax
add rcx, rdi
mov rdx, qword [rsp + 0x78]
call fcn.140006294
test eax, eax
jne 0x140014dc0
movzx eax, word [rsp + 0x88]
mov edx, dword [r13 + rax*4]
test r12b, r12b
je 0x140014eab
lea rbx, [rdi + rdx]
jmp 0x140014eb8
inc r15d
mov dword [rsp + 0x20], r15d
mov rcx, qword [rsp + 0x38]
jmp 0x140014d5b
mov ecx, 0x20b
cmp ax, cx
jne 0x140014ece
mov edx, dword [rsi + 0x88]
test edx, edx
je 0x140014ece
test r12b, r12b
je 0x140014e02
lea r14, [rdi + rdx]
mov r15d, dword [r14 + 0x1c]
mov r13d, dword [r14 + 0x20]
mov eax, dword [r14 + 0x24]
jmp 0x140014e3a
mov rcx, rsi
call fcn.1400152ec
mov r14d, eax
add r14, rdi
mov edx, dword [r14 + 0x1c]
mov rcx, rsi
call fcn.1400152ec
mov r15d, eax
mov edx, dword [r14 + 0x20]
mov rcx, rsi
call fcn.1400152ec
mov r13d, eax
mov edx, dword [r14 + 0x24]
mov rcx, rsi
call fcn.1400152ec
mov eax, eax
add rax, rdi
mov qword [rsp + 0x38], rax
mov ecx, r13d
add rcx, rdi
mov qword [rsp + 0x30], rcx
mov r13d, r15d
add r13, rdi
mov r15d, ebx
mov dword [rsp + 0x20], ebx
cmp r15d, dword [r14 + 0x18]
jae 0x140014ece
mov eax, r15d
mov ecx, dword [rcx + rax*4]
test r12b, r12b
jne 0x140014e79
mov edx, ecx
mov rcx, rsi
call fcn.1400152ec
mov ecx, eax
mov eax, r15d
mov rdx, qword [rsp + 0x38]
movzx eax, word [rdx + rax*2]
mov word [rsp + 0x88], ax
add rcx, rdi
mov rdx, qword [rsp + 0x78]
call fcn.140006294
test eax, eax
jne 0x140014ebf
movzx eax, word [rsp + 0x88]
jmp 0x140014da9
mov rcx, rsi
call fcn.1400152ec
mov ebx, eax
add rbx, rdi
mov qword [rsp + 0x28], rbx
jmp 0x140014ece
inc r15d
mov dword [rsp + 0x20], r15d
mov rcx, qword [rsp + 0x30]
jmp 0x140014e5c
jmp 0x140014ed7
mov rax, rbx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14001512c
Capabilities:
Map section object
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
xor r14d, r14d
mov rdi, r8
mov qword [rbp + 0x7f], r14
mov rsi, rdx
mov qword [rbp + 0x67], r14
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], r14
test rcx, rcx
jne 0x14001516e
mov eax, 0xc0000001
jmp 0x1400152d1
mov rdx, rcx
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x50], r14d
lea rax, [rbp - 9]
mov qword [rsp + 0x48], r14
lea r9, [rbp + 7]
mov dword [rsp + 0x40], r14d
lea r8, [rbp + 0x17]
mov dword [rsp + 0x38], 1
lea rcx, [rbp + 0x7f]
mov dword [rsp + 0x30], 1
xorps xmm0, xmm0
mov dword [rsp + 0x28], r14d
mov edx, 1
mov qword [rsp + 0x20], r14
mov dword [rbp + 0x17], 0x30
mov qword [rbp + 0x1f], r14
mov dword [rbp + 0x2f], 0x240
mov qword [rbp + 0x27], rax
movdqu xmmword [rbp + 0x37], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebx, eax
test eax, eax
js 0x1400152cf
mov rax, qword [rbp + 0x7f]
lea r8, [rbp + 0x17]
mov qword [rsp + 0x30], rax
lea rcx, [rbp + 0x67]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x8000000
xor r9d, r9d
mov dword [rsp + 0x20], 2
mov edx, 0xf0005
mov dword [rbp + 0x17], 0x30
mov qword [rbp + 0x1f], r14
mov dword [rbp + 0x2f], 0x240
mov qword [rbp + 0x27], r14
movdqu xmmword [rbp + 0x37], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateSection]
mov ebx, eax
test eax, eax
js 0x1400152c5
mov rcx, qword [rbp + 0x67]
lea rax, [rbp - 0x11]
mov dword [rsp + 0x48], 2
lea r8, [rbp - 0x19]
mov dword [rsp + 0x40], r14d
xor r9d, r9d
mov dword [rsp + 0x38], 1
or rdx, 0xffffffffffffffff
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov ebx, eax
test eax, eax
js 0x1400152bb
mov rcx, qword [rbp - 0x19]
mov ebx, 0xc000009a
test rcx, rcx
je 0x1400152bb
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400152bb
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400152bb
test rsi, rsi
je 0x1400152ae
mov qword [rsi], rcx
test rdi, rdi
je 0x1400152b8
mov eax, dword [rbp - 0x11]
mov dword [rdi], eax
mov ebx, r14d
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret