Function at 0x140017848
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x14031f010]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rdi, qword [0x140336400]
xor r13d, r13d
mov rbx, rcx
mov qword [rbp - 0x19], rdi
mov r15, rdi
mov eax, dword [rdi + 0x1b18]
and byte [rcx + 0xb5], 0xfb
mov dword [rcx + 0x98], eax
mov qword [rcx + 0x90], r13
mov qword [rcx + 0x88], r13
cmp qword [rcx + 0x10], r13
jne 0x1400178c4
call fcn.140017740
mov rdi, qword [0x140336400]
mov rcx, qword [rbx + 0x38]
mov r12d, 1
test rcx, rcx
je 0x1400178ee
mov eax, dword [rbx + 8]
shr eax, 0xc
test r12b, al
je 0x1400178ee
call fcn.14001d1d0
mov rdi, qword [0x140336400]
mov qword [rbx + 0x38], r13
mov edx, dword [rbx + 0x28]
mov r10d, 0x400
cmp edx, r12d
jg 0x140017a2c
cmp qword [rbx + 0x10], r13
jne 0x140017a2c
test dword [rbx + 8], r10d
jne 0x140017a2c
cmp qword [rbx + 0x18], r13
jne 0x140017a2c
cmp byte [r15 + 0xca], r13b
jne 0x140017a2c
test edx, edx
je 0x1400179d8
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax]
cmp byte [rcx + 0x2c], r13b
jne 0x140017a2c
cmp edx, r12d
jne 0x1400179d8
mov rdi, qword [rax]
mov eax, dword [rbx + 0xb0]
mov rcx, qword [rbx + 0x78]
and eax, 0xfffffebf
bts eax, 7
movsd xmm0, qword [rdi + 0x48]
and eax, 0xffffffd7
or eax, 0x10
movsd qword [rbx + 0x40], xmm0
movsd xmm1, qword [rdi + 0x58]
and eax, 0xfffffffa
or eax, 2
movsd qword [rbx + 0x48], xmm1
mov dword [rbx + 0xb0], eax
mov rax, rcx
test rcx, rcx
je 0x1400179a6
cmp qword [r15 + 0x1d70], rcx
jne 0x1400179ab
mov rcx, rdi
call fcn.14000e55c
mov rax, qword [rbx + 0x78]
test rax, rax
je 0x1400179d8
mov rdx, qword [rax + 0x30]
mov qword [rdi + 0x30], rdx
mov rax, qword [rbx + 0x78]
mov ecx, dword [rax + 0x38]
mov dword [rdi + 0x38], ecx
mov rax, qword [rbx + 0x78]
cmp byte [rax + 0xbe], r13b
je 0x1400179d8
mov qword [rdx + 0x98], rdi
mov byte [rdi + 0xbe], r12b
mov rcx, rbx
call fcn.1400173c8
mov al, byte [rbx + 0xb4]
and al, 0xdf
mov dword [rbx + 0xc], r12d
and al, 0xe3
mov dword [rbx + 0xac], r13d
mov byte [rbx + 0xb4], al
mov eax, dword [r15 + 0x1b18]
mov dword [rbx + 0x9c], eax
jge 0x140018269
cmp dword [rbx + 0x28], r12d
jne 0x140018269
mov rdx, qword [rbx + 0x30]
mov rcx, rbx
mov rdx, qword [rdx]
call fcn.1400176d4
jmp 0x140018269
mov cl, byte [rbx + 0xb4]
test r12b, cl
je 0x140017abb
cmp qword [rbx + 0x78], r13
jne 0x140017abb
cmp qword [rbx + 0x10], r13
jne 0x140017abb
test dword [rbx + 8], r10d
jne 0x140017abb
cmp qword [rbx + 0x18], r13
jne 0x140017abb
mov r10d, dword [rbx + 0xa8]
test r10d, r10d
je 0x140017a90
mov r8d, r13d
test edx, edx
jle 0x140017a90
mov r11, qword [rbx + 0x30]
mov r9, r11
mov rax, qword [r9]
cmp dword [rax + 8], r10d
je 0x140017a84
add r8d, r12d
add r9, 8
cmp r8d, edx
jl 0x140017a6d
jmp 0x140017a90
movsxd rax, r8d
mov r8, qword [r11 + rax*8]
test r8, r8
jne 0x140017a97
mov rax, qword [rbx + 0x30]
mov r8, qword [rax]
cmp byte [r8 + 0xd4], r13b
jg 0x140017aa9
cmp byte [r8 + 0xd5], r13b
jle 0x140017ab5
mov dword [rbx + 0xc], 2
jmp 0x140018269
mov r10d, 0x400
mov eax, dword [rbx + 8]
and cl, 0xef
mov r14d, eax
mov byte [rbp - 0x38], r13b
or r14d, dword [rbx + 4]
mov rsi, r13
shr eax, 0xa
xorps xmm6, xmm6
test r12b, al
je 0x140017b0b
mov rsi, qword [rbx + 0x78]
mov eax, r14d
shr eax, 0xf
shl al, 2
not al
xor al, cl
and al, 4
xor cl, al
mov eax, r14d
shr eax, 0xe
shl al, 3
not al
xor al, cl
and al, 8
xor al, cl
mov byte [rbx + 0xb4], al
jmp 0x140017d98
test edx, edx
jle 0x140017b19
mov r8b, 4
bt r14d, 0xf
jae 0x140017b1c
mov r8b, r13b
and cl, 0xfb
or cl, r8b
test edx, edx
jle 0x140017b2f
mov al, 8
bt r14d, 0xe
jae 0x140017b32
mov al, r13b
and cl, 0xf7
mov r9d, r13d
or cl, al
mov byte [rbx + 0xb4], cl
test edx, edx
jle 0x140017b91
mov r8, r13
mov rax, qword [rbx + 0x30]
cmp dword [rbx + 0x28], r12d
setg cl
add r9d, r12d
mov rdx, qword [r8 + rax]
lea r8, [r8 + 8]
mov al, byte [rdx + 0x472]
and al, 0xfe
or cl, al
mov byte [rdx + 0x472], cl
mov al, byte [rbx + 0xb4]
mov cl, byte [rdx + 0xc8]
shl cl, 4
or cl, al
xor cl, al
and cl, 0x10
xor cl, al
mov byte [rbx + 0xb4], cl
cmp r9d, dword [rbx + 0x28]
jl 0x140017b47
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x140017d6a
test r12b, cl
je 0x140017d65
cmp dword [rbx + 0x28], r13d
jle 0x140017bb6
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax]
jmp 0x140017bb9
mov rcx, r13
mov eax, dword [rbx + 0xb0]
shl eax, 0x1d
sar eax, 0x1d
cmp eax, 2
jne 0x140017bdd
test rcx, rcx
je 0x140017c0b
or dword [rdi + 0x1c40], r12d
movsd xmm0, qword [rcx + 0x48]
jmp 0x140017bee
cmp eax, r12d
jne 0x140017c0b
or dword [rdi + 0x1c40], r12d
movsd xmm0, qword [rbx + 0x40]
mov byte [rdi + 0x1c7c], r12b
mov dword [rdi + 0x1c44], r12d
mov qword [rdi + 0x1c5c], r13
movsd qword [rdi + 0x1c54], xmm0
mov eax, dword [rbx + 0xb0]
shl eax, 0x1a
sar eax, 0x1d
cmp eax, 2
jne 0x140017c2e
test rcx, rcx
je 0x140017c4e
or dword [rdi + 0x1c40], eax
movsd xmm0, qword [rcx + 0x58]
jmp 0x140017c3f
cmp eax, r12d
jne 0x140017c4e
or dword [rdi + 0x1c40], 2
movsd xmm0, qword [rbx + 0x48]
mov dword [rdi + 0x1c48], r12d
movsd qword [rdi + 0x1c64], xmm0
mov edx, dword [rbx + 0xb0]
mov eax, edx
and al, 0x38
cmp al, 0x10
jne 0x140017c81
test rcx, rcx
je 0x140017c81
mov al, byte [rcx + 0xc2]
or dword [rdi + 0x1c40], 8
mov byte [rdi + 0x1c7d], al
mov dword [rdi + 0x1c4c], r12d
mov edx, dword [rbx + 0xb0]
and edx, 0x1c0
cmp edx, 0x80
jne 0x140017ca5
test rcx, rcx
je 0x140017ca5
mov eax, dword [rcx + 0x38]
bts dword [rdi + 0x1c40], 8
mov dword [rdi + 0x1ca4], eax
or dword [rdi + 0x1c40], r10d
lea r8, str.DockNode__02X
movups xmm0, xmmword [rbx + 0x5c]
mov edx, reloc.WS2_32.dll_sendto
lea rcx, [rbp + 7]
movups xmmword [rdi + 0x1cac], xmm0
movsd xmm1, qword [rbx + 0x6c]
movsd qword [rdi + 0x1cbc], xmm1
mov eax, dword [rbx + 0x74]
mov dword [rdi + 0x1cc4], eax
mov r9d, dword [rbx]
call fcn.1400029e0
and dword [rbp - 0x29], r13d
lea rdx, [rbp - 0x29]
and dword [rbp - 0x25], r13d
mov ecx, r12d
call fcn.1400035a8
xor edx, edx
lea rcx, [rbp + 7]
mov r8d, 0x20081139
call fcn.14000beac
mov ecx, r12d
call fcn.140003634
mov rsi, qword [r15 + 0x1b90]
mov qword [rbx + 0x78], rsi
mov byte [rbp - 0x38], r12b
movsd xmm0, qword [rsi + 0x48]
movsd qword [rsi + 0x118], xmm0
mov qword [rsi + 0x450], rbx
mov rcx, qword [rbx + 0x78]
movsd qword [rbx + 0x40], xmm0
movsd xmm0, qword [rsi + 0x50]
movsd qword [rbx + 0x48], xmm0
cmp byte [rcx + 0xc5], r13b
je 0x140017d56
call fcn.14000e4bc
mov cl, byte [rbx + 0xb4]
mov rdi, qword [0x140336400]
jmp 0x140017d72
test rax, rax
je 0x140017d7c
mov rsi, qword [rax + 0x78]
mov qword [rbx + 0x78], rsi
and dword [rbx + 0xb0], 0xfffffe00
test cl, cl
jns 0x140017d98
mov rdx, qword [rbx + 0x78]
test rdx, rdx
je 0x140017d98
mov rcx, rbx
call fcn.1400176d4
mov rdi, qword [0x140336400]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
jne 0x140017e1c
mov rax, qword [r15 + 0x1d70]
test rax, rax
je 0x140017dd1
mov rdx, qword [rax + 0x3f0]
mov rax, qword [rdx + 0x448]
test rax, rax
je 0x140017dd1
cmp qword [rdx + 0x3e0], rsi
jne 0x140017dd1
mov eax, dword [rax]
mov dword [rbx + 0xa4], eax
test rsi, rsi
je 0x140017e1c
mov r12d, r14d
and r12d, 8
je 0x140017e1c
mov rdx, qword [rsi + 0x318]
mov byte [rbp - 0x39], 1
lea rcx, [rdx + 0xa8]
call fcn.1400258f4
mov rdx, qword [rsi + 0x318]
mov r8d, 1
lea rcx, [rdx + 0xa8]
call fcn.140025dd8
mov rcx, qword [rbx + 0x10]
mov rdi, qword [0x140336400]
jmp 0x140017e27
mov r12d, r14d
mov byte [rbp - 0x39], r13b
and r12d, 8
mov r14, qword [rbx + 0x88]
test rcx, rcx
jne 0x140017f93
test rsi, rsi
je 0x140017f93
test r12d, r12d
je 0x140017f93
test r14, r14
je 0x140017f93
cmp qword [r14 + 0x18], r13
jne 0x140017f93
cmp dword [r14 + 0x28], r13d
jne 0x140017f93
mov al, byte [rdi + 0x1ef4]
lea rcx, [rdi + 0x1f08]
neg al
mov r13b, 1
sbb r15, r15
and r15, rcx
je 0x140017eb1
cmp dword [r15 + 0x14], 0xffffffff
je 0x140017eb1
lea rdx, [r15 + 0x18]
lea rcx, str._IMWINDOW
call fcn.14016db80
test eax, eax
jne 0x140017eb1
mov rdx, qword [r15]
mov rcx, rsi
mov rdx, qword [rdx]
call fcn.140018d70
test al, al
jne 0x140017f89
movss xmm2, dword [r14 + 0x40]
movss xmm1, dword [r14 + 0x44]
movaps xmm4, xmm2
addss xmm2, dword [r14 + 0x48]
subss xmm4, dword [0x14030ccc0]
movaps xmm3, xmm1
addss xmm1, dword [r14 + 0x4c]
subss xmm3, dword [0x14030ccc0]
subss xmm2, dword [0x14030cb6c]
subss xmm1, dword [0x14030cb6c]
comiss xmm4, xmm2
ja 0x140017f89
comiss xmm3, xmm1
ja 0x140017f89
mov rcx, qword [rsi + 0x3e0]
subss xmm1, xmm3
subss xmm2, xmm4
movaps xmm0, xmm4
cvttss2si edx, xmm1
cvttss2si r8d, xmm2
mov word [rbp - 0x27], dx
movaps xmm1, xmm3
mov word [rbp - 0x29], r8w
mov eax, dword [rbp - 0x29]
mov dword [rsi + 0x2d0], eax
subss xmm0, dword [rsi + 0x48]
subss xmm1, dword [rsi + 0x4c]
cvttss2si eax, xmm0
mov word [rbp - 0x29], ax
cvttss2si eax, xmm1
mov word [rbp - 0x27], ax
mov eax, dword [rbp - 0x29]
mov dword [rsi + 0x2d4], eax
mov word [rbp - 0x29], r8w
mov word [rbp - 0x27], dx
mov eax, dword [rbp - 0x29]
mov dword [rcx + 0x2d0], eax
subss xmm4, dword [rcx + 0x48]
subss xmm3, dword [rcx + 0x4c]
cvttss2si eax, xmm4
mov word [rbp - 0x29], ax
cvttss2si eax, xmm3
mov word [rbp - 0x27], ax
mov eax, dword [rbp - 0x29]
mov dword [rcx + 0x2d4], eax
mov rax, qword [rbx + 0x10]
mov r15, qword [rbp - 0x19]
jmp 0x140017fa0
mov rax, qword [rbx + 0x10]
test rsi, rsi
je 0x14001804b
test rax, rax
jne 0x140017fc7
mov r8, qword [rsi + 0x50]
xor r9d, r9d
mov rdx, qword [rsi + 0x48]
mov rcx, rbx
call fcn.14001a0b8
mov rcx, rbx
call fcn.14001a44c
mov rdi, qword [0x140336400]
cmp qword [rbx + 0x18], 0
jne 0x14001804b
cmp dword [rbx + 0x28], 0
jne 0x14001804b
test byte [rbx + 0xb4], 1
je 0x14001804b
test r12d, r12d
jne 0x14001804b
movdqu xmm0, xmmword [rdi + 0x196c]
lea rcx, [rbp - 0x29]
movss xmm1, dword [rbx + 0x4c]
addss xmm1, dword [rbx + 0x44]
movups xmmword [rbp - 0x29], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rdi + 0x1640]
movss dword [rbp - 0x15], xmm1
movss dword [rbp - 0x1d], xmm0
movss xmm0, dword [rbx + 0x48]
addss xmm0, dword [rbx + 0x40]
movss dword [rbp - 0x19], xmm0
call fcn.14000317c
mov rcx, qword [rsi + 0x318]
lea rdx, [rbx + 0x40]
mov r9d, eax
mov dword [rsp + 0x28], reloc.WS2_32.dll_ntohs
lea r8, [rbp - 0x19]
movss dword [rsp + 0x20], xmm6
call fcn.14002540c
xor edi, edi
cmp byte [rbp - 0x39], dil
je 0x14001819f
test byte [rbx + 0xb4], 1
je 0x14001819f
mov rdx, qword [rsi + 0x318]
xor r8d, r8d
lea rcx, [rdx + 0xa8]
call fcn.140025dd8
mov rax, qword [0x140336400]
lea r10, [rbx + 0x40]
lea rcx, [rbp - 9]
test r13b, r13b
je 0x140018127
movss xmm0, dword [r14 + 0x40]
movss xmm1, dword [r14 + 0x44]
movss xmm2, dword [rbx + 0x44]
movss dword [rbp - 0x19], xmm0
addss xmm0, dword [r14 + 0x48]
movss dword [rbp - 0x15], xmm1
addss xmm1, dword [r14 + 0x4c]
movss dword [rbp - 0x25], xmm2
addss xmm2, dword [rbx + 0x4c]
movss dword [rbp - 0x11], xmm0
movss xmm0, dword [r10]
movss dword [rbp - 0x29], xmm0
addss xmm0, dword [rbx + 0x48]
movss dword [rbp - 0xd], xmm1
movss dword [rbp - 0x1d], xmm2
movss dword [rbp - 0x21], xmm0
movdqu xmm0, xmmword [rax + 0x171c]
movups xmmword [rbp - 9], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rax + 0x1640]
movss dword [rbp + 3], xmm0
call fcn.14000317c
mov rcx, qword [rsi + 0x318]
lea rdx, [rbp - 0x29]
mov r9d, eax
movss dword [rsp + 0x20], xmm6
lea r8, [rbp - 0x19]
call fcn.14002a1ec
jmp 0x14001818c
movdqu xmm0, xmmword [rax + 0x171c]
movss xmm1, dword [rbx + 0x4c]
addss xmm1, dword [r10 + 4]
movups xmmword [rbp - 9], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rax + 0x1640]
movss dword [rbp - 0x15], xmm1
movss dword [rbp + 3], xmm0
movss xmm0, dword [rbx + 0x48]
addss xmm0, dword [r10]
movss dword [rbp - 0x19], xmm0
call fcn.14000317c
mov rcx, qword [rsi + 0x318]
lea r8, [rbp - 0x19]
mov r9d, eax
mov dword [rsp + 0x28], reloc.WS2_32.dll_ntohs
mov rdx, r10
movss dword [rsp + 0x20], xmm6
call fcn.14002540c
mov rdx, qword [rsi + 0x318]
lea rcx, [rdx + 0xa8]
call fcn.140025a7c
test rsi, rsi
je 0x1400181b6
cmp dword [rbx + 0x28], edi
jle 0x1400181b6
mov rdx, rsi
mov rcx, rbx
call fcn.140018450
jmp 0x1400181cc
mov al, byte [rbx + 0xb4]
and al, 0xdf
mov dword [rbx + 0xac], edi
and al, 0xfd
mov byte [rbx + 0xb4], al
mov rax, qword [rbx + 0x38]
test rax, rax
je 0x1400181dc
mov eax, dword [rax + 0x18]
test eax, eax
jne 0x1400181eb
cmp dword [rbx + 0x28], edi
jle 0x1400181f1
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax]
mov eax, dword [rcx + 8]
mov dword [rbx + 0xa8], eax
test rsi, rsi
je 0x140018222
test byte [rbx + 0xb4], 1
je 0x140018222
cmp qword [rbx + 0x10], rdi
jne 0x140018222
mov rax, qword [r15 + 0x1bb8]
test rax, rax
je 0x14001821a
cmp qword [rax + 0x3e8], rsi
je 0x140018222
mov rcx, rsi
call fcn.14001b2bc
mov eax, dword [r15 + 0x1b18]
mov dword [rbx + 0x9c], eax
test rsi, rsi
je 0x14001825e
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140018242
call fcn.140017848
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140018250
call fcn.140017848
cmp qword [rbx + 0x10], rdi
jne 0x14001825e
mov rcx, rsi
call fcn.14000acfc
cmp byte [rbp - 0x38], dil
je 0x140018269
call fcn.14000e3b8
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.14005e190
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret