Function at 0x14000bbcc
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x280
mov rax, qword [0x14021c510]
xor rax, rsp
mov qword [rbp + 0x178], rax
or dword [rsp + 0x5c], 0xffffffff
xor ecx, ecx
cmp qword [0x14021fe50], rcx
mov edi, ecx
mov qword [rbp - 0x20], r9
mov r15d, ecx
mov qword [rbp - 0x80], rcx
mov r13d, ecx
mov dword [rsp + 0x7c], ecx
mov r12d, ecx
mov dword [rsp + 0x78], ecx
mov r14d, ecx
mov qword [rsp + 0x70], rcx
mov esi, ecx
mov dword [rsp + 0x60], 0xc00
mov ebx, ecx
mov dword [rbp - 0x78], 1
mov dword [rsp + 0x58], ecx
mov qword [rbp - 0x68], rcx
mov dword [rsp + 0x50], ecx
mov qword [rbp - 0x50], rcx
je 0x14000c3c0
cmp qword [0x14021fe58], rcx
je 0x14000c3c0
cmp qword [0x14021fe48], rcx
je 0x14000c3c0
mov qword [r9], rcx
lea r8d, [rcx + 0x40]
lea rcx, [rbp + 0x20]
xor edx, edx
call fcn.140169620
xor r8d, r8d
lea rdx, str.Microsoft_Software_Key_Storage_Provider
lea rcx, [rbp - 0x68]
call qword [sym.imp.ncrypt.dll_NCryptOpenStorageProvider]
test eax, eax
js 0x14000c335
mov rcx, qword [rbp - 0x68]
lea r9, str.MeshDummy
mov dword [rsp + 0x28], 0x80
lea r8, [0x1401e7868]
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x20], 1
call qword [sym.imp.ncrypt.dll_NCryptCreatePersistedKey]
test eax, eax
js 0x14000c335
mov rcx, qword [rsp + 0x70]
lea r9d, [rbx + 4]
lea r8, [rsp + 0x60]
mov dword [rsp + 0x20], 0x80000040
lea rdx, str.Length
call qword [sym.imp.ncrypt.dll_NCryptSetProperty]
test eax, eax
jns 0x14000bd34
mov rcx, qword [rsp + 0x70]
lea r9d, [rbx + 4]
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], 0x800
lea rdx, str.Length
mov dword [rsp + 0x20], 0x80000040
call qword [sym.imp.ncrypt.dll_NCryptSetProperty]
test eax, eax
js 0x14000c335
mov rcx, qword [rsp + 0x70]
lea r8, [rbp - 0x78]
mov r9d, 4
mov dword [rsp + 0x20], 0x80000040
lea rdx, str.Export_Policy
call qword [sym.imp.ncrypt.dll_NCryptSetProperty]
test eax, eax
js 0x14000c335
mov rcx, qword [rsp + 0x70]
mov edx, 0x40
call qword [sym.imp.ncrypt.dll_NCryptFinalizeKey]
test eax, eax
js 0x14000c335
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea eax, [r9 + 1]
mov r8d, eax
mov edx, eax
call qword [sym.imp.CRYPT32.dll_CryptExportPublicKeyInfo]
test eax, eax
je 0x14000c335
mov ecx, dword [rsp + 0x50]
call fcn.1401707f0
mov rsi, rax
test rax, rax
je 0x14000c3f2
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, rsi
mov eax, 1
mov r8d, eax
mov edx, eax
call qword [sym.imp.CRYPT32.dll_CryptExportPublicKeyInfo]
test eax, eax
je 0x14000c335
and qword [rsp + 0x30], rbx
lea rax, [rsp + 0x64]
xor r9d, r9d
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rbx
lea rdx, str.CNMeshNodeCertificate
lea r8d, [r9 + 3]
lea ecx, [r9 + 1]
call qword [sym.imp.CRYPT32.dll_CertStrToNameA]
test eax, eax
je 0x14000c335
mov ecx, dword [rsp + 0x64]
call fcn.1401707f0
mov r15, rax
test rax, rax
je 0x14000c438
and qword [rsp + 0x30], rbx
lea rax, [rsp + 0x64]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, str.CNMeshNodeCertificate
mov qword [rsp + 0x20], r15
lea r8d, [r9 + 3]
lea ecx, [r9 + 1]
call qword [sym.imp.CRYPT32.dll_CertStrToNameA]
test eax, eax
je 0x14000c335
mov eax, dword [rsp + 0x64]
lea rdx, str.CNlocalhost
and qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rbp - 8], eax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rbx
lea r8d, [r9 + 3]
mov qword [rbp], r15
lea ecx, [r9 + 1]
call qword [sym.imp.CRYPT32.dll_CertStrToNameW]
test eax, eax
je 0x14000c335
mov ecx, dword [rsp + 0x68]
call fcn.1401707f0
mov r13, rax
test rax, rax
je 0x14000c47e
and qword [rsp + 0x30], rbx
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, str.CNlocalhost
mov qword [rsp + 0x20], r13
lea r8d, [r9 + 3]
lea ecx, [r9 + 1]
call qword [sym.imp.CRYPT32.dll_CertStrToNameW]
test eax, eax
je 0x14000c335
mov eax, dword [rsp + 0x68]
lea rcx, [rbp + 0x90]
xor edx, edx
mov dword [rbp + 8], eax
mov r8d, 0xd0
mov qword [rbp + 0x10], r13
call fcn.140169620
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, 0xffff
lea rdx, [rbp - 0x30]
add word [rbp + 0x160], ax
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
add word [rbp + 0x160], 0x1e
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
and qword [rbp - 0x70], rbx
lea rdx, [0x1401e78b8]
xor r9d, r9d
lea rcx, [rbp - 0x70]
xor r8d, r8d
call qword [sym.imp.ncrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x14000bf81
mov rcx, qword [rbp - 0x70]
lea rdx, [rbp + 0x170]
mov r9d, 1
lea r8d, [r9 + 7]
call qword [sym.imp.ncrypt.dll_BCryptGenRandom]
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x14000bf92
xor edx, edx
call qword [sym.imp.ncrypt.dll_BCryptCloseAlgorithmProvider]
movups xmm0, xmmword [rbp - 8]
mov dword [rbp + 0x90], 2
lea rax, [rbp + 0x170]
mov qword [rbp + 0xa0], rax
lea r8, [rbp - 0x48]
movdqu xmmword [rbp + 0xc0], xmm0
mov dword [rbp + 0x98], 8
lea rax, str.1.2.840.113549.1.1.12
movups xmm0, xmmword [rbp + 8]
mov qword [rbp + 0xa8], rax
xor r9d, r9d
mov rax, qword [rbp - 0x30]
mov qword [rbp + 0xd0], rax
mov rax, qword [rbp - 0x28]
mov qword [rbp + 0xd8], rax
lea rax, str.1.3.6.1.5.5.7.3.2
movdqu xmmword [rbp + 0xe0], xmm0
mov byte [rsp + 0x54], 0xa8
movups xmm0, xmmword [rsi]
movaps xmmword [rbp + 0xf0], xmm0
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rbp + 0x100], xmm1
movups xmm0, xmmword [rsi + 0x20]
mov qword [rbp - 0x10], rax
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x38], rax
movaps xmmword [rbp + 0x110], xmm0
lea ecx, [rax + 1]
mov dword [rbp - 0x18], 4
lea rax, [rsp + 0x54]
mov dword [rbp - 0x48], ecx
mov qword [rbp - 0x40], rax
lea edx, [rcx + 0xd]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptEncodeObject]
test eax, eax
je 0x14000c335
mov ecx, dword [rsp + 0x50]
call fcn.1401707f0
mov r14, rax
test rax, rax
je 0x14000c4c4
mov edx, reloc.WS2_32.dll_ntohl
lea rax, [rsp + 0x50]
mov r9, r14
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x48]
lea ecx, [rdx - 0xd]
call qword [sym.imp.CRYPT32.dll_CryptEncodeObject]
test eax, eax
je 0x14000c335
and dword [rbp + 0x28], ebx
lea rax, str.2.5.29.15
mov qword [rbp + 0x20], rax
lea r8, [rbp - 0x18]
mov eax, dword [rsp + 0x50]
xor r9d, r9d
mov dword [rbp + 0x30], eax
lea rax, [rsp + 0x50]
mov qword [rbp + 0x38], r14
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x24]
lea ecx, [rdx - 0x23]
call qword [sym.imp.CRYPT32.dll_CryptEncodeObject]
test eax, eax
je 0x14000c335
mov ecx, dword [rsp + 0x50]
call fcn.1401707f0
mov r12, rax
test rax, rax
je 0x14000c50a
mov edx, 0x24
lea rax, [rsp + 0x50]
mov r9, r12
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x18]
lea ecx, [rdx - 0x23]
call qword [sym.imp.CRYPT32.dll_CryptEncodeObject]
test eax, eax
je 0x14000c335
mov rcx, qword [0x14021fe48]
lea rax, str.2.5.29.37
and dword [rbp + 0x48], ebx
lea r9, [rbp - 0x80]
mov qword [rbp + 0x40], rax
xor r8d, r8d
mov eax, dword [rsp + 0x50]
mov edx, 0x10040
mov dword [rbp + 0x50], eax
lea rax, [rbp + 0x20]
mov qword [rbp + 0x158], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x20], rax
mov qword [rbp + 0x58], r12
mov dword [rbp + 0x150], 2
call qword [sym.imp.CRYPT32.dll_CryptAcquireCertificatePrivateKey]
test eax, eax
je 0x14000c335
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0xa8]
and qword [rsp + 0x38], rbx
and qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
mov eax, 1
mov r8d, eax
mov edx, eax
lea r9d, [rax + 1]
call qword [sym.imp.CRYPT32.dll_CryptSignAndEncodeCertificate]
test eax, eax
je 0x14000c335
mov ecx, dword [rsp + 0x5c]
call fcn.1401707f0
mov rdi, rax
test rax, rax
je 0x14000c550
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0xa8]
mov qword [rsp + 0x38], rdi
and qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
mov eax, 1
mov r8d, eax
mov edx, eax
lea r9d, [rax + 1]
call qword [sym.imp.CRYPT32.dll_CryptSignAndEncodeCertificate]
test eax, eax
je 0x14000c333
and qword [rsp + 0x20], rbx
xor r8d, r8d
mov r9d, 0x2000
lea edx, [r8 + 1]
lea ecx, [rdx + 1]
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
mov rbx, rax
test rax, rax
je 0x14000c32d
mov r9d, dword [rsp + 0x5c]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
mov r8, rdi
mov eax, 1
mov rcx, rbx
mov edx, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.CRYPT32.dll_CertAddEncodedCertificateToStore]
xor edi, edi
test eax, eax
je 0x14000c335
xor edx, edx
lea r8d, [rdi + 0x30]
lea rcx, [rbp + 0x60]
call fcn.140169620
mov rcx, qword [rbp - 0x50]
lea rax, str.MeshDummy
mov qword [rbp + 0x60], rax
lea r9, [rbp + 0x60]
lea rax, str.Microsoft_Software_Key_Storage_Provider
mov qword [rbp + 0x70], rdi
xor r8d, r8d
mov qword [rbp + 0x68], rax
lea edx, [rdi + 2]
mov dword [rbp + 0x88], edi
call qword [sym.imp.CRYPT32.dll_CertSetCertificateContextProperty]
test eax, eax
je 0x14000c335
xor eax, eax
lea r9d, [rdi + 4]
lea r8, [0x1401e2250]
mov qword [rbp - 0x60], rax
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x58], rax
mov rcx, rbx
call qword [sym.imp.CRYPT32.dll_PFXExportCertStore]
test eax, eax
je 0x14000c335
mov ecx, dword [rbp - 0x60]
call fcn.1401707f0
mov qword [rbp - 0x58], rax
test rax, rax
je 0x14000c596
lea r9d, [rdi + 4]
mov rcx, rbx
lea r8, [0x1401e2250]
lea rdx, [rbp - 0x60]
call qword [sym.imp.CRYPT32.dll_PFXExportCertStore]
test eax, eax
je 0x14000c335
mov rcx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x58]
mov edi, dword [rbp - 0x60]
mov qword [rcx], rax
jmp 0x14000c335
mov edi, dword [rsp + 0x58]
jmp 0x14000c335
mov edi, ebx
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x14000c344
call qword [sym.imp.ncrypt.dll_NCryptFreeObject]
cmp dword [rsp + 0x78], 0
je 0x14000c36b
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14000c36b
cmp dword [rsp + 0x7c], 0xffffffff
jne 0x14000c363
call qword [sym.imp.ncrypt.dll_NCryptFreeObject]
jmp 0x14000c36b
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test rsi, rsi
je 0x14000c378
mov rcx, rsi
call fcn.14016f3a8
test r15, r15
je 0x14000c385
mov rcx, r15
call fcn.14016f3a8
test r13, r13
je 0x14000c392
mov rcx, r13
call fcn.14016f3a8
test rbx, rbx
je 0x14000c3a2
xor edx, edx
mov rcx, rbx
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
test r12, r12
je 0x14000c3af
mov rcx, r12
call fcn.14016f3a8
test r14, r14
je 0x14000c3bc
mov rcx, r14
call fcn.14016f3a8
mov eax, edi
jmp 0x14000c3c2
xor eax, eax
mov rcx, qword [rbp + 0x178]
xor rcx, rsp
call fcn.140168070
lea r11, [rsp + 0x280]
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
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...meshcorewincrypto.cpp
mov edi, 0x228
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.140078e6c
mov r8d, edi
lea rdx, str...meshcorewincrypto.cpp
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, ebx
call fcn.14016a768
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...meshcorewincrypto.cpp
mov edi, 0x22d
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.140078e6c
mov r8d, edi
lea rdx, str...meshcorewincrypto.cpp
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, ebx
call fcn.14016a768
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...meshcorewincrypto.cpp
mov edi, 0x234
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.140078e6c
mov r8d, edi
lea rdx, str...meshcorewincrypto.cpp
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, ebx
call fcn.14016a768
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...meshcorewincrypto.cpp
mov edi, 0x26e
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.140078e6c
mov r8d, edi
lea rdx, str...meshcorewincrypto.cpp
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, ebx
call fcn.14016a768
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...meshcorewincrypto.cpp
mov edi, 0x277
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.140078e6c
mov r8d, edi
lea rdx, str...meshcorewincrypto.cpp
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, ebx
call fcn.14016a768
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...meshcorewincrypto.cpp
mov edi, 0x285
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.140078e6c
mov r8d, edi
lea rdx, str...meshcorewincrypto.cpp
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, ebx
call fcn.14016a768
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...meshcorewincrypto.cpp
mov edi, 0x2a0
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.140078e6c
mov r8d, edi
lea rdx, str...meshcorewincrypto.cpp
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, ebx
call fcn.14016a768
int3