Function at 0x140074640
Capabilities:
Encode data using xor

Disassembly:
test rcx, rcx
je 0x140074eb0
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
lea rdi, [rcx + 8]
push rsi
mov rsi, rcx
mov rcx, rdi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
call sub.msvcrt.dll_strlen
mov r11, qword [0x1403ec9b8]
mov r8, rax
mov ebx, eax
test r11, r11
je 0x140074960
mov r9, rdi
cmp eax, 0xb
jbe 0x140074e97
mov r10d, eax
mov r13d, 0x9e3779b9
mov r12d, 0x9e3779b9
mov ecx, 0xfeedbeef
nop dword [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, r13d
movzx r13d, byte [r9 + 0xa]
shl eax, 8
shl r13d, 0x10
add eax, r13d
movzx r13d, byte [r9 + 8]
add eax, r13d
movzx r13d, byte [r9 + 0xb]
shl r13d, 0x18
add eax, r13d
movzx r13d, byte [r9 + 2]
add eax, ecx
movzx ecx, byte [r9 + 1]
shl r13d, 0x10
shl ecx, 8
add ecx, r13d
movzx r13d, byte [r9]
add ecx, r13d
movzx r13d, byte [r9 + 3]
shl r13d, 0x18
add ecx, r13d
sub ecx, edx
sub edx, eax
sub ecx, eax
add ecx, r12d
mov r12d, eax
shr r12d, 0xd
xor ecx, r12d
sub edx, ecx
sub eax, ecx
mov r12d, edx
mov edx, ecx
shl edx, 8
xor edx, r12d
sub eax, edx
mov r12d, eax
mov eax, edx
shr eax, 0xd
xor eax, r12d
sub ecx, edx
sub r10d, 0xc
add r9, 0xc
sub ecx, eax
sub edx, eax
mov r12d, ecx
mov ecx, eax
shr ecx, 0xc
xor ecx, r12d
sub edx, ecx
sub eax, ecx
mov r12d, edx
mov edx, ecx
shl edx, 0x10
xor edx, r12d
sub eax, edx
sub ecx, edx
mov r12d, eax
mov eax, edx
shr eax, 5
xor eax, r12d
mov r12d, eax
sub ecx, eax
sub edx, eax
shr r12d, 3
xor r12d, ecx
mov r13d, r12d
sub edx, r12d
sub eax, r12d
shl r13d, 0xa
xor r13d, edx
mov ecx, r13d
sub eax, r13d
shr ecx, 0xf
xor ecx, eax
cmp r10d, 0xb
ja 0x1400746a8
add ecx, r8d
cmp r10d, 0xb
ja case.0x1400747cf.0
lea rdx, [0x1402c4374]
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 r13d, eax
movzx eax, byte [r9 + 6]
shl eax, 0x10
add r13d, eax
movzx eax, byte [r9 + 5]
shl eax, 8
add r13d, eax
movzx eax, byte [r9 + 4]
add r13d, eax
movzx eax, byte [r9 + 3]
shl eax, 0x18
add r12d, eax
movzx eax, byte [r9 + 2]
shl eax, 0x10
add r12d, eax
movzx eax, byte [r9 + 1]
shl eax, 8
add r12d, eax
movzx eax, byte [r9]
add r12d, eax
lea eax, [rcx + r13]
sub r13d, ecx
sub r12d, eax
mov eax, ecx
shr eax, 0xd
xor eax, r12d
mov edx, eax
sub r13d, eax
sub ecx, eax
shl edx, 8
xor edx, r13d
sub ecx, edx
sub eax, edx
mov r9d, ecx
mov ecx, edx
shr ecx, 0xd
xor ecx, r9d
sub eax, ecx
sub edx, ecx
mov r9d, eax
mov eax, ecx
shr eax, 0xc
xor eax, r9d
sub edx, eax
sub ecx, eax
mov r9d, edx
mov edx, eax
shl edx, 0x10
xor edx, r9d
mov r9d, edx
sub ecx, edx
sub eax, edx
shr r9d, 5
xor ecx, r9d
mov r9d, eax
mov eax, ecx
sub r9d, ecx
sub edx, ecx
shr eax, 3
xor r9d, eax
mov eax, ecx
mov r13d, r9d
sub edx, r9d
sub eax, r9d
shl r13d, 0xa
xor r13d, edx
mov rdx, qword [r11 + 0x30]
sub eax, r13d
shr r13d, 0xf
xor r13d, eax
mov eax, dword [rdx + 8]
sub eax, 1
and eax, r13d
shl rax, 4
add rax, qword [rdx]
mov r12, qword [rax]
test r12, r12
je 0x140074960
mov rax, qword [rdx + 0x20]
mov r15d, r8d
mov r14, rax
sub r12, rax
neg r14
jmp 0x140074905
mov r12, qword [r12 + 0x50]
test r12, r12
je 0x140074960
add r12, r14
cmp dword [r12 + 0x64], r13d
jne 0x1400748f8
cmp dword [r12 + 0x60], ebx
jne 0x1400748f8
mov rcx, qword [r12 + 0x58]
mov r8, r15
mov rdx, rdi
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x1400748f8
lea rax, str.Certificate_with_name__s_already_present_in_memory
mov qword [rsp + 0x28], rdi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 5
lea r8, str.dap_cert
call fcn.14005aec0
mov eax, 0xffffffff
jmp 0x140074c66
mov edx, 0x68
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x140074ebe
lea r8, [0x1402c42f4]
mov r9, rdi
mov edx, 0x28
mov rcx, rax
call fcn.1401fd790
mov qword [rbx + 0x28], rsi
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov r8, rbx
mov r10, rax
cmp eax, 0xb
jbe 0x140074e7f
mov r9d, eax
mov esi, 0x9e3779b9
mov r11d, 0x9e3779b9
mov ecx, 0xfeedbeef
movzx edx, byte [r8 + 5]
movzx eax, byte [r8 + 6]
shl edx, 8
shl eax, 0x10
add edx, eax
movzx eax, byte [r8 + 4]
add edx, eax
movzx eax, byte [r8 + 7]
shl eax, 0x18
add edx, eax
movzx eax, byte [r8 + 9]
add edx, esi
movzx esi, byte [r8 + 0xa]
shl eax, 8
shl esi, 0x10
add eax, esi
movzx esi, byte [r8 + 8]
add eax, esi
movzx esi, byte [r8 + 0xb]
shl esi, 0x18
add eax, esi
movzx esi, byte [r8 + 2]
add eax, ecx
movzx ecx, byte [r8 + 1]
shl esi, 0x10
shl ecx, 8
add ecx, esi
movzx esi, byte [r8]
add ecx, esi
movzx esi, byte [r8 + 3]
shl esi, 0x18
add ecx, esi
sub ecx, edx
sub edx, eax
sub ecx, eax
add ecx, r11d
mov r11d, eax
shr r11d, 0xd
xor ecx, r11d
sub edx, ecx
sub eax, ecx
mov r11d, edx
mov edx, ecx
shl edx, 8
xor edx, r11d
sub eax, edx
mov r11d, eax
mov eax, edx
shr eax, 0xd
xor eax, r11d
sub ecx, edx
sub r9d, 0xc
add r8, 0xc
sub ecx, eax
sub edx, eax
mov r11d, ecx
mov ecx, eax
shr ecx, 0xc
xor ecx, r11d
sub edx, ecx
sub eax, ecx
mov r11d, edx
mov edx, ecx
shl edx, 0x10
xor edx, r11d
sub eax, edx
sub ecx, edx
mov r11d, eax
mov eax, edx
shr eax, 5
xor eax, r11d
mov r11d, eax
sub ecx, eax
sub edx, eax
shr r11d, 3
xor r11d, ecx
mov esi, r11d
sub edx, r11d
sub eax, r11d
shl esi, 0xa
xor esi, edx
mov ecx, esi
sub eax, esi
shr ecx, 0xf
xor ecx, eax
cmp r9d, 0xb
ja 0x1400749c0
add ecx, r10d
cmp r9d, 0xb
ja case.0x140074ad8.0
lea rdx, [0x1402c43a4]
movsxd rax, dword [rdx + r9*4]
add rax, rdx
jmp rax
movzx eax, byte [r8 + 0xa]
shl eax, 0x18
add ecx, eax
movzx eax, byte [r8 + 9]
shl eax, 0x10
add ecx, eax
movzx eax, byte [r8 + 8]
shl eax, 8
add ecx, eax
movzx eax, byte [r8 + 7]
shl eax, 0x18
add esi, eax
movzx eax, byte [r8 + 6]
shl eax, 0x10
add esi, eax
movzx eax, byte [r8 + 5]
shl eax, 8
add esi, eax
movzx eax, byte [r8 + 4]
add esi, eax
movzx eax, byte [r8 + 3]
shl eax, 0x18
add r11d, eax
movzx eax, byte [r8 + 2]
shl eax, 0x10
add r11d, eax
movzx eax, byte [r8 + 1]
shl eax, 8
add r11d, eax
movzx eax, byte [r8]
add r11d, eax
lea eax, [rcx + rsi]
mov edx, ecx
sub esi, ecx
mov qword [rbx + 0x58], rbx
sub r11d, eax
shr edx, 0xd
movd xmm0, r10d
xor edx, r11d
mov eax, edx
sub esi, edx
sub ecx, edx
shl eax, 8
xor eax, esi
sub ecx, eax
sub edx, eax
mov r8d, ecx
mov ecx, eax
shr ecx, 0xd
xor ecx, r8d
mov r8d, ecx
sub edx, ecx
sub eax, ecx
shr r8d, 0xc
xor r8d, edx
mov edx, r8d
sub eax, r8d
sub ecx, r8d
shl edx, 0x10
xor edx, eax
mov eax, edx
sub ecx, edx
sub r8d, edx
shr eax, 5
xor eax, ecx
mov ecx, eax
sub r8d, eax
sub edx, eax
shr ecx, 3
xor ecx, r8d
mov esi, ecx
sub edx, ecx
sub eax, ecx
shl esi, 0xa
xor esi, edx
sub eax, esi
shr esi, 0xf
xor esi, eax
mov rax, qword [0x1403ec9b8]
movd xmm1, esi
punpckldq xmm0, xmm1
movq qword [rbx + 0x60], xmm0
test rax, rax
je 0x140074df0
mov rdx, qword [rax + 0x30]
mov qword [rbx + 0x40], 0
lea r12, [rbx + 0x30]
mov qword [rbx + 0x30], rdx
mov rcx, qword [rax + 0x30]
mov rdx, qword [rcx + 0x18]
sub rdx, qword [rcx + 0x20]
mov qword [rbx + 0x38], rdx
mov rdx, qword [rax + 0x30]
mov rdx, qword [rdx + 0x18]
mov qword [rdx + 0x10], rbx
mov rdx, qword [rax + 0x30]
mov qword [rdx + 0x18], r12
mov rdi, qword [rax + 0x30]
mov edx, dword [rdi + 0x10]
add edx, 1
mov dword [rdi + 0x10], edx
mov rdx, qword [rax + 0x30]
mov eax, dword [rdx + 8]
sub eax, 1
and eax, esi
shl rax, 4
add rax, qword [rdx]
mov rdx, qword [rax]
add dword [rax + 8], 1
mov qword [rbx + 0x48], 0
mov qword [rbx + 0x50], rdx
mov rdx, qword [rax]
test rdx, rdx
je 0x140074c53
mov qword [rdx + 0x18], r12
mov edx, dword [rax + 0xc]
mov qword [rax], r12
lea edx, [rdx + rdx*4 + 5]
add edx, edx
cmp dword [rax + 8], edx
jae 0x140074c80
xor eax, eax
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov r12, qword [rbx + 0x30]
mov esi, dword [r12 + 0x34]
test esi, esi
jne 0x140074c64
mov ecx, dword [r12 + 8]
mov edx, 1
shl rcx, 5
call sub.msvcrt.dll_calloc
mov rdi, rax
test rax, rax
je 0x140074eb6
mov edx, dword [r12 + 8]
mov eax, dword [r12 + 0x10]
mov ecx, dword [r12 + 0xc]
lea edx, [rdx + rdx - 1]
test edx, eax
setne dl
add ecx, 1
shr eax, cl
movzx edx, dl
add edx, eax
mov dword [r12 + 0x28], edx
mov rax, qword [rbx + 0x30]
mov dword [rax + 0x2c], 0
mov r8, qword [rbx + 0x30]
mov eax, dword [r8 + 8]
test eax, eax
je 0x140074d99
xor r10d, r10d
nop dword [rax]
mov edx, r10d
shl rdx, 4
add rdx, qword [r8]
mov rdx, qword [rdx]
test rdx, rdx
jne 0x140074d27
jmp 0x140074d8c
mov qword [rcx + 0x18], rdx
mov r8, qword [rbx + 0x30]
mov qword [rax], rdx
test r9, r9
je 0x140074d88
mov eax, dword [r8 + 8]
mov rdx, r9
lea eax, [rax + rax - 1]
and eax, dword [rdx + 0x34]
mov r9, qword [rdx + 0x20]
shl rax, 4
add rax, rdi
mov ecx, dword [rax + 8]
add ecx, 1
mov dword [rax + 8], ecx
cmp ecx, dword [r8 + 0x28]
jbe 0x140074d68
add dword [r8 + 0x2c], 1
mov r8, qword [rbx + 0x30]
mov ecx, dword [rax + 0xc]
mov r15d, dword [r8 + 0x28]
imul r15d, ecx
cmp dword [rax + 8], r15d
jbe 0x140074d68
add ecx, 1
mov dword [rax + 0xc], ecx
mov qword [rdx + 0x18], 0
mov rcx, qword [rax]
mov qword [rdx + 0x20], rcx
test rcx, rcx
jne 0x140074d10
mov qword [rax], rdx
mov r8, qword [rbx + 0x30]
test r9, r9
jne 0x140074d20
mov eax, dword [r8 + 8]
add r10d, 1
cmp r10d, eax
jb 0x140074cf8
mov rcx, qword [r8]
call sub.msvcrt.dll_free
mov rax, qword [rbx + 0x30]
shl dword [rax + 8], 1
mov rax, qword [rbx + 0x30]
add dword [rax + 0xc], 1
mov rax, qword [rbx + 0x30]
mov qword [rax], rdi
mov rax, qword [rbx + 0x30]
mov edx, dword [rax + 0x10]
shr edx, 1
cmp dword [rax + 0x2c], edx
jbe 0x140074dcb
mov edi, dword [rax + 0x30]
lea esi, [rdi + 1]
mov dword [rax + 0x30], esi
mov rax, qword [rbx + 0x30]
cmp dword [rax + 0x30], 1
jbe 0x140074c64
mov dword [rax + 0x34], 1
jmp 0x140074c64
pxor xmm0, xmm0
mov ecx, 0x40
movups xmmword [rbx + 0x38], xmm0
call sub.msvcrt.dll_malloc
mov qword [rbx + 0x30], rax
mov rdi, rax
test rax, rax
je 0x140074eb6
lea r12, [rbx + 0x30]
mov qword [rax + 0x10], 0
mov edx, 1
mov ecx, 0x200
mov qword [rax + 0x28], 0
mov qword [rax + 0x30], 0
mov qword [rax + 0x38], 0
mov qword [rax + 0x18], r12
mov rax, qword [0x1402c4990]
mov qword [rdi + 0x20], 0x30
mov qword [rdi + 8], rax
call sub.msvcrt.dll_calloc
mov dword [rdi + 0x38], 0xa0111fe1
mov qword [rdi], rax
test rax, rax
je 0x140074eb6
mov qword [0x1403ec9b8], rbx
mov rax, rbx
mov edx, 1
jmp 0x140074c1e
mov r9d, eax
mov esi, 0x9e3779b9
mov r11d, 0x9e3779b9
mov ecx, 0xfeedbeef
jmp 0x140074ac1
mov r10d, eax
mov r13d, 0x9e3779b9
mov r12d, 0x9e3779b9
mov ecx, 0xfeedbeef
jmp 0x1400747b8
mov eax, 0xfffffffe
ret
or ecx, 0xffffffff
call sub.msvcrt.dll_exit
lea rax, [0x1402c41f7]
mov r9d, 8
lea r8, str.dap_cert
mov edx, 0x190
mov qword [rsp + 0x20], rax
lea rcx, str.dap_cert_add
call fcn.14005aec0
mov eax, 0xfffffffe
jmp 0x140074c66