Function at 0x140017274
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 [0x140123080]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rdi, qword [0x140124080]
mov r12b, 0xfb
mov rbx, rcx
mov qword [rbp - 0x19], rdi
mov r15, rdi
mov eax, dword [rdi + 0x1b18]
and byte [rcx + 0xb5], r12b
and qword [rcx + 0x90], 0
and qword [rcx + 0x88], 0
cmp qword [rcx + 0x10], 0
mov dword [rcx + 0x98], eax
jne 0x1400172f3
call fcn.14001716c
mov rdi, qword [0x140124080]
cmp qword [rbx + 0x38], 0
mov r13d, 1
je 0x14001731a
mov eax, dword [rbx + 8]
shr eax, 0xc
test r13b, al
je 0x14001731a
mov rcx, rbx
call fcn.140018738
mov rdi, qword [0x140124080]
mov edx, dword [rbx + 0x28]
mov r10d, 0x400
cmp edx, r13d
jg 0x14001745e
cmp qword [rbx + 0x10], 0
jne 0x14001745e
test dword [rbx + 8], r10d
jne 0x14001745e
cmp qword [rbx + 0x18], 0
jne 0x14001745e
cmp byte [r15 + 0xca], 0
jne 0x14001745e
test edx, edx
je 0x140017407
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax]
cmp byte [rcx + 0x2c], 0
jne 0x14001745e
cmp edx, r13d
jne 0x140017407
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 0x1400173d5
cmp qword [r15 + 0x1d70], rcx
jne 0x1400173da
mov rcx, rdi
call fcn.14000e0d4
mov rax, qword [rbx + 0x78]
test rax, rax
je 0x140017407
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], 0
je 0x140017407
mov qword [rdx + 0x98], rdi
mov byte [rdi + 0xbe], r13b
mov rcx, rbx
call fcn.140016dfc
mov al, byte [rbx + 0xb4]
and dword [rbx + 0xac], 0
and al, 0xdf
and al, 0xe7
mov dword [rbx + 0xc], r13d
and al, r12b
mov byte [rbx + 0xb4], al
mov eax, dword [r15 + 0x1b18]
mov dword [rbx + 0x9c], eax
jge 0x140017c79
cmp dword [rbx + 0x28], r13d
jne 0x140017c79
mov rdx, qword [rbx + 0x30]
mov rcx, rbx
mov rdx, qword [rdx]
call fcn.140017100
jmp 0x140017c79
mov cl, byte [rbx + 0xb4]
test r13b, cl
je 0x1400174f2
cmp qword [rbx + 0x78], 0
jne 0x1400174f2
cmp qword [rbx + 0x10], 0
jne 0x1400174f2
test dword [rbx + 8], r10d
jne 0x1400174f2
cmp qword [rbx + 0x18], 0
jne 0x1400174f2
mov r10d, dword [rbx + 0xa8]
test r10d, r10d
je 0x1400174c5
xor r8d, r8d
test edx, edx
jle 0x1400174c5
mov r11, qword [rbx + 0x30]
mov r9, r11
mov rax, qword [r9]
cmp dword [rax + 8], r10d
je 0x1400174b9
add r8d, r13d
add r9, 8
cmp r8d, edx
jl 0x1400174a2
jmp 0x1400174c5
movsxd rax, r8d
mov r8, qword [r11 + rax*8]
test r8, r8
jne 0x1400174cc
mov rax, qword [rbx + 0x30]
mov r8, qword [rax]
cmp byte [r8 + 0xd4], 0
jg 0x1400174e0
cmp byte [r8 + 0xd5], 0
jle 0x1400174ec
mov dword [rbx + 0xc], 2
jmp 0x140017c79
mov r10d, 0x400
mov eax, dword [rbx + 8]
xor esi, esi
mov r14d, eax
mov byte [rbp - 0x38], sil
or r14d, dword [rbx + 4]
and cl, 0xef
shr eax, 0xa
xorps xmm6, xmm6
test r13b, al
je 0x140017541
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 0x1400177d2
test edx, edx
jle 0x140017551
bt r14d, 0xf
jb 0x140017551
mov r8b, 4
jmp 0x140017554
xor r8b, r8b
and cl, r12b
or cl, r8b
test edx, edx
jle 0x140017569
bt r14d, 0xe
jb 0x140017569
mov al, 8
jmp 0x14001756b
xor al, al
and cl, 0xf7
xor r9d, r9d
or cl, al
mov byte [rbx + 0xb4], cl
test edx, edx
jle 0x1400175ca
xor r8d, r8d
mov rax, qword [rbx + 0x30]
cmp dword [rbx + 0x28], r13d
setg cl
add r9d, r13d
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 0x140017580
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x1400177a4
test r13b, cl
je 0x14001779f
cmp dword [rbx + 0x28], esi
jle 0x1400175ee
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax]
jmp 0x1400175f0
xor ecx, ecx
mov eax, dword [rbx + 0xb0]
shl eax, 0x1d
sar eax, 0x1d
cmp eax, 2
jne 0x140017614
test rcx, rcx
je 0x140017647
or dword [rdi + 0x1c40], r13d
movsd xmm0, qword [rcx + 0x48]
jmp 0x140017625
cmp eax, r13d
jne 0x140017647
or dword [rdi + 0x1c40], r13d
movsd xmm0, qword [rbx + 0x40]
and dword [rdi + 0x1c5c], esi
and dword [rdi + 0x1c60], esi
mov byte [rdi + 0x1c7c], r13b
mov dword [rdi + 0x1c44], r13d
movsd qword [rdi + 0x1c54], xmm0
mov eax, dword [rbx + 0xb0]
shl eax, 0x1a
sar eax, 0x1d
cmp eax, 2
jne 0x14001766a
test rcx, rcx
je 0x14001768a
or dword [rdi + 0x1c40], eax
movsd xmm0, qword [rcx + 0x58]
jmp 0x14001767b
cmp eax, r13d
jne 0x14001768a
or dword [rdi + 0x1c40], 2
movsd xmm0, qword [rbx + 0x48]
mov dword [rdi + 0x1c48], r13d
movsd qword [rdi + 0x1c64], xmm0
mov edx, dword [rbx + 0xb0]
mov eax, edx
and al, 0x38
cmp al, 0x10
jne 0x1400176bd
test rcx, rcx
je 0x1400176bd
mov al, byte [rcx + 0xc2]
or dword [rdi + 0x1c40], 8
mov byte [rdi + 0x1c7d], al
mov dword [rdi + 0x1c4c], r13d
mov edx, dword [rbx + 0xb0]
and edx, 0x1c0
cmp edx, 0x80
jne 0x1400176e1
test rcx, rcx
je 0x1400176e1
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.14000282c
and dword [rbp - 0x29], esi
lea rdx, [rbp - 0x29]
and dword [rbp - 0x25], esi
mov ecx, r13d
call fcn.1400034a8
xor edx, edx
lea rcx, [rbp + 7]
mov r8d, 0x20081139
call fcn.14000bba4
mov ecx, r13d
call fcn.140003534
mov rsi, qword [r15 + 0x1b90]
mov qword [rbx + 0x78], rsi
mov byte [rbp - 0x38], r13b
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], 0
je 0x140017790
call fcn.14000e034
mov cl, byte [rbx + 0xb4]
mov rdi, qword [0x140124080]
jmp 0x1400177ac
test rax, rax
je 0x1400177b6
mov rsi, qword [rax + 0x78]
mov qword [rbx + 0x78], rsi
and dword [rbx + 0xb0], 0xfffffe00
test cl, cl
jns 0x1400177d2
mov rdx, qword [rbx + 0x78]
test rdx, rdx
je 0x1400177d2
mov rcx, rbx
call fcn.140017100
mov rdi, qword [0x140124080]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
jne 0x140017853
mov rax, qword [r15 + 0x1d70]
test rax, rax
je 0x14001780b
mov rdx, qword [rax + 0x3f0]
mov rax, qword [rdx + 0x448]
test rax, rax
je 0x14001780b
cmp qword [rdx + 0x3e0], rsi
jne 0x14001780b
mov eax, dword [rax]
mov dword [rbx + 0xa4], eax
test rsi, rsi
je 0x140017853
mov r12d, r14d
and r12d, 8
je 0x140017853
mov rdx, qword [rsi + 0x318]
mov byte [rbp - 0x39], r13b
lea rcx, [rdx + 0xa8]
call fcn.140025088
mov rdx, qword [rsi + 0x318]
mov r8d, r13d
lea rcx, [rdx + 0xa8]
call fcn.14002553c
mov rcx, qword [rbx + 0x10]
mov rdi, qword [0x140124080]
jmp 0x14001785e
mov r12d, r14d
mov byte [rbp - 0x39], 0
and r12d, 8
mov r14, qword [rbx + 0x88]
test rcx, rcx
jne 0x1400179c7
test rsi, rsi
je 0x1400179c7
test r12d, r12d
je 0x1400179c7
test r14, r14
je 0x1400179c7
cmp qword [r14 + 0x18], rcx
jne 0x1400179c7
cmp dword [r14 + 0x28], ecx
jne 0x1400179c7
mov al, byte [rdi + 0x1ef4]
lea rcx, [rdi + 0x1f08]
neg al
sbb r15, r15
and r15, rcx
je 0x1400178e5
cmp dword [r15 + 0x14], 0xffffffff
je 0x1400178e5
lea rdx, [r15 + 0x18]
lea rcx, str._IMWINDOW
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400178e5
mov rdx, qword [r15]
mov rcx, rsi
mov rdx, qword [rdx]
call fcn.1400187ec
test al, al
jne 0x1400179bd
movss xmm2, dword [r14 + 0x40]
movss xmm1, dword [r14 + 0x44]
movaps xmm4, xmm2
addss xmm2, dword [r14 + 0x48]
subss xmm4, dword [0x1401167e8]
movaps xmm3, xmm1
addss xmm1, dword [r14 + 0x4c]
subss xmm3, dword [0x1401167e8]
subss xmm2, dword [0x140116740]
subss xmm1, dword [0x140116740]
comiss xmm4, xmm2
ja 0x1400179bd
comiss xmm3, xmm1
ja 0x1400179bd
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 0x1400179d7
mov rax, qword [rbx + 0x10]
xor r13b, r13b
test rsi, rsi
je 0x140017a82
test rax, rax
jne 0x1400179fe
mov r8, qword [rsi + 0x50]
xor r9d, r9d
mov rdx, qword [rsi + 0x48]
mov rcx, rbx
call fcn.140019b38
mov rcx, rbx
call fcn.140019ea4
mov rdi, qword [0x140124080]
cmp qword [rbx + 0x18], 0
jne 0x140017a82
cmp dword [rbx + 0x28], 0
jne 0x140017a82
test byte [rbx + 0xb4], 1
je 0x140017a82
test r12d, r12d
jne 0x140017a82
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 + 0x40]
addss xmm0, dword [rbx + 0x48]
movss dword [rbp - 0x19], xmm0
call fcn.140002fb4
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.140024be8
cmp byte [rbp - 0x39], 0
je 0x140017baa
test byte [rbx + 0xb4], 1
je 0x140017baa
mov rdx, qword [rsi + 0x318]
xor r8d, r8d
lea rcx, [rdx + 0xa8]
call fcn.14002553c
mov rax, qword [0x140124080]
lea rcx, [rbp - 9]
movdqu xmm0, xmmword [rax + 0x171c]
movups xmmword [rbp - 9], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rax + 0x1640]
movss dword [rbp + 3], xmm0
movss xmm0, dword [rbx + 0x40]
test r13b, r13b
je 0x140017b54
movss xmm1, dword [r14 + 0x40]
movss xmm2, dword [r14 + 0x44]
movss xmm3, dword [rbx + 0x44]
movss dword [rbp - 0x19], xmm1
addss xmm1, dword [r14 + 0x48]
movss dword [rbp - 0x15], xmm2
addss xmm2, dword [r14 + 0x4c]
movss dword [rbp - 0x25], xmm3
addss xmm3, dword [rbx + 0x4c]
movss dword [rbp - 0x29], xmm0
addss xmm0, dword [rbx + 0x48]
movss dword [rbp - 0x11], xmm1
movss dword [rbp - 0xd], xmm2
movss dword [rbp - 0x1d], xmm3
movss dword [rbp - 0x21], xmm0
call fcn.140002fb4
mov rcx, qword [rsi + 0x318]
lea rdx, [rbp - 0x29]
mov r9d, eax
movss dword [rsp + 0x20], xmm6
lea r8, [rbp - 0x19]
call fcn.1400291c0
jmp 0x140017b97
movss xmm1, dword [rbx + 0x4c]
addss xmm1, dword [rbx + 0x44]
addss xmm0, dword [rbx + 0x48]
movss dword [rbp - 0x15], xmm1
movss dword [rbp - 0x19], xmm0
call fcn.140002fb4
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.140024be8
mov rdx, qword [rsi + 0x318]
lea rcx, [rdx + 0xa8]
call fcn.140025208
test rsi, rsi
je 0x140017bc2
cmp dword [rbx + 0x28], 0
jle 0x140017bc2
mov rdx, rsi
mov rcx, rbx
call fcn.140017e60
jmp 0x140017bd9
mov al, byte [rbx + 0xb4]
and dword [rbx + 0xac], 0
and al, 0xdf
and al, 0xfd
mov byte [rbx + 0xb4], al
mov rax, qword [rbx + 0x38]
test rax, rax
je 0x140017be9
mov eax, dword [rax + 0x18]
test eax, eax
jne 0x140017bf9
cmp dword [rbx + 0x28], 0
jle 0x140017bff
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax]
mov eax, dword [rcx + 8]
mov dword [rbx + 0xa8], eax
test rsi, rsi
je 0x140017c31
test byte [rbx + 0xb4], 1
je 0x140017c31
cmp qword [rbx + 0x10], 0
jne 0x140017c31
mov rax, qword [r15 + 0x1bb8]
test rax, rax
je 0x140017c29
cmp qword [rax + 0x3e8], rsi
je 0x140017c31
mov rcx, rsi
call fcn.14001ace8
mov eax, dword [r15 + 0x1b18]
mov dword [rbx + 0x9c], eax
test rsi, rsi
je 0x140017c6e
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140017c51
call fcn.140017274
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140017c5f
call fcn.140017274
cmp qword [rbx + 0x10], 0
jne 0x140017c6e
mov rcx, rsi
call fcn.14000a9ac
cmp byte [rbp - 0x38], 0
je 0x140017c79
call fcn.14000df30
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.14009bc10
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