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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov dword [rax + 0x20], r9d
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor r13d, r13d
mov r15, r8
lea r8, str.live
xor r9d, r9d
mov rdi, rdx
mov r12d, ecx
mov qword [rbp - 0x28], r13
mov esi, r13d
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x20], r13
mov qword [rax - 0x68], r13
call fcn.18000e82c
lea r9, [rbp - 0x20]
mov r8, r15
mov rdx, rdi
mov ecx, r12d
mov ebx, eax
mov qword [rsp + 0x20], r13
call fcn.18000e82c
test eax, eax
jne 0x180059b3d
lea r9, [rbp - 0x20]
lea r8, [0x1800a5d88]
mov rdx, rdi
mov ecx, r12d
mov qword [rsp + 0x20], r13
call fcn.18000e82c
mov r12, qword [rbp - 0x20]
test ebx, ebx
jne 0x180059b4e
test r12, r12
je 0x180059d7f
mov r13d, dword [rbp + 0x68]
mov ecx, 0x40
mov edx, r13d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x180059d7f
mov rdx, qword [rbp + 0x60]
mov r8d, r13d
mov rcx, rax
call fcn.180076230
mov dword [rbp - 0x30], r13d
xor r13d, r13d
test ebx, ebx
je 0x180059bab
cmp dword [rbp + 0x48], r13d
lea rax, str.machine
lea r8, str.user
lea rcx, str.___Live_Key__:__s____s_:
mov rdx, r15
cmovne r8, rax
call fcn.180008f6c
mov eax, ebx
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
mov r9d, Ordinal_26
neg eax
sbb ecx, ecx
not ecx
and ecx, 0xf0000000
neg dword [rbp + 0x48]
sbb eax, eax
and eax, 0x20
or ecx, eax
cmp dword [0x1800d8f74], 0xa28
lea rax, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
cmovbe r8, rax
mov eax, ebx
mov dword [rsp + 0x20], ecx
neg eax
lea rcx, [rbp - 0x10]
sbb rdx, rdx
and rdx, r15
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x180059d62
test ebx, ebx
je 0x180059c17
lea rcx, [0x1800a69b0]
call fcn.180008f6c
jmp 0x180059c8a
lea r8, [rbp - 0x2c]
lea rdx, [rbp - 0x18]
mov rcx, r12
call fcn.180007010
test eax, eax
je 0x180059c94
lea rcx, str.___PVK_file__:__s____s_:
mov r8, r12
mov rdx, r15
call fcn.180008f6c
mov rsi, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
mov r8d, dword [rsi + 0x14]
lea rax, [rbp - 0x28]
lea rdx, [rsi + 0x18]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x180059c76
lea rcx, [0x1800a69b0]
call fcn.180008f6c
jmp 0x180059c98
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_iis_apphost_provider_decrypt___CryptImportKey__RSA___0x_08x__n
mov edx, eax
call fcn.180008f6c
test ebx, ebx
je 0x180059c98
mov r9, qword [rbp - 0x28]
jmp 0x180059ca5
mov rsi, qword [rbp - 0x18]
mov r9, qword [rbp - 0x28]
test r9, r9
je 0x180059d46
mov r8d, dword [rbp + 0x58]
mov rdx, qword [rbp + 0x50]
mov rcx, qword [rbp - 0x10]
lea rax, [rbp - 8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x180059d1f
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x180059cff
lea rdx, [rdi + 4]
lea rcx, str.___Password__:__s_n
call fcn.180008f6c
jmp 0x180059d13
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_iis_apphost_provider_decrypt___CryptDecrypt__0x_08x__n
mov edx, eax
call fcn.180008f6c
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x180059d33
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_iis_apphost_provider_decrypt___CryptImportKey__session___0x_08x__n
mov edx, eax
call fcn.180008f6c
test ebx, ebx
jne 0x180059d54
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x180059d46
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test rsi, rsi
je 0x180059d54
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x10]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x180059d76
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_iis_apphost_provider_decrypt___CryptAcquireContext__0x_08x__n
mov edx, eax
call fcn.180008f6c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret