Function at 0x1400b9860
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x208
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov bpl, 1
test r8b, r8b
je 0x1400b9ac7
mov rax, qword [rsi + 0x20]
mov qword [rsp + 0x40], rax
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov rax, qword [rdi + 0x38]
cmp rax, 1
je 0x1400b98d1
test rax, rax
jne 0x1400b9961
mov rax, qword [rdi + 0x40]
add rax, 0xfffffffffffffffd
cmp rax, 2
jb 0x1400b9961
lea rcx, [rdi + 0x40]
call fcn.140081fa0
jmp 0x1400b9961
mov eax, dword [rdi + 0x40]
or eax, 2
cmp eax, 2
je 0x1400b9961
mov rax, qword [0x1402cee10]
test rax, rax
je 0x1400b9bba
lea rcx, [0x140142370]
cmp rax, rcx
jne 0x1400b991f
mov r14, qword [rdi + 0x48]
test r14, r14
je 0x1400b991f
mov rcx, r14
call sub.KERNEL32.dll_DeleteCriticalSection
call sub.KERNEL32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, r14
call fcn.14021dfcd
mov rcx, qword [rdi + 0x58]
mov rax, qword [rdi + 0x60]
call qword [rax]
mov rax, qword [rdi + 0x60]
cmp qword [rax + 8], 0
je 0x1400b9961
mov r14, qword [rdi + 0x58]
cmp qword [rax + 0x10], 0x11
jae 0x1400b994e
call sub.KERNEL32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, r14
jmp 0x1400b995c
call sub.KERNEL32.dll_GetProcessHeap
mov r8, qword [r14 - 8]
mov rcx, rax
xor edx, edx
call fcn.14021dfcd
mov qword [rdi + 0x38], 1
lea r14, [rdi + 0x40]
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rdi + 0x40], xmm0
movups xmmword [rdi + 0x50], xmm1
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x60], rax
lea rcx, [rdi + 0x68]
lea rdx, [rsp + 0x50]
mov r8d, 0x190
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi]
nop
mov rcx, rax
xor rcx, 3
lock cmpxchg qword [rdi], rcx
jne 0x1400b99a0
test al, 1
je 0x1400b9bee
test al, 2
jne 0x1400b9c08
test al, 8
jne 0x1400b99f3
mov rax, qword [rdi + 0x38]
cmp rax, 1
je 0x1400b9a1a
test rax, rax
jne 0x1400b9aaa
mov rax, qword [r14]
add rax, 0xfffffffffffffffd
cmp rax, 2
jb 0x1400b9aaa
mov rcx, r14
call fcn.140081fa0
jmp 0x1400b9aaa
test al, 0x10
je 0x1400b9ac5
mov rax, qword [rdi + 0x200]
test rax, rax
je 0x1400b9c22
mov rcx, qword [rdi + 0x1f8]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x1400b9ac5
mov eax, dword [r14]
or eax, 2
cmp eax, 2
je 0x1400b9aaa
mov rax, qword [0x1402cee10]
test rax, rax
je 0x1400b9bd4
lea rcx, [0x140142370]
cmp rax, rcx
jne 0x1400b9a68
mov r15, qword [rdi + 0x48]
test r15, r15
je 0x1400b9a68
mov rcx, r15
call sub.KERNEL32.dll_DeleteCriticalSection
call sub.KERNEL32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.14021dfcd
mov rcx, qword [rdi + 0x58]
mov rax, qword [rdi + 0x60]
call qword [rax]
mov rax, qword [rdi + 0x60]
cmp qword [rax + 8], 0
je 0x1400b9aaa
mov r15, qword [rdi + 0x58]
cmp qword [rax + 0x10], 0x11
jae 0x1400b9a97
call sub.KERNEL32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, r15
jmp 0x1400b9aa5
call sub.KERNEL32.dll_GetProcessHeap
mov r8, qword [r15 - 8]
mov rcx, rax
xor edx, edx
call fcn.14021dfcd
mov qword [rdi + 0x38], 2
lea rdx, [rsp + 0x50]
mov r8d, 0x1b8
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
xor ebp, ebp
cmp qword [rdi + 0x30], 0
je 0x1400b9ae3
lea rcx, [rdi + 0x30]
mov rdx, rdi
call fcn.14011bf10
test rax, rax
setne r8b
jmp 0x1400b9ae6
xor r8d, r8d
xor bl, 1
mov rcx, rdi
mov edx, ebx
call fcn.140157490
cmp rax, 0x3f
ja 0x1400b9b01
mov rcx, rdi
call fcn.1400b7400
test bpl, bpl
je 0x1400b9b10
mov eax, dword [rsi]
or eax, 2
cmp eax, 2
jne 0x1400b9b20
add rsp, 0x208
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rax, qword [0x1402cee10]
test rax, rax
je 0x1400b9ba7
lea rcx, [0x140142370]
cmp rax, rcx
jne 0x1400b9b5b
mov rdi, qword [rsi + 8]
test rdi, rdi
je 0x1400b9b5b
mov rcx, rdi
call sub.KERNEL32.dll_DeleteCriticalSection
call sub.KERNEL32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, rdi
call fcn.14021dfcd
mov rdi, qword [rsi + 0x18]
mov rsi, qword [rsi + 0x20]
mov rcx, rdi
call qword [rsi]
cmp qword [rsi + 8], 0
je 0x1400b9b10
cmp qword [rsi + 0x10], 0x11
jae 0x1400b9b85
call sub.KERNEL32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, rdi
jmp 0x1400b9b93
call sub.KERNEL32.dll_GetProcessHeap
mov r8, qword [rdi - 8]
mov rcx, rax
xor edx, edx
add rsp, 0x208
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.14021dfcd
call fcn.140142330
lea rcx, [0x140142370]
cmp rax, rcx
je 0x1400b9b38
jmp 0x1400b9b5b
call fcn.140142330
lea rcx, [0x140142370]
cmp rax, rcx
je 0x1400b98fc
jmp 0x1400b991f
call fcn.140142330
lea rcx, [0x140142370]
cmp rax, rcx
je 0x1400b9a45
jmp 0x1400b9a68
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140275c70]
mov edx, 0x23
call fcn.14001f9d0
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140275cb0]
mov edx, 0x25
call fcn.14001f9d0
ud2
lea rcx, str.waker_missing
lea r8, str.C:Usersdarkarp.cargo_registry_srcgithub.com_1ecc6299db9ec823_tokio_1.4.0_src_runtime_taskcore.rsunexpected_stage
mov edx, recv
call fcn.140154a10
ud2