Function at 0x180175c40
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4f]
sub rsp, 0xe0
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r12, r9
mov rdi, r8
mov r13, rdx
mov rbx, rcx
xor r14d, r14d
mov qword [rbp - 0x61], r14
mov dword [rbp + 0x77], r14d
mov dword [rbp + 0x57], r14d
mov esi, r14d
mov dword [rbp + 0x7f], r14d
mov dword [rbp - 0x65], r14d
cmp byte [rcx + 3], r14b
je 0x180175ca7
mov edx, 0x8000b
mov r8d, 0x903
jmp 0x180176154
test r13, r13
je 0x180176149
test rdi, rdi
je 0x180176149
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rbx + 0x409], r14b
jne 0x180175d1a
test r12, r12
je 0x180175d2a
mov rax, r12
shr rax, 0x20
mov dword [rbp + 0x57], eax
xor r9d, r9d
lea r8, [rbp + 0x57]
mov edx, r12d
mov rcx, qword [rbx + 0x400]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
mov dword [rbp + 0x7f], eax
cmp eax, 0xffffffff
je 0x180175d04
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x180175d2a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x922
mov edx, eax
mov rcx, rbx
jmp 0x180176154
mov esi, dword [rbx + 0x470]
mov dword [rbp + 0x7f], esi
mov qword [rbx + 0x470], r12
cmp byte [rbx + 0x409], r14b
je 0x1801760d3
cmp byte [rbx + 4], r14b
je 0x1801760d3
mov rcx, qword [rbx + 0x470]
mov r14, qword [rbx + 0x3f0]
add r14, rcx
mov qword [rbp - 0x59], r14
mov r15, qword [rbx + 0x478]
add r15, rcx
mov ecx, dword [0x1802bccdc]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1802c4c38], ecx
jle 0x180175f79
lea rcx, [0x1802c4c38]
call fcn.1802696f0
or rsi, 0xffffffffffffffff
cmp dword [0x1802c4c38], esi
jne 0x180175f79
lea rax, [rbp - 0x31]
mov qword [rbp - 9], rax
mov dword [rbp - 0x7d], 8
mov byte [rbp - 0x79], 0x5f
mov byte [rbp - 0x78], 0x7a
mov byte [rbp - 0x77], 0x61
mov byte [rbp - 0x76], 0x7c
mov byte [rbp - 0x75], 0x6d
mov byte [rbp - 0x74], 0x58
mov byte [rbp - 0x73], 0x7a
mov byte [rbp - 0x72], 0x67
mov byte [rbp - 0x71], 0x6b
mov byte [rbp - 0x70], 0x6d
mov byte [rbp - 0x6f], 0x7b
mov byte [rbp - 0x6e], 0x7b
mov byte [rbp - 0x6d], 0x45
mov byte [rbp - 0x6c], 0x6d
mov byte [rbp - 0x6b], 0x65
mov byte [rbp - 0x6a], 0x67
mov byte [rbp - 0x69], 0x7a
mov byte [rbp - 0x68], 0x71
xor eax, eax
mov byte [rbp - 0x67], al
mov al, byte [rbp - 0x79]
xor r9d, r9d
mov edx, r9d
mov al, byte [rbp + rdx - 0x79]
mov ecx, dword [rbp - 0x7d]
xor cl, al
mov byte [rbp + rdx - 0x79], cl
inc rdx
cmp rdx, 0x12
jb 0x180175e08
mov byte [rbp - 0x67], r9b
xorps xmm0, xmm0
movups xmmword [rbp - 0x31], xmm0
mov qword [rbp - 0x21], r9
mov qword [rbp - 0x19], r9
lea rax, [rbp - 0x79]
mov r8, rsi
inc r8
cmp byte [rax + r8], r9b
jne 0x180175e38
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x31]
call fcn.18007b70c
nop
mov byte [rsp + 0x30], 0x6e
mov byte [rsp + 0x31], 0x68
mov byte [rsp + 0x32], 0x75
mov byte [rsp + 0x33], 0x71
mov byte [rsp + 0x34], 0x68
mov byte [rsp + 0x35], 0x6f
mov byte [rsp + 0x36], 0x36
mov byte [rsp + 0x37], 0x35
mov byte [rsp + 0x38], 0
mov al, byte [rsp + 0x30]
xor ecx, ecx
mov al, byte [rsp + rcx + 0x30]
sub al, 3
mov byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 8
jb 0x180175e82
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x41], xmm1
lea rax, [rsp + 0x30]
inc rsi
cmp byte [rax + rsi], 0
jne 0x180175ea9
mov r8, rsi
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x51]
call fcn.18007b70c
nop
lea rdx, [rbp - 0x51]
lea rcx, [rbp + 7]
call fcn.180188b20
nop
and qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp - 0x31]
mov rdx, rax
lea rcx, [0x1802c49f0]
call fcn.18017f980
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x180175f2d
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180175f28
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180175f28
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180269534
movdqa xmm0, xmmword [0x180280de0]
movdqu xmmword [rbp - 0x41], xmm0
mov byte [rbp - 0x51], 0
xor edx, edx
lea r8d, [rdx + 9]
lea rcx, [rsp + 0x30]
call qword [sym.imp.VCRUNTIME140.dll_memset]
nop
xor edx, edx
lea r8d, [rdx + 0x13]
lea rcx, [rbp - 0x79]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea rcx, [0x18027dd5c]
call fcn.18026951c
nop
lea rcx, [0x1802c4c38]
call fcn.180269690
mov rcx, qword [rbx + 0x478]
cmp r15, rcx
ja 0x180175f92
add rcx, qword [rbx + 0x68]
cmp r15, rcx
jae 0x18017604d
lea rax, [rbp - 0x65]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8, rdi
mov rdx, r15
mov rcx, rbx
call fcn.18017531c
cmp byte [rbx + 0x48a], 0
je 0x180175fd0
mov r8, rdi
mov rdx, r13
mov rcx, r15
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov qword [rbp - 0x61], rdi
mov r14b, 1
jmp 0x180175ff6
lea rax, [rbp - 0x61]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9, r13
mov r8, r15
mov rdx, qword [rbx + 0x400]
call fcn.1801804bc
test eax, eax
setne r14b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea rax, [rbp + 0x77]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp - 0x65]
mov r8, rdi
mov rdx, r15
mov rcx, rbx
call fcn.18017531c
test r14b, r14b
jne 0x18017602b
mov r8d, 0x97d
mov edx, esi
jmp 0x180175d12
cmp rdi, qword [rbp - 0x61]
je 0x180176041
mov edx, 0x80006
mov r8d, 0x981
jmp 0x180175d12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rbp - 0x59]
mov r8, qword [rbx + 0x3f0]
cmp r14, r8
ja 0x180176065
mov rdx, qword [rbx + 0x68]
add rdx, r8
cmp r14, rdx
jae 0x180176081
cmp r8, qword [rbx + 0x478]
je 0x18017607d
mov r8, rdi
mov rdx, r13
mov rcx, r14
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov qword [rbp - 0x61], rdi
mov esi, dword [rbp + 0x7f]
xor r14d, r14d
cmp byte [rbx + 0x409], r14b
jne 0x18017611e
test r12, r12
je 0x180176127
xor r9d, r9d
lea r8, [rbp + 0x57]
mov edx, esi
mov rcx, qword [rbx + 0x400]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1801760c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x180176127
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x9a4
jmp 0x180175d10
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x77]
mov r8d, edi
mov rdx, r13
mov rcx, qword [rbx + 0x400]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbx + 0x400], r14
jne 0x180176138
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180176138
mov eax, dword [rbp + 0x77]
cmp rdi, rax
je 0x180176087
mov edx, 0x80007
mov r8d, 0x997
jmp 0x180175d12
mov ecx, esi
mov qword [rbx + 0x470], rcx
cmp byte [rbx + 4], r14b
je 0x180176134
add qword [rbx + 0x470], rdi
mov al, 1
jmp 0x18017615b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x993
jmp 0x180175d10
mov edx, 0x57
mov r8d, 0x908
call fcn.1801728a8
xor al, al
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret