Function at 0x18013a560
Capabilities:
Encode data using xor
Set current directory
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r15
lea rbp, [rsp - 0x480]
sub rsp, 0x580
movdqa xmm0, xmmword [0x1801625f0]
movabs rax, 0xf5d06b73146ce1d
movdqa xmm1, xmmword [0x1801604f0]
mov rbx, rdx
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x40]
movabs rax, 0x865fea614b33c3ea
mov rsi, rcx
mov qword [rsp + 0x68], rax
lea rcx, [rbp]
movabs rax, 0x483bca8e917b81f3
mov qword [rsp + 0x70], rax
movdqu xmmword [rsp + 0x40], xmm0
movdqu xmmword [rsp + 0x50], xmm1
call fcn.18000e890
mov rax, qword [rsi + 0x1a0]
lea r9, [rbp + 0x4a0]
xor r15d, r15d
lea rcx, [0x18014d570]
xor r8d, r8d
mov qword [rbp + 0x4a0], r15
xor edx, edx
call rax
test eax, eax
jns 0x18013a729
call qword [sym.imp.KERNEL32.dll_GetLastError]
movdqa xmm0, xmmword [str._b.H_]
movabs rcx, 0x64c9ae0b5cd0a813
movdqa xmm1, xmmword [0x180161260]
mov r10d, eax
xor eax, eax
mov dword [rbp - 0x20], 0xbcfbcba4
movdqu xmmword [rbp - 0x50], xmm0
movabs r9, 0x5c86a03627c64527
movabs r8, 0x253a564a0b83d27a
movdqa xmm0, xmmword [0x1801611d0]
mov edx, r15d
mov word [rbp - 0x1b], ax
mov byte [rbp - 0x19], al
mov rax, rcx
movdqu xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x1c], 0xe7
movdqu xmmword [rbp - 0x40], xmm1
mov qword [rbp - 0x18], r9
mov qword [rbp - 0x10], r8
mov qword [rbp - 8], rcx
nop word [rax + rax]
imul rax, rcx
add r8, r9
add rax, r8
mov rcx, rax
shl rax, 0x20
shr rcx, 0x20
or rcx, rax
movzx eax, cl
xor al, byte [rbp + rdx - 0x50]
mov byte [rsp + rdx + 0x40], al
inc rdx
mov rax, rcx
cmp rdx, 0x35
jb 0x18013a680
movups xmm0, xmmword [rsp + 0x40]
mov eax, dword [rsp + 0x70]
lea r8, [rsp + 0x78]
movups xmm1, xmmword [rsp + 0x50]
mov dword [rbp - 0x58], eax
mov r9d, r10d
movups xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x75], r15b
mov edx, 0x100000
movups xmm0, xmmword [rsp + 0x60]
movzx eax, word [rsp + 0x74]
lea rcx, [0x18017bd90]
movups xmmword [rbp - 0x78], xmm1
mov word [rbp - 0x54], ax
movups xmmword [rbp - 0x68], xmm0
call fcn.1800010e0
mov rcx, qword [0x18017bd78]
lea r9, [0x18017bd80]
mov r8d, eax
mov dword [0x18017bd84], eax
lea rdx, [0x18017bd90]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
jmp 0x18013ad0f
xor edx, edx
mov qword [rsp + 0x5a8], rdi
mov r8d, 0x208
lea rcx, [rbp + 0x270]
call fcn.18014b5d0
xor edx, edx
lea rcx, [rbp + 0x60]
mov r8d, 0x208
call fcn.18014b5d0
mov r9, qword [rbp + 0x4a0]
lea rdi, [0x18015f234]
lea r8, str._ws_ws_ws
mov qword [rsp + 0x28], rbx
mov edx, 0x104
mov qword [rsp + 0x20], rdi
lea rcx, [rbp + 0x60]
call fcn.180001080
movabs rcx, 0x64c9ae0b5cd0a813
mov dword [rsp + 0x78], 0x921bdf5d
mov qword [rbp - 0x60], rcx
lea rdx, [rsp + 0x78]
xor eax, eax
mov dword [rsp + 0x7c], 0x5202f81a
movabs r9, 0x5c86a03627c64527
mov dword [rbp - 0x80], 0x8d75d60e
movabs r8, 0x253a564a0b83d27a
mov dword [rbp - 0x7c], 0xb8924809
lea rcx, [rbp]
mov dword [rbp - 0x78], 0xcd30a19d
mov dword [rbp - 0x74], eax
mov qword [rbp - 0x70], r9
mov qword [rbp - 0x68], r8
call fcn.180011820
mov r9, qword [rbp + 0x4a0]
lea r8, [0x18015f238]
mov edx, 0x104
movups xmm1, xmmword [rax]
movups xmmword [rbp + 0x30], xmm1
mov ecx, dword [rax + 0x10]
mov dword [rbp + 0x40], ecx
lea rcx, [rbp + 0x270]
movzx eax, word [rax + 0x14]
mov word [rbp + 0x44], ax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
call fcn.180001080
test eax, eax
jg 0x18013a938
call qword [sym.imp.KERNEL32.dll_GetLastError]
movdqa xmm0, xmmword [0x180161380]
movabs rcx, 0x4767e9aaaa72800a
movdqa xmm1, xmmword [0x180160e70]
movabs r9, 0xf0cec3b5d447d029
movdqu xmmword [rbp - 0x50], xmm0
movabs r8, 0xc959caf9a23159aa
mov r10d, eax
movdqa xmm0, xmmword [0x180160930]
mov rdx, r15
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r9
mov rax, rcx
movdqu xmmword [rbp - 0x40], xmm1
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x10], rcx
nop dword [rax]
nop dword [rax + rax]
imul rax, rcx
add r8, r9
add rax, r8
mov rcx, rax
shl rax, 0x20
shr rcx, 0x20
or rcx, rax
movzx eax, cl
xor al, byte [rbp + rdx - 0x50]
mov byte [rsp + rdx + 0x78], al
inc rdx
mov rax, rcx
cmp rdx, 0x2f
jb 0x18013a8a0
movups xmm0, xmmword [rsp + 0x78]
mov byte [rbp - 0x59], r15b
mov r9d, r10d
movups xmm1, xmmword [rbp - 0x78]
lea r8, [rsp + 0x40]
mov edx, 0x100000
movups xmmword [rsp + 0x40], xmm0
lea rcx, [0x18017bd90]
movups xmm0, xmmword [rbp - 0x68]
movups xmmword [rsp + 0x50], xmm1
movups xmmword [rsp + 0x60], xmm0
call fcn.1800010e0
mov rcx, qword [0x18017bd78]
lea r9, [0x18017bd80]
mov r8d, eax
mov dword [0x18017bd84], eax
lea rdx, [0x18017bd90]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
jmp 0x18013ad07
mov rbx, qword [rbp + 0x4a0]
test rbx, rbx
je 0x18013aa18
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 0x18013aa18
movdqa xmm0, xmmword [0x1801620a0]
lea rdx, [rsp + 0x40]
movdqa xmm1, xmmword [0x180160500]
lea rcx, [rbp + 0x30]
movabs rax, 0x8488351c950cfdf5
mov qword [rsp + 0x60], rax
movabs rax, 0xffd248db3b5cd2f8
mov qword [rsp + 0x68], rax
movabs rax, 0x2b7ae7f98d26cfe2
mov qword [rsp + 0x70], rax
movdqu xmmword [rsp + 0x40], xmm0
movdqu xmmword [rsp + 0x50], xmm1
call fcn.1800084e0
lea r8, [rbp]
mov edx, 0x100000
movups xmm1, xmmword [rax]
movups xmmword [rbp], xmm1
movsd xmm0, qword [rax + 0x10]
movsd qword [rbp + 0x10], xmm0
mov ecx, dword [rax + 0x18]
mov dword [rbp + 0x18], ecx
lea rcx, [0x18017bd90]
movzx eax, word [rax + 0x1c]
mov word [rbp + 0x1c], 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], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rsi + 0xf0]
lea rcx, [rbp + 0x270]
mov qword [rsp + 0x5b0], r14
call rax
cmp eax, 0xffffffff
je 0x18013acfd
mov rax, qword [rsi + 0x18]
lea rcx, str.PATH
xor r8d, r8d
xor edx, edx
call rax
test eax, eax
je 0x18013acfd
mov rdi, 0xffffffffffffffff
lea rdx, [rbp + 0x60]
mov rcx, rdi
inc rcx
cmp word [rdx + rcx*2], r15w
jne 0x18013aa61
add ecx, eax
lea r14d, [rcx*2 + 0x14]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, r14d
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x18013acfd
mov r8d, r14d
lea rcx, str.PATH
mov rdx, rax
call qword [rsi + 0x18]
mov rcx, rdi
nop dword [rax + rax]
cmp word [rbx + rcx*2 + 2], r15w
lea rcx, [rcx + 1]
jne 0x18013aab0
cmp word [rbx + rcx*2 - 2], 0x3b
jne 0x18013aadc
lea rax, [rbp + 0x60]
nop dword [rax + rax]
inc rdi
cmp word [rax + rdi*2], r15w
jne 0x18013aad0
jmp 0x18013ab0a
lea rcx, [rbx - 2]
cmp word [rcx + 2], r15w
lea rcx, [rcx + 2]
jne 0x18013aae0
mov eax, dword [0x18015f264]
mov dword [rcx], eax
lea rax, [rbp + 0x60]
nop word [rax + rax]
inc rdi
cmp word [rax + rdi*2], r15w
jne 0x18013ab00
mov r8, rdi
lea rdx, [rbp + 0x60]
mov rcx, rbx
call fcn.180110790
mov rdx, rbx
lea rcx, str.PATH
call qword [rsi + 0x20]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x18013ac12
call qword [sym.imp.KERNEL32.dll_GetLastError]
movdqa xmm0, xmmword [0x1801612a0]
lea rdx, [rbp - 0x50]
movdqa xmm1, xmmword [0x180160a60]
movabs rcx, 0x4767e9aaaa72800a
movdqu xmmword [rbp - 0x50], xmm0
movabs r9, 0xf0cec3b5d447d029
movabs r8, 0xc959caf9a23159aa
movdqa xmm0, xmmword [0x180161900]
mov ebx, eax
mov qword [rbp - 8], rcx
lea rcx, [rsp + 0x78]
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0x3abee3ee
movdqu xmmword [rbp - 0x40], xmm1
mov qword [rbp - 0x18], r9
mov qword [rbp - 0x10], r8
call fcn.18000b1a0
mov r9d, ebx
lea r8, [rsp + 0x40]
mov edx, 0x100000
movups xmm2, xmmword [rax]
movups xmmword [rsp + 0x40], xmm2
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rsp + 0x60], xmm1
mov ecx, dword [rax + 0x30]
mov dword [rsp + 0x70], ecx
lea rcx, [0x18017bd90]
movzx eax, byte [rax + 0x34]
mov byte [rsp + 0x74], 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], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rsi + 0x40]
lea rcx, [rbp + 0x270]
call rax
mov rdi, rax
test rax, rax
jne 0x18013acf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movdqa xmm0, xmmword [0x180161140]
lea rdx, [rbp - 0x50]
movdqa xmm1, xmmword [0x180160f40]
lea rcx, [rbp + 0x30]
mov ebx, eax
movabs rax, 0xa7ec59b91e41e411
mov qword [rbp - 0x20], rax
movabs rax, 0x1102bccb1f38898a
mov qword [rbp - 0x18], rax
movabs rax, 0xba9d839a02d57d6b
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x10], rax
movdqa xmm0, xmmword [0x1801604a0]
movdqu xmmword [rbp - 0x40], xmm1
movdqu xmmword [rbp - 0x30], xmm0
call fcn.18000eec0
mov r9d, ebx
lea r8, [rbp]
mov edx, 0x100000
movups xmm2, xmmword [rax]
movups xmmword [rbp], xmm2
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp + 0x10], xmm0
movsd xmm1, qword [rax + 0x20]
movsd qword [rbp + 0x20], xmm1
mov ecx, dword [rax + 0x28]
mov dword [rbp + 0x28], ecx
lea rcx, [0x18017bd90]
movzx eax, byte [rax + 0x2c]
mov byte [rbp + 0x2c], 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], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, rdi
jmp 0x18013acff
xor eax, eax
mov r14, qword [rsp + 0x5b0]
mov rdi, qword [rsp + 0x5a8]
mov rbx, qword [rsp + 0x5b8]
add rsp, 0x580
pop r15
pop rsi
pop rbp
ret