Function at 0x140101790
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0xa8
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.live
mov rdx, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0xb0]
call fcn.140020880
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0xb0]
call fcn.140020880
test eax, eax
jne 0x140101847
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [0x140198f58]
mov rdx, qword [rsp + 0xb8]
mov ecx, dword [rsp + 0xb0]
call fcn.140020880
cmp dword [rsp + 0x30], 0
jne 0x14010185a
cmp qword [rsp + 0x40], 0
je 0x140101b6e
mov eax, dword [rsp + 0xe8]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140101b6e
mov eax, dword [rsp + 0xe8]
mov r8d, eax
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x58]
call fcn.140161160
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x30], 0
je 0x1401018ea
cmp dword [rsp + 0xc8], 0
je 0x1401018c5
lea rax, str.machine
mov qword [rsp + 0x70], rax
jmp 0x1401018d1
lea rax, str.user
mov qword [rsp + 0x70], rax
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0xc0]
lea rcx, str.___Live_Key__:__s____s_:
call fcn.140013fd0
cmp dword [rsp + 0x30], 0
je 0x1401018fb
mov dword [rsp + 0x38], 0
jmp 0x140101903
mov dword [rsp + 0x38], 0xf0000000
cmp dword [rsp + 0xc8], 0
je 0x140101917
mov dword [rsp + 0x34], Ordinal_36
jmp 0x14010191f
mov dword [rsp + 0x34], 0
cmp dword [0x1401ddec0], 0xa28
ja 0x140101939
lea rax, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
mov qword [rsp + 0x78], rax
jmp 0x140101945
lea rax, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
mov qword [rsp + 0x78], rax
cmp dword [rsp + 0x30], 0
je 0x14010195e
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x80], rax
jmp 0x14010196a
mov qword [rsp + 0x80], 0
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x38]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov r9d, reloc.ODBC32.dll_SQLAllocHandle
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140101b4f
cmp dword [rsp + 0x30], 0
je 0x1401019b8
lea rcx, [0x140195ba8]
call fcn.140013fd0
jmp 0x140101a47
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.140010020
test eax, eax
je 0x140101a47
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0xc0]
lea rcx, str.___PVK_file__:__s____s_:
call fcn.140013fd0
mov rax, qword [rsp + 0x50]
add rax, 0x18
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, qword [rsp + 0x50]
mov r8d, dword [rcx + 0x14]
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x140101a33
lea rcx, [0x140195ba8]
call fcn.140013fd0
jmp 0x140101a47
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_iis_apphost_provider_decrypt___CryptImportKey__RSA___0x_08x__n
call fcn.140013fd0
cmp dword [rsp + 0x30], 0
jne 0x140101a5a
cmp qword [rsp + 0x48], 0
je 0x140101b13
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x48]
mov r8d, dword [rsp + 0xd8]
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x140101aff
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x140101adb
mov rax, qword [rsp + 0x58]
add rax, 4
mov rdx, rax
lea rcx, str.___Password__:__s_n
call fcn.140013fd0
jmp 0x140101aef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_iis_apphost_provider_decrypt___CryptDecrypt__0x_08x__n
call fcn.140013fd0
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x140101b13
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_iis_apphost_provider_decrypt___CryptImportKey__session___0x_08x__n
call fcn.140013fd0
cmp dword [rsp + 0x30], 0
jne 0x140101b40
cmp qword [rsp + 0x48], 0
je 0x140101b2d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp qword [rsp + 0x50], 0
je 0x140101b40
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x140101b63
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_iis_apphost_provider_decrypt___CryptAcquireContext__0x_08x__n
call fcn.140013fd0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsp, 0xa8
ret