Function at 0x140353d50
Capabilities:
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
test ecx, ecx
je 0x140353d99
test edx, edx
je 0x140353e16
movzx eax, byte [0x140586450]
cmp al, 0x4f
je 0x140353f13
mov cl, 0x63
nop
mov al, 0xf1
lock cmpxchg byte [0x140586450], cl
je 0x140353eac
cmp al, 0x4f
jne 0x140353d80
jmp 0x140353f13
mov eax, dword [0x140587380]
mov ecx, eax
xor ecx, 0x75af528
and eax, 0x75af528
lea eax, [rcx + rax*2]
cmp edx, eax
jne 0x140353e49
movzx eax, byte [0x140586310]
cmp al, 0xd
je 0x140353fb8
mov bpl, 0xfc
mov edi, esi
xor edi, 0xaaca1c7e
mov r14d, 0xcd3e2624
nop word [rax + rax]
mov al, 0x73
lock cmpxchg byte [0x140586310], bpl
mov ebx, eax
sete dl
mov r9d, dword [0x140587380]
add r9d, r14d
mov ecx, eax
mov r8d, edi
call fcn.140138730
test al, 1
jne 0x140353f5c
cmp bl, 0xd
jne 0x140353de0
jmp 0x140353fb8
movzx eax, byte [0x140586420]
cmp al, 0xc
je 0x140353f50
mov cl, 1
nop word [rax + rax]
mov al, 0xbf
lock cmpxchg byte [0x140586420], cl
je 0x140353f1f
cmp al, 0xc
jne 0x140353e30
jmp 0x140353f50
mov ecx, esi
xor ecx, 0xbf1a5c91
mov edx, 0xec4fa5c
add edx, dword [0x140587380]
call fcn.140356e00
test al, 1
jne 0x14035405d
mov bl, 0x3c
mov edi, esi
xor edi, 0x5cccdd30
mov ebp, 0x77008b6d
nop dword [rax + rax]
mov al, 0xe2
lock cmpxchg byte [0x140586292], bl
je 0x140353fc4
mov r8d, dword [0x140587380]
add r8d, ebp
mov ecx, eax
mov edx, edi
call fcn.140356f40
test al, 1
je 0x140353e80
jmp 0x14035405d
xor edi, edi
xor esi, 0xc5e63f04
lea rbx, [rsp + 0x38]
lea r14, [0x140485fd0]
lea r15, [0x140586440]
mov ebp, 0x75af538
nop dword [rax]
mov ecx, edi
mov rdx, rbx
mov r8d, esi
mov r9d, 0xe83f4ab9
call fcn.140356da0
movzx eax, byte [rsp + 0x38]
add al, byte [rdi + r14]
mov byte [rdi + r15], al
lea eax, [rdi + 1]
mov ecx, dword [0x140587380]
add ecx, ebp
cmp eax, ecx
jge 0x140353f04
inc rdi
jmp 0x140353ed0
movzx eax, byte [0x140587384]
add al, 0x7f
xchg byte [0x140586450], al
lea rax, [0x140586440]
jmp 0x140354064
xor eax, eax
lea rcx, [0x140586410]
lea rdx, [0x140485fb0]
nop
movzx r8d, byte [rax + rdx]
add byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 0xf
jg 0x140353f48
inc rax
jmp 0x140353f30
mov al, 0xc
xchg byte [0x140586420], al
lea rax, [0x140586410]
jmp 0x140354064
xor ecx, ecx
lea rbx, [0x140586300]
mov ebp, esi
xor ebp, 0xa3f779d1
lea rdi, [rsp + 0x38]
nop word cs:[rax + rax]
movsxd rcx, ecx
movzx edx, byte [rcx + rbx]
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x28], 0xb1673774
mov r8d, ecx
mov r9, rdi
call fcn.140356b40
mov ecx, dword [rsp + 0x38]
test al, 1
je 0x140353f80
xor esi, 0x4045e2ff
mov ecx, esi
mov edx, 0x1fb89149
call fcn.140356ae0
lea rax, [0x140586300]
jmp 0x140354064
xor ebp, ebp
mov edi, esi
xor edi, 0xcadd4366
lea rbx, [rsp + 0x38]
xor esi, 0x13d5377e
mov r15d, 0xbd4c3210
lea r14, [rsp + 0x37]
lea r12, [0x140586290]
nop dword [rax + rax]
mov ecx, ebp
mov rdx, rbx
mov r8d, edi
mov r9d, 0x85ed1c57
call fcn.1401386c0
mov rcx, qword [rsp + 0x38]
mov eax, dword [0x140587380]
add eax, r15d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], esi
mov edx, ebp
mov r8, r14
mov r9, rbx
call fcn.140356f90
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax]
mov ecx, eax
xor cl, al
not cl
and cl, byte [rsp + 0x37]
xor cl, al
movsxd rax, ebp
mov byte [rax + r12], cl
mov ecx, dword [0x140587380]
lea ebp, [rcx + rax]
add ebp, 0x75af529
cmp ebp, 2
jl 0x140353ff0
mov al, 0x6c
xchg byte [0x140586292], al
lea rax, [0x140586290]
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret