Function at 0x1400c5a30
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
cmp dword [rcx + 0x34], 0
mov rdi, r9
mov rbx, rdx
mov rsi, rcx
je 0x1400c5a54
mov eax, 0xfffffffb
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
cmp dword [rcx + 0x3c], 0
je 0x1400c5a67
mov eax, 0xfffffffa
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
test rdx, rdx
je 0x1400c5ed5
test r8d, r8d
jle 0x1400c5ed5
mov eax, r8d
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0xa0], r12
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
mov r12d, eax
mov dword [rsp + 0x54], eax
mov eax, dword [rcx + 0x38]
test eax, eax
je 0x1400c5ea2
dec eax
je 0x1400c5e09
dec eax
je 0x1400c5ace
or eax, 0xffffffff
mov rbp, qword [rsp + 0x98]
mov r12, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
mov eax, dword [rcx + 0x40]
mov ebx, r12d
mov dword [rsp + 0x30], eax
mov eax, dword [rcx + 0x44]
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x34], eax
mov eax, dword [rcx + 0x48]
mov dword [rsp + 0x38], eax
mov eax, dword [rcx + 0x4c]
mov dword [rsp + 0x3c], eax
test r12d, r12d
jle 0x1400c5ec9
movzx ecx, byte [rsp + 0x3a]
movzx r12d, al
movzx eax, byte [rsp + 0x3b]
mov byte [rsp + 0x26], al
movzx eax, byte [rsp + 0x39]
mov byte [rsp + 0x24], cl
movzx ecx, byte [rsp + 0x38]
mov byte [rsp + 0x22], al
movzx eax, byte [rsp + 0x37]
mov byte [rsp + 0x27], al
movzx eax, byte [rsp + 0x35]
mov byte [rsp + 0x20], cl
movzx ecx, byte [rsp + 0x36]
mov byte [rsp + 0x25], al
movzx eax, byte [rsp + 0x33]
mov qword [rsp + 0xa8], r13
movzx r13d, byte [rsp + 0x3f]
mov byte [rsp + 0x23], al
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x29], cl
movzx ecx, byte [rsp + 0x34]
mov qword [rsp + 0x68], r14
movzx r14d, byte [rsp + 0x3e]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x2a], cl
movzx ecx, byte [rsp + 0x32]
mov qword [rsp + 0x60], r15
movzx r15d, byte [rsp + 0x3d]
mov byte [rsp + 0x90], al
mov byte [rsp + 0x28], cl
nop word [rax + rax]
movzx ebx, byte [rsp + 0x26]
xor ebp, ebp
nop word [rax + rax]
mov eax, dword [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x34]
mov rcx, rsi
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x4c], eax
call fcn.1400c4a60
movzx r9d, byte [rsp + 0x21]
movzx eax, byte [rsp + 0x40]
mov edx, ebp
mov r11d, ebp
and al, 0x80
shr edx, 3
and r11d, 7
movzx ecx, r11b
shr al, cl
movzx ecx, r9b
xor byte [rdx + rdi], al
movzx r8d, byte [rdx + rdi]
movzx edx, byte [rsp + 0x28]
movzx eax, byte [rsp + 0x90]
shr cl, 7
add al, al
or cl, al
movzx eax, r9b
movzx r9d, byte [rsp + 0x23]
mov byte [rsp + 0x90], cl
mov byte [rsp + 0x30], cl
add al, al
movzx ecx, dl
shr cl, 7
or cl, al
movzx eax, dl
movzx edx, byte [rsp + 0x2a]
mov byte [rsp + 0x21], cl
mov byte [rsp + 0x31], cl
add al, al
movzx ecx, r9b
shr cl, 7
or cl, al
movzx eax, r9b
movzx r9d, byte [rsp + 0x25]
mov byte [rsp + 0x28], cl
mov byte [rsp + 0x32], cl
add al, al
movzx ecx, dl
shr cl, 7
or cl, al
movzx eax, dl
movzx edx, byte [rsp + 0x29]
mov byte [rsp + 0x23], cl
mov byte [rsp + 0x33], cl
add al, al
movzx ecx, r9b
shr cl, 7
or cl, al
movzx eax, r9b
movzx r9d, byte [rsp + 0x27]
mov byte [rsp + 0x2a], cl
mov byte [rsp + 0x34], cl
add al, al
movzx ecx, dl
shr cl, 7
or cl, al
movzx eax, dl
movzx edx, byte [rsp + 0x20]
mov byte [rsp + 0x25], cl
mov byte [rsp + 0x35], cl
add al, al
movzx ecx, r9b
shr cl, 7
or cl, al
mov byte [rsp + 0x29], cl
mov byte [rsp + 0x36], cl
movzx ecx, dl
shr cl, 7
movzx eax, r9b
movzx r9d, byte [rsp + 0x22]
inc ebp
add al, al
movzx r10d, r9b
or cl, al
movzx eax, dl
movzx edx, byte [rsp + 0x24]
add al, al
mov byte [rsp + 0x27], cl
mov byte [rsp + 0x37], cl
movzx ecx, dl
shr r10b, 7
or r10b, al
shr cl, 7
movzx eax, r9b
add al, al
movzx r9d, cl
movzx ecx, bl
or r9b, al
shr cl, 7
movzx eax, dl
add al, al
movzx edx, cl
movzx ecx, r12b
or dl, al
shr cl, 7
movzx eax, bl
add al, al
movzx ebx, cl
movzx ecx, r15b
or bl, al
shr cl, 7
movzx eax, r12b
add al, al
movzx r12d, cl
movzx ecx, r14b
or r12b, al
shr cl, 7
movzx eax, r15b
add al, al
movzx r15d, cl
movzx ecx, r13b
or r15b, al
shr cl, 7
movzx eax, r14b
add al, al
movzx r14d, cl
mov ecx, 7
or r14b, al
movzx eax, r13b
sub cl, r11b
shr r8b, cl
add al, al
mov byte [rsp + 0x20], r10b
and r8b, 1
mov byte [rsp + 0x38], r10b
mov byte [rsp + 0x22], r9b
movzx r13d, r8b
mov byte [rsp + 0x39], r9b
mov byte [rsp + 0x24], dl
or r13b, al
mov byte [rsp + 0x3a], dl
mov byte [rsp + 0x3b], bl
mov byte [rsp + 0x3c], r12b
mov byte [rsp + 0x3d], r15b
mov byte [rsp + 0x3e], r14b
mov byte [rsp + 0x3f], r13b
cmp ebp, 0x80
jl 0x1400c5bb0
mov byte [rsp + 0x26], bl
mov ebx, dword [rsp + 0x50]
dec ebx
mov dword [rsp + 0x50], ebx
test ebx, ebx
jg 0x1400c5ba0
mov r12d, dword [rsp + 0x54]
mov r15, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
mov r13, qword [rsp + 0xa8]
shl r12d, 7
mov eax, r12d
jmp 0x1400c5ab6
mov eax, dword [rcx + 0x40]
lea rdx, [rsp + 0x40]
mov r8, r9
xor eax, dword [rbx]
mov dword [rsp + 0x40], eax
mov eax, dword [rcx + 0x44]
xor eax, dword [rbx + 4]
mov dword [rsp + 0x44], eax
mov eax, dword [rcx + 0x48]
xor eax, dword [rbx + 8]
mov dword [rsp + 0x48], eax
mov eax, dword [rcx + 0x4c]
xor eax, dword [rbx + 0xc]
mov dword [rsp + 0x4c], eax
call fcn.1400c4a60
lea ebp, [r12 - 1]
add rbx, 0x10
test ebp, ebp
jle 0x1400c5ec9
add rdi, 8
nop
mov eax, dword [rdi - 8]
add rdi, 0x10
lea rdx, [rsp + 0x40]
xor eax, dword [rbx]
lea r8, [rdi - 8]
mov rcx, rsi
mov dword [rsp + 0x40], eax
mov eax, dword [rdi - 0x14]
xor eax, dword [rbx + 4]
mov dword [rsp + 0x44], eax
mov eax, dword [rbx + 8]
xor eax, dword [rdi - 0x10]
mov dword [rsp + 0x48], eax
mov eax, dword [rdi - 0xc]
xor eax, dword [rbx + 0xc]
mov dword [rsp + 0x4c], eax
call fcn.1400c4a60
dec ebp
add rbx, 0x10
test ebp, ebp
jg 0x1400c5e50
shl r12d, 7
mov eax, r12d
jmp 0x1400c5ab6
mov ebp, r12d
test r12d, r12d
jle 0x1400c5ec9
sub rbx, r9
nop dword [rax]
lea rdx, [rbx + rdi]
mov r8, rdi
mov rcx, rsi
call fcn.1400c4a60
dec ebp
add rdi, 0x10
test ebp, ebp
jg 0x1400c5eb0
shl r12d, 7
mov eax, r12d
jmp 0x1400c5ab6
xor eax, eax
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret