Function at 0x50008ab0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x8c0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov dword [rsp + 0x54], 0
lea rax, [rsp + 0xd0]
mov rdi, rax
xor eax, eax
mov ecx, 0x3e8
rep stosb byte [rdi], al
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x68], 0x3e8
lea rdx, [0x500142a0]
lea rcx, [rsp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, qword [rsp + 0x8d0]
lea rcx, [rsp + 0x4c0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x4c0]
mov ecx, 1
call qword [sym.imp.CRYPT32.dll_CertStrToNameW]
test eax, eax
jne 0x50008b8e
xor eax, eax
jmp 0x50008d54
lea rax, str.Container
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x20], 0x28
mov r9d, 1
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x50008c13
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x8009000f
jne 0x50008c0c
mov dword [rsp + 0x20], 0x20
mov r9d, 1
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x50008c0a
xor eax, eax
jmp 0x50008d54
jmp 0x50008c13
xor eax, eax
jmp 0x50008d54
lea r9, [rsp + 0x48]
mov r8d, 1
mov edx, 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
jne 0x50008c39
xor eax, eax
jmp 0x50008d54
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, gethostbyaddr
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x88], rax
lea rax, str.Microsoft_Base_Cryptographic_Provider_v1.0
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x98], 1
mov dword [rsp + 0x9c], 1
mov dword [rsp + 0xb0], 1
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [rsp + 0x78]
inc eax
mov word [rsp + 0x78], ax
lea rax, [rsp + 0xb8]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.CRYPT32.dll_CertCreateSelfSignCertificate]
mov qword [rsp + 0x60], rax
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.CRYPT32.dll_CryptFindCertificateKeyProvInfo]
mov dword [rsp + 0x54], eax
cmp qword [rsp + 0x48], 0
je 0x50008d28
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rsp + 0x48], 0
cmp qword [rsp + 0x40], 0
je 0x50008d46
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x60]
add rsp, 0x8c0
pop rdi
ret