Function at 0x140341f10
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 0x140341f59
test edx, edx
je 0x140341fd6
movzx eax, byte [0x1405814d0]
cmp al, 0x4f
je 0x1403420d3
mov cl, 0x63
nop
mov al, 0xf1
lock cmpxchg byte [0x1405814d0], cl
je 0x14034206c
cmp al, 0x4f
jne 0x140341f40
jmp 0x1403420d3
mov eax, dword [0x140582400]
mov ecx, eax
xor ecx, 0x75af528
and eax, 0x75af528
lea eax, [rcx + rax*2]
cmp edx, eax
jne 0x140342009
movzx eax, byte [0x140581390]
cmp al, 0xd
je 0x140342178
mov bpl, 0xfc
mov edi, esi
xor edi, 0xaaca1c7e
mov r14d, 0xcd3e2624
nop word [rax + rax]
mov al, 0x73
lock cmpxchg byte [0x140581390], bpl
mov ebx, eax
sete dl
mov r9d, dword [0x140582400]
add r9d, r14d
mov ecx, eax
mov r8d, edi
call fcn.140108fd0
test al, 1
jne 0x14034211c
cmp bl, 0xd
jne 0x140341fa0
jmp 0x140342178
movzx eax, byte [0x1405814a0]
cmp al, 0xc
je 0x140342110
mov cl, 1
nop word [rax + rax]
mov al, 0xbf
lock cmpxchg byte [0x1405814a0], cl
je 0x1403420df
cmp al, 0xc
jne 0x140341ff0
jmp 0x140342110
mov ecx, esi
xor ecx, 0xbf1a5c91
mov edx, 0xec4fa5c
add edx, dword [0x140582400]
call fcn.140344fb0
test al, 1
jne 0x14034221d
mov bl, 0x3c
mov edi, esi
xor edi, 0x5cccdd30
mov ebp, 0x77008b6d
nop dword [rax + rax]
mov al, 0xe2
lock cmpxchg byte [0x140581312], bl
je 0x140342184
mov r8d, dword [0x140582400]
add r8d, ebp
mov ecx, eax
mov edx, edi
call fcn.1403450f0
test al, 1
je 0x140342040
jmp 0x14034221d
xor edi, edi
xor esi, 0xc5e63f04
lea rbx, [rsp + 0x38]
lea r14, [0x14047fe30]
lea r15, [0x1405814c0]
mov ebp, 0x75af538
nop dword [rax]
mov ecx, edi
mov rdx, rbx
mov r8d, esi
mov r9d, 0xe83f4ab9
call fcn.140344f50
movzx eax, byte [rsp + 0x38]
add al, byte [rdi + r14]
mov byte [rdi + r15], al
lea eax, [rdi + 1]
mov ecx, dword [0x140582400]
add ecx, ebp
cmp eax, ecx
jge 0x1403420c4
inc rdi
jmp 0x140342090
movzx eax, byte [0x140582404]
add al, 0x7f
xchg byte [0x1405814d0], al
lea rax, [0x1405814c0]
jmp 0x140342224
xor eax, eax
lea rcx, [0x140581490]
lea rdx, [0x14047fe10]
nop
movzx r8d, byte [rax + rdx]
add byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 0xf
jg 0x140342108
inc rax
jmp 0x1403420f0
mov al, 0xc
xchg byte [0x1405814a0], al
lea rax, [0x140581490]
jmp 0x140342224
xor ecx, ecx
lea rbx, [0x140581380]
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.140344cf0
mov ecx, dword [rsp + 0x38]
test al, 1
je 0x140342140
xor esi, 0x4045e2ff
mov ecx, esi
mov edx, 0x1fb89149
call fcn.140344ca0
lea rax, [0x140581380]
jmp 0x140342224
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, [0x140581310]
nop dword [rax + rax]
mov ecx, ebp
mov rdx, rbx
mov r8d, edi
mov r9d, 0x85ed1c57
call fcn.1400b30b0
mov rcx, qword [rsp + 0x38]
mov eax, dword [0x140582400]
add eax, r15d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], esi
mov edx, ebp
mov r8, r14
mov r9, rbx
call fcn.140345140
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 [0x140582400]
lea ebp, [rcx + rax]
add ebp, 0x75af529
cmp ebp, 2
jl 0x1403421b0
mov al, 0x6c
xchg byte [0x140581312], al
lea rax, [0x140581310]
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret