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

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x180
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x188], rbx
mov rax, qword [0x180175010]
xor rax, rbp
mov qword [rbp + 0x140], rax
mov rdi, r8
mov r14, rdx
mov r15, rcx
call fcn.180072eb0
test rax, rax
jne 0x180073c01
mov dl, 3
call fcn.180071aa0
mov rdi, rax
lea r8, [rbp + 0x90]
movabs rdx, 0x3991472b20148fa
movabs rcx, 0xa73819bea70f3c6b
mov qword [rbp], rcx
movabs rax, 0xb72f709423e362b
mov rcx, qword [rbp]
movabs r14, 0xd3187ddbcb665d0d
mov qword [rbp + 0x90], rcx
movabs rbx, 0x83fd13ae3d5a1bd6
movabs rcx, 0xec9033da583d3bb9
mov qword [rbp], rcx
mov rcx, qword [rbp]
mov qword [rbp + 0x98], rcx
mov qword [rbp], rax
movabs rax, 0x5acf8ab2ba1809e4
mov rcx, qword [rbp]
mov qword [rbp + 0xa0], rcx
movabs rcx, 0x60bde5d49a7d6580
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xa8], rax
movabs rax, 0xca58882faec8ae11
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], r14
mov rax, qword [rbp]
mov qword [rbp], rbx
mov qword [rbp + 0x110], rax
mov rax, qword [rbp]
mov qword [rbp + 0x118], rax
movabs rax, 0x65139f292752434f
movdqa xmm2, xmmword [rbp + 0x110]
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, 0xca58882faec88c31
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x130], rax
mov qword [rbp], rdx
mov edx, r8d
mov rax, qword [rbp]
pxor xmm2, xmmword [rbp + 0x90]
movdqa xmm0, xmmword [rbp + 0xa0]
movdqa xmm1, xmmword [rbp + 0xb0]
pxor xmm0, xmmword [rbp + 0x120]
mov qword [rbp + 0x138], rax
movq rax, xmm2
pxor xmm1, xmmword [rbp + 0x130]
movdqa xmmword [rbp + 0xb0], xmm1
movdqa xmmword [rbp + 0x90], xmm2
movdqa xmmword [rbp + 0xa0], xmm0
test al, al
je 0x180073b3c
inc rcx
mov rdx, rcx
cmp byte [rcx], 0
jne 0x180073b31
mov rcx, qword [0x180175e68]
sub edx, r8d
mov r8d, edx
xor esi, esi
lea rdx, [rbp + 0x90]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, r15
mov rcx, rdi
call fcn.180071c10
movabs rax, 0xd3187ddbcb665d2f
lea r8, [rbp + 0x50]
mov qword [rbp], rax
lea rcx, [rbp + 0x50]
mov rax, qword [rbp]
mov edx, r8d
mov qword [rbp + 0x50], rax
mov qword [rbp], rbx
mov rax, qword [rbp]
mov qword [rbp + 0x58], rax
mov qword [rbp], r14
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
pxor xmm0, xmmword [rbp + 0x10]
movq rax, xmm0
movdqa xmmword [rbp + 0x50], xmm0
test al, al
je 0x180073bdb
nop dword [rax + rax]
inc rcx
mov rdx, rcx
cmp byte [rcx], sil
jne 0x180073bd0
sub edx, r8d
mov r8d, edx
lea rdx, [rbp + 0x50]
mov rcx, qword [0x180175e68]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
jmp 0x18007421d
mov ecx, 0x5a4d
cmp word [rax], cx
je 0x180073d9c
mov dl, 3
call fcn.180071aa0
movabs rcx, 0xa73819bea70f3c6b
lea r8, [rbp + 0x20]
mov qword [rbp], rcx
movabs rdx, 0x3991472b20148fa
mov rax, qword [rbp]
movabs rcx, 0xec9033da583d3bb9
mov qword [rbp + 0x20], rax
movabs r14, 0xd3187ddbcb665d0d
mov qword [rbp], rcx
movabs rbx, 0x83fd13ae3d5a1bd6
mov rax, qword [rbp]
movabs rcx, 0x60bde5d49a7d6580
mov qword [rbp + 0x28], rax
movabs rax, 0x1f7aec09423e362b
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x30], rax
movabs rax, 0x5da84b9f35d49e5
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x38], rax
movabs rax, 0xab2ee6468ebbe511
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x40], rax
movabs rax, 0x3991472b2652196
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x48], rax
mov qword [rbp], r14
mov rax, qword [rbp]
mov qword [rbp], rbx
mov qword [rbp + 0xc0], rax
mov rax, qword [rbp]
mov qword [rbp + 0xc8], rax
movabs rax, 0x65139f292752434f
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, 0xca58882faec88c31
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xe0], rax
mov qword [rbp], rdx
mov edx, r8d
mov rax, qword [rbp]
movdqa xmm2, xmmword [rbp + 0x20]
pxor xmm2, xmmword [rbp + 0xc0]
movdqa xmm0, xmmword [rbp + 0x30]
movdqa xmm1, xmmword [rbp + 0x40]
pxor xmm0, xmmword [rbp + 0xd0]
mov qword [rbp + 0xe8], rax
movq rax, xmm2
pxor xmm1, xmmword [rbp + 0xe0]
movdqa xmmword [rbp + 0x20], xmm2
movdqa xmmword [rbp + 0x30], xmm0
movdqa xmmword [rbp + 0x40], xmm1
test al, al
je 0x180073d8b
nop word [rax + rax]
inc rcx
mov rdx, rcx
cmp byte [rcx], 0
jne 0x180073d80
sub edx, r8d
mov r8d, edx
xor esi, esi
lea rdx, [rbp + 0x20]
jmp 0x180073be5
movsxd rcx, dword [rax + 0x3c]
cmp dword [rcx + rax], 0x4550
je 0x180073f3c
mov dl, 3
call fcn.180071aa0
movabs rcx, 0xa73819bea70f3c6b
lea r8, [rbp + 0x20]
mov qword [rbp], rcx
movabs rdx, 0x3991472b20148fa
mov rax, qword [rbp]
movabs rcx, 0xec9033da583d3bb9
mov qword [rbp + 0x20], rax
movabs r14, 0xd3187ddbcb665d0d
mov qword [rbp], rcx
movabs rbx, 0x83fd13ae3d5a1bd6
mov rax, qword [rbp]
movabs rcx, 0x60bde5d49a7d6580
mov qword [rbp + 0x28], rax
movabs rax, 0x1f7aec09423e362b
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x30], rax
movabs rax, 0x5da84b9f35d49e5
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x38], rax
movabs rax, 0xab2ee6468ebbe511
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x40], rax
movabs rax, 0x3991472b2652196
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x48], rax
mov qword [rbp], r14
mov rax, qword [rbp]
mov qword [rbp], rbx
mov qword [rbp + 0xc0], rax
mov rax, qword [rbp]
mov qword [rbp + 0xc8], rax
movabs rax, 0x65139f292752434f
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, 0xca58882faec88c31
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xe0], rax
mov qword [rbp], rdx
mov edx, r8d
mov rax, qword [rbp]
movdqa xmm2, xmmword [rbp + 0x20]
pxor xmm2, xmmword [rbp + 0xc0]
movdqa xmm0, xmmword [rbp + 0x30]
movdqa xmm1, xmmword [rbp + 0x40]
pxor xmm0, xmmword [rbp + 0xd0]
mov qword [rbp + 0xe8], rax
movq rax, xmm2
pxor xmm1, xmmword [rbp + 0xe0]
movdqa xmmword [rbp + 0x20], xmm2
movdqa xmmword [rbp + 0x30], xmm0
movdqa xmmword [rbp + 0x40], xmm1
test al, al
je 0x180073d8b
nop dword [rax]
inc rcx
mov rdx, rcx
cmp byte [rcx], 0
jne 0x180073f20
sub edx, r8d
mov r8d, edx
xor esi, esi
lea rdx, [rbp + 0x20]
jmp 0x180073be5
cmp byte [rdi], 0
mov rbx, rdi
je 0x180073f4c
inc rbx
cmp byte [rbx], 0
jne 0x180073f44
mov edx, dword [rcx + rax + 0x50]
sub rbx, rdi
mov r9, rbx
mov qword [rsp + 0x20], rdi
mov r8, r14
mov rcx, rax
call fcn.180074250
mov r15, rax
test rax, rax
jne 0x18007421a
xor esi, esi
lea rcx, [rbx + rbx*2]
lea rdx, [rcx + 0x10]
mov r8d, esi
cmp rdx, rcx
cmova r8, rdx
test r8, r8
je 0x180073fe5
cmp r8, 0x400
ja 0x180073fc9
lea rax, [r8 + 0xf]
cmp rax, r8
ja 0x180073fa7
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1800d7820
sub rsp, rax
lea rdi, [rsp + 0x30]
test rdi, rdi
je 0x180073fe8
mov dword [rdi], 0xcccc
add rdi, 0x10
jmp 0x180073fe8
mov rcx, r8
call fcn.1800e360c
mov rdi, rax
test rax, rax
je 0x180073fe8
mov dword [rax], 0xdddd
add rdi, 0x10
jmp 0x180073fe8
mov rdi, rsi
mov rax, rdi
mov r8, rsi
test rbx, rbx
je 0x180074027
lea r9, [0x18015c9f0]
nop word [rax + rax]
movzx ecx, byte [r8 + r14]
inc r8
lea rdx, [r9 + rcx*2]
movzx ecx, byte [r9 + rcx*2]
mov byte [rax], cl
movzx ecx, byte [rdx + 1]
mov byte [rax + 1], cl
mov byte [rax + 2], 0x20
add rax, 3
cmp r8, rbx
jb 0x180074000
mov dl, 3
mov byte [rax - 1], sil
call fcn.180071aa0
movabs rcx, 0x60bde5d49a7d6580
lea r8, [rbp + 0x70]
movabs rax, 0xf3760fbebf123c7d
movabs r14, 0xd3187ddbcb665d0d
mov qword [rbp], rax
movabs rbx, 0x83fd13ae3d5a1bd6
mov rax, qword [rbp]
mov edx, r8d
mov qword [rbp + 0x70], rax
movabs rax, 0xed887cc81d2e74b8
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x78], rax
movabs rax, 0x65139f290572792b
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], r14
mov rax, qword [rbp]
mov qword [rbp + 0xf0], rax
mov qword [rbp], rbx
mov rax, qword [rbp]
mov qword [rbp + 0xf8], rax
movabs rax, 0x65139f292752434f
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]
pxor xmm1, xmmword [rbp + 0xf0]
movdqa xmm0, xmmword [rbp + 0x80]
mov qword [rbp + 0x108], rax
movq rax, xmm1
pxor xmm0, xmmword [rbp + 0x100]
movdqa xmmword [rbp + 0x70], xmm1
movdqa xmmword [rbp + 0x80], xmm0
test al, al
je 0x18007413b
nop dword [rax + rax]
inc rcx
mov rdx, rcx
cmp byte [rcx], sil
jne 0x180074130
mov rcx, qword [0x180175e68]
sub edx, r8d
mov r8d, edx
mov qword [rsp + 0x20], rsi
lea rdx, [rbp + 0x70]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, rdi
mov ecx, edi
cmp byte [rdi], sil
je 0x18007416f
inc rax
mov rcx, rax
cmp byte [rax], sil
jne 0x180074164
sub ecx, edi
mov qword [rsp + 0x20], rsi
mov r8d, ecx
xor r9d, r9d
mov rcx, qword [0x180175e68]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
movabs rax, 0xd3187ddbcb665d2f
lea r8, [rbp + 0x60]
mov qword [rbp], rax
lea rcx, [rbp + 0x60]
mov rax, qword [rbp]
mov edx, r8d
mov qword [rbp + 0x60], rax
mov qword [rbp], rbx
mov rax, qword [rbp]
mov qword [rbp + 0x68], rax
mov qword [rbp], r14
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
pxor xmm0, xmmword [rbp + 0x10]
movq rax, xmm0
movdqa xmmword [rbp + 0x60], xmm0
test al, al
je 0x1800741fb
nop dword [rax]
inc rcx
mov rdx, rcx
cmp byte [rcx], sil
jne 0x1800741f0
mov rcx, qword [0x180175e68]
sub edx, r8d
mov r8d, edx
mov qword [rsp + 0x20], rsi
lea rdx, [rbp + 0x60]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, r15
mov rcx, qword [rbp + 0x140]
xor rcx, rbp
call fcn.1800d6d50
mov rbx, qword [rbp + 0x188]
lea rsp, [rbp + 0x150]
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret