Function at 0x140168f00
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x100
call fcn.140189b00
sub rsp, rax
mov rax, qword [0x1401f3660]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rbx, qword [rsp + 0x150]
mov rdi, rcx
lea rcx, [rsp + 0x58]
mov rsi, r9
mov rbp, r8
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], rdx
xor r14d, r14d
call fcn.1400da360
test rsi, rsi
mov rcx, rbp
cmove rsi, rbp
mov qword [rsp + 0x50], rsi
call fcn.1400dce40
test eax, eax
mov ebp, eax
mov dword [rsp + 0x30], eax
js 0x1401692a9
mov esi, dword [rsp + 0x158]
cmp esi, 0xffffffff
jne 0x140168fe1
mov esi, eax
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0xf0], r13
mov qword [rsp + 0xe8], r15
call fcn.1400bb3d0
mov rcx, rdi
lea r13d, [rax - 1]
and r13d, 7
call fcn.1400d82d0
mov r15d, 0xff
mov edx, r15d
mov ecx, r13d
mov edi, eax
shl edx, cl
test byte [rbx], dl
je 0x140169014
lea r9, [0x140237fd0]
lea edx, [r15 - 0x6a]
lea r8d, [r15 - 0x7a]
mov ecx, 4
mov dword [rsp + 0x20], 0x76
call fcn.1400a5900
jmp 0x140169299
cmp esi, 0xfffffffe
jne 0x140168fe8
jmp 0x140168f7e
cmp esi, 0xfffffffe
jge 0x140168f7e
mov edx, __WSAFDIsSet
lea r9, [0x140237fb8]
mov ecx, 4
lea r8d, [rdx - 0xd]
mov dword [rsp + 0x20], reloc.WS2_32.dll_WSAGetLastError
call fcn.1400a5900
jmp 0x1401692a9
test r13d, r13d
jne 0x140169020
add rbx, 1
sub edi, 1
lea eax, [rbp + rsi + 2]
cmp edi, eax
jge 0x14016904f
mov edx, __WSAFDIsSet
lea r9, [0x140237fe8]
mov ecx, 4
lea r8d, [rdx - 0x28]
mov dword [rsp + 0x20], 0x7e
call fcn.1400a5900
jmp 0x140169299
movsxd rax, edi
cmp byte [rax + rbx - 1], 0xbc
je 0x140169080
mov edx, __WSAFDIsSet
lea r9, [0x140238000]
mov ecx, 4
lea r8d, [rdx - 0xf]
mov dword [rsp + 0x20], 0x82
call fcn.1400a5900
jmp 0x140169299
sub edi, ebp
mov qword [rsp + 0xf8], r12
lea rdx, [0x140238018]
sub edi, 1
mov r8d, 0x87
movsxd r12, edi
mov ecx, edi
lea rax, [r12 + rbx]
mov qword [rsp + 0x38], rax
call fcn.1400adb80
test rax, rax
mov rbp, rax
jne 0x1401690da
lea r9, [0x140238030]
lea ecx, [rax + 4]
lea r8d, [rax + 0x41]
mov edx, __WSAFDIsSet
mov dword [rsp + 0x20], Ordinal_143
call fcn.1400a5900
jmp 0x140169284
mov rax, qword [rsp + 0x50]
mov r9d, dword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.140153eb0
test eax, eax
js 0x140169284
test edi, edi
jle 0x140169121
mov rcx, rbp
sub rbx, rbp
nop
nop
movzx eax, byte [rbx + rcx]
add rcx, 1
xor byte [rcx - 1], al
sub r12, 1
jne 0x140169110
test r13d, r13d
je 0x140169135
mov ecx, 8
sub ecx, r13d
sar r15d, cl
and byte [rbp], r15b
mov ebx, r14d
cmp byte [rbp], bl
jne 0x140169153
lea ecx, [rdi - 1]
mov rax, rbp
cmp ebx, ecx
jge 0x140169153
add rax, 1
add ebx, 1
cmp byte [rax], r14b
je 0x140169143
movsxd rax, ebx
add ebx, 1
cmp byte [rax + rbp], 1
je 0x140169186
mov edx, __WSAFDIsSet
lea r9, [0x140238048]
mov ecx, 4
lea r8d, [rdx - 0xe]
mov dword [rsp + 0x20], __WSAFDIsSet
call fcn.1400a5900
jmp 0x140169284
test esi, esi
js 0x1401691b9
mov eax, edi
sub eax, ebx
cmp eax, esi
je 0x1401691b9
mov edx, __WSAFDIsSet
lea r9, [0x140238060]
mov ecx, 4
lea r8d, [rdx - 0xd]
mov dword [rsp + 0x20], 0x98
call fcn.1400a5900
jmp 0x140169284
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
xor r8d, r8d
call fcn.1400da3d0
test eax, eax
je 0x140169284
lea rdx, [0x1401c8460]
lea rcx, [rsp + 0x58]
mov r8d, 8
call fcn.1400da630
test eax, eax
je 0x140169284
movsxd rsi, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x58]
mov r8, rsi
call fcn.1400da630
test eax, eax
je 0x140169284
sub edi, ebx
je 0x140169228
movsxd rdx, ebx
lea rcx, [rsp + 0x58]
movsxd r8, edi
add rdx, rbp
call fcn.1400da630
test eax, eax
je 0x140169284
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x58]
xor r8d, r8d
call fcn.1400da650
test eax, eax
je 0x140169284
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x90]
mov r8, rsi
call fcn.140041240
test eax, eax
je 0x14016927e
mov edx, __WSAFDIsSet
lea r9, [0x140238078]
mov ecx, 4
lea r8d, [rdx - 0x2d]
mov dword [rsp + 0x20], 0xa6
call fcn.1400a5900
jmp 0x140169284
mov r14d, 1
test rbp, rbp
mov r12, qword [rsp + 0xf8]
je 0x140169299
mov rcx, rbp
call fcn.1400ae010
mov r13, qword [rsp + 0xf0]
mov r15, qword [rsp + 0xe8]
lea rcx, [rsp + 0x58]
call fcn.1400da6f0
mov eax, r14d
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140041910
add rsp, 0x100
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret