Function at 0x140059cb0
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 [0x14018d080]
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 [0x14016f007], bl
je 0x140059e53
cmp r14d, 2
jl 0x140059e0c
movdqa xmm4, xmmword [0x140177210]
movdqa xmm2, xmmword [0x140176ee0]
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 [0x140176f50]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140177020]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1401770a0]
movd xmm0, dword [rbp - 0x40]
xorps xmm2, xmm0
movd dword [rbp - 0x40], xmm2
movdqa xmm3, xmmword [0x140176f00]
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 [0x140176f50]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140177020]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1401770a0]
movd xmm0, dword [rbp - 0x3c]
xorps xmm2, xmm0
movd dword [rbp - 0x3c], xmm2
jmp 0x140059e53
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 0x140059e20
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 0x140059e70
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x30]
call fcn.140059030
nop
cmp byte [rsi], 0
jne 0x140059e98
mov byte [rsi], 1
call fcn.1400604a0
mov qword [rsi + 8], rax
cmp byte [rsi], 1
jne 0x140059eb7
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x40]
mov rcx, qword [rsi + 8]
call fcn.1400608b0
mov rcx, qword [rax]
add rcx, 0x40
jmp 0x140059ebb
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.14003d5f0
mov rax, qword [str.UIH_Z__]
mov qword [rbp - 0x40], rax
cmp byte [0x14016f02f], 0
je 0x14005a02e
cmp r14d, 2
jl 0x140059ffb
movdqa xmm4, xmmword [0x140177210]
movdqa xmm2, xmmword [0x140176ee0]
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 [0x140176f50]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140177020]
packuswb xmm2, xmm2
mov eax, dword [0x1401770a0]
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rbp - 0x40]
xorps xmm2, xmm1
movd dword [rbp - 0x40], xmm2
movdqa xmm3, xmmword [0x140176f00]
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 [0x140176f50]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140177020]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rbp - 0x3c]
xorps xmm2, xmm1
movd dword [rbp - 0x3c], xmm2
jmp 0x14005a02e
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 0x14005a000
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 0x14005a041
mov r8, rdi
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x30]
call fcn.140059030
nop
cmp byte [rsi], 0
jne 0x14005a06c
mov byte [rsi], 1
call fcn.1400604a0
mov qword [rsi + 8], rax
cmp byte [rsi], 1
jne 0x14005a08b
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x40]
mov rcx, qword [rsi + 8]
call fcn.1400608b0
mov rdx, qword [rax]
add rdx, 0x40
jmp 0x14005a08f
mov rdx, qword [rbp - 0x10]
lea rcx, [r15 + 0x218]
call fcn.140060300
nop
lea rcx, [rbp - 0x30]
call fcn.14003d5f0
call qword [sym.imp.VMProtectSDK64.dll_VMProtectEnd]
nop
lea rcx, [rsi + 8]
movzx edx, byte [rsi]
call fcn.14005fbd0
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401482c0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret