Function at 0x18017a7a4
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x120
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r10, r8
mov r14, rdx
mov rdi, rcx
xor r11d, r11d
mov rdx, r8
call fcn.180174a10
mov r15d, eax
cmp byte [rdi + 0x409], r11b
je 0x18017a7ef
mov r12d, dword [r10 + 0xc]
jmp 0x18017a7f3
mov r12d, dword [r10 + 0x14]
mov r13d, r12d
cmp r13, qword [rdi + 0x68]
jbe 0x18017a816
mov dword [rdi + 0x440], 0x80006
mov qword [r14], r11
mov qword [r14 + 8], r11
mov qword [r14 + 0x10], r11
jmp 0x18017add4
lea rcx, [r15 + 2]
call fcn.180269800
mov qword [rsp + 0x68], rax
mov qword [rbp - 0x58], rax
mov ecx, 0x18
call fcn.1802690a8
mov rsi, rax
mov qword [rbp + 0x60], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov eax, 1
mov qword [rsp + 0x78], rax
mov dword [rsi + 8], eax
mov dword [rsi + 0xc], eax
lea rcx, vtable.std::_Ref_count_unsigned_char_.0
mov qword [rsi], rcx
mov rdx, qword [rsp + 0x68]
mov qword [rsi + 0x10], rdx
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rsi
and qword [rbp - 0x58], 0
mov edx, eax
xor ecx, ecx
call fcn.180269534
nop
lea r8, [r15 + 2]
xor edx, edx
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_memset]
xor eax, eax
mov dword [rbp + 0x78], eax
mov qword [rsp + 0x60], rax
mov dword [rbp + 0x60], eax
mov dword [rsp + 0x58], eax
test r15, r15
je 0x18017ad88
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rdi + 0x409], 0
jne 0x18017a90e
test r12d, r12d
je 0x18017a908
mov rax, r13
shr rax, 0x20
mov dword [rsp + 0x5c], eax
xor r9d, r9d
lea r8, [rsp + 0x5c]
mov edx, r12d
mov rcx, qword [rdi + 0x400]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r12d, eax
mov dword [rbp + 0x60], eax
cmp eax, 0xffffffff
je 0x18017a8f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x18017a920
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov r8d, 0x866
jmp 0x18017ad93
mov r12d, dword [rbp + 0x60]
jmp 0x18017a920
mov r12d, dword [rdi + 0x470]
mov dword [rbp + 0x60], r12d
mov qword [rdi + 0x470], r13
cmp byte [rdi + 0x409], 0
je 0x18017acde
mov rcx, qword [rdi + 0x470]
mov rdx, qword [rdi + 0x3f0]
add rdx, rcx
mov qword [rsp + 0x70], rdx
mov r12, qword [rdi + 0x478]
add r12, rcx
mov ecx, dword [0x1802bccdc]
mov rax, qword gs:[0x58]
mov r8d, 4
mov rcx, qword [rax + rcx*8]
mov eax, dword [r8 + rcx]
cmp dword [0x1802c50c8], eax
jle 0x18017ab9c
lea rcx, [0x1802c50c8]
call fcn.1802696f0
cmp dword [0x1802c50c8], 0xffffffff
jne 0x18017ab97
lea rax, [rbp - 0x50]
mov qword [rbp - 0x28], rax
mov dword [rsp + 0x40], 0x27
mov byte [rsp + 0x44], 0x75
mov byte [rsp + 0x45], 0x42
mov byte [rsp + 0x46], 0x46
mov byte [rsp + 0x47], 0x43
mov byte [rsp + 0x48], 0x77
mov byte [rsp + 0x49], 0x55
mov byte [rsp + 0x4a], 0x48
mov byte [rsp + 0x4b], 0x44
mov byte [rsp + 0x4c], 0x42
mov byte [rsp + 0x4d], 0x54
mov byte [rsp + 0x4e], 0x54
mov byte [rsp + 0x4f], 0x6a
mov byte [rsp + 0x50], 0x42
mov byte [rsp + 0x51], 0x4a
mov byte [rsp + 0x52], 0x48
mov byte [rsp + 0x53], 0x55
mov byte [rsp + 0x54], 0x5e
xor eax, eax
mov byte [rsp + 0x55], al
mov al, byte [rsp + 0x44]
xor r9d, r9d
mov edx, r9d
mov al, byte [rsp + rdx + 0x44]
mov ecx, dword [rsp + 0x40]
xor cl, al
mov byte [rsp + rdx + 0x44], cl
inc rdx
cmp rdx, 0x11
jb 0x18017aa04
mov byte [rsp + 0x55], r9b
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r9
mov qword [rbp - 0x38], r9
lea rax, [rsp + 0x44]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r9b
jne 0x18017aa38
lea rdx, [rsp + 0x44]
lea rcx, [rbp - 0x50]
call fcn.18007b70c
nop
mov dword [rsp + 0x30], 0x7d
mov byte [rsp + 0x34], 0x16
mov byte [rsp + 0x35], 0x18
mov byte [rsp + 0x36], 0xf
mov byte [rsp + 0x37], 0x13
mov byte [rsp + 0x38], 0x18
mov byte [rsp + 0x39], 0x11
mov byte [rsp + 0x3a], 0x4e
mov byte [rsp + 0x3b], 0x4f
xor eax, eax
mov byte [rsp + 0x3c], al
mov al, byte [rsp + 0x34]
xor r9d, r9d
mov edx, r9d
mov al, byte [rsp + rdx + 0x34]
mov ecx, dword [rsp + 0x30]
xor cl, al
mov byte [rsp + rdx + 0x34], cl
inc rdx
cmp rdx, 8
jb 0x18017aa90
mov byte [rsp + 0x3c], r9b
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r9
mov qword [rbp - 0x68], r9
lea rax, [rsp + 0x34]
or r8, 0xffffffffffffffff
mov rbx, qword [rsp + 0x68]
inc r8
cmp byte [rax + r8], r9b
jne 0x18017aac9
lea rdx, [rsp + 0x34]
lea rcx, [rbp - 0x80]
call fcn.18007b70c
nop
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 8]
call fcn.180188b20
nop
and qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp - 0x50]
mov rdx, rax
lea rcx, [0x1802c4c50]
call fcn.180180580
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x18017ab4a
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18017ab45
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18017ab45
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180269534
and qword [rbp - 0x70], 0
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], 0
xor edx, edx
lea r8d, [rdx + 9]
lea rcx, [rsp + 0x34]
call qword [sym.imp.VCRUNTIME140.dll_memset]
nop
xor edx, edx
lea r8d, [rdx + 0x12]
lea rcx, [rsp + 0x44]
call qword [sym.imp.VCRUNTIME140.dll_memset]
lea rcx, [0x18027dd50]
call fcn.18026951c
nop
lea rcx, [0x1802c50c8]
call fcn.180269690
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rdi + 0x478]
cmp r12, rcx
jb 0x18017abc7
add rcx, qword [rdi + 0x68]
cmp r12, rcx
ja 0x18017abc7
mov r8, r15
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov qword [rsp + 0x60], r15
jmp 0x18017ac8a
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8, r15
mov rdx, r12
mov rcx, rdi
call fcn.18017531c
cmp byte [rdi + 0x48a], 0
je 0x18017ac04
mov r8, r15
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov qword [rsp + 0x60], r15
jmp 0x18017ac33
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov r9, rbx
mov r8, r12
mov rdx, qword [rdi + 0x400]
lea rcx, [0x1802c4c50]
call fcn.1801810bc
test eax, eax
setne byte [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rax, [rbp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x58]
mov r8, r15
mov rdx, r12
mov rcx, rdi
call fcn.18017531c
cmp byte [rsp + 0x78], 0
jne 0x18017ac6b
mov r8d, 0x8bd
mov edx, ebx
jmp 0x18017ad93
cmp r15, qword [rsp + 0x60]
je 0x18017ac82
mov edx, 0x80006
mov r8d, 0x8c1
jmp 0x18017ad93
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r12d, dword [rbp + 0x60]
cmp byte [rdi + 0x409], 0
jne 0x18017ad22
test r13, r13
je 0x18017ad2c
xor r9d, r9d
lea r8, [rsp + 0x5c]
mov edx, r12d
mov rcx, qword [rdi + 0x400]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x18017accb
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x18017ad2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov r8d, 0x8e2
jmp 0x18017ad93
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x78]
mov r8d, r15d
mov rdx, rbx
mov rcx, qword [rdi + 0x400]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18017ad78
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18017ad78
mov eax, dword [rbp + 0x78]
cmp r15, rax
je 0x18017ac8e
mov edx, 0x80006
mov r8d, 0x8d5
jmp 0x18017ad93
mov eax, r12d
mov qword [rdi + 0x470], rax
cmp byte [rdi + 4], 0
je 0x18017ad39
add qword [rdi + 0x470], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
and qword [r14], 0
and qword [r14 + 8], 0
and qword [r14 + 0x10], 0
mov rdx, r15
mov rcx, r14
call fcn.1800aea1c
mov rbx, qword [r14]
mov r8, r15
mov rdx, qword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_memmove]
lea rax, [r15 + rbx]
mov qword [r14 + 8], rax
jmp 0x18017ada9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov r8d, 0x8d1
jmp 0x18017ad93
mov edx, 0x57
mov r8d, 0x849
mov rcx, rdi
call fcn.1801728a8
and qword [r14], 0
and qword [r14 + 8], 0
and qword [r14 + 0x10], 0
or eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x18017add4
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rsi + 0xc], eax
cmp eax, 1
jne 0x18017add4
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + VariantCopy]
mov rax, r14
mov rbx, qword [rsp + 0x168]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret