Function at 0x415e10
Capabilities:
Access pe header
Allocate or change rwx memory
Delete file
Enumerate pe sections
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x348
mov dword [rsp + 0x7c], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x70], 0
mov rcx, qword [rsp + 0x360]
call sub.ntoskrnl.exe_PsGetProcessWow64Process
test rax, rax
je 0x415e66
mov dword [rsp + 0x308], 1
jmp 0x415e71
mov dword [rsp + 0x308], 0
movzx eax, byte [rsp + 0x308]
mov byte [rsp + 0x78], al
mov r8d, 0x486e7367
mov edx, 0x58
mov ecx, 1
call sub.ntoskrnl.exe_ExAllocatePoolWithTag
mov qword [rsp + 0x60], rax
mov r8d, 0x58
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.00431d40
mov rax, qword [rsp + 0x60]
add rax, 0x30
mov rdx, qword [rsp + 0x368]
mov rcx, rax
call fcn.00409060
mov rax, qword [rsp + 0x60]
add rax, 0x20
mov rcx, qword [rsp + 0x60]
add rcx, 0x30
mov rdx, rax
call fcn.00415550
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x388]
mov dword [rax + 0x4c], ecx
movzx eax, byte [rsp + 0x78]
test eax, eax
je 0x415f01
mov dword [rsp + 0x30c], 0
jmp 0x415f0c
mov dword [rsp + 0x30c], 1
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x30c]
mov dword [rax + 0x48], ecx
mov rax, qword [rsp + 0x60]
add rax, 0x20
mov rcx, qword [rsp + 0x390]
add rcx, 0x20
mov rdx, qword [rsp + 0x60]
mov r8d, dword [rdx + 0x48]
mov rdx, rax
call fcn.004156b0
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x415f95
mov edx, 0x486e7367
mov rcx, qword [rsp + 0x60]
call sub.ntoskrnl.exe_ExFreePoolWithTag
lea rax, [rsp + 0x2b0]
mov rdi, rax
mov rsi, qword [rsp + 0x68]
mov ecx, 0x58
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x2b0]
mov rdi, qword [rsp + 0x398]
mov rsi, rax
mov ecx, 0x58
rep movsb byte [rdi], byte [rsi]
xor eax, eax
jmp 0x416d2a
cmp qword [rsp + 0x370], 0
jne 0x415fc7
mov rax, qword [rsp + 0x60]
add rax, 0x18
mov rdx, rax
mov rcx, qword [rsp + 0x368]
call fcn.00415760
mov dword [rsp + 0x7c], eax
mov byte [rsp + 0x380], 0
jmp 0x415fd8
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x370]
mov qword [rax + 0x18], rcx
cmp dword [rsp + 0x7c], 0
jl 0x416002
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x18]
call sub.ntoskrnl.exe_RtlImageNtHeader
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x416002
mov dword [rsp + 0x7c], 0xc000007b
mov eax, dword [rsp + 0x388]
and eax, 0x8000
test eax, eax
jne 0x4162f5
cmp dword [rsp + 0x7c], 0
jl 0x4162f5
mov dword [rsp + 0x90], 0
mov qword [rsp + 0x80], 0
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x80]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x18]
call fcn.00415b10
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x4162f5
cmp dword [rsp + 0x90], 0
je 0x4162f5
cmp qword [rsp + 0x370], 0
je 0x4162d6
mov word [rsp + 0xb0], 0
lea rax, [rsp + 0xb2]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov word [rsp + 0x98], 0
lea rax, [rsp + 0x9a]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov dword [rsp + 0xc0], 0
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0xd8], 0
lea rax, [rsp + 0xe0]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov dword [rsp + 0xc8], 0
lea rax, [rsp + 0xcc]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
lea rax, [rsp + 0xd0]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov dx, 0x200
lea rcx, [rsp + 0x98]
call fcn.00414b90
lea rdx, [0x004342e0]
lea rcx, [rsp + 0xb0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
mov dword [rsp + 0xd8], 0x30
mov qword [rsp + 0xe0], 0
mov dword [rsp + 0xf0], 0x200
lea rax, [rsp + 0xb0]
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0x100], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xc8]
lea r8, [rsp + 0xd8]
mov edx, 0x110002
lea rcx, [rsp + 0xa8]
call sub.ntoskrnl.exe_ZwCreateFile
mov dword [rsp + 0xc0], eax
cmp dword [rsp + 0xc0], 0
jl 0x41626b
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xa8]
call sub.ntoskrnl.exe_ZwWriteFile
mov dword [rsp + 0xc0], eax
mov rcx, qword [rsp + 0xa8]
call sub.ntoskrnl.exe_ZwClose
cmp dword [rsp + 0xc0], 0
jl 0x4162c7
movabs rax, 0xfffff78000000000
mov ecx, 0x30
add rcx, rax
mov rax, rcx
lea r9, [0x004342b0]
mov r8, rax
lea rdx, [0x004342a0]
lea rcx, [rsp + 0x98]
call fcn.00426340
mov r9, qword [rsp + 0x390]
mov r8d, dword [rsp + 0x90]
xor edx, edx
lea rcx, [rsp + 0x98]
call fcn.00414650
lea rcx, [rsp + 0xd8]
call sub.ntoskrnl.exe_ZwDeleteFile
jmp 0x4162f5
mov r9, qword [rsp + 0x390]
mov r8d, dword [rsp + 0x90]
mov dl, 1
mov rcx, qword [rsp + 0x368]
call fcn.00414650
cmp dword [rsp + 0x7c], 0
jl 0x416766
mov eax, dword [rsp + 0x388]
and eax, 0x10
test eax, eax
je 0x41650e
mov qword [rsp + 0x108], 0
lea rax, [rsp + 0x110]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov qword [rsp + 0x138], 0
lea rax, [rsp + 0x140]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x360]
call sub.ntoskrnl.exe_PsGetProcessId
mov qword [rsp + 0x118], rax
mov byte [rsp + 0x130], 1
mov byte [rsp + 0x131], 1
mov qword [rsp + 0x120], 0x40
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x4163a4
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x310], eax
jmp 0x4163b3
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x310], eax
mov eax, dword [rsp + 0x310]
mov qword [rsp + 0x110], rax
cmp qword [rsp + 0x3a0], 0x1000
jbe 0x4164c6
mov rax, qword [rsp + 0x3a0]
mov qword [rsp + 0x158], rax
mov qword [rsp + 0x148], 0
mov dword [rsp + 0x150], 1
xor eax, eax
cmp eax, 1
je 0x4164c6
mov qword [rsp + 0x160], 0
lea rax, [rsp + 0x168]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
lea rax, [rsp + 0x148]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0x160]
xor r8d, r8d
mov rdx, qword [rsp + 0x158]
mov rcx, 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwQueryVirtualMemory
mov eax, dword [rsp + 0x150]
mov ecx, dword [rsp + 0x184]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x4164a3
mov rax, qword [rsp + 0x110]
add rax, 0x10000
cmp qword [rsp + 0x178], rax
jbe 0x4164a3
mov rax, qword [rsp + 0x160]
add rax, 0x10000
mov qword [rsp + 0x108], rax
jmp 0x4164c6
mov rax, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x158]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x158], rax
jmp 0x4163fb
lea r8, [rsp + 0x138]
lea rdx, [rsp + 0x108]
mov rcx, qword [rsp + 0x360]
call fcn.0041bd90
mov dword [rsp + 0x7c], eax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x138]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x140]
mov qword [rax + 0x40], rcx
jmp 0x416766
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x416531
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x318], rax
jmp 0x416541
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x34]
mov qword [rsp + 0x318], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x318]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x416573
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x320], eax
jmp 0x416582
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x320], eax
mov eax, dword [rsp + 0x320]
mov rcx, qword [rsp + 0x60]
mov qword [rcx + 0x40], rax
cmp qword [rsp + 0x3a0], 0x1000
jbe 0x416698
mov rax, qword [rsp + 0x3a0]
mov qword [rsp + 0x1a0], rax
mov qword [rsp + 0x190], 0
mov dword [rsp + 0x198], 1
xor eax, eax
cmp eax, 1
je 0x416698
mov qword [rsp + 0x1a8], 0
lea rax, [rsp + 0x1b0]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
lea rax, [rsp + 0x190]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0x1a8]
xor r8d, r8d
mov rdx, qword [rsp + 0x1a0]
mov rcx, 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwQueryVirtualMemory
mov eax, dword [rsp + 0x198]
mov ecx, dword [rsp + 0x1cc]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x416675
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x40]
add rax, 0x10000
cmp qword [rsp + 0x1c0], rax
jbe 0x416675
mov rax, qword [rsp + 0x1a8]
add rax, 0x10000
mov rcx, qword [rsp + 0x60]
mov qword [rcx + 0x10], rax
jmp 0x416698
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rsp + 0x1a0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x1a0], rax
jmp 0x4165cb
mov rax, qword [rsp + 0x60]
add rax, 0x40
mov rcx, qword [rsp + 0x60]
add rcx, 0x10
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x1000
mov r9, rax
xor r8d, r8d
mov rdx, rcx
mov rcx, 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwAllocateVirtualMemory
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x7c], 0
jge 0x416766
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x10], 0
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x41670c
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x324], eax
jmp 0x41671b
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x324], eax
mov eax, dword [rsp + 0x324]
mov rcx, qword [rsp + 0x60]
mov qword [rcx + 0x40], rax
mov rax, qword [rsp + 0x60]
add rax, 0x40
mov rcx, qword [rsp + 0x60]
add rcx, 0x10
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x1000
mov r9, rax
xor r8d, r8d
mov rdx, rcx
mov rcx, 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwAllocateVirtualMemory
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x7c], 0
jl 0x4168bd
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x416792
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x54]
mov dword [rsp + 0x328], eax
jmp 0x4167a1
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x54]
mov dword [rsp + 0x328], eax
mov eax, dword [rsp + 0x328]
mov r8, rax
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 0x18]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x10]
call fcn.004319d0
mov rax, qword [rsp + 0x70]
add rax, 0x108
mov qword [rsp + 0x1d8], rax
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x4167f8
mov rax, qword [rsp + 0x70]
add rax, 0xf8
mov qword [rsp + 0x1d8], rax
mov rax, qword [rsp + 0x1d8]
mov qword [rsp + 0x1e0], rax
jmp 0x41681e
mov rax, qword [rsp + 0x1e0]
add rax, 0x28
mov qword [rsp + 0x1e0], rax
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x1d8]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x1e0], rax
jae 0x4168bd
mov rax, qword [rsp + 0x1e0]
mov eax, dword [rax + 0x24]
and eax, 0xe0000000
test eax, eax
je 0x416865
mov rax, qword [rsp + 0x1e0]
cmp dword [rax + 0x10], 0
jne 0x416867
jmp 0x41680a
mov rax, qword [rsp + 0x1e0]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x1e0]
mov ecx, dword [rcx + 0x14]
mov rdx, qword [rsp + 0x60]
add rcx, qword [rdx + 0x18]
mov rdx, qword [rsp + 0x1e0]
mov edx, dword [rdx + 0xc]
mov rdi, qword [rsp + 0x60]
add rdx, qword [rdi + 0x10]
mov qword [rsp + 0x330], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x330]
mov rcx, rax
call fcn.004319d0
jmp 0x41680a
cmp dword [rsp + 0x7c], 0
jl 0x4168e4
mov r9d, 0xc000007b
mov r8d, 0xc0000018
xor edx, edx
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x10]
call fcn.00408eb0
mov dword [rsp + 0x7c], eax
mov rax, qword [rsp + 0x390]
add rax, 0x20
mov rdx, qword [rsp + 0x60]
mov rcx, rax
call fcn.00416d40
cmp dword [rsp + 0x7c], 0
jl 0x416976
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x416921
mov dword [rsp + 0x338], 1
jmp 0x41692c
mov dword [rsp + 0x338], 0
mov rax, qword [rsp + 0x3a0]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x388]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x390]
mov qword [rsp + 0x20], rax
movzx r9d, byte [rsp + 0x338]
mov r8, qword [rsp + 0x360]
xor edx, edx
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x10]
call fcn.00411c40
mov dword [rsp + 0x7c], eax
cmp dword [rsp + 0x7c], 0
jl 0x416b68
mov eax, dword [rsp + 0x388]
and eax, 0x10
test eax, eax
je 0x4169b1
xor r8d, r8d
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0x360]
call fcn.00413470
mov dword [rsp + 0x7c], eax
jmp 0x416b68
mov qword [rsp + 0x1f0], 0
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x4169de
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x54]
mov dword [rsp + 0x33c], eax
jmp 0x4169ed
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x54]
mov dword [rsp + 0x33c], eax
mov eax, dword [rsp + 0x33c]
mov qword [rsp + 0x1f0], rax
mov rax, qword [rsp + 0x60]
add rax, 0x10
mov qword [rsp + 0x20], 0
mov r9d, 2
lea r8, [rsp + 0x1f0]
mov rdx, rax
mov rcx, 0xffffffffffffffff
call fcn.0042b330
mov dword [rsp + 0x7c], eax
mov rax, qword [rsp + 0x70]
add rax, 0x108
mov qword [rsp + 0x1e8], rax
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x416a65
mov rax, qword [rsp + 0x70]
add rax, 0xf8
mov qword [rsp + 0x1e8], rax
mov rax, qword [rsp + 0x1e8]
mov qword [rsp + 0x1f8], rax
jmp 0x416a8b
mov rax, qword [rsp + 0x1f8]
add rax, 0x28
mov qword [rsp + 0x1f8], rax
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x1e8]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x1f8], rax
jae 0x416b68
xor edx, edx
mov rax, qword [rsp + 0x1f8]
mov ecx, dword [rax + 0x24]
call fcn.00412850
mov dword [rsp + 0x208], eax
mov rax, qword [rsp + 0x1f8]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x60]
add rax, qword [rcx + 0x10]
mov qword [rsp + 0x200], rax
mov rax, qword [rsp + 0x1f8]
mov eax, dword [rax + 8]
mov qword [rsp + 0x1f0], rax
cmp dword [rsp + 0x208], 1
je 0x416b41
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x208]
lea r8, [rsp + 0x1f0]
lea rdx, [rsp + 0x200]
mov rcx, 0xffffffffffffffff
call fcn.0042b330
mov ecx, dword [rsp + 0x7c]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x7c], eax
jmp 0x416b63
mov r9d, 0x4000
lea r8, [rsp + 0x1f0]
lea rdx, [rsp + 0x200]
mov rcx, 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwFreeVirtualMemory
jmp 0x416a77
cmp dword [rsp + 0x7c], 0
jl 0x416b7d
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x10]
call fcn.004126e0
mov eax, dword [rsp + 0x388]
and eax, 0x1000
test eax, eax
jne 0x416bb3
cmp dword [rsp + 0x7c], 0
jl 0x416bb3
movzx eax, byte [rsp + 0x78]
test eax, eax
jne 0x416bb3
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0x390]
call fcn.00412570
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x18], 0
je 0x416bdf
mov edx, 0x486e7367
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x18]
call sub.ntoskrnl.exe_ExFreePoolWithTag
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x18], 0
cmp dword [rsp + 0x7c], 0
jl 0x416c27
cmp qword [rsp + 0x398], 0
je 0x416c22
lea rax, [rsp + 0x258]
mov rdi, rax
mov rsi, qword [rsp + 0x60]
mov ecx, 0x58
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x258]
mov rdi, qword [rsp + 0x398]
mov rsi, rax
mov ecx, 0x58
rep movsb byte [rdi], byte [rsi]
jmp 0x416d26
cmp qword [rsp + 0x60], 0
je 0x416d26
mov rcx, qword [rsp + 0x60]
call fcn.00413050
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x10], 0
je 0x416d17
mov eax, dword [rsp + 0x388]
and eax, 0x10
test eax, eax
je 0x416ce5
mov qword [rsp + 0x210], 0
lea rax, [rsp + 0x218]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov qword [rsp + 0x240], 0
lea rax, [rsp + 0x248]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x360]
call sub.ntoskrnl.exe_PsGetProcessId
mov eax, eax
mov qword [rsp + 0x220], rax
mov byte [rsp + 0x238], 0
mov byte [rsp + 0x239], 1
lea r8, [rsp + 0x240]
lea rdx, [rsp + 0x210]
mov rcx, qword [rsp + 0x360]
call fcn.004136a0
jmp 0x416d17
mov qword [rsp + 0x250], 0
mov rax, qword [rsp + 0x60]
add rax, 0x10
mov r9d, 0x8000
lea r8, [rsp + 0x250]
mov rdx, rax
mov rcx, 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwFreeVirtualMemory
mov edx, 0x486e7367
mov rcx, qword [rsp + 0x60]
call sub.ntoskrnl.exe_ExFreePoolWithTag
mov eax, dword [rsp + 0x7c]
add rsp, 0x348
pop rdi
pop rsi
ret