Function at 0x140059e50
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14018c080]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, rdx
mov r15, rcx
mov qword [rbp - 0x10], rdx
lea rcx, str.load_response_data
call qword [sym.imp.VMProtectSDK64.dll_VMProtectBeginUltra]
mov rax, qword [str.KLYXYNM_]
mov qword [rbp - 0x40], rax
xor ebx, ebx
mov r14d, dword [reloc.WS2_32.dll_accept]
cmp byte [0x14016e017], bl
je 0x140059ff3
cmp r14d, 2
jl 0x140059fac
movdqa xmm4, xmmword [0x140176370]
movdqa xmm2, xmmword [0x140176070]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140176100]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401761c0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140176210]
movd xmm0, dword [rbp - 0x40]
xorps xmm2, xmm0
movd dword [rbp - 0x40], xmm2
movdqa xmm3, xmmword [0x140176090]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140176100]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401761c0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140176210]
movd xmm0, dword [rbp - 0x3c]
xorps xmm2, xmm0
movd dword [rbp - 0x3c], xmm2
jmp 0x140059ff3
lea r9, [rbp - 0x40]
mov r8d, ebx
nop dword [rax]
nop word [rax + rax]
mov eax, 0x8fb823ef
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
sub al, cl
add al, 0x38
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 8
jl 0x140059fc0
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
lea rax, [rbp - 0x40]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rax + r8], bl
jne 0x14005a010
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x30]
call fcn.1400591d0
nop
cmp byte [rsi], 0
jne 0x14005a038
mov byte [rsi], 1
call fcn.140060640
mov qword [rsi + 8], rax
cmp byte [rsi], 1
jne 0x14005a057
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x40]
mov rcx, qword [rsi + 8]
call fcn.140060a50
mov rcx, qword [rax]
add rcx, 0x40
jmp 0x14005a05b
mov rcx, qword [rbp - 0x10]
lea rax, [rcx + 8]
cmp byte [rcx], 4
cmovne rax, rbx
movzx eax, byte [rax]
mov byte [r15 + 0x210], al
lea rcx, [rbp - 0x30]
call fcn.14003d760
mov rax, qword [str.UIH_Z__]
mov qword [rbp - 0x40], rax
cmp byte [0x14016e03f], 0
je 0x14005a1ce
cmp r14d, 2
jl 0x14005a19b
movdqa xmm4, xmmword [0x140176370]
movdqa xmm2, xmmword [0x140176070]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140176100]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401761c0]
packuswb xmm2, xmm2
mov eax, dword [0x140176210]
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rbp - 0x40]
xorps xmm2, xmm1
movd dword [rbp - 0x40], xmm2
movdqa xmm3, xmmword [0x140176090]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140176100]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401761c0]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rbp - 0x3c]
xorps xmm2, xmm1
movd dword [rbp - 0x3c], xmm2
jmp 0x14005a1ce
lea r8, [rbp - 0x40]
nop
mov eax, 0x8fb823ef
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, bl
sub al, cl
add al, 0x38
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 8
jl 0x14005a1a0
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
lea rax, [rbp - 0x40]
inc rdi
cmp byte [rax + rdi], 0
jne 0x14005a1e1
mov r8, rdi
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x30]
call fcn.1400591d0
nop
cmp byte [rsi], 0
jne 0x14005a20c
mov byte [rsi], 1
call fcn.140060640
mov qword [rsi + 8], rax
cmp byte [rsi], 1
jne 0x14005a22b
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x40]
mov rcx, qword [rsi + 8]
call fcn.140060a50
mov rdx, qword [rax]
add rdx, 0x40
jmp 0x14005a22f
mov rdx, qword [rbp - 0x10]
lea rcx, [r15 + 0x218]
call fcn.1400604a0
nop
lea rcx, [rbp - 0x30]
call fcn.14003d760
call qword [sym.imp.VMProtectSDK64.dll_VMProtectEnd]
nop
lea rcx, [rsi + 8]
movzx edx, byte [rsi]
call fcn.14005fd70
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140146930
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret