Function at 0x140077460
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
test rcx, rcx
je 0x1400778a4
mov rbx, rcx
call sub.msvcrt.dll_strlen
test rax, rax
je 0x1400774a6
xor ecx, ecx
xor edx, edx
nop word [rax + rax]
add rdx, rbx
cmp byte [rdx], 0x5c
jne 0x14007749b
mov byte [rdx], 0x2f
lea edx, [rcx + 1]
mov rcx, rdx
cmp rdx, rax
jb 0x140077490
mov edx, 0x2f
mov rcx, rbx
call sub.msvcrt.dll_strchr
test rax, rax
je 0x140077520
lea rsi, str..dcert
mov rcx, rbx
mov rdx, rsi
call sub.msvcrt.dll_strstr
test rax, rax
je 0x1400777e0
xor r8d, r8d
mov rdx, rbx
lea rcx, [0x1402cb877]
call fcn.1401073d0
mov r13, rax
mov rcx, r13
call fcn.140077200
mov rcx, r13
mov r12, rax
call sub.msvcrt.dll_free
test r12, r12
je 0x1400777b0
add rsp, 0x48
mov rax, r12
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov r11, qword [0x1403f59f8]
mov r8, rax
mov esi, eax
test r11, r11
je 0x140077800
mov r9, rbx
cmp eax, 0xb
jbe 0x1400778ac
mov r10d, eax
mov ebp, 0x9e3779b9
mov edi, 0x9e3779b9
mov ecx, 0xfeedbeef
nop dword [rax + rax]
movzx edx, byte [r9 + 5]
movzx eax, byte [r9 + 6]
shl edx, 8
shl eax, 0x10
add edx, eax
movzx eax, byte [r9 + 4]
add edx, eax
movzx eax, byte [r9 + 7]
shl eax, 0x18
add edx, eax
movzx eax, byte [r9 + 9]
add edx, ebp
movzx ebp, byte [r9 + 0xa]
shl eax, 8
shl ebp, 0x10
add eax, ebp
movzx ebp, byte [r9 + 8]
add eax, ebp
movzx ebp, byte [r9 + 0xb]
shl ebp, 0x18
add eax, ebp
movzx ebp, byte [r9 + 2]
add eax, ecx
movzx ecx, byte [r9 + 1]
shl ebp, 0x10
shl ecx, 8
add ecx, ebp
movzx ebp, byte [r9]
add ecx, ebp
movzx ebp, byte [r9 + 3]
shl ebp, 0x18
add ecx, ebp
sub ecx, edx
sub edx, eax
sub ecx, eax
add ecx, edi
mov edi, eax
shr edi, 0xd
xor ecx, edi
mov edi, edx
mov edx, ecx
sub edi, ecx
sub eax, ecx
shl edx, 8
xor edx, edi
sub eax, edx
mov edi, eax
mov eax, edx
shr eax, 0xd
xor eax, edi
sub ecx, edx
sub r10d, 0xc
add r9, 0xc
mov edi, ecx
mov ecx, eax
sub edx, eax
sub edi, eax
shr ecx, 0xc
xor ecx, edi
mov edi, edx
mov edx, ecx
sub edi, ecx
sub eax, ecx
shl edx, 0x10
xor edx, edi
sub eax, edx
sub ecx, edx
mov edi, eax
mov eax, edx
shr eax, 5
xor eax, edi
mov edi, eax
sub ecx, eax
sub edx, eax
shr edi, 3
xor edi, ecx
mov ebp, edi
sub edx, edi
sub eax, edi
shl ebp, 0xa
xor ebp, edx
mov ecx, ebp
sub eax, ebp
shr ecx, 0xf
xor ecx, eax
cmp r10d, 0xb
ja 0x140077560
add ecx, r8d
cmp r10d, 0xb
ja case.0x140077664.0
lea rdx, [0x1402cb8a4]
movsxd rax, dword [rdx + r10*4]
add rax, rdx
jmp rax
movzx eax, byte [r9 + 0xa]
shl eax, 0x18
add ecx, eax
movzx eax, byte [r9 + 9]
shl eax, 0x10
add ecx, eax
movzx eax, byte [r9 + 8]
shl eax, 8
add ecx, eax
movzx eax, byte [r9 + 7]
shl eax, 0x18
add ebp, eax
movzx eax, byte [r9 + 6]
shl eax, 0x10
add ebp, eax
movzx eax, byte [r9 + 5]
shl eax, 8
add ebp, eax
movzx eax, byte [r9 + 4]
add ebp, eax
movzx eax, byte [r9 + 3]
shl eax, 0x18
add edi, eax
movzx eax, byte [r9 + 2]
shl eax, 0x10
add edi, eax
movzx eax, byte [r9 + 1]
shl eax, 8
add edi, eax
movzx eax, byte [r9]
add edi, eax
lea eax, [rcx + rbp]
mov r9d, ecx
sub ebp, ecx
sub edi, eax
shr r9d, 0xd
xor r9d, edi
mov edx, r9d
sub ebp, r9d
sub ecx, r9d
shl edx, 8
xor edx, ebp
mov eax, edx
sub ecx, edx
sub r9d, edx
shr eax, 0xd
xor eax, ecx
mov ecx, eax
sub r9d, eax
sub edx, eax
shr ecx, 0xc
xor ecx, r9d
sub edx, ecx
sub eax, ecx
mov r9d, edx
mov edx, ecx
shl edx, 0x10
xor edx, r9d
sub eax, edx
sub ecx, edx
mov r9d, eax
mov eax, edx
shr eax, 5
xor eax, r9d
mov r9d, eax
sub ecx, eax
sub edx, eax
shr r9d, 3
xor ecx, r9d
mov ebp, ecx
sub edx, ecx
sub eax, ecx
shl ebp, 0xa
xor ebp, edx
mov rdx, qword [r11 + 0x30]
sub eax, ebp
shr ebp, 0xf
xor ebp, eax
mov eax, dword [rdx + 8]
sub eax, 1
and eax, ebp
shl rax, 4
add rax, qword [rdx]
mov rdi, qword [rax]
test rdi, rdi
je 0x140077800
mov rax, qword [rdx + 0x20]
mov r13d, r8d
mov r12, rax
sub rdi, rax
neg r12
jmp 0x140077784
mov rdi, qword [rdi + 0x50]
test rdi, rdi
je 0x140077800
add rdi, r12
cmp dword [rdi + 0x64], ebp
jne 0x140077778
cmp dword [rdi + 0x60], esi
jne 0x140077778
mov rcx, qword [rdi + 0x58]
mov r8, r13
mov rdx, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x140077778
mov r12, qword [rdi + 0x28]
test r12, r12
jne 0x140077504
nop
lea rax, [0x1402cb88f]
mov qword [rsp + 0x28], rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, str.dap_cert
xor r12d, r12d
call fcn.14005a0c0
jmp 0x140077504
xor r9d, r9d
mov r8, rsi
lea rcx, [0x1402cb877]
mov rdx, rbx
call fcn.1401073d0
mov r13, rax
jmp 0x1400774e8
xor eax, eax
lea r9, [rsp + 0x3e]
lea r8, str.ca_folders
mov word [rsp + 0x3e], ax
mov rax, qword [0x1403e9d30]
lea rdx, str.resources
mov rcx, qword [rax]
call fcn.1400c1aa0
cmp word [rsp + 0x3e], 0
mov rsi, rax
je 0x1400777b0
xor r15d, r15d
lea rbp, str..dcert
lea rdi, [0x1402cb877]
lea r14, [0x1402cb88d]
movzx eax, r15w
mov r9, rbx
mov r8, r14
mov rcx, rdi
mov rdx, qword [rsi + rax*8]
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x28], 0
call fcn.1401073d0
mov rcx, rax
mov r13, rax
call fcn.140077200
mov rcx, r13
mov r12, rax
call sub.msvcrt.dll_free
test r12, r12
jne 0x140077504
add r15d, 1
cmp word [rsp + 0x3e], r15w
ja 0x140077850
jmp 0x1400777b0
xor r12d, r12d
jmp 0x140077504
mov r10d, eax
mov ebp, 0x9e3779b9
mov edi, 0x9e3779b9
mov ecx, 0xfeedbeef
jmp 0x14007764d