Function at 0x140059dc0
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 0x140059f63
cmp r14d, 2
jl 0x140059f1c
movdqa xmm4, xmmword [0x140176230]
movdqa xmm2, xmmword [0x140175f00]
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 [0x140175f70]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140176040]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1401760a0]
movd xmm0, dword [rbp - 0x40]
xorps xmm2, xmm0
movd dword [rbp - 0x40], xmm2
movdqa xmm3, xmmword [0x140175f20]
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 [0x140175f70]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140176040]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1401760a0]
movd xmm0, dword [rbp - 0x3c]
xorps xmm2, xmm0
movd dword [rbp - 0x3c], xmm2
jmp 0x140059f63
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 0x140059f30
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 0x140059f80
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x30]
call fcn.140059140
nop
cmp byte [rsi], 0
jne 0x140059fa8
mov byte [rsi], 1
call fcn.1400605b0
mov qword [rsi + 8], rax
cmp byte [rsi], 1
jne 0x140059fc7
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x40]
mov rcx, qword [rsi + 8]
call fcn.1400609c0
mov rcx, qword [rax]
add rcx, 0x40
jmp 0x140059fcb
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.14003d700
mov rax, qword [str.UIH_Z__]
mov qword [rbp - 0x40], rax
cmp byte [0x14016e03f], 0
je 0x14005a13e
cmp r14d, 2
jl 0x14005a10b
movdqa xmm4, xmmword [0x140176230]
movdqa xmm2, xmmword [0x140175f00]
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 [0x140175f70]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140176040]
packuswb xmm2, xmm2
mov eax, dword [0x1401760a0]
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rbp - 0x40]
xorps xmm2, xmm1
movd dword [rbp - 0x40], xmm2
movdqa xmm3, xmmword [0x140175f20]
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 [0x140175f70]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140176040]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rbp - 0x3c]
xorps xmm2, xmm1
movd dword [rbp - 0x3c], xmm2
jmp 0x14005a13e
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 0x14005a110
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 0x14005a151
mov r8, rdi
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x30]
call fcn.140059140
nop
cmp byte [rsi], 0
jne 0x14005a17c
mov byte [rsi], 1
call fcn.1400605b0
mov qword [rsi + 8], rax
cmp byte [rsi], 1
jne 0x14005a19b
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x40]
mov rcx, qword [rsi + 8]
call fcn.1400609c0
mov rdx, qword [rax]
add rdx, 0x40
jmp 0x14005a19f
mov rdx, qword [rbp - 0x10]
lea rcx, [r15 + 0x218]
call fcn.140060410
nop
lea rcx, [rbp - 0x30]
call fcn.14003d700
call qword [sym.imp.VMProtectSDK64.dll_VMProtectEnd]
nop
lea rcx, [rsi + 8]
movzx edx, byte [rsi]
call fcn.14005fce0
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401468a0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret