Function at 0x20383330
Capabilities:
Check for software breakpoints
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov esi, r9d
mov ebp, dword [rsp + 0xa0]
test ecx, ecx
je 0x203833be
mov ecx, esi
test edx, edx
je 0x20383409
xor ecx, 0xc9b51f87
call fcn.20382360
test al, 1
jne 0x203834ea
nop dword [rax]
movzx ecx, byte [0x2059547c]
mov edx, ebp
not dl
mov r8d, edx
and r8b, 0x3f
mov eax, ebp
and al, 0xc0
or al, r8b
mov r8d, eax
xor r8b, cl
and al, cl
add al, al
add al, r8b
and dl, 0x73
mov r8d, ebp
and r8b, 0x8c
or r8b, dl
add r8b, cl
lock cmpxchg byte [0x20594ff4], r8b
je 0x2038349d
cmp al, 0x96
jne 0x20383370
jmp 0x203834ea
mov eax, esi
xor eax, 0x99bb3ccd
mov ecx, edx
mov edx, eax
call fcn.2008e940
test al, 1
je 0x20383439
movzx eax, byte [0x2059517b]
cmp al, 0x2b
je 0x203835f0
mov cl, 0xd3
nop word cs:[rax + rax]
mov al, 0xb5
lock cmpxchg byte [0x2059517b], cl
je 0x20383542
cmp al, 0x2b
jne 0x203833f0
jmp 0x203835f0
xor ecx, 0x1d585298
call fcn.20382570
test al, 1
jne 0x20383536
mov cl, 0x3f
nop
mov al, 0x87
lock cmpxchg byte [0x20595113], cl
je 0x203834f6
cmp al, 0xcc
jne 0x20383420
jmp 0x20383536
movzx eax, byte [0x20595051]
cmp al, 0xdb
je 0x2038360b
mov r14b, 0xd6
mov edi, esi
xor edi, 0x5d9c26c8
mov r15d, ebp
xor r15d, 0x51700520
nop dword [rax]
mov al, 0x47
lock cmpxchg byte [0x20595051], r14b
mov ebx, eax
sete dl
mov ecx, eax
mov r8d, edi
call fcn.201f7e30
test al, 1
jne 0x203835ab
mov edx, dword [0x20595478]
add edx, r15d
xor edx, esi
mov ecx, ebx
call fcn.203831b0
test al, 1
je 0x20383460
jmp 0x2038360b
xor ecx, ecx
lea rbx, [0x20594ff0]
lea r14, [0x20490970]
xor esi, 0x41390284
lea rdi, [rsp + 0x34]
nop dword [rax + rax]
movsxd rcx, ecx
movzx edx, byte [rcx + rbx]
xor dl, byte [rcx + r14]
mov dword [rsp + 0x20], esi
mov r8d, ecx
mov r9, rdi
call fcn.203820d0
mov ecx, dword [rsp + 0x34]
test al, 1
je 0x203834c0
mov al, 0x96
xchg byte [0x20594ff4], al
lea rax, [0x20594ff0]
jmp 0x20383612
mov edi, 1
lea rbx, [0x205950f0]
lea r14, [0x20490a60]
xor esi, 0x9f6b37df
nop
lea eax, [rdi - 1]
cdqe
movzx ecx, byte [rax + r14]
add byte [rax + rbx], cl
mov ecx, edi
mov edx, esi
call fcn.202ac600
test al, 1
jne 0x2038352e
inc edi
jmp 0x20383510
mov al, 0xcc
xchg byte [0x20595113], al
lea rax, [0x205950f0]
jmp 0x20383612
xor edi, edi
lea r12, [0x20595170]
mov ebx, esi
xor ebx, 0xd0b7704
lea r14, [rsp + 0x33]
xor esi, 0xa3480a41
lea r15, [rsp + 0x38]
nop word cs:[rax + rax]
movzx ebp, byte [rdi + r12]
mov rcx, rdi
mov rdx, r14
mov r8d, ebx
call fcn.20382350
add bpl, byte [rsp + 0x33]
mov rcx, rdi
mov rdx, r15
mov r8d, esi
call fcn.203831d0
mov rax, qword [rsp + 0x38]
mov byte [rax], bpl
lea eax, [rdi + 1]
cmp eax, 0xa
jg 0x203835e8
inc rdi
jmp 0x20383570
xor eax, eax
lea rcx, [0x20595040]
lea rdx, [0x204909c0]
nop dword [rax + rax]
movzx r8d, byte [rax + rdx]
mov r9d, r8d
xor r9b, r8b
not r9b
and r9b, byte [rax + rcx]
xor r9b, r8b
mov byte [rax + rcx], r9b
lea r8d, [rax + 1]
cmp r8d, 0x10
jg 0x203835f9
inc rax
jmp 0x203835c0
mov al, 0x2b
xchg byte [0x2059517b], al
lea rax, [0x20595170]
jmp 0x20383612
xor bpl, 0x11
add bpl, byte [0x2059547c]
xchg byte [0x20595051], bpl
lea rax, [0x20595040]
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret