Function at 0x140039f94
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r15
mov rbp, rsp
sub rsp, 0x50
cmp byte [0x14030a3cb], 0
mov rbx, rdx
movsd xmm0, qword [str.LYZ_Xn__D]
mov rdi, rcx
mov eax, dword [0x14030a3c8]
mov r15d, 0x24924925
movsd qword [rbp - 0x20], xmm0
mov dword [rbp - 0x18], eax
je 0x14003a004
xor r8d, r8d
lea r9, [rbp - 0x20]
mov eax, r15d
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x38
mov al, r8b
inc r8d
sub al, cl
add al, 0x39
xor byte [r9], al
inc r9
cmp r8d, 0xc
jl 0x140039fd6
cmp qword [rdi + 0x18], 0x10
mov r10, rdi
jb 0x14003a011
mov r10, qword [rdi]
cmp byte [0x14030a8c7], 0
mov rax, qword [str.NLZZZH_]
mov qword [rbp - 0x28], rax
je 0x14003a05a
xor r8d, r8d
lea r9, [rbp - 0x28]
mov eax, r15d
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x38
mov al, r8b
inc r8d
sub al, cl
add al, 0x39
xor byte [r9], al
inc r9
cmp r8d, 8
jl 0x14003a02c
cmp byte [0x14030a8c7], 0
mov rax, qword [str.NLZZZH_]
mov qword [rbp - 0x30], rax
je 0x14003a0a3
xor r9d, r9d
lea r8, [rbp - 0x30]
mov eax, r15d
mul r9d
mov eax, r9d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x38
mov al, r9b
inc r9d
sub al, cl
add al, 0x39
xor byte [r8], al
inc r8
cmp r9d, 8
jl 0x14003a075
lea r9, [rbp - 0x20]
mov r8, r10
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp byte [0x14030a951], 0
movups xmm0, xmmword [str.Q_IY_IZ__6_h._J]
movzx eax, word [0x14030a950]
mov word [rbp - 0x10], ax
movups xmmword [rbp - 0x20], xmm0
je 0x14003a10c
xor r8d, r8d
lea r9, [rbp - 0x20]
mov eax, r15d
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x38
mov al, r8b
inc r8d
sub al, cl
add al, 0x39
xor byte [r9], al
inc r9
cmp r8d, 0x12
jl 0x14003a0de
cmp qword [rbx + 0x18], 0x10
mov r8, rbx
jb 0x14003a119
mov r8, qword [rbx]
mov eax, dword [str._M____]
lea r10, [rbp - 0x30]
mov dword [rbp - 0x30], eax
xor r9d, r9d
movzx eax, word [0x14030afac]
mov word [rbp - 0x2c], ax
mov al, byte [0x14030afae]
mov byte [rbp - 0x2a], al
mov eax, r15d
mul r9d
mov eax, r9d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x38
mov al, r9b
inc r9d
sub al, cl
add al, 0x39
xor byte [r10], al
inc r10
cmp r9d, 7
jl 0x14003a13d
mov eax, dword [str._M____]
lea r10, [rbp - 0x28]
mov dword [rbp - 0x28], eax
xor r9d, r9d
movzx eax, word [0x14030afac]
mov word [rbp - 0x24], ax
mov al, byte [0x14030afae]
mov byte [rbp - 0x22], al
mov eax, r15d
mul r9d
mov eax, r9d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x38
mov al, r9b
inc r9d
sub al, cl
add al, 0x39
xor byte [r10], al
inc r10
cmp r9d, 7
jl 0x14003a18f
lea r9, [rbp - 0x20]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov rdx, qword [rdi + 0x18]
mov r15d, 0x1000
cmp rdx, 0x10
jb 0x14003a207
mov rcx, qword [rdi]
inc rdx
cmp rdx, r15
jb 0x14003a202
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003a26a
mov rcx, r8
call fcn.14005e360
and qword [rdi + 0x10], 0
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x14003a249
mov rcx, qword [rbx]
inc rdx
cmp rdx, r15
jb 0x14003a244
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003a26a
mov rcx, r8
call fcn.14005e360
and qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop rdi
pop rbp
ret
call fcn.14015e7b0
int3