Function at 0x140056160
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 [0x140ce2080]
xor rax, rsp
mov qword [rbp + 0x20], rax
movaps xmm6, xmmword [0x140cc4a60]
mov rbx, qword [0x141281328]
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.140086f50
movups xmmword [rbx + 0x1644], xmm6
movaps xmm6, xmmword [0x140cc4b20]
mov rbx, qword [0x141281328]
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.140086f50
movups xmmword [rbx + 0x1624], xmm6
xorps xmm6, xmm6
mov rbx, qword [0x141281328]
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.140086f50
movups xmmword [rbx + 0x1674], xmm6
mov rcx, qword [0x141280a88]
call fcn.14007f190
movd xmm1, dword [0x141280ca8]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x140cc3f58]
movd xmm0, dword [0x141280cac]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x140cc3f24]
mov r8, qword [0x141281328]
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 [0x141281a0f], dil
je 0x140056bbb
movdqa xmm0, xmmword [0x140cc6370]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x48], 0xb1
mov byte [rsp + 0x4a], 1
mov ecx, edi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x7f]
xor byte [rsp + rcx + 0x38], al
inc rcx
cmp rcx, 0x11
jb 0x1400562e0
mov byte [rsp + 0x4a], dil
xor edx, edx
lea r8d, [rdx + 0x69]
lea rcx, [rsp + 0x38]
call fcn.14007c9e0
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, [0x140cbfe9a]
lea rcx, [rbp - 0x20]
call fcn.14002c840
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, [0x140cbfe9a]
lea rcx, [rbp - 0x40]
call fcn.14002c840
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, [0x140cbfe9a]
lea rcx, [rbp - 0x60]
call fcn.14002c840
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, [0x140cbfe9a]
lea rcx, [rbp - 0x80]
call fcn.14002c840
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, [0x140cbfe9a]
lea rcx, [rbp]
call fcn.14002c840
nop
cmp dword [0x14128073c], 0
jbe 0x140056b7d
cmp byte [0x1412813a1], 0
je 0x140056a0f
mov rcx, qword [0x141281b18]
sub rcx, qword [0x141281b10]
movabs rax, 0x3159721ed7e75347
imul rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1400568e5
cmp byte [0x1412819f7], 0
je 0x140056555
movdqa xmm0, xmmword [0x140cc54e0]
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x140cc5b40]
movdqu xmmword [rsp + 0x48], xmm1
mov dword [rsp + 0x58], 0x9ee2b3a9
mov dword [rsp + 0x5c], 0x100ede4
mov rcx, rdi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x60]
xor byte [rsp + rcx + 0x38], al
inc rcx
cmp rcx, 0x26
jb 0x140056460
mov byte [rsp + 0x5f], 0
lea rax, [rsp + 0x38]
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], 0
jne 0x140056481
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x1400564cf
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 0x1400564e8
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x38]
mov rdx, rsi
lea rcx, [rbp - 0x20]
call fcn.14002cb40
mov rbx, rax
mov edx, dword [0x140e8502c]
lea rcx, [rsp + 0x60]
call fcn.14000eb30
nop
mov rdx, rax
mov rcx, rbx
call fcn.140033e50
mov dword [rsp + 0x30], 0x10096f3
nop dword [rax]
lea ecx, [rdi - 0x42]
xor byte [rsp + rdi + 0x30], cl
inc rdi
cmp rdi, 2
jb 0x140056510
mov byte [rsp + 0x33], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.14002c5f0
nop
lea rcx, [rsp + 0x60]
call fcn.14002c7e0
lea rcx, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae rcx, qword [rbp - 0x20]
call fcn.14009d2b0
jmp 0x140056b7d
cmp byte [0x1412819ec], 0
je 0x140056685
movdqa xmm0, xmmword [0x140cc5080]
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x140cc4800]
movdqu xmmword [rsp + 0x48], xmm1
mov byte [rsp + 0x58], 1
mov rcx, rdi
nop word [rax + rax]
lea eax, [rcx - 0x42]
xor byte [rsp + rcx + 0x38], al
inc rcx
cmp rcx, 0x1f
jb 0x140056590
mov byte [rsp + 0x58], 0
lea rax, [rsp + 0x38]
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], 0
jne 0x1400565b1
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x1400565ff
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 0x140056618
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x38]
mov rdx, rsi
lea rcx, [rbp - 0x40]
call fcn.14002cb40
mov rbx, rax
mov edx, dword [0x140e8502c]
lea rcx, [rsp + 0x60]
call fcn.14000eb30
nop
mov rdx, rax
mov rcx, rbx
call fcn.140033e50
mov dword [rsp + 0x30], 0x10096f3
nop dword [rax]
lea ecx, [rdi - 0x42]
xor byte [rsp + rdi + 0x30], cl
inc rdi
cmp rdi, 2
jb 0x140056640
mov byte [rsp + 0x33], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.14002c5f0
nop
lea rcx, [rsp + 0x60]
call fcn.14002c7e0
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae rcx, qword [rbp - 0x40]
call fcn.14009d2b0
jmp 0x140056b7d
mov eax, dword [0x1412819e0]
test eax, eax
jne 0x1400567b5
movdqa xmm0, xmmword [0x140cc5950]
movdqu xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x48], 0xc9b3d6d0
mov dword [rsp + 0x4c], 0x100beb5
mov rcx, rdi
nop dword [rax]
nop dword [rax + rax]
lea eax, [rcx - 0x7f]
xor byte [rsp + rcx + 0x38], al
inc rcx
cmp rcx, 0x16
jb 0x1400566c0
mov byte [rsp + 0x4f], 0
lea rax, [rsp + 0x38]
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], 0
jne 0x1400566e1
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x14005672f
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 0x140056748
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x38]
mov rdx, rsi
lea rcx, [rbp - 0x60]
call fcn.14002cb40
mov rbx, rax
mov edx, dword [0x140e8502c]
lea rcx, [rsp + 0x60]
call fcn.14000eb30
nop
mov rdx, rax
mov rcx, rbx
call fcn.140033e50
mov dword [rsp + 0x30], 0x10096f3
nop dword [rax]
lea ecx, [rdi - 0x42]
xor byte [rsp + rdi + 0x30], cl
inc rdi
cmp rdi, 2
jb 0x140056770
mov byte [rsp + 0x33], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.14002c5f0
nop
lea rcx, [rsp + 0x60]
call fcn.14002c7e0
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rcx, qword [rbp - 0x60]
call fcn.14009d2b0
jmp 0x140056b7d
cmp eax, 1
jne 0x140056b7d
movdqa xmm0, xmmword [0x140cc59e0]
movdqu xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x48], 0xb4c7c1d4
mov dword [rsp + 0x4c], 0xbfb6c8
mov byte [rsp + 0x50], al
mov rcx, rdi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x7f]
xor byte [rsp + rcx + 0x38], al
inc rcx
cmp rcx, 0x17
jb 0x1400567f0
mov byte [rsp + 0x50], 0
lea rax, [rsp + 0x38]
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], 0
jne 0x140056811
mov rcx, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x68]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x14005685f
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 0x140056878
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x38]
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.14002cb40
mov rbx, rax
mov edx, dword [0x140e8502c]
lea rcx, [rsp + 0x60]
call fcn.14000eb30
nop
mov rdx, rax
mov rcx, rbx
call fcn.140033e50
mov dword [rsp + 0x30], 0x10096f3
nop dword [rax]
lea ecx, [rdi - 0x42]
xor byte [rsp + rdi + 0x30], cl
inc rdi
cmp rdi, 2
jb 0x1400568a0
mov byte [rsp + 0x33], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.14002c5f0
nop
lea rcx, [rsp + 0x60]
call fcn.14002c7e0
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rcx, qword [rbp - 0x80]
call fcn.14009d2b0
jmp 0x140056b7d
movaps xmm6, xmmword [0x140cc4af0]
mov rbx, qword [0x141281328]
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.140086f50
movups xmmword [rbx + 0x1624], xmm6
movdqa xmm0, xmmword [0x140cc51f0]
movdqu xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x48], 0xd5d4de
mov byte [rsp + 0x4c], 1
nop word [rax + rax]
lea eax, [rdi - 0x7f]
xor byte [rsp + rdi + 0x38], al
inc rdi
cmp rdi, 0x13
jb 0x140056940
mov byte [rsp + 0x4c], 0
lea rax, [rsp + 0x38]
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], 0
jne 0x140056961
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x1400569ab
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 0x1400569c1
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x38]
mov rdx, rsi
lea rcx, [rbp]
call fcn.14002cb40
lea rcx, [rbp]
cmp qword [rbp + 0x18], 0x10
cmovae rcx, qword [rbp]
call fcn.14009d2b0
mov r8, qword [0x141281328]
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 0x140056b7d
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, [0x140cbfe9a]
lea rcx, [rsp + 0x60]
call fcn.14002c840
nop
movaps xmm6, xmmword [0x140cc4af0]
mov rbx, qword [0x141281328]
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.140086f50
movups xmmword [rbx + 0x1624], xmm6
movdqa xmm0, xmmword [0x140cc67a0]
movdqu xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x48], 0xfafae8f8
mov word [rsp + 0x4c], 0xf2
mov byte [rsp + 0x4e], 1
nop dword [rax]
nop dword [rax + rax]
lea eax, [rdi - 0x7f]
xor byte [rsp + rdi + 0x38], al
inc rdi
cmp rdi, 0x15
jb 0x140056aa0
mov byte [rsp + 0x4e], 0
lea rax, [rsp + 0x38]
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], 0
jne 0x140056ac1
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x140056b10
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 0x140056b27
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x38]
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.14002cb40
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
call fcn.14009d2b0
mov r8, qword [0x141281328]
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.14002c7e0
call fcn.14007edb0
nop
lea rcx, [rbp]
call fcn.14002c7e0
nop
lea rcx, [rbp - 0x80]
call fcn.14002c7e0
nop
lea rcx, [rbp - 0x60]
call fcn.14002c7e0
nop
lea rcx, [rbp - 0x40]
call fcn.14002c7e0
nop
lea rcx, [rbp - 0x20]
call fcn.14002c7e0
mov r8, qword [0x141281328]
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.14007f210
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1401308a0
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