Function at 0x1405d4854
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, 0xb0
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x1406df080]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rdi, qword [0x1406e0940]
mov r13b, 0xfb
mov rbx, rcx
mov qword [rbp - 9], rdi
mov r15, rdi
mov eax, dword [rdi + 0x1b18]
and byte [rcx + 0xb5], r13b
and qword [rcx + 0x90], 0
and qword [rcx + 0x88], 0
cmp qword [rcx + 0x10], 0
mov dword [rcx + 0x98], eax
jne 0x1405d48d3
call fcn.1405d474c
mov rdi, qword [0x1406e0940]
mov rcx, qword [rbx + 0x38]
mov r12d, 1
test rcx, rcx
je 0x1405d48fe
mov eax, dword [rbx + 8]
shr eax, 0xc
test r12b, al
je 0x1405d48fe
call fcn.1405da408
and qword [rbx + 0x38], 0
mov rdi, qword [0x1406e0940]
mov r8d, dword [rbx + 0x28]
mov r11d, 0x400
cmp r8d, r12d
jg 0x1405d4a40
cmp qword [rbx + 0x10], 0
jne 0x1405d4a40
test dword [rbx + 8], r11d
jne 0x1405d4a40
cmp qword [rbx + 0x18], 0
jne 0x1405d4a40
cmp byte [r15 + 0xca], 0
jne 0x1405d4a40
lea rsi, [rbx + 0x30]
test r8d, r8d
je 0x1405d49ea
mov rax, qword [rsi]
mov rcx, qword [rax]
cmp byte [rcx + 0x2c], 0
jne 0x1405d4a40
cmp r8d, r12d
jne 0x1405d49ea
mov eax, dword [rbx + 0xb0]
mov rdi, rcx
movsd xmm0, qword [rcx + 0x48]
and eax, 0xfffffebf
bts eax, 7
movsd qword [rbx + 0x40], xmm0
movsd xmm1, qword [rcx + 0x58]
and eax, 0xffffffd7
or eax, 0x10
movsd qword [rbx + 0x48], xmm1
and eax, 0xfffffffa
or eax, 2
mov dword [rbx + 0xb0], eax
mov rax, qword [rbx + 0x78]
test rax, rax
je 0x1405d49b4
cmp qword [r15 + 0x1d70], rax
jne 0x1405d49b4
call fcn.1405cb62c
mov rax, qword [rbx + 0x78]
test rax, rax
je 0x1405d49ea
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 0x1405d49ea
mov qword [rdx + 0x98], rdi
mov byte [rdi + 0xbe], r12b
mov rcx, rbx
call fcn.1405d43cc
mov al, byte [rbx + 0xb4]
and dword [rbx + 0xac], 0
and al, 0xdf
and al, 0xe7
mov dword [rbx + 0xc], r12d
and al, r13b
mov byte [rbx + 0xb4], al
mov eax, dword [r15 + 0x1b18]
mov dword [rbx + 0x9c], eax
jge 0x1405d52ab
cmp dword [rbx + 0x28], r12d
jne 0x1405d52ab
mov rdx, qword [rsi]
mov rcx, rbx
mov rdx, qword [rdx]
call fcn.1405d46e0
jmp 0x1405d52ab
test byte [rbx + 0xb4], r12b
je 0x1405d4ac6
cmp qword [rbx + 0x78], 0
jne 0x1405d4ac6
cmp qword [rbx + 0x10], 0
jne 0x1405d4ac6
test dword [rbx + 8], r11d
jne 0x1405d4ac6
cmp qword [rbx + 0x18], 0
jne 0x1405d4ac6
mov r9d, dword [rbx + 0xa8]
test r9d, r9d
je 0x1405d4aa1
xor ecx, ecx
test r8d, r8d
jle 0x1405d4aa1
mov r10, qword [rbx + 0x30]
mov rdx, r10
mov rax, qword [rdx]
cmp dword [rax + 8], r9d
je 0x1405d4a95
add ecx, r12d
add rdx, 8
cmp ecx, r8d
jl 0x1405d4a7e
jmp 0x1405d4aa1
movsxd rax, ecx
mov rcx, qword [r10 + rax*8]
test rcx, rcx
jne 0x1405d4aa8
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax]
cmp byte [rcx + 0xd4], 0
jg 0x1405d4aba
cmp byte [rcx + 0xd5], 0
jle 0x1405d4ac6
mov dword [rbx + 0xc], 2
jmp 0x1405d52ab
mov eax, dword [rbx + 8]
xor esi, esi
mov cl, byte [rbx + 0xb4]
mov r14d, eax
or r14d, dword [rbx + 4]
and cl, 0xef
shr eax, 0xa
xorps xmm6, xmm6
mov byte [rbp - 0x48], sil
test r12b, al
je 0x1405d4b1b
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 0x1405d4db6
test r8d, r8d
jle 0x1405d4b2b
bt r14d, 0xf
jb 0x1405d4b2b
mov dl, 4
jmp 0x1405d4b2d
xor dl, dl
and cl, r13b
or cl, dl
test r8d, r8d
jle 0x1405d4b42
bt r14d, 0xe
jb 0x1405d4b42
mov al, 8
jmp 0x1405d4b44
xor al, al
and cl, 0xf7
xor r10d, r10d
or cl, al
mov byte [rbx + 0xb4], cl
test r8d, r8d
jle 0x1405d4ba6
xor r9d, r9d
mov rax, qword [rbx + 0x30]
cmp r8d, r12d
setg cl
add r10d, r12d
mov rdx, qword [r9 + rax]
lea r9, [r9 + 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
mov r8d, dword [rbx + 0x28]
cmp r10d, r8d
jl 0x1405d4b5a
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x1405d4d83
test r12b, cl
je 0x1405d4d95
cmp dword [rbx + 0x28], esi
jle 0x1405d4bca
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax]
jmp 0x1405d4bcc
xor ecx, ecx
mov eax, dword [rbx + 0xb0]
shl eax, 0x1d
sar eax, 0x1d
cmp eax, 2
jne 0x1405d4bf0
test rcx, rcx
je 0x1405d4c23
or dword [rdi + 0x1c40], r12d
movsd xmm0, qword [rcx + 0x48]
jmp 0x1405d4c01
cmp eax, r12d
jne 0x1405d4c23
or dword [rdi + 0x1c40], r12d
movsd xmm0, qword [rbx + 0x40]
and dword [rdi + 0x1c5c], esi
and dword [rdi + 0x1c60], esi
mov byte [rdi + 0x1c7c], r12b
mov dword [rdi + 0x1c44], r12d
movsd qword [rdi + 0x1c54], xmm0
mov eax, dword [rbx + 0xb0]
shl eax, 0x1a
sar eax, 0x1d
cmp eax, 2
jne 0x1405d4c46
test rcx, rcx
je 0x1405d4c66
or dword [rdi + 0x1c40], eax
movsd xmm0, qword [rcx + 0x58]
jmp 0x1405d4c57
cmp eax, r12d
jne 0x1405d4c66
or dword [rdi + 0x1c40], 2
movsd xmm0, qword [rbx + 0x48]
mov dword [rdi + 0x1c48], r12d
movsd qword [rdi + 0x1c64], xmm0
mov eax, dword [rbx + 0xb0]
and al, 0x38
cmp al, 0x10
jne 0x1405d4c91
test rcx, rcx
je 0x1405d4c91
mov al, byte [rcx + 0xc2]
or dword [rdi + 0x1c40], 8
mov byte [rdi + 0x1c7d], al
mov dword [rdi + 0x1c4c], r12d
mov eax, dword [rbx + 0xb0]
and eax, 0x1c0
cmp eax, 0x80
jne 0x1405d4cb9
test rcx, rcx
je 0x1405d4cb9
mov eax, dword [rcx + 0x38]
bts dword [rdi + 0x1c40], 8
mov dword [rdi + 0x1ca4], eax
or dword [rdi + 0x1c40], r11d
lea r8, str.DockNode__02X
movups xmm0, xmmword [rbx + 0x5c]
mov edx, reloc.WS2_32.dll_sendto
lea rcx, [rbp - 1]
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.1405bfba8
and dword [rbp - 0x41], esi
lea rdx, [rbp - 0x41]
and dword [rbp - 0x3d], esi
mov ecx, r12d
call fcn.1405c0780
xor edx, edx
lea rcx, [rbp - 1]
mov r8d, 0x20081139
call fcn.1405c9044
mov ecx, r12d
call fcn.1405c080c
mov rsi, qword [r15 + 0x1b90]
mov qword [rbx + 0x78], rsi
mov byte [rbp - 0x48], r12b
movss xmm0, dword [rsi + 0x48]
movss xmm1, dword [rsi + 0x4c]
movss dword [rsi + 0x118], xmm0
movss dword [rsi + 0x11c], xmm1
mov qword [rsi + 0x450], rbx
mov rcx, qword [rbx + 0x78]
movss dword [rbx + 0x40], xmm0
movss dword [rbx + 0x44], xmm1
movsd xmm0, qword [rsi + 0x50]
movsd qword [rbx + 0x48], xmm0
cmp byte [rcx + 0xc5], 0
je 0x1405d4d7a
call fcn.1405cb590
mov rdi, qword [0x1406e0940]
jmp 0x1405d4d8b
mov rsi, qword [rax + 0x78]
mov qword [rbx + 0x78], rsi
and dword [rbx + 0xb0], 0xfffffe00
cmp byte [rbx + 0xb4], 0
jge 0x1405d4db6
mov rdx, qword [rbx + 0x78]
test rdx, rdx
je 0x1405d4db6
mov rcx, rbx
call fcn.1405d46e0
mov rdi, qword [0x1406e0940]
cmp qword [rbx + 0x10], 0
jne 0x1405d4e30
mov rax, qword [r15 + 0x1d70]
test rax, rax
je 0x1405d4ded
mov rcx, qword [rax + 0x3f0]
mov rax, qword [rcx + 0x448]
test rax, rax
je 0x1405d4ded
cmp qword [rcx + 0x3e0], rsi
jne 0x1405d4ded
mov eax, dword [rax]
mov dword [rbx + 0xa4], eax
test rsi, rsi
je 0x1405d4e30
mov r15d, r14d
and r15d, 8
je 0x1405d4e30
mov rdx, qword [rsi + 0x318]
mov r13b, r12b
lea rcx, [rdx + 0xa8]
call fcn.1405e2e20
mov rdx, qword [rsi + 0x318]
mov r8d, r12d
lea rcx, [rdx + 0xa8]
call fcn.1405e32bc
mov rdi, qword [0x1406e0940]
jmp 0x1405d4e3a
xor r13b, r13b
and r14d, 8
mov r15d, r14d
cmp qword [rbx + 0x10], 0
mov edx, r15d
mov rax, qword [rbx + 0x88]
mov qword [rbp - 0x19], rax
jne 0x1405d4fbe
test rsi, rsi
je 0x1405d4fbe
test r15d, r15d
je 0x1405d4fbe
test rax, rax
je 0x1405d4fbe
cmp qword [rax + 0x18], 0
jne 0x1405d4fbe
cmp dword [rax + 0x28], 0
jne 0x1405d4fbe
mov al, byte [rdi + 0x1ef4]
lea rcx, [rdi + 0x1f08]
neg al
mov r14b, r13b
sbb rax, rax
and rax, rcx
mov qword [rbp - 0x29], rax
je 0x1405d4ee0
cmp dword [rax + 0x14], 0xffffffff
je 0x1405d4edd
lea rdx, [rax + 0x18]
lea rcx, str._IMWINDOW
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1405d4eda
mov rdx, qword [rbp - 0x29]
mov rcx, rsi
mov rdx, qword [rdx]
mov rdx, qword [rdx]
call fcn.1405d5dd8
test al, al
je 0x1405d4ee0
mov rax, qword [rbx + 0x10]
jmp 0x1405d4fd1
mov edx, r15d
mov r15d, edx
mov rax, qword [rbp - 0x19]
movss xmm3, dword [rax + 0x40]
movss xmm2, dword [rax + 0x44]
movaps xmm4, xmm3
addss xmm4, dword [rax + 0x48]
subss xmm3, dword [0x1406cf47c]
movaps xmm1, xmm2
addss xmm1, dword [rax + 0x4c]
subss xmm2, dword [0x1406cf47c]
subss xmm4, dword [0x1406cf3bc]
subss xmm1, dword [0x1406cf3bc]
comiss xmm3, xmm4
ja 0x1405d4fb8
comiss xmm2, xmm1
ja 0x1405d4fb8
mov rcx, qword [rsi + 0x3e0]
subss xmm1, xmm2
subss xmm4, xmm3
movaps xmm0, xmm3
cvttss2si edx, xmm1
cvttss2si r8d, xmm4
mov word [rbp - 0x3f], dx
movaps xmm1, xmm2
mov word [rbp - 0x41], r8w
mov eax, dword [rbp - 0x41]
mov dword [rsi + 0x2d0], eax
subss xmm0, dword [rsi + 0x48]
subss xmm1, dword [rsi + 0x4c]
cvttss2si eax, xmm0
mov word [rbp - 0x41], ax
cvttss2si eax, xmm1
mov word [rbp - 0x3f], ax
mov eax, dword [rbp - 0x41]
mov dword [rsi + 0x2d4], eax
mov word [rbp - 0x41], r8w
mov word [rbp - 0x3f], dx
mov eax, dword [rbp - 0x41]
mov dword [rcx + 0x2d0], eax
subss xmm3, dword [rcx + 0x48]
subss xmm2, dword [rcx + 0x4c]
cvttss2si eax, xmm3
mov word [rbp - 0x41], ax
cvttss2si eax, xmm2
mov word [rbp - 0x3f], ax
mov eax, dword [rbp - 0x41]
mov dword [rcx + 0x2d4], eax
mov rax, qword [rbx + 0x10]
jmp 0x1405d4fd1
mov rax, qword [rbx + 0x10]
xor r12b, r12b
mov r14b, r13b
test rsi, rsi
je 0x1405d5090
mov cl, r14b
mov byte [rbp - 0x49], cl
test rax, rax
jne 0x1405d5001
mov r8, qword [rsi + 0x50]
xor r9d, r9d
mov rdx, qword [rsi + 0x48]
mov rcx, rbx
call fcn.1405d715c
mov rcx, rbx
call fcn.1405d74dc
mov rdi, qword [0x1406e0940]
mov cl, r14b
cmp qword [rbx + 0x18], 0
jne 0x1405d5090
cmp dword [rbx + 0x28], 0
jne 0x1405d5090
test byte [rbx + 0xb4], 1
mov r14b, cl
je 0x1405d5090
test r15d, r15d
jne 0x1405d5090
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 - 0x3d], xmm1
movss dword [rbp - 0x1d], xmm0
movss xmm0, dword [rbx + 0x40]
addss xmm0, dword [rbx + 0x48]
movss dword [rbp - 0x41], xmm0
call fcn.1405c0354
mov rcx, qword [rsi + 0x318]
lea rdx, [rbx + 0x40]
mov r9d, eax
mov dword [rsp + 0x28], reloc.WS2_32.dll_ntohs
lea r8, [rbp - 0x41]
movss dword [rsp + 0x20], xmm6
call fcn.1405e2944
mov r14b, byte [rbp - 0x49]
test r14b, r14b
je 0x1405d51d9
test byte [rbx + 0xb4], 1
je 0x1405d51d9
mov rdx, qword [rsi + 0x318]
xor r8d, r8d
lea rcx, [rdx + 0xa8]
call fcn.1405e32bc
mov rax, qword [0x1406e0940]
movdqu xmm0, xmmword [rax + 0x171c]
test r12b, r12b
je 0x1405d5165
movss xmm3, dword [rbx + 0x44]
lea rcx, [rbp - 0x41]
movups xmmword [rbp - 0x41], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rax + 0x1640]
mov rax, qword [rbp - 0x19]
movss dword [rbp - 0x15], xmm3
addss xmm3, dword [rbx + 0x4c]
movss dword [rbp - 0x35], xmm0
movss xmm1, dword [rax + 0x40]
movss xmm2, dword [rax + 0x44]
movss xmm0, dword [rbx + 0x40]
movss dword [rbp - 0x29], xmm1
addss xmm1, dword [rax + 0x48]
movss dword [rbp - 0x25], xmm2
addss xmm2, dword [rax + 0x4c]
movss dword [rbp - 0x19], xmm0
addss xmm0, dword [rbx + 0x48]
movss dword [rbp - 0x21], xmm1
movss dword [rbp - 0xd], xmm3
movss dword [rbp - 0x1d], xmm2
movss dword [rbp - 0x11], xmm0
call fcn.1405c0354
mov rcx, qword [rsi + 0x318]
lea rdx, [rbp - 0x19]
mov r9d, eax
movss dword [rsp + 0x20], xmm6
lea r8, [rbp - 0x29]
call fcn.1405e70f8
jmp 0x1405d51c6
movss xmm1, dword [rbx + 0x4c]
lea rcx, [rbp - 0x29]
addss xmm1, dword [rbx + 0x44]
movups xmmword [rbp - 0x29], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rax + 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.1405c0354
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.1405e2944
mov rdx, qword [rsi + 0x318]
lea rcx, [rdx + 0xa8]
call fcn.1405e2fb4
test rsi, rsi
je 0x1405d51f1
cmp dword [rbx + 0x28], 0
jle 0x1405d51f1
mov rdx, rsi
mov rcx, rbx
call fcn.1405d5494
jmp 0x1405d5208
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 0x1405d5218
mov eax, dword [rax + 0x18]
test eax, eax
jne 0x1405d5228
cmp dword [rbx + 0x28], 0
jle 0x1405d522e
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax]
mov eax, dword [rcx + 8]
mov dword [rbx + 0xa8], eax
mov rdi, qword [rbp - 9]
test rsi, rsi
je 0x1405d5264
test byte [rbx + 0xb4], 1
je 0x1405d5264
cmp qword [rbx + 0x10], 0
jne 0x1405d5264
mov rax, qword [rdi + 0x1bb8]
test rax, rax
je 0x1405d525c
cmp qword [rax + 0x3e8], rsi
je 0x1405d5264
mov rcx, rsi
call fcn.1405d8368
mov eax, dword [rdi + 0x1b18]
mov dword [rbx + 0x9c], eax
test rsi, rsi
je 0x1405d52a0
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1405d5283
call fcn.1405d4854
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1405d5291
call fcn.1405d4854
cmp qword [rbx + 0x10], 0
jne 0x1405d52a0
mov rcx, rsi
call fcn.1405c7e9c
cmp byte [rbp - 0x48], 0
je 0x1405d52ab
call fcn.1405cb48c
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140668060
lea r11, [rsp + 0xb0]
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