Function at 0x14003ed58
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x14006c8a8]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov r14, rdx
mov rbx, rcx
mov esi, 1
lea r13, str.onecoreds_security_trustletutils_vtl1lib_tpmsessionkey.cpp
cmp dword [rcx], 2
jne 0x14003ee16
mov rcx, qword [rcx + 8]
cmp rcx, rdx
jne 0x14003edab
xor eax, eax
jmp 0x14003ef91
call fcn.14003a4f8
mov byte [rsp + 0x31], sil
lea rcx, [rsp + 0x50]
call fcn.140049944
nop
mov eax, dword [rbx + 4]
mov dword [rbp + 0x10], eax
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140048438
mov rcx, qword [rbp + 0x78]
test eax, eax
jns 0x14003edea
mov r9d, eax
mov r8, r13
mov edx, 0x32
call fcn.14001ff0c
and dword [rbx + 4], 0
lea rax, [0x140054068]
mov qword [rsp + 0x50], rax
mov dword [rbp + 0x10], 0x40000007
lea rcx, [rsp + 0x50]
call fcn.1400481d8
nop
mov byte [rsp + 0x31], 0
call fcn.14003a64c
mov dword [rbx], esi
mov qword [rsp + 0x40], rbx
mov byte [rsp + 0x48], sil
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
mov r9d, 2
lea r8d, [r9 + 0x1e]
lea rdx, [rbp + 0x20]
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
nop dword [rax + rax]
test eax, eax
jns 0x14003ee68
mov rcx, qword [rbp + 0x78]
mov r9d, eax
mov r8, r13
mov edx, 0x42
call fcn.140022ba8
mov edi, eax
jmp 0x14003ef82
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
lea rdx, [rbp + 0x20]
mov rcx, r14
call fcn.14003b920
mov edi, eax
test eax, eax
jns 0x14003ee9e
mov r9d, eax
mov edx, 0x4b
jmp 0x14003eed7
mov r8d, dword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
mov rdx, r15
mov rcx, r14
call fcn.14003bc9c
mov edi, eax
test eax, eax
jns 0x14003eec3
mov r9d, eax
mov edx, 0x50
jmp 0x14003eed7
cmp dword [rsp + 0x30], 0x48
jae 0x14003eee8
mov edi, 0x8009002d
mov r9d, edi
mov edx, 0x54
mov rcx, qword [rbp + 0x78]
mov r8, r13
call fcn.140004430
jmp 0x14003ef82
mov eax, dword [r15 + 0xc]
mov dword [rbx + 4], eax
mov qword [rbx + 8], r14
lea rax, [r15 + 0x18]
lea rcx, [rbx + 0x10]
mov edi, 0x16
test rcx, rcx
je 0x14003ef32
test rax, rax
je 0x14003ef22
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movzx eax, word [rax + 0x20]
mov word [rcx + 0x20], ax
jmp 0x14003ef45
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
mov word [rcx + 0x20], ax
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
nop dword [rax + rax]
mov dword [rax], edi
call sub.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo
lea rax, [rbx + 0x32]
test rax, rax
jne 0x14003ef63
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
nop dword [rax + rax]
mov dword [rax], edi
call sub.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo
jmp 0x14003ef72
movups xmm0, xmmword [rbp + 0x20]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rbp + 0x30]
movups xmmword [rax + 0x10], xmm1
xor sil, sil
mov byte [rsp + 0x48], sil
mov dword [rbx], 2
xor edi, edi
test sil, sil
je 0x14003ef8f
mov byte [rsp + 0x48], 0
and dword [rbx], 0
mov eax, edi
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14004cea0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret