Function at 0x140016b20
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push r14
push r15
lea rbp, [rsp - 0x3f]
sub rsp, 0xd8
mov rax, qword [0x140129b78]
xor rax, rsp
mov qword [rbp - 1], rax
mov r14, qword [0x14015fb28]
xor r15d, r15d
mov rdi, rcx
mov qword [rbp - 0x49], r14
mov eax, dword [r14 + 0x1c90]
and byte [rcx + 0xbd], 0xfd
mov dword [rcx + 0xa0], eax
mov qword [rcx + 0x98], r15
mov qword [rcx + 0x90], r15
cmp qword [rcx + 0x10], r15
jne 0x140016ca1
call fcn.140018650
mov edx, r15d
mov ecx, r15d
mov qword [rbp - 0x11], rdx
mov dword [rbp - 9], ecx
cmp dword [rdi + 0x28], r15d
jle 0x140016ba5
mov rdx, rdi
mov ecx, 1
mov qword [rbp - 0x11], rdx
mov dword [rbp - 9], ecx
mov eax, dword [rdi + 8]
shr eax, 0xb
test al, 1
mov rax, r15
cmovne rax, rdi
mov qword [rbp - 0x19], rax
cmp ecx, 1
jle 0x140016bc2
test rax, rax
jne 0x140016c02
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x140016be2
lea rdx, [rbp - 0x19]
mov rcx, r8
call fcn.1400142e0
mov ecx, dword [rbp - 9]
mov rdx, qword [rbp - 0x11]
mov rax, qword [rbp - 0x19]
mov r8, qword [rdi + 0x20]
test r8, r8
je 0x140016c02
lea rdx, [rbp - 0x19]
mov rcx, r8
call fcn.1400142e0
mov ecx, dword [rbp - 9]
mov rdx, qword [rbp - 0x11]
mov rax, qword [rbp - 0x19]
mov qword [rdi + 0x90], rax
cmp ecx, 1
mov rax, r15
cmove rax, rdx
mov qword [rdi + 0x98], rax
cmp dword [rdi + 0xac], r15d
jne 0x140016c30
test rdx, rdx
je 0x140016ca1
mov eax, dword [rdx]
mov dword [rdi + 0xac], eax
test rdx, rdx
je 0x140016ca1
mov rax, qword [rdx + 0x30]
mov r8d, 1
mov rcx, qword [rax]
movups xmm0, xmmword [rcx + 0x24]
movups xmmword [rdi + 0x5c], xmm0
movups xmm1, xmmword [rcx + 0x34]
movups xmmword [rdi + 0x6c], xmm1
movsxd rax, dword [rdx + 0x28]
cmp eax, r8d
jle 0x140016ca1
mov r10, qword [rdx + 0x30]
mov r9, rax
mov edx, r8d
lea rcx, [r10 + 8]
nop dword [rax]
mov rax, qword [rcx]
cmp byte [rax + 0x41], r15b
je 0x140016c8a
inc r8d
inc rdx
add rcx, 8
cmp rdx, r9
jl 0x140016c70
jmp 0x140016ca1
movsxd rax, r8d
mov rcx, qword [r10 + rax*8]
movups xmm0, xmmword [rcx + 0x24]
movups xmmword [rdi + 0x5c], xmm0
movups xmm1, xmmword [rcx + 0x34]
movups xmmword [rdi + 0x6c], xmm1
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140016cbd
mov eax, dword [rdi + 8]
shr eax, 0xc
test al, 1
je 0x140016cbd
call fcn.140008ed0
mov qword [rdi + 0x38], r15
mov r8d, dword [rdi + 0x28]
mov qword [rsp + 0x108], rbx
mov qword [rsp + 0x110], rsi
cmp r8d, 1
jg 0x140016e1d
cmp qword [rdi + 0x10], r15
jne 0x140016e1d
test dword [rdi + 8], 0x400
jne 0x140016e1d
cmp qword [rdi + 0x18], r15
jne 0x140016e1d
cmp byte [r14 + 0xc9], r15b
jne 0x140016e1d
lea rsi, [rdi + 0x30]
test r8d, r8d
je 0x140016dc1
mov rax, qword [rsi]
mov rcx, qword [rax]
cmp byte [rcx + 0x40], r15b
jne 0x140016e1d
cmp r8d, 1
jne 0x140016dc1
mov eax, dword [rdi + 0xb8]
mov rbx, rcx
movsd xmm0, qword [rcx + 0x60]
and eax, 0xfffffebf
bts eax, 7
movsd qword [rdi + 0x40], xmm0
movsd xmm1, qword [rcx + 0x70]
and eax, 0xffffffd7
or eax, 0x10
movsd qword [rdi + 0x48], xmm1
and eax, 0xfffffffa
or eax, 2
mov dword [rdi + 0xb8], eax
mov rax, qword [rdi + 0x80]
test rax, rax
je 0x140016d82
cmp qword [r14 + 0x1f50], rax
jne 0x140016d82
call fcn.14001b880
mov rax, qword [rdi + 0x80]
test rax, rax
je 0x140016dc1
mov rdx, qword [rax + 0x48]
mov qword [rbx + 0x48], rdx
mov rax, qword [rdi + 0x80]
mov ecx, dword [rax + 0x50]
mov dword [rbx + 0x50], ecx
mov rax, qword [rdi + 0x80]
cmp byte [rax + 0xde], r15b
je 0x140016dc1
mov qword [rdx + 0x88], rbx
mov byte [rbx + 0xde], 1
mov rcx, rdi
call fcn.140014350
movzx edx, byte [rdi + 0xbc]
and dl, 0xef
mov dword [rdi + 0xc], 1
and dl, 0xf3
mov dword [rdi + 0xb4], r15d
mov byte [rdi + 0xbc], dl
mov eax, dword [r14 + 0x1c90]
mov dword [rdi + 0xa4], eax
test dl, 0x40
je 0x14001774c
cmp dword [rdi + 0x28], 1
jne 0x14001774c
mov rdx, qword [rsi]
mov rcx, rdi
mov rdx, qword [rdx]
call fcn.1400158b0
jmp 0x14001774c
movzx r9d, byte [rdi + 0xbc]
test r9b, 1
je 0x140016eb7
cmp qword [rdi + 0x80], r15
jne 0x140016eb7
cmp qword [rdi + 0x10], r15
jne 0x140016eb7
test dword [rdi + 8], 0x400
jne 0x140016eb7
cmp qword [rdi + 0x18], r15
jne 0x140016eb7
mov r10d, dword [rdi + 0xb0]
test r10d, r10d
je 0x140016e92
mov ecx, r15d
test r8d, r8d
jle 0x140016e92
mov r11, qword [rdi + 0x30]
mov rdx, r11
nop dword [rax + rax]
mov rax, qword [rdx]
cmp dword [rax + 0x18], r10d
je 0x140016e86
inc ecx
add rdx, 8
cmp ecx, r8d
jl 0x140016e70
jmp 0x140016e92
movsxd rax, ecx
mov rcx, qword [r11 + rax*8]
test rcx, rcx
jne 0x140016e99
mov rax, qword [rdi + 0x30]
mov rcx, qword [rax]
cmp byte [rcx + 0xf8], r15b
jg 0x140016eab
cmp byte [rcx + 0xf9], r15b
jle 0x140016eb7
mov dword [rdi + 0xc], 2
jmp 0x14001774c
mov eax, dword [rdi + 8]
mov ebx, eax
or ebx, dword [rdi + 4]
mov qword [rsp + 0xd0], r13
movaps xmmword [rsp + 0xa0], xmm9
test r8d, r8d
jle 0x140016eef
bt ebx, 0xe
jb 0x140016eef
and r9b, 0xfb
or r9b, 8
mov byte [rdi + 0xbc], r9b
mov r9d, r15d
jmp 0x140016f02
and r9b, 0xf3
mov byte [rdi + 0xbc], r9b
mov r9d, r15d
test r8d, r8d
jle 0x140016f61
mov r8, r15
nop word [rax + rax]
mov rax, qword [rdi + 0x30]
lea r8, [r8 + 8]
mov rdx, qword [r8 + rax - 8]
movzx eax, byte [rdi + 0xbc]
movzx ecx, byte [rdx + 0xe8]
shl cl, 2
or cl, al
and al, 0xfb
and cl, 4
xor cl, al
cmp dword [rdi + 0x28], 1
mov byte [rdi + 0xbc], cl
movzx eax, byte [rdx + 0x439]
setg cl
and al, 0xfe
inc r9d
or cl, al
mov byte [rdx + 0x439], cl
cmp r9d, dword [rdi + 0x28]
jl 0x140016f10
mov eax, dword [rdi + 8]
bt ebx, 0xf
jae 0x140016f6e
and byte [rdi + 0xbc], 0xfb
shr eax, 0xa
mov rsi, r15
mov byte [rbp - 0x68], sil
xorps xmm9, xmm9
test al, 1
je 0x140016f8c
mov rsi, qword [rdi + 0x80]
jmp 0x1400171d5
mov rax, qword [rdi + 0x10]
test rax, rax
jne 0x1400171a0
test byte [rdi + 0xbc], 1
je 0x1400171b8
cmp dword [rdi + 0x28], esi
jle 0x140016fb4
mov rax, qword [rdi + 0x30]
mov rdx, qword [rax]
jmp 0x140016fb7
mov rdx, r15
mov eax, dword [rdi + 0xb8]
shl eax, 0x1d
sar eax, 0x1d
cmp eax, 2
jne 0x140016fe2
test rdx, rdx
je 0x14001701a
mov rax, qword [0x14015fb28]
or dword [rax + 0x1dc0], 1
movsd xmm0, qword [rdx + 0x60]
jmp 0x140016ffa
cmp eax, 1
jne 0x14001701a
mov rax, qword [0x14015fb28]
or dword [rax + 0x1dc0], 1
movsd xmm0, qword [rdi + 0x40]
mov byte [rax + 0x1dfc], 1
mov dword [rax + 0x1dc4], 1
mov qword [rax + 0x1ddc], r15
movsd qword [rax + 0x1dd4], xmm0
mov eax, dword [rdi + 0xb8]
shl eax, 0x1a
sar eax, 0x1d
cmp eax, 2
jne 0x140017045
test rdx, rdx
je 0x14001706f
mov rax, qword [0x14015fb28]
or dword [rax + 0x1dc0], 2
movsd xmm0, qword [rdx + 0x70]
jmp 0x14001705d
cmp eax, 1
jne 0x14001706f
mov rax, qword [0x14015fb28]
or dword [rax + 0x1dc0], 2
movsd xmm0, qword [rdi + 0x48]
mov dword [rax + 0x1dc8], 1
movsd qword [rax + 0x1de4], xmm0
mov eax, dword [rdi + 0xb8]
and al, 0x38
cmp al, 0x10
jne 0x1400170a5
test rdx, rdx
je 0x1400170a5
mov rcx, qword [0x14015fb28]
movzx eax, byte [rdx + 0xe2]
or dword [rcx + 0x1dc0], 8
mov byte [rcx + 0x1dfd], al
mov dword [rcx + 0x1dcc], 1
mov eax, dword [rdi + 0xb8]
and eax, 0x1c0
cmp eax, 0x80
jne 0x1400170d6
test rdx, rdx
je 0x1400170d6
mov rax, qword [0x14015fb28]
mov ecx, dword [rdx + 0x50]
or dword [rax + 0x1dc0], 0x100
mov dword [rax + 0x1e24], ecx
mov rax, qword [0x14015fb28]
lea r8, str.DockNode__02X
mov edx, reloc.WS2_32.dll_sendto
lea rcx, [rbp - 0x19]
or dword [rax + 0x1dc0], 0x400
movups xmm0, xmmword [rdi + 0x5c]
movups xmmword [rax + 0x1e2c], xmm0
movups xmm1, xmmword [rdi + 0x6c]
movups xmmword [rax + 0x1e3c], xmm1
mov r9d, dword [rdi]
call fcn.14001cd80
lea rdx, [rbp - 0x59]
mov qword [rbp - 0x59], rsi
mov ecx, 1
call fcn.1400243a0
xor edx, edx
lea rcx, [rbp - 0x19]
mov r8d, 0x20081139
call fcn.14000bf10
mov ecx, 1
call fcn.140023af0
mov rsi, qword [r14 + 0x1d18]
mov qword [rdi + 0x80], rsi
mov byte [rbp - 0x68], 1
movss xmm0, dword [rsi + 0x60]
movss xmm1, dword [rsi + 0x64]
movss dword [rsi + 0x128], xmm0
movss dword [rsi + 0x12c], xmm1
mov qword [rsi + 0x460], rdi
mov rcx, qword [rdi + 0x80]
movss dword [rdi + 0x40], xmm0
movss dword [rdi + 0x44], xmm1
movsd xmm0, qword [rsi + 0x68]
movsd qword [rdi + 0x48], xmm0
cmp byte [rcx + 0xe5], r15b
je 0x1400171ae
call fcn.14000fe50
jmp 0x1400171ae
mov rsi, qword [rax + 0x80]
mov qword [rdi + 0x80], rsi
and dword [rdi + 0xb8], 0xfffffe00
test byte [rdi + 0xbc], 0x40
je 0x1400171d5
mov rdx, qword [rdi + 0x80]
test rdx, rdx
je 0x1400171d5
mov rcx, rdi
call fcn.1400158b0
mov qword [rsp + 0x118], r12
cmp qword [rdi + 0x10], r15
jne 0x140017258
mov rax, qword [r14 + 0x1f50]
test rax, rax
je 0x140017213
mov rcx, qword [rax + 0x3e0]
mov rax, qword [rcx + 0x458]
test rax, rax
je 0x140017213
cmp qword [rcx + 0x3d8], rsi
jne 0x140017213
mov eax, dword [rax]
mov dword [rdi + 0xac], eax
test rsi, rsi
je 0x140017258
mov r14d, ebx
and r14d, 8
je 0x140017258
mov rdx, qword [rsi + 0x308]
mov r8d, 2
mov r12b, 1
lea rcx, [rdx + 0xa8]
call fcn.140036c90
mov rdx, qword [rsi + 0x308]
mov r8d, 1
lea rcx, [rdx + 0xa8]
call fcn.140036b60
jmp 0x140017261
xor r12b, r12b
and ebx, 8
mov r14d, ebx
mov ecx, r14d
mov r13, qword [rdi + 0x90]
cmp qword [rdi + 0x10], r15
jne 0x140017455
test rsi, rsi
je 0x140017455
test r14d, r14d
je 0x140017455
test r13, r13
je 0x140017455
cmp qword [r13 + 0x18], r15
jne 0x140017455
cmp dword [r13 + 0x28], r15d
jne 0x140017455
mov rax, qword [0x14015fb28]
movzx ebx, r12b
cmp byte [rax + 0x20d4], 0
lea r15, [rax + 0x20e8]
mov eax, 0
cmove r15, rax
test r15, r15
je 0x14001730a
cmp dword [r15 + 0x14], 0xffffffff
je 0x140017307
lea rdx, [r15 + 0x18]
lea rcx, str._IMWINDOW
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140017304
mov rdx, qword [r15]
mov rcx, rsi
mov rdx, qword [rdx]
call fcn.1400143c0
test al, al
je 0x14001730a
mov rax, qword [rdi + 0x10]
mov r15b, 1
jmp 0x140017466
mov ecx, r14d
mov r14d, ecx
mov rax, qword [r13 + 0x10]
mov rcx, r13
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm8
test rax, rax
je 0x14001733c
nop word [rax + rax]
mov rcx, rax
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140017330
movss xmm0, dword [rcx + 0x40]
movss xmm4, dword [r13 + 0x40]
movaps xmm6, xmm0
comiss xmm4, xmm0
movss xmm3, dword [r13 + 0x44]
movaps xmm2, xmm4
movss xmm8, dword [rcx + 0x44]
movaps xmm1, xmm3
addss xmm6, dword [rcx + 0x48]
addss xmm2, dword [r13 + 0x48]
addss xmm1, dword [r13 + 0x4c]
addss xmm8, dword [rcx + 0x4c]
movss xmm5, dword [0x1400cff4c]
jbe 0x140017384
addss xmm4, xmm5
comiss xmm6, xmm2
movaps xmm6, xmmword [rsp + 0xc0]
jbe 0x140017395
subss xmm2, xmm5
comiss xmm3, dword [rcx + 0x44]
jbe 0x14001739f
addss xmm3, xmm5
comiss xmm8, xmm1
movaps xmm8, xmmword [rsp + 0xb0]
jbe 0x1400173b2
subss xmm1, xmm5
comiss xmm4, xmm2
ja 0x1400172f8
comiss xmm3, xmm1
ja 0x1400172f8
mov rcx, qword [rsi + 0x3d8]
subss xmm1, xmm3
subss xmm2, xmm4
movaps xmm0, xmm4
mov r15b, 1
cvttss2si edx, xmm1
cvttss2si r8d, xmm2
mov word [rbp - 0x57], dx
movaps xmm1, xmm3
mov word [rbp - 0x59], r8w
mov eax, dword [rbp - 0x59]
mov dword [rsi + 0x2c0], eax
subss xmm0, dword [rsi + 0x60]
subss xmm1, dword [rsi + 0x64]
cvttss2si eax, xmm0
mov word [rbp - 0x59], ax
cvttss2si eax, xmm1
mov word [rbp - 0x57], ax
mov eax, dword [rbp - 0x59]
mov dword [rsi + 0x2c4], eax
mov word [rbp - 0x59], r8w
mov word [rbp - 0x57], dx
mov eax, dword [rbp - 0x59]
mov dword [rcx + 0x2c0], eax
subss xmm4, dword [rcx + 0x60]
subss xmm3, dword [rcx + 0x64]
cvttss2si eax, xmm4
mov word [rbp - 0x59], ax
cvttss2si eax, xmm3
mov word [rbp - 0x57], ax
mov eax, dword [rbp - 0x59]
mov dword [rcx + 0x2c4], eax
mov rax, qword [rdi + 0x10]
jmp 0x140017466
mov rax, qword [rdi + 0x10]
movzx ebx, r12b
test rsi, rsi
je 0x14001752b
mov byte [rbp - 0x69], bl
movzx ecx, bl
test rax, rax
jne 0x14001748f
mov r8, qword [rsi + 0x68]
xor r9d, r9d
mov rdx, qword [rsi + 0x60]
mov rcx, rdi
call fcn.1400160c0
mov rcx, rdi
call fcn.1400163c0
movzx ecx, bl
cmp qword [rdi + 0x18], 0
jne 0x14001752b
cmp dword [rdi + 0x28], 0
jne 0x14001752b
test byte [rdi + 0xbc], 1
movzx ebx, cl
je 0x14001752b
test r14d, r14d
jne 0x14001752b
mov rax, qword [0x14015fb28]
lea rcx, [rbp - 0x39]
movss xmm1, dword [rdi + 0x44]
addss xmm1, dword [rdi + 0x4c]
movups xmm0, xmmword [rax + 0x196c]
movups xmmword [rbp - 0x39], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rax + 0x1638]
movss dword [rbp - 0x55], xmm1
movss dword [rbp - 0x2d], xmm0
movss xmm0, dword [rdi + 0x40]
addss xmm0, dword [rdi + 0x48]
movss dword [rbp - 0x59], xmm0
call fcn.140011560
mov rcx, qword [rsi + 0x308]
lea r8, [rbp - 0x59]
xor r14d, r14d
lea rdx, [rdi + 0x40]
mov dword [rsp + 0x28], r14d
mov r9d, eax
movss dword [rsp + 0x20], xmm9
call fcn.140030880
movzx ebx, byte [rbp - 0x69]
jmp 0x14001752e
xor r14d, r14d
mov r12, qword [rsp + 0x118]
test bl, bl
je 0x14001765a
test byte [rdi + 0xbc], 1
je 0x14001765a
mov rdx, qword [rsi + 0x308]
xor r8d, r8d
lea rcx, [rdx + 0xa8]
call fcn.140036b60
mov rax, qword [0x14015fb28]
lea rcx, [rbp - 0x29]
movups xmm0, xmmword [rax + 0x171c]
movups xmmword [rbp - 0x29], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rax + 0x1638]
movss dword [rbp - 0x1d], xmm0
movss xmm0, dword [rdi + 0x40]
test r15b, r15b
je 0x140017606
movss xmm1, dword [r13 + 0x40]
movss xmm2, dword [r13 + 0x44]
movss xmm3, dword [rdi + 0x44]
movss dword [rbp - 0x59], xmm1
addss xmm1, dword [r13 + 0x48]
movss dword [rbp - 0x55], xmm2
addss xmm2, dword [r13 + 0x4c]
movss dword [rbp - 0x35], xmm3
addss xmm3, dword [rdi + 0x4c]
movss dword [rbp - 0x39], xmm0
addss xmm0, dword [rdi + 0x48]
movss dword [rbp - 0x51], xmm1
movss dword [rbp - 0x4d], xmm2
movss dword [rbp - 0x2d], xmm3
movss dword [rbp - 0x31], xmm0
call fcn.140011560
mov rcx, qword [rsi + 0x308]
lea r8, [rbp - 0x59]
mov r9d, eax
movss dword [rsp + 0x20], xmm9
lea rdx, [rbp - 0x39]
call fcn.140036050
jmp 0x140017647
movss xmm1, dword [rdi + 0x44]
addss xmm1, dword [rdi + 0x4c]
addss xmm0, dword [rdi + 0x48]
movss dword [rbp - 0x55], xmm1
movss dword [rbp - 0x59], xmm0
call fcn.140011560
mov rcx, qword [rsi + 0x308]
lea r8, [rbp - 0x59]
mov r9d, eax
mov dword [rsp + 0x28], r14d
lea rdx, [rdi + 0x40]
movss dword [rsp + 0x20], xmm9
call fcn.140030880
mov rdx, qword [rsi + 0x308]
lea rcx, [rdx + 0xa8]
call fcn.140033e80
movaps xmm9, xmmword [rsp + 0xa0]
mov r13, qword [rsp + 0xd0]
test rsi, rsi
je 0x140017683
cmp dword [rdi + 0x28], 0
jle 0x140017683
mov rdx, rsi
mov rcx, rdi
call fcn.140017780
jmp 0x14001769b
movzx eax, byte [rdi + 0xbc]
and al, 0xef
mov dword [rdi + 0xb4], r14d
and al, 0xfd
mov byte [rdi + 0xbc], al
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x1400176ab
mov eax, dword [rax + 0x18]
test eax, eax
jne 0x1400176bb
cmp dword [rdi + 0x28], 0
jle 0x1400176c1
mov rax, qword [rdi + 0x30]
mov rcx, qword [rax]
mov eax, dword [rcx + 0x18]
mov dword [rdi + 0xb0], eax
mov rbx, qword [rbp - 0x49]
test rsi, rsi
je 0x140017705
test byte [rdi + 0xbc], 1
je 0x140017705
cmp qword [rdi + 0x10], 0
jne 0x140017705
mov rax, qword [rbx + 0x1d38]
test rax, rax
je 0x1400176ef
cmp qword [rax + 0x3e8], rsi
je 0x140017705
mov rcx, rsi
call fcn.14000ede0
mov eax, dword [rbx + 0x1c90]
mov dword [rdi + 0xa4], eax
jmp 0x140017716
mov eax, dword [rbx + 0x1c90]
mov dword [rdi + 0xa4], eax
test rsi, rsi
je 0x140017741
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140017724
call fcn.140016b20
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x140017732
call fcn.140016b20
cmp qword [rdi + 0x10], 0
jne 0x140017741
mov rcx, rsi
call fcn.140026dd0
cmp byte [rbp - 0x68], 0
je 0x14001774c
call fcn.140019630
mov rsi, qword [rsp + 0x110]
mov rbx, qword [rsp + 0x108]
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.1400c90c0
add rsp, 0xd8
pop r15
pop r14
pop rdi
pop rbp
ret