Function at 0x180068ad0
Capabilities:
Encode data using xor
Query environment variable

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2d0]
sub rsp, 0x3d0
movaps xmmword [rsp + 0x3c0], xmm6
mov rax, qword [0x180085010]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov rdi, r8
mov qword [rsp + 0x38], r8
mov r14, rdx
mov r13, rcx
mov qword [rbp - 0x78], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov r8d, 0xff
lea rdx, [rbp + 0x1b0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movsd xmm0, qword [str.R_JDAR_T]
movsd qword [rsp + 0x28], xmm0
mov eax, dword [0x18007ab30]
mov dword [rsp + 0x30], eax
movzx eax, byte [0x18007ab34]
mov byte [rsp + 0x34], al
mov r8d, esi
cmp dword [0x180085018], 2
jl 0x180068c88
movdqa xmm4, xmmword [0x18007c2d0]
mov eax, 4
movd xmm6, eax
mov eax, 0x1f
movd xmm5, eax
movdqa xmm2, xmmword [0x18007c1b0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.4444]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18007c270]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.1111111111111111]
movd xmm0, dword [str.R_JDAR_T]
xorps xmm2, xmm0
movd dword [rsp + 0x28], xmm2
movdqa xmm3, xmmword [0x18007c1f0]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.4444]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x18007c270]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.1111111111111111]
movd xmm0, dword [rsp + 0x2c]
xorps xmm2, xmm0
movd dword [rsp + 0x2c], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rsp + 0x28]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4ec4ec4f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xd
jl 0x180068ca0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, 1
lea rdx, [0x180079ed0]
lea rcx, [rsp + 0x40]
call fcn.18006d990
nop
mov eax, dword [0x18007ad98]
mov dword [rbp - 0x80], eax
movzx eax, byte [0x18007ad9c]
mov byte [rbp - 0x80], 0x54
xor byte [rbp - 0x7f], 0x32
xor byte [rbp - 0x7e], 0x33
xor byte [rbp - 0x7d], 0x34
xor al, 0x35
mov byte [rbp - 0x7c], al
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea r8, [rsp + 0x40]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.18006d3e0
nop
lea rcx, [rsp + 0x28]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rcx + r8], 0
jne 0x180068d50
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.18006bed0
xorps xmm0, xmm0
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], rsi
mov qword [r13 + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [r13], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r13 + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov dword [rsp + 0x20], 3
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x180068ddf
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180068dda
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180068dda
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800721e4
movdqa xmm0, xmmword [0x18007c160]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x180068e32
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180068e2d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180068e2d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800721e4
movdqa xmm0, xmmword [0x18007c160]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0xa0]
call sub.VCRUNTIME140.dll_memset
lea r12, [0x180000000]
lea rax, [r12 + 0x7b4c0]
mov qword [rbp + 0xa0], rax
lea rcx, [rbp + 0x150]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x20], 7
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0xa0]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xa0], rax
mov rax, qword [rbp + 0xa0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x9c], edx
lea rcx, [rbp + 0xb0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea r15, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0xb0], r15
mov byte [rbp + 0x12c], 0
mov byte [rbp + 0x121], 0
lea rcx, [rbp + 0xb0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x130], rsi
mov rax, qword [0x18021b3b0]
mov qword [rbp + 0x124], rax
mov qword [rbp + 0x118], rsi
mov r8d, 0x21
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp + 0xb0]
call fcn.18006c2e0
test rax, rax
jne 0x180068f65
mov rax, qword [rbp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xa0]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
mov rbx, r13
cmp qword [r13 + 0x18], 0x10
jb 0x180068f84
mov rbx, qword [r13]
lea rax, [r12 + 0x7aea8]
mov qword [rbp - 0x70], rax
lea rcx, [rbp + 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x20], 0xf
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
mov qword [rbp - 0x68], r15
mov byte [rbp + 0x14], 0
mov byte [rbp + 9], 0
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x18], rsi
mov rax, qword [0x18021b3b0]
mov qword [rbp + 0xc], rax
mov qword [rbp], rsi
mov r8d, 0x22
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.18006c2e0
test rax, rax
jne 0x180069045
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x70]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rdx, [rbp + 0xb0]
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
lea rcx, [rbp - 0x68]
call fcn.18006c220
test rax, rax
jne 0x180069080
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x70]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, r13
cmp qword [r13 + 0x18], 0x10
jb 0x18006908e
mov rcx, qword [r13]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r12, rax
movsxd rax, dword [r14 + 0x3c]
mov r15d, dword [rax + r14 + 0xf0]
add r15, 4
add r15, r14
mov ecx, dword [r15]
test ecx, ecx
je 0x180069162
nop word [rax + rax]
mov eax, ecx
add rax, r14
mov r8, rdi
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1800690e3
inc rax
test ecx, ecx
jne 0x1800690d0
test edx, edx
jne 0x180069153
mov esi, dword [r15 + 0xc]
add rsi, r14
mov ebx, dword [r15 + 8]
add rbx, r14
mov rdi, qword [rsi]
test rdi, rdi
je 0x18006914e
js 0x18006913e
lea r9, [rbp - 0x78]
mov edx, 8
lea r8d, [rdx + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rdx, [r14 + 2]
add rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
lea r9, [rbp - 0x80]
mov r8d, dword [rbp - 0x78]
mov edx, 8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
add rbx, 8
add rsi, 8
mov rdi, qword [rsi]
test rdi, rdi
jne 0x1800690fd
mov rdi, qword [rsp + 0x38]
add r15, 0x20
mov ecx, dword [r15]
test ecx, ecx
jne 0x1800690c0
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call fcn.18006bd20
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x38]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rcx, qword [rbp + 0xa0]
movsxd rdx, dword [rcx + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rdx + 0xa0], rax
mov rcx, qword [rbp + 0xa0]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0xb0]
mov dword [rbp + rdx + 0x9c], r8d
lea rcx, [rbp + 0xb0]
call fcn.18006bd20
lea rcx, [rbp + 0xb8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x150]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rax, r13
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.180071c90
mov rbx, qword [rsp + 0x428]
movaps xmm6, xmmword [rsp + 0x3c0]
add rsp, 0x3d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret