Function at 0x1400061b0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xb0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov dword [rbp - 4], 0
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x18]
cmp eax, 0x8009
je 0x1400061e9
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x18]
jmp 0x1400061ee
mov eax, 0x8004
mov dword [rbp - 8], eax
mov eax, dword [rbp - 8]
mov ecx, eax
call fcn.14000552b
mov dword [rbp - 0xc], eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x1c]
mov ecx, eax
call fcn.1400056b4
mov dword [rbp - 0x10], eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x1c]
mov ecx, eax
call fcn.1400055ee
mov dword [rbp - 0x14], eax
mov edx, dword [rbp - 0x10]
mov eax, dword [rbp - 0x14]
add eax, edx
mov eax, eax
mov rdx, rax
mov ecx, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_LocalAlloc]
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
je 0x1400065aa
mov edx, dword [rbp - 0x10]
mov eax, dword [rbp - 0x14]
lea r8d, [rdx + rax]
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
lea r9, [rax + 4]
mov rdx, qword [rbp + 0x18]
mov eax, dword [rbp - 8]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x38], r8d
mov r8, qword [rbp - 0x20]
mov qword [rsp + 0x30], r8
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 0x10
mov r8d, 0x14
mov ecx, eax
call fcn.14000577a
test eax, eax
je 0x14000659a
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x1c]
mov r8d, dword [rbp - 0x10]
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x48]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x20], rcx
mov r9d, 0
mov ecx, eax
call fcn.140005dc8
test eax, eax
je 0x14000659a
mov edx, dword [rbp - 0x10]
mov rax, qword [rbp - 0x20]
add rdx, rax
mov rax, qword [rbp - 0x50]
mov r9d, 0
mov r8, rdx
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
call rax
test eax, eax
je 0x14000657e
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x28]
mov dword [rbp - 0x3c], eax
mov eax, dword [rbp - 0x3c]
mov eax, eax
mov rdx, rax
mov ecx, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_LocalAlloc]
call rax
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0
je 0x14000657e
mov eax, dword [rbp - 0x3c]
mov ecx, eax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax + 0x20]
mov rax, qword [rbp - 0x28]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp - 0x50]
lea rdx, [rbp - 0x3c]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp - 0x28]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call rax
test eax, eax
je 0x14000656e
mov eax, dword [rbp - 0x3c]
sub eax, dword [rbp - 0xc]
mov edx, eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x1c]
cmp eax, 0x6603
jne 0x1400063aa
mov ecx, 4
jmp 0x1400063af
mov ecx, 0
mov eax, edx
sub eax, ecx
sub eax, 0x10
mov dword [rbp - 0x40], eax
mov eax, dword [rbp - 0xc]
mov rdx, rax
mov ecx, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_LocalAlloc]
call rax
mov qword [rbp - 0x30], rax
cmp qword [rbp - 0x30], 0
je 0x14000656e
mov r8, qword [rbp - 0x28]
mov rdx, qword [rbp + 0x18]
mov eax, dword [rbp - 8]
mov ecx, dword [rbp - 0xc]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbp - 0x30]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x10
mov r9, r8
mov r8d, 0x14
mov ecx, eax
call fcn.14000527a
test eax, eax
je 0x14000655e
mov eax, dword [rbp - 0xc]
mov rdx, rax
mov ecx, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_LocalAlloc]
call rax
mov qword [rbp - 0x38], rax
cmp qword [rbp - 0x38], 0
je 0x14000655e
mov ecx, dword [rbp - 0x40]
mov eax, dword [rbp - 0x3c]
mov edx, eax
mov eax, dword [rbp - 0x40]
mov eax, eax
sub rdx, rax
mov rax, qword [rbp - 0x28]
lea r9, [rdx + rax]
mov r10d, dword [rbp - 0xc]
mov rdx, qword [rbp - 0x30]
mov eax, dword [rbp - 8]
mov r8d, dword [rbp - 0xc]
mov dword [rsp + 0x30], r8d
mov r8, qword [rbp - 0x38]
mov qword [rsp + 0x28], r8
mov dword [rsp + 0x20], ecx
mov r8d, r10d
mov ecx, eax
call fcn.14000527a
test eax, eax
je 0x14000654e
mov ecx, dword [rbp - 0xc]
mov rax, qword [rbp - 0x28]
lea rdx, [rax + 0x10]
mov rax, qword [rbp - 0x38]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcmp
test eax, eax
sete al
movzx eax, al
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x14000654e
mov rax, qword [rbp + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrlenW]
call rax
cdqe
add eax, eax
mov dword [rbp - 0x54], eax
lea rcx, [rbp - 0x54]
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov r9d, 4
mov r8, rcx
mov rcx, rax
call fcn.140004d55
mov r8d, dword [rbp - 0x54]
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov r9d, r8d
mov r8, rcx
mov rcx, rax
call fcn.140004d55
lea rcx, [rbp - 0x40]
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov r9d, 4
mov r8, rcx
mov rcx, rax
call fcn.140004d55
mov ecx, dword [rbp - 0x40]
mov eax, dword [rbp - 0x3c]
mov edx, eax
mov eax, dword [rbp - 0x40]
mov eax, eax
sub rdx, rax
mov rax, qword [rbp - 0x28]
lea r8, [rdx + rax]
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov r9d, ecx
mov rcx, rax
call fcn.140004d55
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LocalFree]
call rax
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LocalFree]
call rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LocalFree]
call rax
mov rax, qword [rbp - 0x50]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call rax
mov rax, qword [rbp - 0x48]
mov rcx, rax
call fcn.140005c83
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LocalFree]
call rax
mov eax, dword [rbp - 4]
add rsp, 0xb0
pop rbp
ret