Function at 0x140357ce0
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 0x140357d29
test edx, edx
je 0x140357da6
movzx eax, byte [0x14058fcd0]
cmp al, 0x4f
je 0x140357ea3
mov cl, 0x63
nop
mov al, 0xf1
lock cmpxchg byte [0x14058fcd0], cl
je 0x140357e3c
cmp al, 0x4f
jne 0x140357d10
jmp 0x140357ea3
mov eax, dword [0x140590c00]
mov ecx, eax
xor ecx, 0x75af528
and eax, 0x75af528
lea eax, [rcx + rax*2]
cmp edx, eax
jne 0x140357dd9
movzx eax, byte [0x14058fb90]
cmp al, 0xd
je 0x140357f48
mov bpl, 0xfc
mov edi, esi
xor edi, 0xaaca1c7e
mov r14d, 0xcd3e2624
nop word [rax + rax]
mov al, 0x73
lock cmpxchg byte [0x14058fb90], bpl
mov ebx, eax
sete dl
mov r9d, dword [0x140590c00]
add r9d, r14d
mov ecx, eax
mov r8d, edi
call fcn.140138ed0
test al, 1
jne 0x140357eec
cmp bl, 0xd
jne 0x140357d70
jmp 0x140357f48
movzx eax, byte [0x14058fca0]
cmp al, 0xc
je 0x140357ee0
mov cl, 1
nop word [rax + rax]
mov al, 0xbf
lock cmpxchg byte [0x14058fca0], cl
je 0x140357eaf
cmp al, 0xc
jne 0x140357dc0
jmp 0x140357ee0
mov ecx, esi
xor ecx, 0xbf1a5c91
mov edx, 0xec4fa5c
add edx, dword [0x140590c00]
call fcn.14035ad90
test al, 1
jne 0x140357fed
mov bl, 0x3c
mov edi, esi
xor edi, 0x5cccdd30
mov ebp, 0x77008b6d
nop dword [rax + rax]
mov al, 0xe2
lock cmpxchg byte [0x14058fb12], bl
je 0x140357f54
mov r8d, dword [0x140590c00]
add r8d, ebp
mov ecx, eax
mov edx, edi
call fcn.14035aed0
test al, 1
je 0x140357e10
jmp 0x140357fed
xor edi, edi
xor esi, 0xc5e63f04
lea rbx, [rsp + 0x38]
lea r14, [0x14048dfb0]
lea r15, [0x14058fcc0]
mov ebp, 0x75af538
nop dword [rax]
mov ecx, edi
mov rdx, rbx
mov r8d, esi
mov r9d, 0xe83f4ab9
call fcn.14035ad30
movzx eax, byte [rsp + 0x38]
add al, byte [rdi + r14]
mov byte [rdi + r15], al
lea eax, [rdi + 1]
mov ecx, dword [0x140590c00]
add ecx, ebp
cmp eax, ecx
jge 0x140357e94
inc rdi
jmp 0x140357e60
movzx eax, byte [0x140590c04]
add al, 0x7f
xchg byte [0x14058fcd0], al
lea rax, [0x14058fcc0]
jmp 0x140357ff4
xor eax, eax
lea rcx, [0x14058fc90]
lea rdx, [0x14048df90]
nop
movzx r8d, byte [rax + rdx]
add byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 0xf
jg 0x140357ed8
inc rax
jmp 0x140357ec0
mov al, 0xc
xchg byte [0x14058fca0], al
lea rax, [0x14058fc90]
jmp 0x140357ff4
xor ecx, ecx
lea rbx, [0x14058fb80]
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.14035aad0
mov ecx, dword [rsp + 0x38]
test al, 1
je 0x140357f10
xor esi, 0x4045e2ff
mov ecx, esi
mov edx, 0x1fb89149
call fcn.14035aa70
lea rax, [0x14058fb80]
jmp 0x140357ff4
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, [0x14058fb10]
nop dword [rax + rax]
mov ecx, ebp
mov rdx, rbx
mov r8d, edi
mov r9d, 0x85ed1c57
call fcn.140138e60
mov rcx, qword [rsp + 0x38]
mov eax, dword [0x140590c00]
add eax, r15d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], esi
mov edx, ebp
mov r8, r14
mov r9, rbx
call fcn.14035af20
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 [0x140590c00]
lea ebp, [rcx + rax]
add ebp, 0x75af529
cmp ebp, 2
jl 0x140357f80
mov al, 0x6c
xchg byte [0x14058fb12], al
lea rax, [0x14058fb10]
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret