Function at 0x1801399e0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push r12
push r14
lea rbp, [rax - 0x3a8]
sub rsp, 0x488
cmp qword [rbp + 0x3d0], 0
mov rsi, r9
mov r12, r8
mov r14, rcx
je 0x18013a549
cmp qword [r8 + 0x20], 0
je 0x18013a549
mov rdx, qword [r8 + 8]
mov qword [rax + 0x20], rbx
mov qword [rax - 0x28], rdi
mov qword [rax - 0x30], r13
mov r13d, 1
mov dword [rbp + 0x3b8], r13d
mov qword [rax - 0x38], r15
call fcn.1801431e0
xor edi, edi
mov qword [rbp - 0x30], rax
mov qword [rsp + 0x40], rdi
mov r15, rax
mov dword [rsp + 0x30], edi
mov rdx, rax
test rax, rax
jne 0x180139a6a
mov rdx, qword [r12 + 8]
lea r9, [rsp + 0x30]
mov rcx, r14
lea r8, [rsp + 0x40]
call fcn.180145ac0
mov ebx, eax
test eax, eax
je 0x180139b80
movdqa xmm0, xmmword [0x180160f00]
lea rdx, [rbp - 0x20]
movdqa xmm1, xmmword [0x1801611b0]
lea rcx, [rbp - 0x78]
movabs rax, 0xa7ec59b91e41e411
mov qword [rbp + 0x10], rax
movabs rax, 0x1102bccb1f38898a
mov qword [rbp + 0x18], rax
movabs rax, 0xba9d839a02d57d6b
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp + 0x20], rax
movdqa xmm0, xmmword [0x1801610a0]
movdqu xmmword [rbp - 0x10], xmm1
movdqu xmmword [rbp], xmm0
call fcn.18000aa70
mov r9d, ebx
lea r8, [rsp + 0x48]
mov edx, 0x100000
lea rcx, [0x18017bd90]
movups xmm2, xmmword [rax]
movups xmmword [rsp + 0x48], xmm2
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rsp + 0x68], xmm1
movzx eax, byte [rax + 0x30]
mov byte [rsp + 0x78], al
call fcn.1800010e0
mov rcx, qword [0x18017bd78]
lea r9, [0x18017bd80]
mov r8d, eax
mov dword [0x18017bd84], eax
lea rdx, [0x18017bd90]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r15
call fcn.180146f60
xor eax, eax
mov r13, qword [rsp + 0x478]
mov rdi, qword [rsp + 0x480]
mov rbx, qword [rsp + 0x4c8]
mov r15, qword [rsp + 0x470]
add rsp, 0x488
pop r14
pop r12
pop rsi
pop rbp
ret
movdqa xmm0, xmmword [0x180161b50]
lea rdx, [rsp + 0x48]
movdqa xmm1, xmmword [0x180161150]
lea rcx, [rbp - 0x20]
movabs rax, 0xfb15fb380cc1731b
mov qword [rsp + 0x68], rax
movabs rax, 0x3579df29b375b8da
mov qword [rsp + 0x70], rax
movabs rax, 0xd701b71bf7a10271
mov qword [rsp + 0x78], rax
movdqu xmmword [rsp + 0x48], xmm0
movdqu xmmword [rsp + 0x58], xmm1
call fcn.18000bce0
lea r8, [rbp - 0x78]
mov edx, 0x100000
lea rcx, [0x18017bd90]
movups xmm2, xmmword [rax]
movups xmmword [rbp - 0x78], xmm2
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp - 0x68], xmm0
movzx eax, byte [rax + 0x20]
mov byte [rbp - 0x58], al
call fcn.1800010e0
mov rcx, qword [0x18017bd78]
lea r9, [0x18017bd80]
mov r8d, eax
mov dword [0x18017bd84], eax
lea rdx, [0x18017bd90]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rsp + 0x40]
mov rcx, r14
mov r9, qword [r12 + 0x28]
mov rbx, rdi
mov r8, qword [rsi + 8]
mov qword [rbp - 0x28], rbx
call fcn.180145f80
mov qword [rbp - 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x18013a351
xor esi, esi
mov al, 0x5d
xor al, 0x31
mov byte [rsp + 0x37], sil
mov cl, 0x9d
mov byte [rsp + 0x30], al
xor cl, 0xf2
mov byte [rbp - 0x71], sil
mov dl, 0x1c
mov byte [rsp + 0x31], cl
xor dl, 0x7b
mov r8b, 0x88
xor r8b, 0xe1
mov byte [rsp + 0x32], dl
mov r9b, 4
mov byte [rsp + 0x33], r8b
xor r9b, 0x6a
mov r10b, pe_nt_image_headers64
xor r10b, 0xf3
mov byte [rsp + 0x34], r9b
mov r11b, 0x7f
mov byte [rsp + 0x35], r10b
xor r11b, r11b
mov byte [rsp + 0x36], r11b
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
test rbx, rbx
je 0x180139d88
lea r9, [rsp + 0x40]
mov edx, 0x100
lea r8, str.__s_:
lea rcx, [rbp + 0x70]
call fcn.1800010e0
lea rdx, [rbp + 0x70]
mov rcx, rdi
call fcn.18010a9bc
test rax, rax
je 0x180139d88
lea rcx, [rbp + 0x70]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], sil
jne 0x180139cf7
add rbx, rax
cmp byte [rbx], 0x22
jne 0x180139d22
inc rbx
mov edx, 0x22
mov rcx, rbx
call fcn.18010aba4
mov rsi, rax
test rax, rax
je 0x180139d88
jmp 0x180139d4c
lea rdx, [0x18015f230]
mov rcx, rbx
call fcn.180110b40
mov rsi, rax
test rax, rax
jne 0x180139d4c
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rbx + rsi], 0
jne 0x180139d40
add rsi, rbx
mov r14, rsi
sub r14, rbx
lea rcx, [r14 + 1]
call fcn.180147080
mov r15, rax
test rax, rax
je 0x180139d81
mov r8, r14
mov rdx, rbx
mov rcx, rax
call fcn.180115a40
mov byte [r15 + r14], 0
lea rdi, [rsi + 1]
cmp byte [rsi], 0x22
cmovne rdi, rsi
mov r14, qword [rbp + 0x3b0]
movabs rax, 0x865fea614b33c3ea
movabs rcx, 0x483bca8e917b81f3
movabs r12, 0xf5d06b73146ce1d
movabs r15, 0x5c86a03627c64527
movdqa xmm0, xmmword [0x1801602c0]
lea rdx, [rbp - 0x78]
mov qword [rbp - 0x58], rcx
lea rcx, [rbp + 0x60]
movdqu xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], rax
call fcn.18000f800
movsd xmm1, qword [rax]
movsd qword [rsp + 0x30], xmm1
movzx eax, word [rax + 8]
mov word [rsp + 0x38], ax
test rdi, rdi
je 0x18013a337
lea r9, [rsp + 0x30]
mov edx, 0x100
lea r8, str.__s_:
lea rcx, [rbp + 0x70]
call fcn.1800010e0
lea rdx, [rbp + 0x70]
mov rcx, rdi
call fcn.18010a9bc
test rax, rax
je 0x18013a337
lea rcx, [rbp + 0x70]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rcx + rbx], 0
jne 0x180139e30
add rbx, rax
cmp byte [rbx], 0x22
jne 0x180139e5f
inc rbx
mov edx, 0x22
mov rcx, rbx
call fcn.18010aba4
mov rdi, rax
test rax, rax
je 0x18013a337
jmp 0x180139e8c
lea rdx, [0x18015f230]
mov rcx, rbx
call fcn.180110b40
mov rdi, rax
test rax, rax
jne 0x180139e8c
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp byte [rbx + rdi], 0
jne 0x180139e80
add rdi, rbx
mov rsi, rdi
sub rsi, rbx
lea rcx, [rsi + 1]
call fcn.180147080
mov r13, rax
test rax, rax
je 0x18013a337
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180115a40
mov byte [rsi + r13], 0
cmp byte [rdi], 0x22
jne 0x180139ec2
inc rdi
movdqa xmm0, xmmword [0x1801623e0]
lea rdx, [rbp - 0x78]
xor eax, eax
mov word [rbp - 0x68], 0x40c7
mov dword [rbp - 0x66], eax
lea rcx, [rbp - 0x20]
mov word [rbp - 0x62], ax
movabs rax, 0x865fea614b33c3ea
mov qword [rbp - 0x58], rax
movabs rax, 0x483bca8e917b81f3
mov qword [rbp - 0x50], rax
movdqu xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x60], r12
call fcn.18000e150
mov rcx, rax
movups xmm1, xmmword [rax]
movups xmmword [rbp + 0x38], xmm1
movzx eax, word [rax + 0x10]
mov word [rbp + 0x48], ax
movzx eax, byte [rcx + 0x12]
mov byte [rbp + 0x4a], al
test rdi, rdi
je 0x180139f98
lea r9, [rbp + 0x38]
mov edx, 0x100
lea r8, str.__s_:
lea rcx, [rbp + 0x170]
call fcn.1800010e0
lea rdx, [rbp + 0x170]
mov rcx, rdi
call fcn.18010a9bc
test rax, rax
je 0x180139f98
lea rcx, [rbp + 0x170]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], 0
jne 0x180139f67
add rbx, rax
cmp byte [rbx], 0x22
jne 0x18013a14b
inc rbx
mov edx, 0x22
mov rcx, rbx
call fcn.18010aba4
mov rsi, rax
test rax, rax
jne 0x18013a17c
xor r12d, r12d
movdqa xmm0, xmmword [0x1801622d0]
lea rdx, [rsp + 0x48]
xor eax, eax
mov word [rsp + 0x58], 0x5d5a
mov dword [rsp + 0x5a], eax
lea rcx, [rbp - 0x78]
mov word [rsp + 0x5e], ax
movabs rax, 0x253a564a0b83d27a
mov qword [rsp + 0x68], rax
movabs rax, 0x64c9ae0b5cd0a813
mov qword [rsp + 0x70], rax
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x60], r15
call fcn.18000e150
mov rcx, rax
movups xmm1, xmmword [rax]
movups xmmword [rbp + 0x4b], xmm1
movzx eax, word [rax + 0x10]
mov word [rbp + 0x5b], ax
movzx eax, byte [rcx + 0x12]
mov byte [rbp + 0x5d], al
test rdi, rdi
je 0x18013a081
lea r9, [rbp + 0x4b]
mov edx, 0x100
lea r8, str.__s_:
lea rcx, [rbp + 0x270]
call fcn.1800010e0
lea rdx, [rbp + 0x270]
mov rcx, rdi
call fcn.18010a9bc
test rax, rax
je 0x18013a081
lea rcx, [rbp + 0x270]
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rcx + rbx], 0
jne 0x18013a050
add rbx, rax
cmp byte [rbx], 0x22
jne 0x18013a1c0
inc rbx
mov edx, 0x22
mov rcx, rbx
call fcn.18010aba4
mov rsi, rax
test rax, rax
jne 0x18013a1ec
xor r14d, r14d
mov rcx, qword [rbp + 0x3d0]
mov r9, r12
mov r8, r12
mov r12, qword [rbp + 0x3c0]
mov rdx, qword [r12 + 0x20]
call fcn.18013ae60
mov rdx, qword [r12 + 0x20]
mov r9, r14
mov rcx, qword [rbp + 0x3d0]
mov r8, r14
mov r15, rax
call fcn.18013ae60
mov r14, qword [rbp + 0x3b0]
mov rbx, rax
movabs rax, 0x865fea614b33c3ea
movabs rcx, 0x483bca8e917b81f3
movabs r12, 0xf5d06b73146ce1d
test r15, r15
je 0x180139da6
test rbx, rbx
je 0x180139da6
lea r9, [rsp + 0x40]
mov qword [rsp + 0x40], 0
mov r8, rbx
mov rdx, r15
mov rcx, r13
call fcn.180144620
mov rsi, rax
test rax, rax
je 0x18013a230
mov eax, dword [rsp + 0x40]
mov r9, rsi
mov r8, qword [rbp - 0x38]
mov rcx, r14
mov dword [rsp + 0x20], eax
call fcn.180146300
mov rcx, rsi
mov dword [rbp + 0x3b8], eax
mov r13d, eax
call fcn.180146f60
jmp 0x18013a237
lea rdx, [0x18015f230]
mov rcx, rbx
call fcn.180110b40
mov rsi, rax
test rax, rax
jne 0x18013a17c
mov rsi, 0xffffffffffffffff
nop dword [rax]
inc rsi
cmp byte [rbx + rsi], 0
jne 0x18013a170
add rsi, rbx
mov r14, rsi
sub r14, rbx
lea rcx, [r14 + 1]
call fcn.180147080
mov r12, rax
test rax, rax
je 0x180139f98
mov r8, r14
mov rdx, rbx
mov rcx, rax
call fcn.180115a40
mov byte [r12 + r14], 0
cmp byte [rsi], 0x22
jne 0x18013a1b8
lea rdi, [rsi + 1]
jmp 0x180139f9b
mov rdi, rsi
jmp 0x180139f9b
lea rdx, [0x18015f230]
mov rcx, rbx
call fcn.180110b40
mov rsi, rax
test rax, rax
jne 0x18013a1ec
mov rsi, 0xffffffffffffffff
nop
inc rsi
cmp byte [rbx + rsi], 0
jne 0x18013a1e0
add rsi, rbx
mov r15, rsi
sub r15, rbx
lea rcx, [r15 + 1]
call fcn.180147080
mov r14, rax
test rax, rax
je 0x18013a081
mov r8, r15
mov rdx, rbx
mov rcx, rax
call fcn.180115a40
mov byte [r14 + r15], 0
cmp byte [rsi], 0x22
jne 0x18013a228
lea rdi, [rsi + 1]
jmp 0x18013a084
mov rdi, rsi
jmp 0x18013a084
mov r13d, dword [rbp + 0x3b8]
mov rcx, rbx
call fcn.180146f60
mov rcx, r15
call fcn.180146f60
movabs rax, 0x865fea614b33c3ea
movabs rcx, 0x483bca8e917b81f3
movabs r15, 0x5c86a03627c64527
test r13d, r13d
jne 0x180139db0
call qword [sym.imp.KERNEL32.dll_GetLastError]
movdqa xmm0, xmmword [0x180162130]
lea rdx, [rsp + 0x48]
movdqa xmm1, xmmword [0x180160c80]
lea rcx, [rbp - 0x20]
mov ebx, eax
mov dword [rsp + 0x68], 0xa8dca020
movabs rax, 0x253a564a0b83d27a
mov dword [rsp + 0x6c], 0xd02f4285
mov qword [rsp + 0x78], rax
movabs rax, 0x64c9ae0b5cd0a813
mov qword [rbp - 0x80], rax
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x70], r15
movdqu xmmword [rsp + 0x58], xmm1
call fcn.180010980
mov r9d, ebx
lea r8, [rbp - 0x78]
mov edx, 0x100000
lea rcx, [0x18017bd90]
movups xmm2, xmmword [rax]
movups xmmword [rbp - 0x78], xmm2
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp - 0x68], xmm0
movsd xmm1, qword [rax + 0x20]
movsd qword [rbp - 0x58], xmm1
movzx eax, byte [rax + 0x28]
mov byte [rbp - 0x50], al
call fcn.1800010e0
mov rcx, qword [0x18017bd78]
lea r9, [0x18017bd80]
mov r8d, eax
mov dword [0x18017bd84], eax
lea rdx, [0x18017bd90]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp - 0x38]
call qword [r14 + 0xa8]
mov r15, qword [rbp - 0x30]
mov r13d, dword [rbp + 0x3b8]
mov rbx, qword [rbp - 0x28]
test rbx, rbx
je 0x18013a42e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x18013a42e
movdqa xmm0, xmmword [0x1801620a0]
lea rdx, [rsp + 0x48]
movdqa xmm1, xmmword [0x180160500]
lea rcx, [rbp - 0x20]
movabs rax, 0x8488351c950cfdf5
mov qword [rsp + 0x68], rax
movabs rax, 0xffd248db3b5cd2f8
mov qword [rsp + 0x70], rax
movabs rax, 0x2b7ae7f98d26cfe2
mov qword [rsp + 0x78], rax
movdqu xmmword [rsp + 0x48], xmm0
movdqu xmmword [rsp + 0x58], xmm1
call fcn.1800084e0
lea r8, [rbp - 0x78]
mov edx, 0x100000
movups xmm1, xmmword [rax]
movups xmmword [rbp - 0x78], xmm1
movsd xmm0, qword [rax + 0x10]
movsd qword [rbp - 0x68], xmm0
mov ecx, dword [rax + 0x18]
mov dword [rbp - 0x60], ecx
lea rcx, [0x18017bd90]
movzx eax, word [rax + 0x1c]
mov word [rbp - 0x5c], ax
call fcn.1800010e0
mov rcx, qword [0x18017bd78]
lea r9, [0x18017bd80]
mov r8d, eax
mov dword [0x18017bd84], eax
lea rdx, [0x18017bd90]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test r15, r15
je 0x18013a541
mov rax, qword [r14 + 8]
mov rcx, r15
call rax
test eax, eax
jne 0x18013a539
call qword [sym.imp.KERNEL32.dll_GetLastError]
movdqa xmm0, xmmword [0x180161240]
lea rdx, [rbp - 0x20]
movdqa xmm1, xmmword [0x180160f60]
lea rcx, [rbp - 0x78]
mov ebx, eax
movabs rax, 0xf0cec3b5d447d029
mov qword [rbp + 0x20], rax
movabs rax, 0xc959caf9a23159aa
mov qword [rbp + 0x28], rax
movabs rax, 0x4767e9aaaa72800a
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp + 0x30], rax
movdqa xmm0, xmmword [0x1801618b0]
movdqu xmmword [rbp - 0x10], xmm1
movdqa xmm1, xmmword [0x180160390]
movdqu xmmword [rbp], xmm0
movdqu xmmword [rbp + 0x10], xmm1
call fcn.1800095a0
mov r9, r15
mov dword [rsp + 0x20], ebx
lea r8, [rsp + 0x48]
mov edx, 0x100000
movups xmm2, xmmword [rax]
movups xmmword [rsp + 0x48], xmm2
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rsp + 0x68], xmm1
movsd xmm0, qword [rax + 0x30]
movsd qword [rsp + 0x78], xmm0
movzx ecx, word [rax + 0x38]
mov word [rbp - 0x80], cx
lea rcx, [0x18017bd90]
movzx eax, byte [rax + 0x3a]
mov byte [rbp - 0x7e], al
call fcn.1800010e0
mov rcx, qword [0x18017bd78]
lea r9, [0x18017bd80]
mov r8d, eax
mov dword [0x18017bd84], eax
lea rdx, [0x18017bd90]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r15
call fcn.180146f60
mov eax, r13d
jmp 0x180139b52
xor eax, eax
add rsp, 0x488
pop r14
pop r12
pop rsi
pop rbp
ret