Function at 0x180074170
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 [0x180141040]
xor rax, rbp
mov qword [rbp + 0x80], rax
mov r14, r8
mov rsi, rdx
mov r12, rcx
call fcn.180073720
mov rbx, rax
test rax, rax
jne 0x1800743d0
mov dl, 3
call fcn.180072d40
mov rbx, rax
movabs rdx, 0x14e9555157186264
movabs rcx, 0xc225bdf508c3c499
movabs rax, 0x161866224ef5a51d
mov qword [rbp], rcx
movabs rsi, 0xb605d99064aaa5ff
mov rcx, qword [rbp]
movabs rdi, 0x56745a5543c03140
mov qword [rbp + 0x10], rcx
movabs rcx, 0x39197a2126a7112f
mov qword [rbp], rcx
mov rcx, qword [rbp]
mov qword [rbp + 0x18], rcx
mov qword [rbp], rax
movabs rax, 0x6d8cdf41d02f7bc6
mov rcx, qword [rbp]
mov qword [rbp + 0x20], rcx
movabs rcx, 0x57feb027f04a17a2
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
movabs rax, 0x8fab634c19fdea33
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, 0x78790e022b99d079
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, 0x8fab634c19fdc813
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
vmovdqu xmm0, xmmword [rbp + 0x10]
vpxor xmm3, xmm0, xmmword [rbp + 0x50]
vmovdqu xmm0, xmmword [rbp + 0x20]
vmovdqu xmm2, xmmword [rbp + 0x30]
vpxor xmm1, xmm0, xmmword [rbp + 0x60]
mov qword [rbp + 0x78], rax
vpxor xmm0, xmm2, xmmword [rbp + 0x70]
vmovq rax, xmm3
vmovdqu xmmword [rbp + 0x30], xmm0
vmovdqu xmmword [rbp + 0x10], xmm3
vmovdqu xmmword [rbp + 0x20], xmm1
test al, al
je 0x18007431b
nop word [rax + rax]
inc rcx
mov r8, rcx
cmp byte [rcx], 0
jne 0x180074310
mov rcx, qword [0x180141318]
sub r8d, edx
xor r15d, r15d
lea rdx, [rbp + 0x10]
xor r9d, r9d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, r12
mov rcx, rbx
call fcn.180072eb0
movabs rax, 0xb605d99064aaa5dd
lea rdx, [rbp + 0x40]
mov qword [rbp], rax
lea rcx, [rbp + 0x40]
mov rax, qword [rbp]
mov r8d, edx
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]
vmovdqu xmm0, xmmword [rbp + 0x40]
mov qword [rbp + 0x58], rax
vpxor xmm1, xmm0, xmmword [rbp + 0x50]
vmovq rax, xmm1
vmovdqu xmmword [rbp + 0x40], xmm1
test al, al
je 0x1800743ad
inc rcx
mov r8, rcx
cmp byte [rcx], r15b
jne 0x1800743a2
sub r8d, edx
lea rdx, [rbp + 0x40]
mov rcx, qword [0x180141318]
xor r9d, r9d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
jmp 0x1800749f1
mov eax, 0x5a4d
cmp word [rbx], ax
je 0x18007454a
mov dl, 3
call fcn.180072d40
movabs rcx, 0xc225bdf508c3c499
movabs rdx, 0x14e9555157186264
mov qword [rbp], rcx
movabs rsi, 0xb605d99064aaa5ff
mov rax, qword [rbp]
movabs rcx, 0x39197a2126a7112f
mov qword [rbp + 0x10], rax
movabs rdi, 0x56745a5543c03140
mov qword [rbp], rcx
movabs rcx, 0x57feb027f04a17a2
mov rax, qword [rbp]
mov qword [rbp + 0x18], rax
movabs rax, 0x2107d224ef5a51d
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x20], rax
movabs rax, 0x3299d14a996a3bc7
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
movabs rax, 0xeedd0d25398ea133
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x30], rax
movabs rax, 0x14e95551577c0b08
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, 0x78790e022b99d079
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, 0x8fab634c19fdc813
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
vmovdqu xmm0, xmmword [rbp + 0x10]
vpxor xmm3, xmm0, xmmword [rbp + 0x50]
vmovdqu xmm0, xmmword [rbp + 0x20]
vmovdqu xmm2, xmmword [rbp + 0x30]
vpxor xmm1, xmm0, xmmword [rbp + 0x60]
mov qword [rbp + 0x78], rax
vpxor xmm0, xmm2, xmmword [rbp + 0x70]
vmovq rax, xmm3
vmovdqu xmmword [rbp + 0x30], xmm0
vmovdqu xmmword [rbp + 0x10], xmm3
vmovdqu xmmword [rbp + 0x20], xmm1
test al, al
je 0x18007453b
nop
inc rcx
mov r8, rcx
cmp byte [rcx], 0
jne 0x180074530
sub r8d, edx
lea rdx, [rbp + 0x10]
xor r15d, r15d
jmp 0x1800743b4
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
je 0x1800746ca
mov dl, 3
call fcn.180072d40
movabs rcx, 0xc225bdf508c3c499
movabs rdx, 0x14e9555157186264
mov qword [rbp], rcx
movabs rsi, 0xb605d99064aaa5ff
mov rax, qword [rbp]
movabs rcx, 0x39197a2126a7112f
mov qword [rbp + 0x10], rax
movabs rdi, 0x56745a5543c03140
mov qword [rbp], rcx
movabs rcx, 0x57feb027f04a17a2
mov rax, qword [rbp]
mov qword [rbp + 0x18], rax
movabs rax, 0x2107d224ef5a51d
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x20], rax
movabs rax, 0x3299d14a996a3bc7
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
movabs rax, 0xeedd0d25398ea133
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x30], rax
movabs rax, 0x14e95551577c0b08
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, 0x78790e022b99d079
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, 0x8fab634c19fdc813
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
vmovdqu xmm0, xmmword [rbp + 0x10]
vpxor xmm3, xmm0, xmmword [rbp + 0x50]
vmovdqu xmm0, xmmword [rbp + 0x20]
vmovdqu xmm2, xmmword [rbp + 0x30]
vpxor xmm1, xmm0, xmmword [rbp + 0x60]
mov qword [rbp + 0x78], rax
vpxor xmm0, xmm2, xmmword [rbp + 0x70]
vmovq rax, xmm3
vmovdqu xmmword [rbp + 0x30], xmm0
vmovdqu xmmword [rbp + 0x10], xmm3
vmovdqu xmmword [rbp + 0x20], xmm1
test al, al
je 0x18007453b
nop
inc rcx
mov r8, rcx
cmp byte [rcx], 0
jne 0x1800746b0
sub r8d, edx
lea rdx, [rbp + 0x10]
xor r15d, r15d
jmp 0x1800743b4
movzx r12d, byte [r14]
mov rdi, r14
test r12b, r12b
je 0x1800746de
inc rdi
cmp byte [rdi], 0
jne 0x1800746d6
mov r11d, dword [rax + rbx + 0x50]
sub rdi, r14
sub r11, rdi
xor r15d, r15d
add r11, rbx
cmp rbx, r11
jae 0x18007475d
cmp r12b, 0x3f
je 0x180074701
movzx eax, byte [rsi]
cmp byte [rbx], al
jne 0x180074755
cmp rdi, 1
je 0x18007474a
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 0x18007473a
movzx ecx, byte [rax]
lea rbx, [r8 - 1]
add rbx, rax
cmp byte [rax + r8], cl
jne 0x180074755
mov rbx, rdx
inc rax
lea rcx, [rdi - 1]
lea rdx, [r10 + rax]
cmp rdx, rcx
jne 0x18007471d
test rbx, rbx
jne 0x1800749ee
jmp 0x180074760
inc rbx
cmp rbx, r11
jb 0x1800746f4
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 0x1800747d3
cmp rdx, 0x400
ja 0x1800747b6
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x180074793
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1800d7ba0
sub rsp, rax
lea r14, [rsp + 0x30]
test r14, r14
je 0x1800747d6
mov dword [r14], 0xcccc
add r14, 0x10
jmp 0x1800747d6
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x1800747d6
mov dword [rax], 0xdddd
add r14, 0x10
jmp 0x1800747d6
mov r14, r15
mov rdx, r14
mov r8, r15
test rdi, rdi
je 0x180074817
lea r9, [0x18012eb00]
nop dword [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 0x1800747f0
mov byte [rdx - 1], r15b
mov dl, 3
call fcn.180072d40
movabs rcx, 0x57feb027f04a17a2
lea r8, [rbp + 0x10]
movabs rax, 0x966babf510dec48f
movabs rsi, 0xb605d99064aaa5ff
mov qword [rbp], rax
movabs rdi, 0x56745a5543c03140
mov rax, qword [rbp]
mov edx, r8d
mov qword [rbp + 0x10], rax
movabs rax, 0x3801353363b45e2e
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x18], rax
movabs rax, 0x78790e0209b9ea1d
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, 0x78790e022b99d079
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]
vmovdqu xmm0, xmmword [rbp + 0x10]
vpxor xmm2, xmm0, xmmword [rbp + 0x50]
vmovdqu xmm0, xmmword [rbp + 0x20]
mov qword [rbp + 0x68], rax
vpxor xmm1, xmm0, xmmword [rbp + 0x60]
vmovq rax, xmm2
vmovdqu xmmword [rbp + 0x20], xmm1
vmovdqu xmmword [rbp + 0x10], xmm2
test al, al
je 0x18007490f
nop word [rax + rax]
inc rcx
cmp byte [rcx], r15b
jne 0x180074900
mov r8d, ecx
lea rdx, [rbp + 0x10]
mov rcx, qword [0x180141318]
sub r8d, edx
lea rdx, [rbp + 0x10]
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 0x18007494b
nop word [rax + rax]
inc rax
mov r8, rax
cmp byte [rax], r15b
jne 0x180074940
mov rcx, qword [0x180141318]
sub r8d, r14d
xor r9d, r9d
mov qword [rsp + 0x20], r15
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
movabs rax, 0xb605d99064aaa5dd
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]
vmovdqu xmm0, xmmword [rbp + 0x40]
mov qword [rbp + 0x58], rax
vpxor xmm1, xmm0, xmmword [rbp + 0x50]
vmovq rax, xmm1
vmovdqu xmmword [rbp + 0x40], xmm1
test al, al
je 0x1800749d2
inc rcx
cmp byte [rcx], r15b
jne 0x1800749c3
mov r8d, ecx
lea rdx, [rbp + 0x40]
mov rcx, qword [0x180141318]
sub r8d, edx
lea rdx, [rbp + 0x40]
mov qword [rsp + 0x20], r15
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, rbx
mov rcx, qword [rbp + 0x80]
xor rcx, rbp
call fcn.1800d7380
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