Function at 0x18008f430
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 [0x1801a7040]
xor rax, rbp
mov qword [rbp + 0x140], rax
mov r15, r8
mov rdi, rdx
mov rsi, rcx
call fcn.18008e720
mov r9, rax
test rax, rax
jne 0x18008f6d2
mov dl, 3
call fcn.18008d420
mov r15, rax
movabs rdx, 0x4123592fe203a77c
movabs rcx, 0x98a1bb47f02fda11
movabs rax, 0xdbd75744d3c1b805
mov qword [rbp], rcx
movabs rdi, 0xec81df229c46bb77
mov rcx, qword [rbp]
movabs rbx, 0xd64ff5bbc3b0d6d8
mov qword [rbp + 0x90], rcx
movabs rcx, 0xb922d5cfa6d7f6b7
mov qword [rbp], rcx
mov rcx, qword [rbp]
mov qword [rbp + 0x98], rcx
mov qword [rbp], rax
movabs rax, 0x229cd39373db5e56
mov rcx, qword [rbp]
mov qword [rbp + 0xa0], rcx
movabs rcx, 0x18eebcf553be3232
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0xa8], rax
movabs rax, 0x5652f4b6c7d970ab
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], rdi
mov rax, qword [rbp]
mov qword [rbp], rbx
mov qword [rbp + 0x110], rax
mov rax, qword [rbp]
mov qword [rbp + 0x118], rax
movabs rax, 0xb5b63f64b6adcd61
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, 0x5652f4b6c7d9528b
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 0x18008f61b
nop dword [rax]
inc rcx
mov r8, rcx
cmp byte [rcx], 0
jne 0x18008f610
mov rcx, qword [0x1801ceca8]
sub r8d, edx
xor r14d, r14d
lea rdx, [rbp + 0x90]
xor r9d, r9d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, rsi
mov rcx, r15
call fcn.18008d590
movabs rax, 0xec81df229c46bb55
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], rdi
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 0x18008f6af
inc rcx
mov r8, rcx
cmp byte [rcx], r14b
jne 0x18008f6a4
sub r8d, edx
lea rdx, [rbp + 0x60]
mov rcx, qword [0x1801ceca8]
xor r9d, r9d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
jmp 0x18008fd40
mov eax, 0x5a4d
cmp word [r9], ax
je 0x18008f86a
mov dl, 3
call fcn.18008d420
movabs rcx, 0x98a1bb47f02fda11
movabs rdx, 0x4123592fe203a77c
mov qword [rbp], rcx
movabs rdi, 0xec81df229c46bb77
mov rax, qword [rbp]
movabs rcx, 0xb922d5cfa6d7f6b7
mov qword [rbp + 0x20], rax
movabs rbx, 0xd64ff5bbc3b0d6d8
mov qword [rbp], rcx
movabs rcx, 0x18eebcf553be3232
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
movabs rax, 0xcfdf4c44d3c1b805
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x30], rax
movabs rax, 0x7d89dd983a9e1e57
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x38], rax
movabs rax, 0x37249adfe7aa3bab
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x40], rax
movabs rax, 0x4123592fe267ce10
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x48], rax
mov qword [rbp], rdi
mov rax, qword [rbp]
mov qword [rbp], rbx
mov qword [rbp + 0xc0], rax
mov rax, qword [rbp]
mov qword [rbp + 0xc8], rax
movabs rax, 0xb5b63f64b6adcd61
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, 0x5652f4b6c7d9528b
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 0x18008f85b
nop dword [rax]
inc rcx
mov r8, rcx
cmp byte [rcx], 0
jne 0x18008f850
sub r8d, edx
lea rdx, [rbp + 0x20]
xor r14d, r14d
jmp 0x18008f6b6
movsxd rax, dword [r9 + 0x3c]
cmp dword [rax + r9], 0x4550
je 0x18008fa0a
mov dl, 3
call fcn.18008d420
movabs rcx, 0x98a1bb47f02fda11
movabs rdx, 0x4123592fe203a77c
mov qword [rbp], rcx
movabs rdi, 0xec81df229c46bb77
mov rax, qword [rbp]
movabs rcx, 0xb922d5cfa6d7f6b7
mov qword [rbp + 0x20], rax
movabs rbx, 0xd64ff5bbc3b0d6d8
mov qword [rbp], rcx
movabs rcx, 0x18eebcf553be3232
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
movabs rax, 0xcfdf4c44d3c1b805
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x30], rax
movabs rax, 0x7d89dd983a9e1e57
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x38], rax
movabs rax, 0x37249adfe7aa3bab
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x40], rax
movabs rax, 0x4123592fe267ce10
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x48], rax
mov qword [rbp], rdi
mov rax, qword [rbp]
mov qword [rbp], rbx
mov qword [rbp + 0xc0], rax
mov rax, qword [rbp]
mov qword [rbp + 0xc8], rax
movabs rax, 0xb5b63f64b6adcd61
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, 0x5652f4b6c7d9528b
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 0x18008f85b
nop dword [rax + rax]
inc rcx
mov r8, rcx
cmp byte [rcx], 0
jne 0x18008f9f0
sub r8d, edx
lea rdx, [rbp + 0x20]
xor r14d, r14d
jmp 0x18008f6b6
movzx r12d, byte [r15]
mov rbx, r15
test r12b, r12b
je 0x18008fa1e
inc rbx
cmp byte [rbx], 0
jne 0x18008fa16
mov esi, dword [rax + r9 + 0x50]
sub rbx, r15
sub rsi, rbx
xor r14d, r14d
add rsi, r9
cmp r9, rsi
jae 0x18008faa1
cmp r12b, 0x3f
je 0x18008fa42
movzx eax, byte [rdi]
cmp byte [r9], al
jne 0x18008fa99
cmp rbx, 1
je 0x18008fa8b
mov r10, r15
lea rax, [rdi + 1]
sub r10, rdi
mov r8, r9
mov r11, rdi
sub r8, rdi
not r11
cmp byte [r10 + rax], 0x3f
mov rdx, r9
je 0x18008fa7b
movzx ecx, byte [rax]
lea r9, [r8 - 1]
add r9, rax
cmp byte [rax + r8], cl
jne 0x18008fa99
mov r9, rdx
inc rax
lea rcx, [rbx - 1]
lea rdx, [r11 + rax]
cmp rdx, rcx
jne 0x18008fa5e
mov r15, r9
test r9, r9
jne 0x18008fd3d
jmp 0x18008faa4
inc r9
cmp r9, rsi
jb 0x18008fa34
mov r15, r14
lea rax, [rbx + rbx*2]
mov rdx, r14
lea rcx, [rax + 0x10]
cmp rcx, rax
cmova rdx, rcx
test rdx, rdx
je 0x18008fb15
cmp rdx, 0x400
ja 0x18008faf9
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x18008fad7
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1800f4240
sub rsp, rax
lea rsi, [rsp + 0x30]
test rsi, rsi
je 0x18008fb18
mov dword [rsi], 0xcccc
add rsi, 0x10
jmp 0x18008fb18
mov rcx, rdx
call fcn.180102ac4
mov rsi, rax
test rax, rax
je 0x18008fb18
mov dword [rax], 0xdddd
add rsi, 0x10
jmp 0x18008fb18
mov rsi, r14
mov rdx, rsi
mov r8, r14
test rbx, rbx
je 0x18008fb57
lea r9, [0x1801896b0]
nop word [rax + rax]
movzx eax, byte [r8 + rdi]
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 0x18008fb30
mov byte [rdx - 1], r14b
mov dl, 3
call fcn.18008d420
movabs rcx, 0x18eebcf553be3232
lea r8, [rbp + 0x70]
movabs rax, 0xccefad47e832da07
movabs rdi, 0xec81df229c46bb77
mov qword [rbp], rax
movabs rbx, 0xd64ff5bbc3b0d6d8
mov rax, qword [rbp]
mov edx, r8d
mov qword [rbp + 0x70], rax
movabs rax, 0xb83a9adde3c4b9b6
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x78], rax
movabs rax, 0xb5b63f64948df705
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], rdi
mov rax, qword [rbp]
mov qword [rbp + 0xf0], rax
mov qword [rbp], rbx
mov rax, qword [rbp]
mov qword [rbp + 0xf8], rax
movabs rax, 0xb5b63f64b6adcd61
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 0x18008fc65
inc rcx
cmp byte [rcx], r14b
jne 0x18008fc56
mov r8d, ecx
lea rdx, [rbp + 0x70]
mov rcx, qword [0x1801ceca8]
sub r8d, edx
lea rdx, [rbp + 0x70]
mov qword [rsp + 0x20], r14
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, rsi
mov r8d, esi
cmp byte [rsi], r14b
je 0x18008fc9b
nop dword [rax]
inc rax
mov r8, rax
cmp byte [rax], r14b
jne 0x18008fc90
mov rcx, qword [0x1801ceca8]
sub r8d, esi
xor r9d, r9d
mov qword [rsp + 0x20], r14
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
movabs rax, 0xec81df229c46bb55
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], rdi
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 0x18008fd21
inc rcx
cmp byte [rcx], r14b
jne 0x18008fd12
mov r8d, ecx
lea rdx, [rbp + 0x50]
mov rcx, qword [0x1801ceca8]
sub r8d, edx
lea rdx, [rbp + 0x50]
mov qword [rsp + 0x20], r14
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, r15
mov rcx, qword [rbp + 0x140]
xor rcx, rbp
call fcn.1800f39f0
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