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

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
push rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x68
xor r14d, r14d
mov qword [rax + 0x10], r12
mov qword [rax - 0x38], r15
mov rbp, r8
mov qword [rax - 0x58], r14
mov r15, rdx
mov qword [rax - 0x60], r14
mov r12d, ecx
mov r13d, r14d
mov esi, r14d
test ecx, ecx
jle 0x1400e1716
mov rdi, rdx
mov edx, 0xfffd
nop dword [rax]
mov rcx, qword [rdi]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], r13w
jne 0x1400e14d0
cmp rax, 1
jbe 0x1400e1549
movzx eax, word [rcx]
sub ax, 0x2d
test dx, ax
jne 0x1400e1549
mov edx, 0x3a
lea rbx, [rcx + 2]
call fcn.14011a790
test rax, rax
jne 0x1400e1522
mov rcx, qword [rdi]
lea edx, [rax + 0x3d]
call fcn.14011a790
test rax, rax
jne 0x1400e1522
mov rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r13w
jne 0x1400e1516
jmp 0x1400e1528
sub rax, rbx
sar rax, 1
cmp rax, 4
jne 0x1400e1544
mov r8, rax
lea rcx, str.live
mov rdx, rbx
call fcn.140129ad0
test eax, eax
je 0x1400e155a
mov edx, 0xfffd
inc esi
add rdi, 8
cmp esi, r12d
jl 0x1400e14c0
jmp 0x1400e1560
mov r13d, 1
mov rax, rbp
mov rsi, r15
mov rbp, 0xffffffffffffffff
nop dword [rax]
inc rbp
cmp word [rax + rbp*2], r14w
jne 0x1400e1570
nop word [rax + rax]
mov rcx, qword [rsi]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400e1590
cmp rax, 1
jbe 0x1400e1610
movzx eax, word [rcx]
mov edx, 0xfffd
sub ax, 0x2d
test dx, ax
jne 0x1400e1610
mov edx, 0x3a
lea rbx, [rcx + 2]
call fcn.14011a790
mov rdi, rax
test rax, rax
jne 0x1400e15ee
mov rcx, qword [rsi]
lea edx, [rax + 0x3d]
call fcn.14011a790
mov rdi, rax
test rax, rax
jne 0x1400e15ee
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x1400e15e1
jmp 0x1400e15f7
mov r8, rdi
sub r8, rbx
sar r8, 1
cmp r8, rbp
jne 0x1400e1610
mov rcx, qword [rsp + 0xb0]
mov rdx, rbx
call fcn.140129ad0
test eax, eax
je 0x1400e1622
inc r14d
add rsi, 8
cmp r14d, r12d
jl 0x1400e1580
jmp 0x1400e1642
test rdi, rdi
je 0x1400e1639
cmp word [rdi + 2], 0
lea rbx, [rdi + 2]
mov rax, rbx
jne 0x1400e171e
test r12d, r12d
jle 0x1400e1713
xor r14d, r14d
mov esi, r14d
nop dword [rax + rax]
mov rcx, qword [r15]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x1400e1660
cmp rax, 1
jbe 0x1400e16e2
movzx eax, word [rcx]
mov edx, 0xfffd
sub ax, 0x2d
test dx, ax
jne 0x1400e16e2
mov edx, 0x3a
lea rbx, [rcx + 2]
call fcn.14011a790
mov rdi, rax
test rax, rax
jne 0x1400e16bd
mov rcx, qword [r15]
lea edx, [rax + 0x3d]
call fcn.14011a790
mov rdi, rax
test rax, rax
jne 0x1400e16bd
mov rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r14w
jne 0x1400e16b1
jmp 0x1400e16c6
mov rax, rdi
sub rax, rbx
sar rax, 1
cmp rax, 3
jne 0x1400e16e2
mov r8, rax
lea rcx, [0x14016ad58]
mov rdx, rbx
call fcn.140129ad0
test eax, eax
je 0x1400e16f9
inc esi
add r15, 8
cmp esi, r12d
jl 0x1400e1650
mov rbx, r14
mov rax, r14
jmp 0x1400e1721
test rdi, rdi
je 0x1400e1716
lea rbx, [rdi + 2]
mov rax, rbx
cmp word [rbx], r14w
jne 0x1400e1721
mov rbx, r14
mov rax, r14
jmp 0x1400e1721
xor r14d, r14d
mov rbx, r14
mov rax, r14
jmp 0x1400e1721
xor r14d, r14d
mov r15, qword [rsp + 0x60]
mov r12, qword [rsp + 0xa8]
test r13d, r13d
jne 0x1400e173c
test rax, rax
je 0x1400e19aa
mov esi, dword [rsp + 0xd8]
mov ecx, 0x40
mov edx, esi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400e19aa
mov rdx, qword [rsp + 0xd0]
mov r8d, esi
mov rcx, rax
call fcn.14011b4a0
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0xa0], esi
mov rsi, qword [rsp + 0xb0]
test r13d, r13d
je 0x1400e17ad
test eax, eax
lea rcx, str.machine
lea r8, str.user
mov rdx, rsi
cmovne r8, rcx
lea rcx, str.___Live_Key__:__s____s_:
call fcn.14000afb0
test r13d, r13d
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
mov ecx, 0xf0000000
mov rdx, r14
cmovne ecx, r14d
mov r9d, reloc.ODBC32.dll_SQLAllocHandle
neg eax
sbb eax, eax
and eax, 0x20
or ecx, eax
lea rax, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
cmp dword [0x1401b38a0], 0xa28
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x48]
cmovbe r8, rax
test r13d, r13d
cmovne rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400e198d
test r13d, r13d
je 0x1400e1825
lea rcx, [0x140167a88]
call fcn.14000afb0
mov r9, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
jmp 0x1400e18b2
lea r8, [rsp + 0x30]
mov rcx, rbx
lea rdx, [rsp + 0x38]
call fcn.140008e30
test eax, eax
je 0x1400e189f
mov r8, rbx
lea rcx, str.___PVK_file__:__s____s_:
mov rdx, rsi
call fcn.14000afb0
mov rbx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
mov r8d, dword [rbx + 0x14]
lea rdx, [rbx + 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x1400e1889
lea rcx, [0x140167a88]
call fcn.14000afb0
jmp 0x1400e18a4
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.14000afb0
jmp 0x1400e18a4
mov rbx, qword [rsp + 0x38]
mov r9, qword [rsp + 0x40]
test r9, r9
je 0x1400e1970
mov r8d, dword [rsp + 0xc8]
lea rax, [rsp + 0x50]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x1400e1947
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x1400e1926
lea rdx, [rdi + 4]
lea rcx, str.___Password__:__s_n
call fcn.14000afb0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x1400e195b
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.14000afb0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x1400e195b
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.14000afb0
test r13d, r13d
jne 0x1400e197e
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400e1970
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test rbx, rbx
je 0x1400e197e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x1400e19a1
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.14000afb0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsp, 0x68
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret