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

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0xc0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0xc8], rbx
mov qword [rbp + 0xd8], rsi
mov rax, qword [0x180195040]
xor rax, rbp
mov qword [rbp + 0x80], rax
mov r14, r8
mov rsi, rdx
mov r12, rcx
call fcn.18008d580
mov rbx, rax
test rax, rax
jne 0x18008e203
mov dl, 3
call fcn.18008b850
mov rbx, rax
movabs rdx, 0xb023be1655b1f782
movabs rcx, 0xaf954e66cc0d81af
movabs rax, 0x1e3a4c9d3999816f
mov qword [rbp], rcx
movabs rsi, 0xdbb52a03a064e0c9
mov rcx, qword [rbp]
movabs rdi, 0x131ec4120905b96e
mov qword [rbp + 0x10], rcx
movabs rcx, 0x7c73e4666c629901
mov qword [rbp], rcx
mov rcx, qword [rbp]
mov qword [rbp + 0x18], rcx
mov qword [rbp], rax
movabs rax, 0xf58fd7eae822fa64
mov rcx, qword [rbp]
mov qword [rbp + 0x20], rcx
movabs rcx, 0xcffdb88cc8479600
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
movabs rax, 0x1d5221d7898b7f4d
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x30], rax
mov qword [rbp], rdx
mov rax, qword [rbp]
mov qword [rbp + 0x38], rax
mov qword [rbp], rsi
mov rax, qword [rbp]
mov qword [rbp], rdi
mov qword [rbp + 0x50], rax
mov rax, qword [rbp]
mov qword [rbp + 0x58], rax
movabs rax, 0x705b24bd5cf5f40b
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp], rcx
lea rcx, [rbp + 0x10]
mov qword [rbp + 0x60], rax
mov rax, qword [rbp]
mov qword [rbp + 0x68], rax
movabs rax, 0x1d5221d7898b5d6d
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x70], rax
mov qword [rbp], rdx
lea rdx, [rbp + 0x10]
mov rax, qword [rbp]
mov r8d, edx
movdqa xmm2, xmmword [rbp + 0x10]
xorps xmm2, xmmword [rbp + 0x50]
movdqa xmm0, xmmword [rbp + 0x20]
movdqa xmm1, xmmword [rbp + 0x30]
xorps xmm0, xmmword [rbp + 0x60]
mov qword [rbp + 0x78], rax
movq rax, xmm2
xorps xmm1, xmmword [rbp + 0x70]
movdqa xmmword [rbp + 0x10], xmm2
movdqa xmmword [rbp + 0x20], xmm0
movdqa xmmword [rbp + 0x30], xmm1
test al, al
je 0x18008e14f
inc rcx
mov r8, rcx
cmp byte [rcx], 0
jne 0x18008e144
sub r8d, edx
xor r15d, r15d
lea rdx, [rbp + 0x10]
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, r12
mov rcx, rbx
call fcn.18008b9c0
movabs rax, 0xdbb52a03a064e0eb
lea rcx, [rbp + 0x40]
mov qword [rbp], rax
lea rdx, [rbp + 0x40]
mov rax, qword [rbp]
mov r8d, ecx
mov qword [rbp + 0x40], rax
mov qword [rbp], rdi
mov rax, qword [rbp]
mov qword [rbp + 0x48], rax
mov qword [rbp], rsi
mov rax, qword [rbp]
mov qword [rbp + 0x50], rax
mov qword [rbp], rdi
mov rax, qword [rbp]
movdqa xmm0, xmmword [rbp + 0x40]
mov qword [rbp + 0x58], rax
xorps xmm0, xmmword [rbp + 0x50]
movq rax, xmm0
movdqa xmmword [rbp + 0x40], xmm0
test al, al
je 0x18008e1e0
inc rdx
mov r8, rdx
cmp byte [rdx], r15b
jne 0x18008e1d5
sub r8d, ecx
lea rdx, [rbp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], r15
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
jmp 0x18008e810
mov eax, 0x5a4d
cmp word [rbx], ax
je 0x18008e37a
mov dl, 3
call fcn.18008b850
movabs rcx, 0xaf954e66cc0d81af
movabs rdx, 0xb023be1655b1f782
mov qword [rbp], rcx
movabs rsi, 0xdbb52a03a064e0c9
mov rax, qword [rbp]
movabs rcx, 0x7c73e4666c629901
mov qword [rbp + 0x10], rax
movabs rdi, 0x131ec4120905b96e
mov qword [rbp], rcx
movabs rcx, 0xcffdb88cc8479600
mov rax, qword [rbp]
mov qword [rbp + 0x18], rax
movabs rax, 0xa32579d3999816f
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x20], rax
movabs rax, 0xaa9ad9e1a167ba65
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
movabs rax, 0x7c244fbea9f8344d
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x30], rax
movabs rax, 0xb023be1655d59eee
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x38], rax
mov qword [rbp], rsi
mov rax, qword [rbp]
mov qword [rbp], rdi
mov qword [rbp + 0x50], rax
mov rax, qword [rbp]
mov qword [rbp + 0x58], rax
movabs rax, 0x705b24bd5cf5f40b
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp], rcx
lea rcx, [rbp + 0x10]
mov qword [rbp + 0x60], rax
mov rax, qword [rbp]
mov qword [rbp + 0x68], rax
movabs rax, 0x1d5221d7898b5d6d
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x70], rax
mov qword [rbp], rdx
lea rdx, [rbp + 0x10]
mov rax, qword [rbp]
mov r8d, edx
movdqa xmm2, xmmword [rbp + 0x10]
xorps xmm2, xmmword [rbp + 0x50]
movdqa xmm0, xmmword [rbp + 0x20]
movdqa xmm1, xmmword [rbp + 0x30]
xorps xmm0, xmmword [rbp + 0x60]
mov qword [rbp + 0x78], rax
movq rax, xmm2
xorps xmm1, xmmword [rbp + 0x70]
movdqa xmmword [rbp + 0x10], xmm2
movdqa xmmword [rbp + 0x20], xmm0
movdqa xmmword [rbp + 0x30], xmm1
test al, al
je 0x18008e36b
nop
inc rcx
mov r8, rcx
cmp byte [rcx], 0
jne 0x18008e360
sub r8d, edx
lea rdx, [rbp + 0x10]
xor r15d, r15d
jmp 0x18008e1e7
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
je 0x18008e4fa
mov dl, 3
call fcn.18008b850
movabs rcx, 0xaf954e66cc0d81af
movabs rdx, 0xb023be1655b1f782
mov qword [rbp], rcx
movabs rsi, 0xdbb52a03a064e0c9
mov rax, qword [rbp]
movabs rcx, 0x7c73e4666c629901
mov qword [rbp + 0x10], rax
movabs rdi, 0x131ec4120905b96e
mov qword [rbp], rcx
movabs rcx, 0xcffdb88cc8479600
mov rax, qword [rbp]
mov qword [rbp + 0x18], rax
movabs rax, 0xa32579d3999816f
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x20], rax
movabs rax, 0xaa9ad9e1a167ba65
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
movabs rax, 0x7c244fbea9f8344d
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x30], rax
movabs rax, 0xb023be1655d59eee
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x38], rax
mov qword [rbp], rsi
mov rax, qword [rbp]
mov qword [rbp], rdi
mov qword [rbp + 0x50], rax
mov rax, qword [rbp]
mov qword [rbp + 0x58], rax
movabs rax, 0x705b24bd5cf5f40b
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp], rcx
lea rcx, [rbp + 0x10]
mov qword [rbp + 0x60], rax
mov rax, qword [rbp]
mov qword [rbp + 0x68], rax
movabs rax, 0x1d5221d7898b5d6d
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x70], rax
mov qword [rbp], rdx
lea rdx, [rbp + 0x10]
mov rax, qword [rbp]
mov r8d, edx
movdqa xmm2, xmmword [rbp + 0x10]
xorps xmm2, xmmword [rbp + 0x50]
movdqa xmm0, xmmword [rbp + 0x20]
movdqa xmm1, xmmword [rbp + 0x30]
xorps xmm0, xmmword [rbp + 0x60]
mov qword [rbp + 0x78], rax
movq rax, xmm2
xorps xmm1, xmmword [rbp + 0x70]
movdqa xmmword [rbp + 0x10], xmm2
movdqa xmmword [rbp + 0x20], xmm0
movdqa xmmword [rbp + 0x30], xmm1
test al, al
je 0x18008e36b
nop dword [rax]
inc rcx
mov r8, rcx
cmp byte [rcx], 0
jne 0x18008e4e0
sub r8d, edx
lea rdx, [rbp + 0x10]
xor r15d, r15d
jmp 0x18008e1e7
movzx r12d, byte [r14]
mov rdi, r14
test r12b, r12b
je 0x18008e50e
inc rdi
cmp byte [rdi], 0
jne 0x18008e506
mov r11d, dword [rax + rbx + 0x50]
sub rdi, r14
sub r11, rdi
xor r15d, r15d
add r11, rbx
cmp rbx, r11
jae 0x18008e58d
cmp r12b, 0x3f
je 0x18008e531
movzx eax, byte [rsi]
cmp byte [rbx], al
jne 0x18008e585
cmp rdi, 1
je 0x18008e57a
mov r9, r14
lea rax, [rsi + 1]
sub r9, rsi
mov r8, rbx
mov r10, rsi
sub r8, rsi
not r10
cmp byte [r9 + rax], 0x3f
mov rdx, rbx
je 0x18008e56a
movzx ecx, byte [rax]
lea rbx, [r8 - 1]
add rbx, rax
cmp byte [rax + r8], cl
jne 0x18008e585
mov rbx, rdx
inc rax
lea rcx, [rdi - 1]
lea rdx, [r10 + rax]
cmp rdx, rcx
jne 0x18008e54d
test rbx, rbx
jne 0x18008e80d
jmp 0x18008e590
inc rbx
cmp rbx, r11
jb 0x18008e524
mov rbx, r15
lea rax, [rdi + rdi*2]
mov rdx, r15
lea rcx, [rax + 0x10]
cmp rcx, rax
cmova rdx, rcx
test rdx, rdx
je 0x18008e602
cmp rdx, 0x400
ja 0x18008e5e6
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x18008e5c3
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1800f1d80
sub rsp, rax
lea r14, [rsp + 0x30]
test r14, r14
je 0x18008e605
mov dword [r14], 0xcccc
add r14, 0x10
jmp 0x18008e605
mov rcx, rdx
call fcn.180100220
mov r14, rax
test rax, rax
je 0x18008e605
mov dword [rax], 0xdddd
add r14, 0x10
jmp 0x18008e605
mov r14, r15
mov rdx, r14
mov r8, r15
test rdi, rdi
je 0x18008e647
lea r9, [0x18017a360]
nop word [rax + rax]
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, rdi
jb 0x18008e620
mov byte [rdx - 1], r15b
mov dl, 3
call fcn.18008b850
movabs rcx, 0xcffdb88cc8479600
lea r8, [rbp + 0x10]
movabs rax, 0xfbdb5866d41081b9
movabs rsi, 0xdbb52a03a064e0c9
mov qword [rbp], rax
movabs rdi, 0x131ec4120905b96e
mov rax, qword [rbp]
mov edx, r8d
mov qword [rbp + 0x10], rax
movabs rax, 0x7d6bab742971d600
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x18], rax
movabs rax, 0x705b24bd7ed5ce6f
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x20], rax
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
mov qword [rbp], rsi
mov rax, qword [rbp]
mov qword [rbp + 0x50], rax
mov qword [rbp], rdi
mov rax, qword [rbp]
mov qword [rbp + 0x58], rax
movabs rax, 0x705b24bd5cf5f40b
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x60], rax
mov qword [rbp], rcx
lea rcx, [rbp + 0x10]
mov rax, qword [rbp]
movdqa xmm1, xmmword [rbp + 0x10]
xorps xmm1, xmmword [rbp + 0x50]
movdqa xmm0, xmmword [rbp + 0x20]
mov qword [rbp + 0x68], rax
movq rax, xmm1
xorps xmm0, xmmword [rbp + 0x60]
movdqa xmmword [rbp + 0x10], xmm1
movdqa xmmword [rbp + 0x20], xmm0
test al, al
je 0x18008e737
inc rcx
cmp byte [rcx], r15b
jne 0x18008e728
mov r8d, ecx
lea rdx, [rbp + 0x10]
sub r8d, edx
mov qword [rsp + 0x20], r15
lea rdx, [rbp + 0x10]
xor r9d, r9d
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, r14
mov r8d, r14d
cmp byte [r14], r15b
je 0x18008e76b
nop
inc rax
mov r8, rax
cmp byte [rax], r15b
jne 0x18008e760
sub r8d, r14d
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov rdx, r14
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_WriteFile]
movabs rax, 0xdbb52a03a064e0eb
lea r8, [rbp + 0x40]
mov qword [rbp], rax
lea rcx, [rbp + 0x40]
mov rax, qword [rbp]
mov edx, r8d
mov qword [rbp + 0x40], rax
mov qword [rbp], rdi
mov rax, qword [rbp]
mov qword [rbp + 0x48], rax
mov qword [rbp], rsi
mov rax, qword [rbp]
mov qword [rbp + 0x50], rax
mov qword [rbp], rdi
mov rax, qword [rbp]
movdqa xmm0, xmmword [rbp + 0x40]
mov qword [rbp + 0x58], rax
xorps xmm0, xmmword [rbp + 0x50]
movq rax, xmm0
movdqa xmmword [rbp + 0x40], xmm0
test al, al
je 0x18008e7f1
inc rcx
cmp byte [rcx], r15b
jne 0x18008e7e2
mov r8d, ecx
lea rdx, [rbp + 0x40]
sub r8d, edx
mov qword [rsp + 0x20], r15
lea rdx, [rbp + 0x40]
xor r9d, r9d
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, rbx
mov rcx, qword [rbp + 0x80]
xor rcx, rbp
call fcn.1800f1520
mov rbx, qword [rbp + 0xc8]
mov rsi, qword [rbp + 0xd8]
lea rsp, [rbp + 0x90]
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret