Function at 0x140059120
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x48]
sub rsp, 0x140
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x140cec080]
xor rax, rsp
mov qword [rbp + 0x20], rax
movaps xmm6, xmmword [0x140ccd820]
mov rbx, qword [0x1412d40b8]
mov dword [rsp + 0x38], 2
movups xmm0, xmmword [rbx + 0x1644]
movups xmmword [rsp + 0x3c], xmm0
lea rcx, [rbx + 0x1d70]
lea rdx, [rsp + 0x38]
call fcn.140089e60
movups xmmword [rbx + 0x1644], xmm6
movaps xmm6, xmmword [0x140ccda10]
mov rbx, qword [0x1412d40b8]
xor edi, edi
mov dword [rsp + 0x38], edi
movups xmm0, xmmword [rbx + 0x1624]
movups xmmword [rsp + 0x3c], xmm0
lea rcx, [rbx + 0x1d70]
lea rdx, [rsp + 0x38]
call fcn.140089e60
movups xmmword [rbx + 0x1624], xmm6
xorps xmm6, xmm6
mov rbx, qword [0x1412d40b8]
mov dword [rsp + 0x38], 5
movups xmm0, xmmword [rbx + 0x1674]
movups xmmword [rsp + 0x3c], xmm0
lea rcx, [rbx + 0x1d70]
lea rdx, [rsp + 0x38]
call fcn.140089e60
movups xmmword [rbx + 0x1674], xmm6
mov rcx, qword [0x1412d3828]
call fcn.140082150
movd xmm1, dword [0x1412d3a48]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x140cccca4]
movd xmm0, dword [0x1412d3a4c]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x140cccc78]
mov r8, qword [0x1412d40b8]
or dword [r8 + 0x1ce8], 1
movss dword [r8 + 0x1cf8], xmm0
movss dword [r8 + 0x1cfc], xmm1
mov dword [r8 + 0x1d00], 0x3f000000
mov dword [r8 + 0x1d04], 0x3dcccccd
mov dword [r8 + 0x1cec], 1
cmp byte [0x1412d47a2], dil
je 0x140059b7b
movdqa xmm0, xmmword [0x140cce3d0]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x4a], 1
mov ecx, edi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + 0x1f]
xor byte [rsp + rcx + 0x38], al
inc rcx
cmp rcx, 0x11
jb 0x1400592a0
mov byte [rsp + 0x4a], dil
xor edx, edx
lea r8d, [rdx + 0x69]
lea rcx, [rsp + 0x38]
call fcn.14007f9a0
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x20], dil
xor r8d, r8d
lea rdx, [0x140cc7eda]
lea rcx, [rbp - 0x20]
call fcn.14002caf0
nop
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x40], 0
xor r8d, r8d
lea rdx, [0x140cc7eda]
lea rcx, [rbp - 0x40]
call fcn.14002caf0
nop
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x60], 0
xor r8d, r8d
lea rdx, [0x140cc7eda]
lea rcx, [rbp - 0x60]
call fcn.14002caf0
nop
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x80], 0
xor r8d, r8d
lea rdx, [0x140cc7eda]
lea rcx, [rbp - 0x80]
call fcn.14002caf0
nop
mov qword [rbp], rdi
mov qword [rbp + 0x10], rdi
mov qword [rbp + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbp], 0
xor r8d, r8d
lea rdx, [0x140cc7eda]
lea rcx, [rbp]
call fcn.14002caf0
nop
cmp dword [0x1412d34e0], 0
jbe 0x140059b3d
cmp byte [0x1412d40e8], 0
je 0x1400599cf
mov rcx, qword [0x1412d4868]
sub rcx, qword [0x1412d4860]
movabs rax, 0x3159721ed7e75347
imul rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1400598a5
cmp byte [0x1412d478a], 0
je 0x140059515
movdqa xmm0, xmmword [0x140cce7f0]
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x140ccd7f0]
movdqu xmmword [rsp + 0x48], xmm1
mov dword [rsp + 0x58], 0x1864312b
mov dword [rsp + 0x5c], 0x1006f66
mov rcx, rdi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + 0x22]
xor byte [rsp + rcx + 0x38], al
inc rcx
cmp rcx, 0x26
jb 0x140059420
mov byte [rsp + 0x5f], 0
lea rax, [rsp + 0x38]
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], 0
jne 0x140059441
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x14005948f
lea rax, [rcx + rsi]
mov qword [rbp - 0x10], rax
lea rbx, [rbp - 0x20]
cmp rdx, 0x10
cmovae rbx, qword [rbp - 0x20]
add rbx, rcx
mov r8, rsi
lea rdx, [rsp + 0x38]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
lea rbx, [rbp - 0x20]
jmp 0x1400594a8
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x38]
mov rdx, rsi
lea rcx, [rbp - 0x20]
call fcn.14002cdf0
mov rbx, rax
mov edx, dword [0x140e7f6c4]
lea rcx, [rsp + 0x60]
call fcn.14000ede0
nop
mov rdx, rax
mov rcx, rbx
call fcn.140033fc0
mov dword [rsp + 0x30], 0x100fd9e
nop dword [rax]
lea ecx, [rdi - 0x2d]
xor byte [rsp + rdi + 0x30], cl
inc rdi
cmp rdi, 2
jb 0x1400594d0
mov byte [rsp + 0x33], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.14002c8a0
nop
lea rcx, [rsp + 0x60]
call fcn.14002ca90
lea rcx, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae rcx, qword [rbp - 0x20]
call fcn.1400a6230
jmp 0x140059b3d
cmp byte [0x1412d477f], 0
je 0x140059645
movdqa xmm0, xmmword [0x140ccf5a0]
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x140ccd5d0]
movdqu xmmword [rsp + 0x48], xmm1
mov byte [rsp + 0x58], 1
mov rcx, rdi
nop word [rax + rax]
lea eax, [rcx - 0x2d]
xor byte [rsp + rcx + 0x38], al
inc rcx
cmp rcx, 0x1f
jb 0x140059550
mov byte [rsp + 0x58], 0
lea rax, [rsp + 0x38]
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], 0
jne 0x140059571
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x1400595bf
lea rax, [rcx + rsi]
mov qword [rbp - 0x30], rax
lea rbx, [rbp - 0x40]
cmp rdx, 0x10
cmovae rbx, qword [rbp - 0x40]
add rbx, rcx
mov r8, rsi
lea rdx, [rsp + 0x38]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
lea rbx, [rbp - 0x40]
jmp 0x1400595d8
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x38]
mov rdx, rsi
lea rcx, [rbp - 0x40]
call fcn.14002cdf0
mov rbx, rax
mov edx, dword [0x140e7f6c4]
lea rcx, [rsp + 0x60]
call fcn.14000ede0
nop
mov rdx, rax
mov rcx, rbx
call fcn.140033fc0
mov dword [rsp + 0x30], 0x100fd9e
nop dword [rax]
lea ecx, [rdi - 0x2d]
xor byte [rsp + rdi + 0x30], cl
inc rdi
cmp rdi, 2
jb 0x140059600
mov byte [rsp + 0x33], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.14002c8a0
nop
lea rcx, [rsp + 0x60]
call fcn.14002ca90
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rcx, qword [rbp - 0x40]
call fcn.1400a6230
jmp 0x140059b3d
mov eax, dword [0x1412d4770]
test eax, eax
jne 0x140059775
movdqa xmm0, xmmword [0x140ccef10]
movdqu xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x48], 0x6f11746e
mov dword [rsp + 0x4c], 0x1001c13
mov rcx, rdi
nop dword [rax]
nop dword [rax + rax]
lea eax, [rcx + 0x1f]
xor byte [rsp + rcx + 0x38], al
inc rcx
cmp rcx, 0x16
jb 0x140059680
mov byte [rsp + 0x4f], 0
lea rax, [rsp + 0x38]
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], 0
jne 0x1400596a1
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x1400596ef
lea rax, [rcx + rsi]
mov qword [rbp - 0x50], rax
lea rbx, [rbp - 0x60]
cmp rdx, 0x10
cmovae rbx, qword [rbp - 0x60]
add rbx, rcx
mov r8, rsi
lea rdx, [rsp + 0x38]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
lea rbx, [rbp - 0x60]
jmp 0x140059708
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x38]
mov rdx, rsi
lea rcx, [rbp - 0x60]
call fcn.14002cdf0
mov rbx, rax
mov edx, dword [0x140e7f6c4]
lea rcx, [rsp + 0x60]
call fcn.14000ede0
nop
mov rdx, rax
mov rcx, rbx
call fcn.140033fc0
mov dword [rsp + 0x30], 0x100fd9e
nop dword [rax]
lea ecx, [rdi - 0x2d]
xor byte [rsp + rdi + 0x30], cl
inc rdi
cmp rdi, 2
jb 0x140059730
mov byte [rsp + 0x33], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.14002c8a0
nop
lea rcx, [rsp + 0x60]
call fcn.14002ca90
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rcx, qword [rbp - 0x60]
call fcn.1400a6230
jmp 0x140059b3d
cmp eax, 1
jne 0x140059b3d
movdqa xmm0, xmmword [0x140ccedb0]
movdqu xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x48], 0x1265636a
mov dword [rsp + 0x4c], 0x1d146e
mov byte [rsp + 0x50], al
mov rcx, rdi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + 0x1f]
xor byte [rsp + rcx + 0x38], al
inc rcx
cmp rcx, 0x17
jb 0x1400597b0
mov byte [rsp + 0x50], 0
lea rax, [rsp + 0x38]
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], 0
jne 0x1400597d1
mov rcx, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x68]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x14005981f
lea rax, [rcx + rsi]
mov qword [rbp - 0x70], rax
lea rbx, [rbp - 0x80]
cmp rdx, 0x10
cmovae rbx, qword [rbp - 0x80]
add rbx, rcx
mov r8, rsi
lea rdx, [rsp + 0x38]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rsi], 0
lea rbx, [rbp - 0x80]
jmp 0x140059838
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x38]
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.14002cdf0
mov rbx, rax
mov edx, dword [0x140e7f6c4]
lea rcx, [rsp + 0x60]
call fcn.14000ede0
nop
mov rdx, rax
mov rcx, rbx
call fcn.140033fc0
mov dword [rsp + 0x30], 0x100fd9e
nop dword [rax]
lea ecx, [rdi - 0x2d]
xor byte [rsp + rdi + 0x30], cl
inc rdi
cmp rdi, 2
jb 0x140059860
mov byte [rsp + 0x33], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.14002c8a0
nop
lea rcx, [rsp + 0x60]
call fcn.14002ca90
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rcx, qword [rbp - 0x80]
call fcn.1400a6230
jmp 0x140059b3d
movaps xmm6, xmmword [0x140ccd9e0]
mov rbx, qword [0x1412d40b8]
mov dword [rsp + 0x38], edi
movups xmm0, xmmword [rbx + 0x1624]
movups xmmword [rsp + 0x3c], xmm0
lea rcx, [rbx + 0x1d70]
lea rdx, [rsp + 0x38]
call fcn.140089e60
movups xmmword [rbx + 0x1624], xmm6
movdqa xmm0, xmmword [0x140ccd6e0]
movdqu xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x48], 0x777660
mov byte [rsp + 0x4c], 1
nop word [rax + rax]
lea eax, [rdi + 0x1f]
xor byte [rsp + rdi + 0x38], al
inc rdi
cmp rdi, 0x13
jb 0x140059900
mov byte [rsp + 0x4c], 0
lea rax, [rsp + 0x38]
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], 0
jne 0x140059921
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x14005996b
lea rax, [rcx + rsi]
mov qword [rbp + 0x10], rax
lea rbx, [rbp]
cmp rdx, 0x10
cmovae rbx, qword [rbp]
add rbx, rcx
mov r8, rsi
lea rdx, [rsp + 0x38]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
jmp 0x140059981
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x38]
mov rdx, rsi
lea rcx, [rbp]
call fcn.14002cdf0
lea rcx, [rbp]
cmp qword [rbp + 0x18], 0x10
cmovae rcx, qword [rbp]
call fcn.1400a6230
mov r8, qword [0x1412d40b8]
movsxd rax, dword [r8 + 0x1d70]
lea rdx, [rax + rax*4]
mov rcx, qword [r8 + 0x1d78]
movsxd rax, dword [rcx + rdx*4 - 0x14]
add rax, rax
movups xmm0, xmmword [rcx + rdx*4 - 0x10]
movups xmmword [r8 + rax*8 + 0x1624], xmm0
dec dword [r8 + 0x1d70]
jmp 0x140059b3d
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x60], 0
xor r8d, r8d
lea rdx, [0x140cc7eda]
lea rcx, [rsp + 0x60]
call fcn.14002caf0
nop
movaps xmm6, xmmword [0x140ccd9e0]
mov rbx, qword [0x1412d40b8]
mov dword [rsp + 0x38], edi
movups xmm0, xmmword [rbx + 0x1624]
movups xmmword [rsp + 0x3c], xmm0
lea rcx, [rbx + 0x1d70]
lea rdx, [rsp + 0x38]
call fcn.140089e60
movups xmmword [rbx + 0x1624], xmm6
movdqa xmm0, xmmword [0x140cce0b0]
movdqu xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x48], 0x5c584a46
mov word [rsp + 0x4c], 0x54
mov byte [rsp + 0x4e], 1
nop dword [rax]
nop dword [rax + rax]
lea eax, [rdi + 0x1f]
xor byte [rsp + rdi + 0x38], al
inc rdi
cmp rdi, 0x15
jb 0x140059a60
mov byte [rsp + 0x4e], 0
lea rax, [rsp + 0x38]
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], 0
jne 0x140059a81
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x140059ad0
lea rax, [rcx + rsi]
mov qword [rsp + 0x70], rax
lea rbx, [rsp + 0x60]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x60]
add rbx, rcx
mov r8, rsi
lea rdx, [rsp + 0x38]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
jmp 0x140059ae7
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x38]
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.14002cdf0
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
call fcn.1400a6230
mov r8, qword [0x1412d40b8]
movsxd rax, dword [r8 + 0x1d70]
lea rdx, [rax + rax*4]
mov rcx, qword [r8 + 0x1d78]
movsxd rax, dword [rcx + rdx*4 - 0x14]
add rax, rax
movups xmm0, xmmword [rcx + rdx*4 - 0x10]
movups xmmword [r8 + rax*8 + 0x1624], xmm0
dec dword [r8 + 0x1d70]
lea rcx, [rsp + 0x60]
call fcn.14002ca90
call fcn.140081d70
nop
lea rcx, [rbp]
call fcn.14002ca90
nop
lea rcx, [rbp - 0x80]
call fcn.14002ca90
nop
lea rcx, [rbp - 0x60]
call fcn.14002ca90
nop
lea rcx, [rbp - 0x40]
call fcn.14002ca90
nop
lea rcx, [rbp - 0x20]
call fcn.14002ca90
mov r8, qword [0x1412d40b8]
movsxd rax, dword [r8 + 0x1d70]
lea rdx, [rax + rax*4]
mov rcx, qword [r8 + 0x1d78]
movsxd rax, dword [rcx + rdx*4 - 0x14]
add rax, rax
movups xmm0, xmmword [rcx + rdx*4 - 0x10]
movups xmmword [r8 + rax*8 + 0x1624], xmm0
movsxd rcx, dword [r8 + 0x1d70]
lea eax, [rcx - 1]
mov dword [r8 + 0x1d70], eax
lea rax, [rcx - 2]
lea rdx, [rax + rax*4]
mov rcx, qword [r8 + 0x1d78]
movsxd rax, dword [rcx + rdx*4]
add rax, rax
movups xmm0, xmmword [rcx + rdx*4 + 4]
movups xmmword [r8 + rax*8 + 0x1624], xmm0
movsxd rcx, dword [r8 + 0x1d70]
lea eax, [rcx - 1]
mov dword [r8 + 0x1d70], eax
lea rax, [rcx - 2]
lea rdx, [rax + rax*4]
mov rcx, qword [r8 + 0x1d78]
movsxd rax, dword [rcx + rdx*4]
add rax, rax
movups xmm0, xmmword [rcx + rdx*4 + 4]
movups xmmword [r8 + rax*8 + 0x1624], xmm0
dec dword [r8 + 0x1d70]
call fcn.1400821d0
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140138a50
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret