Function at 0x180138320
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xd0
movdqa xmm0, xmmword [0x180160ae0]
movabs r12, 0x22b66fa51822a948
movdqa xmm1, xmmword [0x180160920]
mov rdi, r8
movabs r8, 0xa7d2b16832bd51e4
mov qword [rbp - 1], r12
movabs rsi, 0xa8ce5db91a41f821
mov qword [rbp - 9], r8
xor r13d, r13d
mov qword [rbp - 0x11], rsi
mov r15, rdx
mov rbx, rcx
mov r14, r9
mov edx, r13d
movdqu xmmword [rbp - 0x31], xmm0
mov rcx, r12
mov rax, r12
movdqu xmmword [rbp - 0x21], xmm1
imul rcx, rax
add r8, rsi
add rcx, r8
mov rax, rcx
shr rcx, 0x20
shl rax, 0x20
or rcx, rax
movzx eax, cl
xor al, byte [rbp + rdx - 0x31]
mov byte [rbp + rdx + 7], al
inc rdx
mov rax, rcx
cmp rdx, 0x1f
jb 0x1801383a0
movups xmm0, xmmword [rbp + 7]
mov byte [rbp + 0x26], r13b
lea r8, [rbp - 0x31]
movups xmm1, xmmword [rbp + 0x17]
mov edx, 0x100000
lea rcx, [0x18017bd90]
movups xmmword [rbp - 0x31], xmm0
movups xmmword [rbp - 0x21], xmm1
call fcn.1800010e0
mov rcx, qword [0x18017bd78]
lea r9, [0x18017bd80]
mov r8d, eax
mov dword [0x18017bd84], eax
lea rdx, [0x18017bd90]
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi]
test rcx, rcx
je 0x18013844d
mov rax, qword [rbx + 0xf0]
call rax
cmp eax, 0xffffffff
je 0x18013844d
mov r9, r14
mov r8, rdi
mov rcx, rbx
call fcn.180139110
test eax, eax
jne 0x1801384ef
movdqa xmm0, xmmword [0x180160950]
lea rdx, [rbp - 0x71]
movdqa xmm1, xmmword [0x1801618a0]
lea rcx, [rbp + 7]
xor eax, eax
mov word [rbp - 0x51], 0xadc
mov dword [rbp - 0x4e], eax
mov byte [rbp - 0x4a], al
movabs rax, 0xa7d2b16832bd51e4
mov qword [rbp - 0x41], rax
movdqu xmmword [rbp - 0x71], xmm0
mov byte [rbp - 0x4f], 0xa9
movdqu xmmword [rbp - 0x61], xmm1
mov qword [rbp - 0x49], rsi
mov qword [rbp - 0x39], r12
call fcn.180008f90
lea r8, [rbp - 0x31]
mov edx, 0x100000
lea rcx, [0x18017bd90]
movups xmm2, xmmword [rax]
movups xmmword [rbp - 0x31], xmm2
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp - 0x21], xmm0
mov eax, dword [rax + 0x20]
mov dword [rbp - 0x11], eax
call fcn.1800010e0
mov rcx, qword [0x18017bd78]
lea r9, [0x18017bd80]
mov r8d, eax
mov dword [0x18017bd84], eax
lea rdx, [0x18017bd90]
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
movdqa xmm0, xmmword [0x1801623d0]
movabs rax, 0xdbff2c404dd8d258
movdqa xmm1, xmmword [0x1801608f0]
movabs r12, 0x5c86a03627c64527
movabs r8, 0x6bb3cf1ef34a0030
mov qword [rbp - 0x51], r12
movdqu xmmword [rbp - 0x71], xmm0
mov qword [rbp - 0x49], r8
mov rcx, rax
movdqu xmmword [rbp - 0x61], xmm1
mov qword [rbp - 0x41], rax
mov rdx, r13
nop dword [rax]
imul rax, rcx
add r8, r12
add rax, r8
mov rcx, rax
shl rax, 0x20
shr rcx, 0x20
or rcx, rax
movzx eax, cl
xor al, byte [rbp + rdx - 0x71]
mov byte [rbp + rdx + 7], al
inc rdx
mov rax, rcx
cmp rdx, 0x1f
jb 0x180138540
movups xmm0, xmmword [rbp + 7]
mov byte [rbp + 0x26], r13b
lea r8, [rbp - 0x31]
movups xmm1, xmmword [rbp + 0x17]
mov edx, 0x100000
lea rcx, [0x18017bd90]
movups xmmword [rbp - 0x31], xmm0
movups xmmword [rbp - 0x21], xmm1
call fcn.1800010e0
mov rcx, qword [0x18017bd78]
lea r9, [0x18017bd80]
mov r8d, eax
mov dword [0x18017bd84], eax
lea rdx, [0x18017bd90]
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rsi, qword [rbp + 0x7f]
mov r9, r14
mov rdx, qword [r15 + 0x10]
mov r8, rdi
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call fcn.18013b220
test eax, eax
jne 0x180138690
movdqa xmm0, xmmword [0x1801624b0]
lea rdx, [rbp - 0x71]
movdqa xmm1, xmmword [0x180161ad0]
lea rcx, [rbp + 7]
xor eax, eax
mov word [rbp - 0x51], 0x38c0
mov dword [rbp - 0x4e], eax
mov byte [rbp - 0x4a], al
movabs rax, 0x6bb3cf1ef34a0030
mov qword [rbp - 0x41], rax
movabs rax, 0xdbff2c404dd8d258
mov qword [rbp - 0x39], rax
movdqu xmmword [rbp - 0x71], xmm0
mov byte [rbp - 0x4f], 0x75
movdqu xmmword [rbp - 0x61], xmm1
mov qword [rbp - 0x49], r12
call fcn.180008f90
lea r8, [rbp - 0x31]
mov edx, 0x100000
lea rcx, [0x18017bd90]
movups xmm2, xmmword [rax]
movups xmmword [rbp - 0x31], xmm2
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp - 0x21], xmm0
mov eax, dword [rax + 0x20]
mov dword [rbp - 0x11], eax
call fcn.1800010e0
mov rcx, qword [0x18017bd78]
lea r9, [0x18017bd80]
mov r8d, eax
mov dword [0x18017bd84], eax
lea rdx, [0x18017bd90]
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
movdqa xmm0, xmmword [0x180161c50]
movabs r12, 0x92fa271d3182863e
movdqa xmm1, xmmword [0x180160910]
movabs r15, 0xf5d06b73146ce1d
movabs r8, 0x4341773d02c032bc
mov qword [rbp - 0x51], r15
movdqu xmmword [rbp - 0x71], xmm0
mov qword [rbp - 0x49], r8
mov rcx, r12
movdqu xmmword [rbp - 0x61], xmm1
mov qword [rbp - 0x41], r12
mov rax, r12
mov rdx, r13
nop dword [rax]
imul rax, rcx
add r8, r15
add rax, r8
mov rcx, rax
shl rax, 0x20
shr rcx, 0x20
or rcx, rax
movzx eax, cl
xor al, byte [rbp + rdx - 0x71]
mov byte [rbp + rdx + 7], al
inc rdx
mov rax, rcx
cmp rdx, 0x1f
jb 0x1801386e0
movups xmm0, xmmword [rbp + 7]
mov byte [rbp + 0x26], r13b
lea r8, [rbp - 0x31]
movups xmm1, xmmword [rbp + 0x17]
mov edx, 0x100000
lea rcx, [0x18017bd90]
movups xmmword [rbp - 0x31], xmm0
movups xmmword [rbp - 0x21], xmm1
call fcn.1800010e0
mov rcx, qword [0x18017bd78]
lea r9, [0x18017bd80]
mov r8d, eax
mov dword [0x18017bd84], eax
lea rdx, [0x18017bd90]
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r9, r14
mov qword [rsp + 0x20], rsi
mov r8, rdi
mov rcx, rbx
call fcn.180139660
test eax, eax
jne 0x180138829
movdqa xmm0, xmmword [0x180161c10]
lea rdx, [rbp - 0x71]
movdqa xmm1, xmmword [0x180161070]
lea rcx, [rbp + 7]
movabs rax, 0x4341773d02c032bc
mov dword [rbp - 0x51], 0xec02b7a2
movdqu xmmword [rbp - 0x71], xmm0
mov qword [rbp - 0x41], rax
movdqu xmmword [rbp - 0x61], xmm1
mov dword [rbp - 0x4d], 0x7a76
mov qword [rbp - 0x49], r15
mov qword [rbp - 0x39], r12
call fcn.18000fed0
lea r8, [rbp - 0x31]
mov edx, 0x100000
movups xmm2, xmmword [rax]
movups xmmword [rbp - 0x31], xmm2
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp - 0x21], xmm0
mov ecx, dword [rax + 0x20]
mov dword [rbp - 0x11], ecx
movzx ecx, word [rax + 0x24]
mov word [rbp - 0xd], cx
lea rcx, [0x18017bd90]
movzx eax, byte [rax + 0x26]
mov byte [rbp - 0xb], 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], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret