Function at 0x1800fa2a0
Capabilities:
Parse pe header
Write file on windows

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x180
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x188], rbx
mov qword [rbp + 0x198], rsi
mov rax, qword [0x18026b028]
xor rax, rbp
mov qword [rbp + 0x140], rax
mov r14, r8
mov rsi, rdx
mov r12, rcx
call fcn.1800f9820
mov rdi, rax
test rax, rax
jne 0x1800fa542
mov dl, 3
call fcn.1800f8110
mov rdi, rax
movabs rdx, 0xb6e1480a623ee2ca
movabs rcx, 0xdcafb89a8ede62bb
movabs rax, 0xd2fc84d54d0437eb
mov qword [rbp], rcx
movabs rsi, 0xa88fdcffe2b703dd
mov rcx, qword [rbp]
movabs rbx, 0x56d38fe6495302c6
mov qword [rbp + 0x90], rcx
movabs rcx, 0x39beaf922c3422a9
mov qword [rbp], rcx
mov rcx, qword [rbp]
mov qword [rbp + 0x98], rcx
mov qword [rbp], rax
movabs rax, 0x25b151b2b3538aa4
mov rcx, qword [rbp]
mov qword [rbp + 0xa0], rcx
movabs rcx, 0x1fc33ed49336e6c0
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xa8], rax
movabs rax, 0xbdafabf369f0d001
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xb0], rax
mov qword [rbp], rdx
mov rax, qword [rbp]
mov qword [rbp + 0xb8], rax
mov qword [rbp], rsi
mov rax, qword [rbp]
mov qword [rbp], rbx
mov qword [rbp + 0x110], rax
mov rax, qword [rbp]
mov qword [rbp + 0x118], rax
movabs rax, 0xbc9decf52868428f
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp], rcx
lea rcx, [rbp + 0x90]
mov qword [rbp + 0x120], rax
mov rax, qword [rbp]
mov qword [rbp + 0x128], rax
movabs rax, 0xbdafabf369f0f221
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x130], rax
mov qword [rbp], rdx
lea rdx, [rbp + 0x90]
mov rax, qword [rbp]
mov r8d, edx
movdqa xmm2, xmmword [rbp + 0x90]
xorps xmm2, xmmword [rbp + 0x110]
movdqa xmm0, xmmword [rbp + 0xa0]
movdqa xmm1, xmmword [rbp + 0xb0]
xorps xmm0, xmmword [rbp + 0x120]
mov qword [rbp + 0x138], rax
movq rax, xmm2
xorps xmm1, xmmword [rbp + 0x130]
movdqa xmmword [rbp + 0x90], xmm2
movdqa xmmword [rbp + 0xa0], xmm0
movdqa xmmword [rbp + 0xb0], xmm1
test al, al
je 0x1800fa48b
nop dword [rax]
inc rcx
mov r8, rcx
cmp byte [rcx], 0
jne 0x1800fa480
mov rcx, qword [0x18034cf40]
sub r8d, edx
xor r15d, r15d
lea rdx, [rbp + 0x90]
xor r9d, r9d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, r12
mov rcx, rdi
call fcn.1800f8280
movabs rax, 0xa88fdcffe2b703ff
lea rdx, [rbp + 0x50]
mov qword [rbp], rax
lea rcx, [rbp + 0x50]
mov rax, qword [rbp]
mov r8d, edx
mov qword [rbp + 0x50], rax
mov qword [rbp], rbx
mov rax, qword [rbp]
mov qword [rbp + 0x58], rax
mov qword [rbp], rsi
mov rax, qword [rbp]
mov qword [rbp + 0x10], rax
mov qword [rbp], rbx
mov rax, qword [rbp]
movdqa xmm0, xmmword [rbp + 0x50]
mov qword [rbp + 0x18], rax
xorps xmm0, xmmword [rbp + 0x10]
movq rax, xmm0
movdqa xmmword [rbp + 0x50], xmm0
test al, al
je 0x1800fa51f
inc rcx
mov r8, rcx
cmp byte [rcx], r15b
jne 0x1800fa514
sub r8d, edx
lea rdx, [rbp + 0x50]
mov rcx, qword [0x18034cf40]
xor r9d, r9d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
jmp 0x1800fab9e
mov eax, 0x5a4d
cmp word [rdi], ax
je 0x1800fa6da
mov dl, 3
call fcn.1800f8110
movabs rcx, 0xdcafb89a8ede62bb
movabs rdx, 0xb6e1480a623ee2ca
mov qword [rbp], rcx
movabs rsi, 0xa88fdcffe2b703dd
mov rax, qword [rbp]
movabs rcx, 0x39beaf922c3422a9
mov qword [rbp + 0x20], rax
movabs rbx, 0x56d38fe6495302c6
mov qword [rbp], rcx
movabs rcx, 0x1fc33ed49336e6c0
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
movabs rax, 0xc6f49fd54d0437eb
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x30], rax
movabs rax, 0x7aa45fb9fa16caa5
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x38], rax
movabs rax, 0xdcd9c59a49839b01
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x40], rax
movabs rax, 0xb6e1480a625a8ba6
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x48], rax
mov qword [rbp], rsi
mov rax, qword [rbp]
mov qword [rbp], rbx
mov qword [rbp + 0xc0], rax
mov rax, qword [rbp]
mov qword [rbp + 0xc8], rax
movabs rax, 0xbc9decf52868428f
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp], rcx
lea rcx, [rbp + 0x20]
mov qword [rbp + 0xd0], rax
mov rax, qword [rbp]
mov qword [rbp + 0xd8], rax
movabs rax, 0xbdafabf369f0f221
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xe0], rax
mov qword [rbp], rdx
lea rdx, [rbp + 0x20]
mov rax, qword [rbp]
mov r8d, edx
movdqa xmm2, xmmword [rbp + 0x20]
xorps xmm2, xmmword [rbp + 0xc0]
movdqa xmm0, xmmword [rbp + 0x30]
movdqa xmm1, xmmword [rbp + 0x40]
xorps xmm0, xmmword [rbp + 0xd0]
mov qword [rbp + 0xe8], rax
movq rax, xmm2
xorps xmm1, xmmword [rbp + 0xe0]
movdqa xmmword [rbp + 0x20], xmm2
movdqa xmmword [rbp + 0x30], xmm0
movdqa xmmword [rbp + 0x40], xmm1
test al, al
je 0x1800fa6cb
nop dword [rax + rax]
inc rcx
mov r8, rcx
cmp byte [rcx], 0
jne 0x1800fa6c0
sub r8d, edx
lea rdx, [rbp + 0x20]
xor r15d, r15d
jmp 0x1800fa526
movsxd rax, dword [rdi + 0x3c]
cmp dword [rax + rdi], 0x4550
je 0x1800fa87a
mov dl, 3
call fcn.1800f8110
movabs rcx, 0xdcafb89a8ede62bb
movabs rdx, 0xb6e1480a623ee2ca
mov qword [rbp], rcx
movabs rsi, 0xa88fdcffe2b703dd
mov rax, qword [rbp]
movabs rcx, 0x39beaf922c3422a9
mov qword [rbp + 0x20], rax
movabs rbx, 0x56d38fe6495302c6
mov qword [rbp], rcx
movabs rcx, 0x1fc33ed49336e6c0
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
movabs rax, 0xc6f49fd54d0437eb
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x30], rax
movabs rax, 0x7aa45fb9fa16caa5
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x38], rax
movabs rax, 0xdcd9c59a49839b01
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x40], rax
movabs rax, 0xb6e1480a625a8ba6
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x48], rax
mov qword [rbp], rsi
mov rax, qword [rbp]
mov qword [rbp], rbx
mov qword [rbp + 0xc0], rax
mov rax, qword [rbp]
mov qword [rbp + 0xc8], rax
movabs rax, 0xbc9decf52868428f
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp], rcx
lea rcx, [rbp + 0x20]
mov qword [rbp + 0xd0], rax
mov rax, qword [rbp]
mov qword [rbp + 0xd8], rax
movabs rax, 0xbdafabf369f0f221
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xe0], rax
mov qword [rbp], rdx
lea rdx, [rbp + 0x20]
mov rax, qword [rbp]
mov r8d, edx
movdqa xmm2, xmmword [rbp + 0x20]
xorps xmm2, xmmword [rbp + 0xc0]
movdqa xmm0, xmmword [rbp + 0x30]
movdqa xmm1, xmmword [rbp + 0x40]
xorps xmm0, xmmword [rbp + 0xd0]
mov qword [rbp + 0xe8], rax
movq rax, xmm2
xorps xmm1, xmmword [rbp + 0xe0]
movdqa xmmword [rbp + 0x20], xmm2
movdqa xmmword [rbp + 0x30], xmm0
movdqa xmmword [rbp + 0x40], xmm1
test al, al
je 0x1800fa6cb
nop word [rax + rax]
inc rcx
mov r8, rcx
cmp byte [rcx], 0
jne 0x1800fa860
sub r8d, edx
lea rdx, [rbp + 0x20]
xor r15d, r15d
jmp 0x1800fa526
movzx r12d, byte [r14]
mov rbx, r14
test r12b, r12b
je 0x1800fa88e
inc rbx
cmp byte [rbx], 0
jne 0x1800fa886
mov r11d, dword [rax + rdi + 0x50]
sub rbx, r14
sub r11, rbx
xor r15d, r15d
add r11, rdi
cmp rdi, r11
jae 0x1800fa908
cmp r12b, 0x3f
je 0x1800fa8b1
movzx eax, byte [rsi]
cmp byte [rdi], al
jne 0x1800fa900
cmp rbx, 1
je 0x1800fa8f1
mov r9, r14
lea rax, [rsi + 1]
sub r9, rsi
mov r8, rdi
mov r10, rsi
sub r8, rsi
not r10
cmp byte [r9 + rax], 0x3f
je 0x1800fa8e1
movzx ecx, byte [rax]
lea rdx, [r8 - 1]
cmp byte [rax + r8], cl
jne 0x1800fa8fc
inc rax
lea rcx, [rbx - 1]
lea rdx, [r10 + rax]
cmp rdx, rcx
jne 0x1800fa8cd
test rdi, rdi
jne 0x1800fab9b
jmp 0x1800fa90b
lea rdi, [rdx + rax]
inc rdi
cmp rdi, r11
jb 0x1800fa8a4
mov rdi, r15
lea rax, [rbx + rbx*2]
mov rdx, r15
lea rcx, [rax + 0x10]
cmp rcx, rax
cmova rdx, rcx
test rdx, rdx
je 0x1800fa97d
cmp rdx, 0x400
ja 0x1800fa961
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x1800fa93e
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.18015d830
sub rsp, rax
lea r14, [rsp + 0x30]
test r14, r14
je 0x1800fa980
mov dword [r14], 0xcccc
add r14, 0x10
jmp 0x1800fa980
mov rcx, rdx
call fcn.1801729fc
mov r14, rax
test rax, rax
je 0x1800fa980
mov dword [rax], 0xdddd
add r14, 0x10
jmp 0x1800fa980
mov r14, r15
mov rdx, r14
mov r8, r15
test rbx, rbx
je 0x1800fa9b9
lea r9, [0x18021e7a0]
movzx eax, byte [r8 + rsi]
inc r8
lea rcx, [r9 + rax*2]
movzx eax, byte [r9 + rax*2]
mov byte [rdx], al
movzx eax, byte [rcx + 1]
mov byte [rdx + 1], al
mov byte [rdx + 2], 0x20
add rdx, 3
cmp r8, rbx
jb 0x1800fa992
mov byte [rdx - 1], r15b
mov dl, 3
call fcn.1800f8110
movabs rcx, 0x1fc33ed49336e6c0
lea rdx, [rbp + 0x70]
movabs rax, 0x88e1ae9a96c362ad
movabs rsi, 0xa88fdcffe2b703dd
mov qword [rbp], rax
movabs rbx, 0x56d38fe6495302c6
mov rax, qword [rbp]
mov r8d, edx
mov qword [rbp + 0x70], rax
movabs rax, 0x38a6e08069276da8
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x78], rax
movabs rax, 0xbc9decf50a4878eb
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x80], rax
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0x88], rax
mov qword [rbp], rsi
mov rax, qword [rbp]
mov qword [rbp + 0xf0], rax
mov qword [rbp], rbx
mov rax, qword [rbp]
mov qword [rbp + 0xf8], rax
movabs rax, 0xbc9decf52868428f
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x100], rax
mov qword [rbp], rcx
lea rcx, [rbp + 0x70]
mov rax, qword [rbp]
movdqa xmm1, xmmword [rbp + 0x70]
xorps xmm1, xmmword [rbp + 0xf0]
movdqa xmm0, xmmword [rbp + 0x80]
mov qword [rbp + 0x108], rax
movq rax, xmm1
xorps xmm0, xmmword [rbp + 0x100]
movdqa xmmword [rbp + 0x70], xmm1
movdqa xmmword [rbp + 0x80], xmm0
test al, al
je 0x1800faacb
nop dword [rax + rax]
inc rcx
mov r8, rcx
cmp byte [rcx], r15b
jne 0x1800faac0
mov rcx, qword [0x18034cf40]
sub r8d, edx
lea rdx, [rbp + 0x70]
mov qword [rsp + 0x20], r15
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, r14
mov r8d, r14d
cmp byte [r14], r15b
je 0x1800faafd
inc rax
mov r8, rax
cmp byte [rax], r15b
jne 0x1800faaf2
mov rcx, qword [0x18034cf40]
sub r8d, r14d
xor r9d, r9d
mov qword [rsp + 0x20], r15
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
movabs rax, 0xa88fdcffe2b703ff
lea rdx, [rbp + 0x60]
mov qword [rbp], rax
lea rcx, [rbp + 0x60]
mov rax, qword [rbp]
mov r8d, edx
mov qword [rbp + 0x60], rax
mov qword [rbp], rbx
mov rax, qword [rbp]
mov qword [rbp + 0x68], rax
mov qword [rbp], rsi
mov rax, qword [rbp]
mov qword [rbp + 0x10], rax
mov qword [rbp], rbx
mov rax, qword [rbp]
movdqa xmm0, xmmword [rbp + 0x60]
mov qword [rbp + 0x18], rax
xorps xmm0, xmmword [rbp + 0x10]
movq rax, xmm0
movdqa xmmword [rbp + 0x60], xmm0
test al, al
je 0x1800fab7f
inc rcx
mov r8, rcx
cmp byte [rcx], r15b
jne 0x1800fab74
mov rcx, qword [0x18034cf40]
sub r8d, edx
lea rdx, [rbp + 0x60]
mov qword [rsp + 0x20], r15
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, rdi
mov rcx, qword [rbp + 0x140]
xor rcx, rbp
call fcn.18015cd30
mov rbx, qword [rbp + 0x188]
mov rsi, qword [rbp + 0x198]
lea rsp, [rbp + 0x150]
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret