Function at 0x1403a0330
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 0x1403a03be
mov ecx, esi
test edx, edx
je 0x1403a0409
xor ecx, 0xc9b51f87
call fcn.14039f360
test al, 1
jne 0x1403a04ea
nop dword [rax]
movzx ecx, byte [0x1405b247c]
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 [0x1405b1ff4], r8b
je 0x1403a049d
cmp al, 0x96
jne 0x1403a0370
jmp 0x1403a04ea
mov eax, esi
xor eax, 0x99bb3ccd
mov ecx, edx
mov edx, eax
call fcn.1400ab940
test al, 1
je 0x1403a0439
movzx eax, byte [0x1405b217b]
cmp al, 0x2b
je 0x1403a05f0
mov cl, 0xd3
nop word cs:[rax + rax]
mov al, 0xb5
lock cmpxchg byte [0x1405b217b], cl
je 0x1403a0542
cmp al, 0x2b
jne 0x1403a03f0
jmp 0x1403a05f0
xor ecx, 0x1d585298
call fcn.14039f570
test al, 1
jne 0x1403a0536
mov cl, 0x3f
nop
mov al, 0x87
lock cmpxchg byte [0x1405b2113], cl
je 0x1403a04f6
cmp al, 0xcc
jne 0x1403a0420
jmp 0x1403a0536
movzx eax, byte [0x1405b2051]
cmp al, 0xdb
je 0x1403a060b
mov r14b, 0xd6
mov edi, esi
xor edi, 0x5d9c26c8
mov r15d, ebp
xor r15d, 0x51700520
nop dword [rax]
mov al, 0x47
lock cmpxchg byte [0x1405b2051], r14b
mov ebx, eax
sete dl
mov ecx, eax
mov r8d, edi
call fcn.140214e30
test al, 1
jne 0x1403a05ab
mov edx, dword [0x1405b2478]
add edx, r15d
xor edx, esi
mov ecx, ebx
call fcn.1403a01b0
test al, 1
je 0x1403a0460
jmp 0x1403a060b
xor ecx, ecx
lea rbx, [0x1405b1ff0]
lea r14, [0x1404ad970]
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.14039f0d0
mov ecx, dword [rsp + 0x34]
test al, 1
je 0x1403a04c0
mov al, 0x96
xchg byte [0x1405b1ff4], al
lea rax, [0x1405b1ff0]
jmp 0x1403a0612
mov edi, 1
lea rbx, [0x1405b20f0]
lea r14, [0x1404ada60]
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.1402c9600
test al, 1
jne 0x1403a052e
inc edi
jmp 0x1403a0510
mov al, 0xcc
xchg byte [0x1405b2113], al
lea rax, [0x1405b20f0]
jmp 0x1403a0612
xor edi, edi
lea r12, [0x1405b2170]
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.14039f350
add bpl, byte [rsp + 0x33]
mov rcx, rdi
mov rdx, r15
mov r8d, esi
call fcn.1403a01d0
mov rax, qword [rsp + 0x38]
mov byte [rax], bpl
lea eax, [rdi + 1]
cmp eax, 0xa
jg 0x1403a05e8
inc rdi
jmp 0x1403a0570
xor eax, eax
lea rcx, [0x1405b2040]
lea rdx, [0x1404ad9c0]
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 0x1403a05f9
inc rax
jmp 0x1403a05c0
mov al, 0x2b
xchg byte [0x1405b217b], al
lea rax, [0x1405b2170]
jmp 0x1403a0612
xor bpl, 0x11
add bpl, byte [0x1405b247c]
xchg byte [0x1405b2051], bpl
lea rax, [0x1405b2040]
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret