Function at 0x18000c340
Capabilities:
Encrypt data using dpapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov r12, rdx
xor edx, edx
mov edi, r8d
mov r14, rcx
lea r8d, [rdx + 0x30]
lea rcx, [rax - 0x60]
mov rbx, r9
lea r13d, [rdx + 0x57]
call sub.ntdll.dll_memset
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], rax
cmp edi, 0x129803f0
je 0x18000c421
cmp edi, 0x132e03f0
je 0x18000c3fe
cmp edi, 0x13c403f0
je 0x18000c3db
cmp edi, 0x142803f0
jne 0x18000c733
mov rax, qword [0x180035c60]
lea rbx, [0x180000000]
mov dword [rsp + 0x90], 0x19
lea rdi, [rax + rbx + 0x3a376]
jmp 0x18000c442
mov rax, qword [0x180035c60]
lea rbx, [0x180000000]
mov dword [rsp + 0x90], 0x6e
lea rdi, [rax + rbx + 0x3a37b]
jmp 0x18000c442
mov rax, qword [0x180035c60]
lea rbx, [0x180000000]
mov dword [rsp + 0x90], 0x50
lea rdi, [rax + rbx + 0x3a346]
jmp 0x18000c442
mov rax, qword [0x180035c60]
lea rbx, [0x180000000]
mov dword [rsp + 0x90], 0x8f
lea rdi, [rax + rbx + 0x3a380]
xor r15d, r15d
cmp rdi, r15
je 0x18000c733
lea r8, [rax + rbx + 0x3a3fc]
mov rdx, rdi
mov rcx, r12
call fcn.18002b4d8
mov qword [rsp + 0x70], rax
cmp rax, r15
je 0x18000c733
mov rax, qword [0x180035c60]
mov rdx, rdi
mov rcx, r12
lea r8, [rax + rbx + 0x3a403]
call fcn.18002b4d8
mov rdx, rdi
mov rcx, r12
mov qword [rsp + 0x78], rax
mov rax, qword [0x180035c60]
lea r8, [rax + rbx + 0x3a41c]
call fcn.18002b4d8
mov rdx, rdi
mov rcx, r12
mov qword [rsp + 0x88], rax
mov rax, qword [0x180035c60]
lea r8, [rax + rbx + 0x3a417]
call fcn.18002b4d8
mov rbp, rax
cmp rax, r15
je 0x18000c54b
mov rcx, rax
call qword [sym.imp.kERNEL32.dll_lstrlenW]
mov rcx, qword [0x180035a68]
xor edx, edx
lea r8d, [rax + rax + 6]
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rsi, rax
cmp rax, r15
je 0x18000c542
mov rax, qword [0x180035c60]
mov rcx, rsi
lea rdx, [rax + rbx + 0x3a644]
call qword [sym.imp.kERNEL32.dll_lstrcpyW]
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.kERNEL32.dll_lstrcatW]
lea r8, [rsp + 0x90]
lea edx, [r15 + 1]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrToIntExW]
mov rcx, qword [0x180035a68]
mov r8, rsi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rcx, rbp
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rax, qword [0x180035c60]
mov rdx, rdi
mov rcx, r12
lea r8, [rax + rbx + 0x3a40d]
call fcn.18002b4d8
mov rsi, rax
cmp rax, r15
je 0x18000c6d6
mov rcx, rax
call qword [sym.imp.kERNEL32.dll_lstrlenW]
mov ebx, eax
cmp eax, 1
jbe 0x18000c6d6
mov ecx, eax
xor edx, edx
shr ecx, 1
mov dword [rsp + 0x50], ecx
mov r8d, ecx
mov rcx, qword [0x180035a68]
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rbp, rax
mov qword [rsp + 0x58], rax
cmp rax, r15
je 0x18000c6cd
mov r12, rsi
cmp ebx, r15d
jne 0x18000c5c8
mov rcx, rsi
call qword [sym.imp.kERNEL32.dll_lstrlenW]
mov ebx, eax
cmp eax, r15d
je 0x18000c631
mov r8b, byte [rsp + 0xe0]
mov r9d, 0x30
movzx edx, word [r12]
movzx ecx, dx
sub cx, r9w
cmp cx, 9
ja 0x18000c5ed
sub dl, r9b
jmp 0x18000c607
lea eax, [rdx - 0x41]
cmp ax, 5
ja 0x18000c5fb
sub dl, 0x37
jmp 0x18000c607
lea eax, [rdx - 0x61]
cmp ax, 5
ja 0x18000c628
sub dl, r13b
test bl, 1
je 0x18000c618
add r8b, dl
mov byte [rbp], r8b
inc rbp
jmp 0x18000c61f
mov r8b, dl
shl r8b, 4
add r12, 2
add ebx, 0xffffffff
jne 0x18000c5d6
cmp ebx, r15d
jne 0x18000c6b9
mov r8, qword [rsp + 0xf8]
lea rax, [rsp + 0x40]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
cmp eax, r15d
je 0x18000c6b9
mov r8d, dword [rsp + 0x40]
mov rcx, qword [0x180035a68]
xor edx, edx
add r8d, 2
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x80], rax
cmp rax, r15
je 0x18000c6ae
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call sub.ntdll.dll_memcpy
mov r11d, dword [rsp + 0x40]
mov rax, qword [rsp + 0x80]
shr r11, 1
mov word [rax + r11*2], r15w
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.kERNEL32.dll_LocalFree]
mov r8, qword [rsp + 0x58]
mov rcx, qword [0x180035a68]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea r8, [rsp + 0x60]
mov rdx, rdi
mov rcx, r14
call fcn.18000b938
mov r8, qword [rsp + 0x80]
mov r13d, eax
cmp r8, r15
je 0x18000c705
mov rcx, qword [0x180035a68]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x88]
cmp rcx, r15
je 0x18000c718
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x78]
cmp rcx, r15
je 0x18000c728
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea r11, [rsp + 0xa0]
mov eax, r13d
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret