Function at 0x1402537d0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov edi, r9d
mov esi, dword [rsp + 0xc0]
test ecx, ecx
je 0x140253839
test edx, edx
je 0x1402538d8
xor edi, 0x44d7a59a
mov edx, esi
xor edx, 0xe5c2b9ca
mov ecx, edi
call fcn.140253760
test al, 1
jne 0x140253a30
mov cl, 0x83
nop word cs:[rax + rax]
mov al, 0xbe
lock cmpxchg byte [0x140532002], cl
je 0x1402539d7
cmp al, 0xb7
jne 0x140253820
jmp 0x140253a30
mov eax, esi
xor eax, 0x66e2fc3
mov r12d, esi
not r12d
mov ecx, r12d
and ecx, esi
xor ecx, eax
add ecx, dword [0x14053272c]
cmp edx, ecx
jne 0x140253954
mov ecx, esi
xor ecx, 0xcd8a8e05
add ecx, dword [0x14053272c]
xor ecx, edi
mov edx, esi
xor edx, 0xa3227878
call fcn.140253570
test al, 1
jne 0x140253b66
mov r13d, edi
not r13d
mov eax, r13d
and eax, 0xea74cce
mov ebx, edi
xor ebx, 0xf158b331
or ebx, eax
not ebx
or ebx, eax
mov ebp, esi
xor ebp, 0x8b33a801
lea r14, [rsp + 0x40]
lea r15, [rsp + 0x3f]
nop
mov rcx, r14
mov rdx, r15
mov r8d, ebx
mov r9d, ebp
call fcn.140253c10
cmp byte [rsp + 0x41], 0
jne 0x140253ab2
cmp byte [rsp + 0x3f], 0x69
jne 0x1402538b0
jmp 0x140253b66
mov eax, esi
not eax
mov ecx, esi
xor ecx, 0x2f63ce77
and ecx, eax
and eax, 0xf5cb56f0
mov r8d, esi
and r8d, 0xa34a90f
or r8d, eax
add r8d, dword [0x14053272c]
mov edx, r8d
xor edx, r8d
not edx
and edx, edi
xor edx, r8d
mov r8d, esi
and r8d, 0xd09c3188
or r8d, ecx
lea rcx, [rsp + 0x40]
call fcn.140253780
cmp byte [rsp + 0x40], 0x74
je 0x140253aa6
mov cl, 0x13
mov al, 0x95
lock cmpxchg byte [0x140532032], cl
je 0x140253a3c
mov edx, esi
xor dl, 0xd0
add dl, byte [0x140532728]
cmp al, dl
jne 0x140253930
jmp 0x140253aa6
movzx ecx, byte [0x140532050]
mov eax, esi
xor eax, 0xf5e1558e
add eax, dword [0x14053272c]
mov edx, eax
not edx
mov r8d, edi
xor r8d, edx
not r8d
and r8d, eax
and edx, edi
or edx, r8d
mov r8d, esi
xor r8d, 0x3620a98e
call fcn.140253560
test al, 1
jne 0x140253bf2
mov cl, 0xef
nop word cs:[rax + rax]
mov al, 0x80
lock cmpxchg byte [0x140532050], cl
je 0x140253b72
movzx edx, byte [0x140532728]
mov r8d, esi
xor r8b, 0x9a
mov r9d, r8d
xor r9b, dl
and r8b, dl
add r8b, r8b
add r8b, r9b
cmp al, r8b
jne 0x1402539a0
jmp 0x140253bf2
xor eax, eax
lea rcx, [0x140531ff0]
lea rdx, [0x140444160]
xor esi, 0x66e2ff5
nop dword [rax]
movzx r8d, byte [rax + rcx]
movzx r9d, byte [rax + rdx]
not r8b
not r9b
mov r10d, r8d
xor r10b, r9b
or r9b, r8b
and r9b, r10b
mov byte [rax + rcx], r9b
lea r8d, [rax + 1]
mov r9d, dword [0x14053272c]
add r9d, esi
cmp r8d, r9d
jge 0x140253a28
inc rax
jmp 0x1402539f0
mov al, 0xb7
xchg byte [0x140532002], al
lea rax, [0x140531ff0]
jmp 0x140253bf9
xor eax, eax
lea rcx, [0x140532030]
lea rdx, [0x140444190]
xor esi, 0x66e2fc5
nop word cs:[rax + rax]
movzx r8d, byte [rax + rcx]
movzx r9d, byte [rax + rdx]
mov r10d, r8d
not r10b
not r9b
mov r11d, r10d
xor r11b, r9b
and r11b, r10b
and r9b, r8b
or r9b, r11b
mov byte [rax + rcx], r9b
lea r8d, [rax + 1]
mov r9d, dword [0x14053272c]
add r9d, esi
cmp r8d, r9d
jge 0x140253a9e
inc rax
jmp 0x140253a60
mov al, 0x74
xchg byte [0x140532032], al
lea rax, [0x140532030]
jmp 0x140253bf9
mov dword [rsp + 0x50], r13d
mov dword [rsp + 0x54], r12d
xor eax, eax
lea r13, [0x140532060]
mov ebx, edi
xor ebx, 0xa678e29a
mov ebp, esi
xor ebp, 0xc07b46b0
lea r14, [rsp + 0x40]
nop word [rax + rax]
movsxd r15, eax
lea rax, [0x1404441b0]
movzx eax, byte [r15 + rax]
mov r12d, eax
xor r12b, al
not r12b
and r12b, byte [r15 + r13]
xor r12b, al
mov ecx, r15d
mov rdx, r14
mov r8d, ebx
mov r9d, ebp
call fcn.140253790
mov rax, qword [rsp + 0x40]
mov byte [rax + r13], r12b
mov eax, r15d
xor eax, 1
and r15d, 1
lea eax, [rax + r15*2]
cmp eax, 2
jl 0x140253ae0
mov eax, dword [rsp + 0x50]
and eax, edi
xor edi, 0x47826c0a
xor edi, eax
mov ecx, dword [rsp + 0x54]
mov eax, ecx
and eax, 0xa2f10cfa
and esi, 0x5d0ef305
or esi, eax
add esi, dword [0x14053272c]
mov eax, ecx
and eax, esi
or esi, ecx
not esi
or esi, eax
mov ecx, edi
mov edx, esi
call fcn.140253530
lea rax, [0x140532060]
jmp 0x140253bf9
xor ecx, ecx
mov ebx, edi
xor ebx, 0x219e7b33
mov ebp, esi
xor ebp, 0xeb27b43f
lea r14, [rsp + 0x40]
lea r13, [0x1404441a0]
xor edi, 0x4e8d23c2
xor esi, 0x813ee30
nop dword [rax]
movsxd r15, ecx
lea rax, [0x140532040]
movzx r12d, byte [r15 + rax]
mov ecx, r15d
mov rdx, r14
mov r8d, ebx
mov r9d, ebp
call fcn.1400aa120
mov rax, qword [rsp + 0x40]
xor r12b, byte [rax + r13]
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], edi
mov rcx, r15
mov edx, r12d
mov r8d, r15d
mov r9, r14
call fcn.140253540
mov ecx, dword [rsp + 0x40]
test al, 1
je 0x140253ba0
mov al, 0xae
xchg byte [0x140532050], al
lea rax, [0x140532040]
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret