Function at 0x14001f570
Capabilities:
Parse pe header

Disassembly:
push rbp
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x140121c38]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov esi, r9d
mov r15, r8
mov r12, rdx
mov rdi, rcx
test rcx, rcx
jne 0x14001f5b8
lea ecx, [rdi + 6]
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x14001f820
mov qword [rsp + 0x238], rbx
lea r8d, [rsi + 0x1c8]
mov qword [rsp + 0x230], r13
xor edx, edx
mov r9d, 0x1000
mov qword [rsp + 0x228], r14
mov dword [rsp + 0x20], 4
call sub.KERNEL32.dll_VirtualAllocEx
mov r14, rax
test rax, rax
je 0x14001f806
xorps xmm0, xmm0
lea r8, [rbp - 0x40]
xor r13d, r13d
mov eax, 0x5a4d
movups xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x40], ax
mov rdx, r14
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], r13
movups xmmword [rbp - 0x10], xmm0
lea r9d, [r13 + 0x40]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov dword [rbp - 4], 0x40
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x14001f806
cmp qword [rsp + 0x30], 0x40
jne 0x14001f806
xor edx, edx
lea rcx, [rbp]
mov r8d, 0x108
lea rbx, [r14 + 0x40]
call fcn.140085ae0
mov eax, 1
mov dword [rbp], 0x4550
mov word [rbp + 6], ax
lea r8, [rbp]
mov eax, 0x20b
mov dword [rbp + 0x14], 0x200000f0
mov word [rbp + 0x18], ax
mov r9d, 0x108
lea rax, [rsp + 0x30]
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x14001f806
cmp qword [rsp + 0x30], 0x108
jne 0x14001f806
movabs rax, 0x72756f7465642e
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x38], rax
lea r9d, [r13 + 0x28]
add rbx, 0x108
mov dword [rsp + 0x5c], r13d
mov eax, ebx
lea r8, [rsp + 0x38]
sub eax, r14d
xorps xmm0, xmm0
add eax, 0x28
lea r14d, [rsi + 0x58]
mov dword [rsp + 0x44], eax
mov rdx, rbx
lea rax, [rsp + 0x30]
mov dword [rsp + 0x48], r14d
mov rcx, rdi
mov qword [rsp + 0x20], rax
movdqu xmmword [rsp + 0x4c], xmm0
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x14001f806
cmp qword [rsp + 0x30], 0x28
jne 0x14001f806
xorps xmm0, xmm0
mov dword [rbp - 0x80], 0x40
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x70], xmm0
lea rax, [rsp + 0x30]
movdqa xmmword [rbp - 0x60], xmm1
lea r9d, [r13 + 0x40]
movdqa xmmword [rbp - 0x50], xmm0
lea r8, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea rdx, [rbx + 0x28]
mov dword [rbp - 0x7c], 0x727444
mov rcx, rdi
mov dword [rbp - 0x78], 0x40
mov dword [rbp - 0x74], r14d
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x14001f806
cmp qword [rsp + 0x30], 0x40
jne 0x14001f806
movups xmm0, xmmword [r12]
lea eax, [rsi + 0x18]
mov dword [rsp + 0x64], r13d
mov dword [rsp + 0x60], eax
lea r9d, [r13 + 0x18]
lea rax, [rsp + 0x30]
mov rcx, rdi
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea rdx, [rbx + 0x68]
movups xmmword [rsp + 0x68], xmm0
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x14001f806
cmp qword [rsp + 0x30], 0x18
jne 0x14001f806
lea rax, [rsp + 0x30]
mov r9, rsi
mov r8, r15
mov qword [rsp + 0x20], rax
lea rdx, [rbx + 0x80]
mov rcx, rdi
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x14001f806
cmp qword [rsp + 0x30], rsi
jne 0x14001f806
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
lea rax, [rbx + 0x80]
jmp 0x14001f808
xor eax, eax
mov r13, qword [rsp + 0x230]
mov rbx, qword [rsp + 0x238]
mov r14, qword [rsp + 0x228]
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140056c90
add rsp, 0x240
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret