Function at 0x140016c70
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 [0x140139010]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rdi, qword [0x140139c50]
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 0x140016cef
call fcn.140016b68
mov rdi, qword [0x140139c50]
cmp qword [rbx + 0x38], 0
mov r13d, 1
je 0x140016d16
mov eax, dword [rbx + 8]
shr eax, 0xc
test r13b, al
je 0x140016d16
mov rcx, rbx
call fcn.140018134
mov rdi, qword [0x140139c50]
mov edx, dword [rbx + 0x28]
mov r10d, 0x400
cmp edx, r13d
jg 0x140016e5a
cmp qword [rbx + 0x10], 0
jne 0x140016e5a
test dword [rbx + 8], r10d
jne 0x140016e5a
cmp qword [rbx + 0x18], 0
jne 0x140016e5a
cmp byte [r15 + 0xca], 0
jne 0x140016e5a
test edx, edx
je 0x140016e03
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax]
cmp byte [rcx + 0x2c], 0
jne 0x140016e5a
cmp edx, r13d
jne 0x140016e03
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 0x140016dd1
cmp qword [r15 + 0x1d70], rcx
jne 0x140016dd6
mov rcx, rdi
call fcn.14000db38
mov rax, qword [rbx + 0x78]
test rax, rax
je 0x140016e03
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 0x140016e03
mov qword [rdx + 0x98], rdi
mov byte [rdi + 0xbe], r13b
mov rcx, rbx
call fcn.1400167f8
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 0x140017675
cmp dword [rbx + 0x28], r13d
jne 0x140017675
mov rdx, qword [rbx + 0x30]
mov rcx, rbx
mov rdx, qword [rdx]
call fcn.140016afc
jmp 0x140017675
mov cl, byte [rbx + 0xb4]
test r13b, cl
je 0x140016eee
cmp qword [rbx + 0x78], 0
jne 0x140016eee
cmp qword [rbx + 0x10], 0
jne 0x140016eee
test dword [rbx + 8], r10d
jne 0x140016eee
cmp qword [rbx + 0x18], 0
jne 0x140016eee
mov r10d, dword [rbx + 0xa8]
test r10d, r10d
je 0x140016ec1
xor r8d, r8d
test edx, edx
jle 0x140016ec1
mov r11, qword [rbx + 0x30]
mov r9, r11
mov rax, qword [r9]
cmp dword [rax + 8], r10d
je 0x140016eb5
add r8d, r13d
add r9, 8
cmp r8d, edx
jl 0x140016e9e
jmp 0x140016ec1
movsxd rax, r8d
mov r8, qword [r11 + rax*8]
test r8, r8
jne 0x140016ec8
mov rax, qword [rbx + 0x30]
mov r8, qword [rax]
cmp byte [r8 + 0xd4], 0
jg 0x140016edc
cmp byte [r8 + 0xd5], 0
jle 0x140016ee8
mov dword [rbx + 0xc], 2
jmp 0x140017675
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 0x140016f3d
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 0x1400171ce
test edx, edx
jle 0x140016f4d
bt r14d, 0xf
jb 0x140016f4d
mov r8b, 4
jmp 0x140016f50
xor r8b, r8b
and cl, r12b
or cl, r8b
test edx, edx
jle 0x140016f65
bt r14d, 0xe
jb 0x140016f65
mov al, 8
jmp 0x140016f67
xor al, al
and cl, 0xf7
xor r9d, r9d
or cl, al
mov byte [rbx + 0xb4], cl
test edx, edx
jle 0x140016fc6
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 0x140016f7c
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x1400171a0
test r13b, cl
je 0x14001719b
cmp dword [rbx + 0x28], esi
jle 0x140016fea
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax]
jmp 0x140016fec
xor ecx, ecx
mov eax, dword [rbx + 0xb0]
shl eax, 0x1d
sar eax, 0x1d
cmp eax, 2
jne 0x140017010
test rcx, rcx
je 0x140017043
or dword [rdi + 0x1c40], r13d
movsd xmm0, qword [rcx + 0x48]
jmp 0x140017021
cmp eax, r13d
jne 0x140017043
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 0x140017066
test rcx, rcx
je 0x140017086
or dword [rdi + 0x1c40], eax
movsd xmm0, qword [rcx + 0x58]
jmp 0x140017077
cmp eax, r13d
jne 0x140017086
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 0x1400170b9
test rcx, rcx
je 0x1400170b9
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 0x1400170dd
test rcx, rcx
je 0x1400170dd
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, 0x14
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.1400023b8
and dword [rbp - 0x29], esi
lea rdx, [rbp - 0x29]
and dword [rbp - 0x25], esi
mov ecx, r13d
call fcn.140002e14
xor edx, edx
lea rcx, [rbp + 7]
mov r8d, 0x20081139
call fcn.14000b608
mov ecx, r13d
call fcn.140002ea0
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 0x14001718c
call fcn.14000da98
mov cl, byte [rbx + 0xb4]
mov rdi, qword [0x140139c50]
jmp 0x1400171a8
test rax, rax
je 0x1400171b2
mov rsi, qword [rax + 0x78]
mov qword [rbx + 0x78], rsi
and dword [rbx + 0xb0], 0xfffffe00
test cl, cl
jns 0x1400171ce
mov rdx, qword [rbx + 0x78]
test rdx, rdx
je 0x1400171ce
mov rcx, rbx
call fcn.140016afc
mov rdi, qword [0x140139c50]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
jne 0x14001724f
mov rax, qword [r15 + 0x1d70]
test rax, rax
je 0x140017207
mov rdx, qword [rax + 0x3f0]
mov rax, qword [rdx + 0x448]
test rax, rax
je 0x140017207
cmp qword [rdx + 0x3e0], rsi
jne 0x140017207
mov eax, dword [rax]
mov dword [rbx + 0xa4], eax
test rsi, rsi
je 0x14001724f
mov r12d, r14d
and r12d, 8
je 0x14001724f
mov rdx, qword [rsi + 0x318]
mov byte [rbp - 0x39], r13b
lea rcx, [rdx + 0xa8]
call fcn.140024a38
mov rdx, qword [rsi + 0x318]
mov r8d, r13d
lea rcx, [rdx + 0xa8]
call fcn.140024eec
mov rcx, qword [rbx + 0x10]
mov rdi, qword [0x140139c50]
jmp 0x14001725a
mov r12d, r14d
mov byte [rbp - 0x39], 0
and r12d, 8
mov r14, qword [rbx + 0x88]
test rcx, rcx
jne 0x1400173c3
test rsi, rsi
je 0x1400173c3
test r12d, r12d
je 0x1400173c3
test r14, r14
je 0x1400173c3
cmp qword [r14 + 0x18], rcx
jne 0x1400173c3
cmp dword [r14 + 0x28], ecx
jne 0x1400173c3
mov al, byte [rdi + 0x1ef4]
lea rcx, [rdi + 0x1f08]
neg al
sbb r15, r15
and r15, rcx
je 0x1400172e1
cmp dword [r15 + 0x14], 0xffffffff
je 0x1400172e1
lea rdx, [r15 + 0x18]
lea rcx, str._IMWINDOW
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400172e1
mov rdx, qword [r15]
mov rcx, rsi
mov rdx, qword [rdx]
call fcn.1400181e8
test al, al
jne 0x1400173b9
movss xmm2, dword [r14 + 0x40]
movss xmm1, dword [r14 + 0x44]
movaps xmm4, xmm2
addss xmm2, dword [r14 + 0x48]
subss xmm4, dword [0x140131030]
movaps xmm3, xmm1
addss xmm1, dword [r14 + 0x4c]
subss xmm3, dword [0x140131030]
subss xmm2, dword [0x140130f98]
subss xmm1, dword [0x140130f98]
comiss xmm4, xmm2
ja 0x1400173b9
comiss xmm3, xmm1
ja 0x1400173b9
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 0x1400173d3
mov rax, qword [rbx + 0x10]
xor r13b, r13b
test rsi, rsi
je 0x14001747e
test rax, rax
jne 0x1400173fa
mov r8, qword [rsi + 0x50]
xor r9d, r9d
mov rdx, qword [rsi + 0x48]
mov rcx, rbx
call fcn.140019534
mov rcx, rbx
call fcn.1400198a0
mov rdi, qword [0x140139c50]
cmp qword [rbx + 0x18], 0
jne 0x14001747e
cmp dword [rbx + 0x28], 0
jne 0x14001747e
test byte [rbx + 0xb4], 1
je 0x14001747e
test r12d, r12d
jne 0x14001747e
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.140002920
mov rcx, qword [rsi + 0x318]
lea rdx, [rbx + 0x40]
mov r9d, eax
mov dword [rsp + 0x28], 0xf
lea r8, [rbp - 0x19]
movss dword [rsp + 0x20], xmm6
call fcn.140024598
cmp byte [rbp - 0x39], 0
je 0x1400175a6
test byte [rbx + 0xb4], 1
je 0x1400175a6
mov rdx, qword [rsi + 0x318]
xor r8d, r8d
lea rcx, [rdx + 0xa8]
call fcn.140024eec
mov rax, qword [0x140139c50]
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 0x140017550
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.140002920
mov rcx, qword [rsi + 0x318]
lea rdx, [rbp - 0x29]
mov r9d, eax
movss dword [rsp + 0x20], xmm6
lea r8, [rbp - 0x19]
call fcn.140028b7c
jmp 0x140017593
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.140002920
mov rcx, qword [rsi + 0x318]
lea rdx, [rbx + 0x40]
mov r9d, eax
mov dword [rsp + 0x28], 0xf
lea r8, [rbp - 0x19]
movss dword [rsp + 0x20], xmm6
call fcn.140024598
mov rdx, qword [rsi + 0x318]
lea rcx, [rdx + 0xa8]
call fcn.140024bb8
test rsi, rsi
je 0x1400175be
cmp dword [rbx + 0x28], 0
jle 0x1400175be
mov rdx, rsi
mov rcx, rbx
call fcn.14001785c
jmp 0x1400175d5
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 0x1400175e5
mov eax, dword [rax + 0x18]
test eax, eax
jne 0x1400175f5
cmp dword [rbx + 0x28], 0
jle 0x1400175fb
mov rax, qword [rbx + 0x30]
mov rcx, qword [rax]
mov eax, dword [rcx + 8]
mov dword [rbx + 0xa8], eax
test rsi, rsi
je 0x14001762d
test byte [rbx + 0xb4], 1
je 0x14001762d
cmp qword [rbx + 0x10], 0
jne 0x14001762d
mov rax, qword [r15 + 0x1bb8]
test rax, rax
je 0x140017625
cmp qword [rax + 0x3e8], rsi
je 0x14001762d
mov rcx, rsi
call fcn.14001a6e4
mov eax, dword [r15 + 0x1b18]
mov dword [rbx + 0x9c], eax
test rsi, rsi
je 0x14001766a
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14001764d
call fcn.140016c70
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001765b
call fcn.140016c70
cmp qword [rbx + 0x10], 0
jne 0x14001766a
mov rcx, rsi
call fcn.14000a400
cmp byte [rbp - 0x38], 0
je 0x140017675
call fcn.14000d994
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400e6b50
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