Function at 0x140002d5c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7a8]
sub rsp, 0x8a8
mov rdi, rdx
mov sil, 1
xor edx, edx
mov byte [rbp + 0x800], sil
call qword [sym.imp.CRYPT32.dll_CertEnumCertificatesInStore]
xor r14d, r14d
mov qword [rsp + 0x78], rax
mov rbx, rax
test rax, rax
je 0x14000319c
mov r13d, 0x739c
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
lea rax, [rbp - 0x60]
mov word [rbp - 0x60], r14w
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rbx
lea edx, [r9 + 4]
call qword [sym.imp.CRYPT32.dll_CertGetNameStringW]
test sil, sil
je 0x140002de7
mov byte [rbp + 0x800], r14b
jmp 0x140002df6
lea rdx, [0x140011400]
mov rcx, rdi
call fcn.140001990
lea rdx, [0x1400113f4]
mov rcx, rdi
call fcn.140001990
mov ecx, 0x12
mov dword [rsp + 0x60], 0x73f273be
mov dword [rsp + 0x64], 0x73f173fd
mov dword [rsp + 0x68], 0x73be73f9
mov dword [rsp + 0x6c], 0x73be73a6
mov dword [rsp + 0x70], 0x739c
mov dword [rsp + 0x74], 0x8ec1739c
call fcn.1400026b0
lea r8, [rsp + 0x60]
mov rdx, rax
sub r8, rax
mov r9d, 9
mov ecx, r13d
xor cx, word [r8 + rdx]
mov word [rdx], cx
lea rdx, [rdx + 2]
sub r9, 1
jne 0x140002e50
mov rdx, rax
mov rcx, rdi
call fcn.140001990
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.1400019e4
lea rsi, [0x1400113f8]
mov rcx, rdi
mov rdx, rsi
call fcn.140001990
mov word [rbp - 0x60], r14w
lea r9, [rbp - 0x60]
mov rdx, qword [rbx + 0x18]
mov r12d, 0x20000003
mov r15d, 0x400
add rdx, 0x50
mov r8d, r12d
mov dword [rsp + 0x20], r15d
mov ecx, 1
call qword [sym.imp.CRYPT32.dll_CertNameToStrW]
lea rcx, [rbp + 0x808]
call fcn.14000299c
mov rdx, rax
mov rcx, rdi
call fcn.140001990
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.1400019e4
mov rdx, rsi
mov rcx, rdi
call fcn.140001990
mov word [rbp - 0x60], r14w
lea r9, [rbp - 0x60]
mov rdx, qword [rbx + 0x18]
mov r8d, r12d
add rdx, 0x30
mov dword [rsp + 0x20], r15d
mov ecx, 1
call qword [sym.imp.CRYPT32.dll_CertNameToStrW]
lea rcx, [rbp + 0x808]
call fcn.1400026b8
mov rdx, rax
mov rcx, rdi
call fcn.140001990
lea rdx, [rbp - 0x60]
mov rcx, rdi
call fcn.1400019e4
mov rdx, rsi
mov rcx, rdi
call fcn.140001990
mov rcx, qword [rbx + 0x18]
lea rdx, [rsp + 0x50]
add rcx, 0x40
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx ebx, word [rsp + 0x5e]
lea rcx, [rbp + 0x808]
movzx edi, word [rsp + 0x5c]
movzx esi, word [rsp + 0x5a]
movzx r14d, word [rsp + 0x58]
movzx r15d, word [rsp + 0x56]
movzx r12d, word [rsp + 0x52]
movzx r13d, word [rsp + 0x50]
call fcn.14000282c
mov rcx, qword [rbp + 0x7f8]
mov rdx, rax
mov dword [rsp + 0x40], ebx
mov r9d, r12d
mov dword [rsp + 0x38], edi
mov r8d, r13d
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r15d
call fcn.140001a70
mov rax, qword [rsp + 0x78]
lea rdx, [rsp + 0x50]
mov rcx, qword [rax + 0x18]
add rcx, 0x48
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx ebx, word [rsp + 0x5e]
movzx edi, word [rsp + 0x5c]
movzx esi, word [rsp + 0x5a]
movzx r14d, word [rsp + 0x58]
lea rcx, [rbp + 0x808]
movzx r15d, word [rsp + 0x56]
movzx r12d, word [rsp + 0x52]
movzx r13d, word [rsp + 0x50]
call fcn.140002a18
mov dword [rsp + 0x40], ebx
mov rdx, rax
mov dword [rsp + 0x38], edi
mov r9d, r12d
mov rdi, qword [rbp + 0x7f8]
mov r8d, r13d
mov dword [rsp + 0x30], esi
mov rcx, rdi
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r15d
call fcn.140001a70
mov rsi, qword [rsp + 0x78]
mov rcx, qword [rsi + 0x18]
mov rcx, qword [rcx + 0x60]
call fcn.1400079f0
lea rcx, [rbp + 0x808]
mov rbx, rax
call fcn.140002730
mov rdx, rax
mov r8, rbx
mov rcx, rdi
call fcn.140001a70
mov rcx, rbx
call fcn.1400025b4
lea rcx, str.1.2.840.113549
call fcn.140002698
mov rcx, qword [rsi + 0x18]
lea rdx, str.1.2.840.113549
mov r8, rax
mov rcx, qword [rcx + 0x60]
call fcn.140007b50
xor r14d, r14d
test al, al
je 0x14000315f
lea r8, [rbp - 0x78]
mov rcx, rsi
lea rdx, [0x140011500]
call fcn.140003220
test al, al
je 0x14000315f
lea rdx, [0x140011400]
mov rcx, rdi
call fcn.140001990
mov edx, dword [rbp - 0x78]
lea r8, [rbp - 0x80]
mov rcx, qword [rbp - 0x70]
mov qword [rbp - 0x80], r14
call fcn.14000a78c
mov rcx, qword [rbp - 0x70]
mov rbx, rax
call fcn.1400025b4
lea ecx, [r14 + 0x10]
mov dword [rsp + 0x60], 0x73af73fd
mov dword [rsp + 0x64], 0x73a773b9
mov r12d, 0x73df
mov dword [rsp + 0x68], 0x73e573fd
mov dword [rsp + 0x6c], 0x73df73fd
mov dword [rsp + 0x70], 0x8ec173df
call fcn.1400026b0
lea r8, [rsp + 0x60]
mov rdx, rax
sub r8, rax
lea r9d, [r14 + 8]
mov ecx, r12d
xor cx, word [r8 + rdx]
mov word [rdx], cx
lea rdx, [rdx + 2]
sub r9, 1
jne 0x14000311d
mov rdx, rax
mov rcx, rdi
call fcn.140001990
mov rdx, rbx
mov rcx, rdi
call fcn.140001990
lea rdx, [0x140011504]
mov rcx, rdi
call fcn.140001990
mov rcx, rbx
call fcn.1400025b4
lea rdx, [0x140011404]
mov rcx, rdi
call fcn.140001990
mov rcx, qword [rbp + 0x7f0]
mov rdx, rsi
call qword [sym.imp.CRYPT32.dll_CertEnumCertificatesInStore]
mov sil, byte [rbp + 0x800]
mov r13d, 0x739c
mov qword [rsp + 0x78], rax
mov rbx, rax
test rax, rax
jne 0x140002db0
mov rcx, qword [0x1400143f0]
test rcx, rcx
je 0x1400031ad
call fcn.1400025b4
add rsp, 0x8a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret