Function at 0x140018690
Capabilities:
Encode data using xor
Read .ini file

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x88]
sub rsp, 0x188
mov rax, qword [0x14025e900]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rbx, r8
test r8, r8
jne 0x1400188a3
mov eax, dword [0x14012e408]
xor ecx, ecx
cmp dword [0x14025e950], 2
movups xmm0, xmmword [str.y_DRXR]
mov dword [rsp + 0x50], eax
movzx eax, byte [0x14012e40c]
movups xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x54], al
jl 0x14001883c
movdqa xmm0, xmmword [str.0000000000000000]
lea rdx, [rsp + 0x44]
movdqa xmm5, xmmword [0x14012fd60]
movdqa xmm4, xmmword [0x14012fef0]
movdqa xmmword [rsp + 0x30], xmm0
mov r8d, dword [rsp + 0x30]
movaps xmmword [rsp + 0x170], xmm6
movdqa xmm6, xmmword [0x14012fd80]
nop dword [rax]
nop dword [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x14012fda0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14012fda0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x140018730
movaps xmm6, xmmword [rsp + 0x170]
cmp ecx, 0x15
jge 0x14001887d
movsxd rax, ecx
lea r8, [rsp + 0x40]
add r8, rax
nop word [rax + rax]
mov eax, 0x51eb851f
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x32
movzx eax, cl
inc ecx
sub al, dl
add al, 0x30
xor byte [r8 - 1], al
cmp ecx, 0x15
jl 0x140018850
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [rsp + 0x40]
call fcn.140002650
lea rdx, [0x140003460]
mov rcx, rax
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_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140018924
mov qword [rsp + 0x28], r9
lea r8, [0x14012e046]
lea r9, [rsp + 0x60]
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movzx eax, byte [0x14012e418]
lea r9, [rbx + 4]
movsd xmm0, qword [0x14012e410]
lea rdx, [rsp + 0x30]
movsd qword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x60]
xor byte [rsp + 0x31], 0x31
xor al, 0x38
xor byte [rsp + 0x32], 0x32
mov r8, rbx
xor byte [rsp + 0x33], 0x33
xor byte [rsp + 0x34], 0x34
xor byte [rsp + 0x35], 0x35
xor byte [rsp + 0x36], 0x36
xor byte [rsp + 0x37], 0x37
mov byte [rsp + 0x38], al
lea rax, [rbx + 8]
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x30], 0x25
call fcn.1400361a0
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14012a5c0
add rsp, 0x188
pop rbx
pop rbp
ret