Function at 0x1400081a0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x280
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rbp, r8
mov rsi, rdx
xor r12d, r12d
mov dword [rax + 0x10], r12d
lea rax, str.CCspEncrypter::Hash
mov qword [rsp + 0x20], rax
lea r9, [0x1401cdac8]
mov r8d, 0x3fa
lea rdx, str..ce_CspEncrypter.cpp
lea ecx, [r12 + 0x44]
call fcn.140038200
lea rbx, [0x140000000]
lea rax, [rbx + 0x23c218]
mov qword [rsp + 0x180], rax
lea rax, [rbx + 0x23c220]
mov qword [rsp + 0x190], rax
lea rdi, [0x140190dc0]
mov qword [rsp + 0x218], rdi
mov dword [rsp + 0x2b8], 1
movsxd rax, dword [0x14023c21c]
lea rcx, [0x1401ce908]
mov qword [rsp + rax + 0x180], rcx
mov qword [rsp + 0x188], r12
mov rax, qword [rsp + 0x180]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x180]
xor r8d, r8d
lea rdx, [rsp + 0x198]
call fcn.14000b8d0
nop
mov rax, qword [rsp + 0x190]
movsxd rcx, dword [rax + 4]
lea r15, [0x140190db0]
mov qword [rsp + rcx + 0x190], r15
mov rax, qword [rsp + 0x180]
movsxd rcx, dword [rax + 4]
lea r14, [0x1401ce918]
mov qword [rsp + rcx + 0x180], r14
mov rax, qword [rsp + 0x180]
movsxd rcx, dword [rax + 4]
lea r13, [0x1401ce9a0]
mov qword [rsp + rcx + 0x180], r13
lea edx, [r12 + 3]
lea rcx, [rsp + 0x198]
call fcn.14000aae0
nop
lea rax, [rbx + 0x23c218]
mov qword [rsp + 0x80], rax
lea rax, [rbx + 0x23c220]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x118], rdi
mov dword [rsp + 0x2b8], reloc.WS2_32.dll_recvfrom
movsxd rax, dword [0x14023c21c]
lea rcx, [0x1401ce908]
mov qword [rsp + rax + 0x80], rcx
mov qword [rsp + 0x88], r12
mov rax, qword [rsp + 0x80]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x80]
xor r8d, r8d
lea rdx, [rsp + 0x98]
call fcn.14000b8d0
nop
mov rax, qword [rsp + 0x90]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x90], r15
mov rax, qword [rsp + 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x80], r14
mov rax, qword [rsp + 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x80], r13
lea edx, [r12 + 3]
lea rcx, [rsp + 0x98]
call fcn.14000aae0
nop
lea rax, [0x1401ce9b8]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
lea rdi, [0x1401cda98]
mov qword [rsp + 0x20], rdi
lea r9, [0x1401cdac8]
lea r8d, [r12 + 0x35]
lea rdx, str..ce_CspEncrypter.cpp
lea ecx, [r12 + 0x44]
call fcn.140038200
mov qword [rsp + 0x20], rdi
lea r9, str._s______
lea r8d, [r12 + 0x38]
lea rdx, str..ce_CspEncrypter.cpp
lea ecx, [r12 + 0x44]
call fcn.140038200
nop
mov edx, 7
mov qword [rsp + 0x50], rdx
mov r8, r12
mov qword [rsp + 0x48], r12
mov word [rsp + 0x38], r8w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rbx, rcx
movabs rax, 0x7ffffffffffffffe
cmp rcx, rax
jbe 0x14000845b
call fcn.14003b3f0
mov rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
cmp rdx, rbx
jae 0x140008474
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14000ba60
mov rdx, qword [rsp + 0x50]
jmp 0x140008492
test rbx, rbx
jne 0x140008492
mov qword [rsp + 0x48], r12
lea rax, [rsp + 0x38]
cmp rdx, 8
cmovae rax, qword [rsp + 0x38]
mov word [rax], bx
jmp 0x1400084d4
test rbx, rbx
je 0x1400084d4
lea rcx, [rsp + 0x38]
cmp rdx, 8
cmovae rcx, qword [rsp + 0x38]
lea rdi, [rbx + rbx]
add rdx, rdx
mov r9, rdi
mov r8, rsi
call fcn.140041310
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rax, qword [rsp + 0x38]
mov word [rdi + rax], 0
lea r8, [rsp + 0x180]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.140003980
mov edi, eax
cmp qword [rsp + 0x50], 8
jb 0x1400084ff
mov rcx, qword [rsp + 0x38]
call fcn.140041700
test edi, edi
jne 0x1400086e9
lea rbx, str.CCspHelper::CryptoAcquireContext
mov qword [rsp + 0x20], rbx
lea r9, [0x1401cdac8]
mov r8d, 0x121
lea rdx, str..ce_CspEncrypter.cpp
lea ecx, [rdi + 0x44]
call fcn.140038200
mov dword [rsp + 0x20], r12d
lea r9d, [rdi + 1]
lea r8, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
lea rdx, str.TrendMicroOfficeScanCspEncrypter
lea rcx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1400085f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1400085c6
mov dword [rsp + 0x20], 8
lea r9d, [rdi + 1]
lea r8, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
lea rdx, str.TrendMicroOfficeScanCspEncrypter
lea rcx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1400085c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
lea r9, str._s___::CryptAcquireContextW_failed_with_Windows_error_code:__d_.
mov r8d, 0x136
lea rdx, str..ce_CspEncrypter.cpp
lea ecx, [rdi + 0x45]
call fcn.140038200
mov edi, 0xffff4a58
jmp 0x1400085f7
mov edi, r12d
jmp 0x1400085f7
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
lea r9, str._s___::CryptAcquireContextW_failed_with_Windows_error_code:__d_.
mov r8d, 0x140
lea rdx, str..ce_CspEncrypter.cpp
mov ecx, 0x45
call fcn.140038200
mov edi, 0xffff4a58
jmp 0x1400085f7
mov edi, r12d
mov qword [rsp + 0x20], rbx
lea r9, str._s______
mov r8d, 0x149
lea rdx, str..ce_CspEncrypter.cpp
mov ecx, 0x44
call fcn.140038200
test edi, edi
jne 0x1400086e9
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x58]
call fcn.140004b60
mov edi, eax
test eax, eax
jne 0x140008657
mov r8, rbp
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x58]
call fcn.140005230
lea rbx, str.CCspHelper::CryptoReleaseContext
mov qword [rsp + 0x20], rbx
lea r9, [0x1401cdac8]
mov r8d, 0x152
lea rdx, str..ce_CspEncrypter.cpp
mov ecx, 0x44
call fcn.140038200
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x1400086c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
lea r9, str._s___::CryptReleaseContext_failed_with_Windows_error_code:__d_.
mov r8d, 0x159
lea rdx, str..ce_CspEncrypter.cpp
mov ecx, 0x45
call fcn.140038200
jmp 0x1400086c6
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x20], rbx
lea r9, str._s______
mov r8d, 0x162
lea rdx, str..ce_CspEncrypter.cpp
mov ecx, 0x44
call fcn.140038200
lea rax, str.CCspEncrypter::Hash
mov qword [rsp + 0x20], rax
lea r9, str._s______
mov r8d, 0x411
lea rdx, str..ce_CspEncrypter.cpp
mov ecx, 0x44
call fcn.140038200
nop
lea rax, [0x1401ce9b8]
mov qword [rsp + 0x58], rax
lea rbx, str.CCspHelper::CCspHelper
mov qword [rsp + 0x20], rbx
lea r9, [0x1401cdac8]
mov r8d, 0x40
lea rdx, str..ce_CspEncrypter.cpp
lea ecx, [r8 + 4]
call fcn.140038200
mov qword [rsp + 0x20], rbx
lea r9, str._s______
mov r8d, 0x43
lea rdx, str..ce_CspEncrypter.cpp
lea ecx, [r8 + 1]
call fcn.140038200
nop
lea rax, [rsp + 0x118]
mov qword [rsp + 0x2b8], rax
mov rax, qword [rsp + 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x80], r13
lea rcx, [rsp + 0x98]
call fcn.140009b80
nop
mov rax, qword [rsp + 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x80], r14
mov rax, qword [rsp + 0x90]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x90], r15
mov rax, qword [rsp + 0x80]
movsxd rcx, dword [rax + 4]
lea rsi, [0x1401ce908]
mov qword [rsp + rcx + 0x80], rsi
lea rbx, [0x140190da0]
mov qword [rsp + 0x118], rbx
lea rcx, [rsp + 0x118]
call fcn.14003feb0
nop
lea rax, [rsp + 0x218]
mov qword [rsp + 0x2b8], rax
mov rax, qword [rsp + 0x180]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x180], r13
lea rcx, [rsp + 0x198]
call fcn.140009b80
nop
mov rax, qword [rsp + 0x180]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x180], r14
mov rax, qword [rsp + 0x190]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x190], r15
mov rax, qword [rsp + 0x180]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x180], rsi
mov qword [rsp + 0x218], rbx
lea rcx, [rsp + 0x218]
call fcn.14003feb0
mov eax, edi
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret