Function at 0x180052790
Capabilities:
Create process on windows
Read file via mapping

Disassembly:
push rsi
push r14
mov eax, 0x2128
call fcn.180103500
sub rsp, rax
mov rax, qword [0x1801c1080]
xor rax, rsp
mov qword [rsp + 0x20f0], rax
mov rax, qword [rdx]
mov r14, rdx
mov rsi, rcx
cmp dword [rax], 0x80000003
jne 0x1800527cb
xor eax, eax
jmp 0x180052b14
mov qword [rsp + 0x2120], rbp
mov qword [rsp + 0x2118], rdi
xor edi, edi
mov qword [rsp + 0x2110], r12
mov ebp, edi
lea r12, [rcx + 0x5c68]
mov qword [rsp + 0x2108], r13
test r12, r12
je 0x180052ae4
call fcn.180052320
mov edx, edi
cmp dword [rax + 0x134], 1
jne 0x180052817
cmp qword [rax + 8], rdx
cmovne rdx, rax
xor r9d, r9d
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x5a50
lea rcx, [r9 - 1]
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbp, rax
test rax, rax
je 0x180052ae4
xor r9d, r9d
mov qword [rsp + 0x20], 0x5a50
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r13, rax
test rax, rax
jne 0x180052873
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180052ae4
mov qword [rsp + 0x2150], rbx
mov edx, 1
mov qword [rsp + 0x2100], r15
call fcn.180052b30
mov r15, qword [rsi + 8]
test r15, r15
je 0x18005293d
mov rbx, qword [r14 + 8]
test rbx, rbx
je 0x180052ac4
mov rcx, qword [rbx + 0xf8]
mov rbx, qword [rbx + 0xa0]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, qword [rsp + 0x58]
test rax, rax
cmove rcx, rdi
cmp rcx, r15
je 0x18005293d
mov edx, 0x10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x1800528fd
mov rcx, qword [rbx + 8]
mov rax, rbx
mov rbx, qword [rbx]
test bl, 3
jne 0x1800528fd
cmp rbx, rax
ja 0x1800528b5
mov ebx, edi
lea rax, [rsi + 0x5e98]
mov rcx, rdi
nop dword [rax]
cmp dword [rax], edi
je 0x180052928
inc ebx
inc rcx
add rax, 8
cmp rcx, 4
jl 0x180052910
jmp 0x180052ac4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movsxd rcx, ebx
mov dword [rsi + rcx*8 + 0x5e98], eax
jmp 0x180052ac4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsi + 0x2c], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov qword [rsi + 0x20], r14
mov edx, 9
mov dword [rsi + 0x30], eax
mov rax, qword [r14]
mov ecx, dword [rax]
mov dword [rsi + 0x28], ecx
mov rax, qword [r14]
mov rcx, qword [rax + 0x10]
lea rax, [rsi + 0x40]
mov qword [rsi + 0x18], rcx
mov rcx, qword [r14 + 8]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm1, xmmword [rcx - 0x70]
movups xmmword [rax - 0x70], xmm1
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x60], xmm0
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x50], xmm1
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x40], xmm0
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x30], xmm1
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x20], xmm0
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x180052973
movups xmm0, xmmword [rcx]
lea rdx, [rsi + 0x10]
mov r8d, 0x5a50
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
mov rcx, r13
movups xmmword [rax + 0x40], xmm0
call fcn.180109540
xor edx, edx
mov dword [rsp + 0x80], 0x68
lea rcx, [rsp + 0x88]
lea r8d, [rdx + 0x60]
call fcn.1801099b0
xor eax, eax
mov qword [rsp + 0x20], r12
lea r9, [rsi + 0x5a60]
mov qword [rsp + 0x50], rax
lea r8, str.__s____smname_s
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0xf0]
mov qword [rsp + 0x60], rax
lea rdx, [rax - 1]
call fcn.1800530b0
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0xf0]
lea rax, [rsp + 0x80]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rcx, [rsi + 0x5a60]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x180052ac4
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
xor edx, edx
call fcn.180052b30
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov r15, qword [rsp + 0x2100]
mov rbx, qword [rsp + 0x2150]
mov r13, qword [rsp + 0x2108]
mov r12, qword [rsp + 0x2110]
test rbp, rbp
je 0x180052b02
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x2120]
mov eax, edi
mov rdi, qword [rsp + 0x2118]
mov rcx, qword [rsp + 0x20f0]
xor rcx, rsp
call fcn.1801027e0
add rsp, 0x2128
pop r14
pop rsi
ret