Function at 0x14002c250
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4d8
movaps xmmword [rsp + 0x4c0], xmm6
mov rbx, r9
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov rbp, qword [rdx]
mov r15, qword [rdx + 0x20]
movzx eax, byte [0x1401e61e8]
cmp al, 2
jne 0x14002c555
mov rcx, qword [r15 + 0x10]
mov rdx, qword [r15 + 0x18]
mov r8, rdx
sub r8, rcx
jb 0x14002cc31
mov rax, qword [r15 + 8]
cmp rdx, rax
ja 0x14002cc3f
add rcx, qword [r15]
mov qword [rsp + 0x310], rcx
mov qword [rsp + 0x318], r8
lea rax, [rsp + 0x310]
mov qword [rsp + 0x1d0], rax
mov word [rsp + 0x1d8], 0x100
lea rcx, [rsp + 0x80]
lea r9, [rsp + 0x1d0]
mov rdx, r14
mov r8, rbx
call fcn.14002a330
mov rax, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
test rax, rax
je 0x14002c4ea
lea r12, str.InvalidEncoding
mov ebx, 0xf
test r14, r14
je 0x14002c4f5
movzx ecx, byte [rax]
mov edx, ecx
not dl
test dl, 0x1f
je 0x14002c4f5
cmp r14, 2
jb 0x14002c4f5
movzx edx, byte [rax + 1]
test dl, dl
js 0x14002c520
mov r8d, 2
lea r13, [r8 + rdx]
cmp r13, r14
ja 0x14002c4f5
add rax, r8
je 0x14002c4f5
cmp cl, 0x30
jne 0x14002c4f5
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rdx
mov qword [rsp + 0x90], 0
lea rcx, [rsp + 0x80]
call fcn.14002e850
mov ebx, 0xf
lea r12, str.InvalidEncoding
test rax, rax
je 0x14002c4f5
cmp rdx, 1
jne 0x14002c4f5
cmp byte [rax], 1
jne 0x14002c578
lea rcx, [rsp + 0x80]
mov dl, 4
call fcn.14002e530
test rax, rax
je 0x14002c4f5
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x38], rdx
mov rax, qword [rsp + 0x90]
cmp rax, qword [rsp + 0x88]
jae 0x14002c479
mov rcx, qword [rsp + 0x80]
cmp byte [rcx + rax], 0xa0
jne 0x14002c479
lea rcx, [rsp + 0x80]
mov dl, 0xa0
call fcn.14002e530
test rax, rax
je 0x14002c589
mov r8, rdx
mov rdx, qword [r15 + 0x10]
mov r10, qword [r15 + 0x18]
mov r9, r10
sub r9, rdx
jb 0x14002cc53
mov r11, qword [r15 + 8]
cmp r10, r11
ja 0x14002cc67
mov rcx, qword [r15 + 0x20]
mov r10, r9
sub r10, rcx
jb 0x14002cc7b
mov ebx, 0xe
lea r12, [0x140162f3d]
cmp r8, r10
jne 0x14002c4f5
add rdx, qword [r15]
add rdx, rcx
mov rcx, rax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x14002c4f5
lea rcx, [rsp + 0x80]
call fcn.14002e710
lea r12, str.InvalidEncoding
mov ebx, 0xf
test rax, rax
je 0x14002c4f5
mov r15, rax
mov rax, qword [rsp + 0x90]
lea r12, str.InvalidEncoding
cmp rax, qword [rsp + 0x88]
jne 0x14002c4f5
cmp r13, r14
jne 0x14002c4f5
mov rbx, qword [rsp + 0x38]
cmp qword [rbp + 0x20], rbx
mov r12, qword [rsp + 0x78]
jne 0x14002c4dc
mov r14, rdx
mov rcx, r12
mov rdx, rbx
call qword [rbp]
test al, al
je 0x14002c595
lea r12, [0x140162eee]
mov ebx, 0x10
jmp 0x14002c4f5
mov rbx, qword [rsp + 0x90]
mov r12, r14
mov qword [rsi + 8], r12
mov qword [rsi + 0x10], rbx
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x4c0]
add rsp, 0x4d8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp rdx, 0x81
je 0x14002c55f
cmp edx, 0x82
jne 0x14002c4f5
cmp r14, 4
jb 0x14002c4f5
movzx edx, word [rax + 2]
rol dx, 8
movzx edx, dx
cmp edx, 0x100
jb 0x14002c4f5
mov r8d, 4
jmp 0x14002c350
call fcn.140086b60
jmp 0x14002c28d
cmp r14, 2
jbe 0x14002c4f5
movzx edx, byte [rax + 2]
test dl, dl
jns 0x14002c4f5
mov r8d, 3
jmp 0x14002c350
mov ebx, 0x13
lea r12, [0x140162f2a]
jmp 0x14002c4f5
lea r12, str.InvalidEncoding
jmp 0x14002c4f5
xorps xmm6, xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
cmp rbx, 0x31
jae 0x14002cc8c
lea rcx, [rsp + 0x80]
mov rdx, r12
mov r8, rbx
call sub.msvcrt.dll_memcpy
movaps xmm0, xmmword [rsp + 0x80]
movaps xmm1, xmmword [rsp + 0x90]
movaps xmm2, xmmword [rsp + 0xa0]
movaps xmmword [rsp + 0x1e0], xmm2
movups xmmword [rsp + 0x58], xmm1
movups xmmword [rsp + 0x68], xmm2
mov qword [rsp + 0x40], rbp
movups xmmword [rsp + 0x48], xmm0
mov rax, qword [rbp + 0x18]
movups xmmword [rsp + 0x1b8], xmm6
movups xmmword [rsp + 0x1a8], xmm6
movups xmmword [rsp + 0x198], xmm6
movups xmmword [rsp + 0x188], xmm6
movups xmmword [rsp + 0x178], xmm6
movups xmmword [rsp + 0x168], xmm6
mov byte [rsp + 0x1c8], 0
mov qword [rsp + 0x160], rax
cmp rax, 0x62
jae 0x14002cca2
lea rcx, [rsp + 0x168]
lea r8, [rsp + 0x40]
mov rdx, rax
call qword [rbp + 0x10]
test al, al
jne 0x14002c9be
lea rax, [rsp + 0x58]
movups xmm0, xmmword [rsp + 0x1c0]
movaps xmmword [rsp + 0x250], xmm0
movups xmm0, xmmword [rsp + 0x1b0]
movaps xmmword [rsp + 0x240], xmm0
movups xmm0, xmmword [rsp + 0x1a0]
movaps xmmword [rsp + 0x230], xmm0
movups xmm0, xmmword [rsp + 0x160]
movups xmm1, xmmword [rsp + 0x170]
movups xmm2, xmmword [rsp + 0x180]
movups xmm3, xmmword [rsp + 0x190]
movaps xmmword [rsp + 0x220], xmm3
movaps xmmword [rsp + 0x210], xmm2
movaps xmmword [rsp + 0x200], xmm1
movaps xmmword [rsp + 0x1f0], xmm0
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rsp + 0x1e0], xmm1
movaps xmmword [rsp + 0x1d0], xmm0
lea rcx, [rsp + 0x310]
lea rdx, [rsp + 0x1d0]
mov r8d, 0x90
call sub.msvcrt.dll_memcpy
test rbp, rbp
je 0x14002c9be
lea rcx, [rsp + 0x98]
lea rdx, [rsp + 0x310]
mov r8d, 0x90
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], r13
mov rcx, qword [rsp + 0xb8]
cmp rcx, 0x62
jae 0x14002ccb8
lea r12, str.InconsistentComponentsInvalidComponentRNG_failedPublicKeyIsMissingTooSmallTooLargeVersionNotSupportedWrongAlgorithmPrivateModulusLenNotMultipleOf512BitsUnexpectedError
mov ebx, 0x16
cmp r14, rcx
jne 0x14002c4f5
lea rdx, [rsp + 0xc0]
mov rcx, r15
mov r8, r14
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x14002c4f5
lea rbx, [rsp + 0x3a0]
mov r8d, 0x90
mov rcx, rbx
lea rdx, [rsp + 0x98]
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x430]
mov r8d, 0x90
mov rdx, rbx
call sub.msvcrt.dll_memcpy
movups xmm0, xmmword [rsp + 0x430]
movups xmm1, xmmword [rsp + 0x440]
movups xmmword [rsp + 0x68], xmm1
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x40], rbp
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], r13
mov rax, qword [rbp + 0x20]
cmp rax, 0x31
jae 0x14002ccf9
mov rcx, qword [rdi + 0x10]
mov r9, qword [rcx]
mov rcx, qword [r9 + 0x18]
cmp rcx, 7
jae 0x14002cd0f
lea rdx, [rcx*8]
cmp rdx, rax
jne 0x14002cccb
lea r8, [rsp + 0x48]
sub r9, 0xffffffffffffff80
xorps xmm6, xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
mov qword [rsp + 0x30], rcx
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rcx
mov rcx, r8
mov rdx, rax
xor r8d, r8d
call fcn.14002b8e0
test al, al
jne 0x14002cccb
movaps xmm0, xmmword [rsp + 0x80]
movaps xmm1, xmmword [rsp + 0x90]
movaps xmm2, xmmword [rsp + 0xa0]
movaps xmmword [rsp + 0x300], xmm2
movaps xmmword [rsp + 0x2f0], xmm1
movaps xmmword [rsp + 0x2e0], xmm0
mov r8, qword [rdi + 8]
mov rax, qword [r8]
mov rax, qword [rax + 8]
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
add r8, 0x10
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x2e0]
call rax
movaps xmm0, xmmword [rsp + 0x80]
movaps xmm1, xmmword [rsp + 0x90]
movaps xmm2, xmmword [rsp + 0xa0]
movaps xmmword [rsp + 0x2d0], xmm2
movaps xmmword [rsp + 0x2c0], xmm1
movaps xmmword [rsp + 0x2b0], xmm0
mov rax, qword [rdi]
mov r13, qword [rdi + 0x18]
movaps xmmword [rsp + 0x190], xmm6
movaps xmmword [rsp + 0x180], xmm6
movaps xmmword [rsp + 0x170], xmm6
movaps xmmword [rsp + 0x160], xmm6
mov r14, qword [rax + 0x20]
cmp r14, 0x41
jae 0x14002cd22
test r14, r14
je 0x14002c9cf
lea r15, [rsp + 0x160]
mov ebp, 0xffffffff
mov rbx, r14
jmp 0x14002c977
add r15, r12
sub rbx, r12
je 0x14002c9cf
cmp rbx, rbp
mov r12d, 0xffffffff
cmovb r12, rbx
xor ecx, ecx
mov rdx, r15
mov r8d, r12d
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xbfffffff
jbe 0x14002c96f
mov rcx, r15
mov edx, r12d
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x14002c96f
lea rax, [0x140162efe]
mov ecx, 0xa
jmp 0x14002cc24
lea r12, [0x140162f70]
mov ebx, 0xf
jmp 0x14002c4f5
movups xmm0, xmmword [r13 + 0x30]
movups xmm1, xmmword [r13 + 0x40]
movups xmm2, xmmword [r13 + 0x50]
movups xmm3, xmmword [r13 + 0x60]
movups xmmword [rsp + 0x208], xmm3
movups xmmword [rsp + 0x1f8], xmm2
movups xmmword [rsp + 0x1e8], xmm1
movups xmmword [rsp + 0x1d8], xmm0
xorps xmm0, xmm0
movups xmmword [rsp + 0x220], xmm0
movups xmmword [rsp + 0x230], xmm0
movups xmmword [rsp + 0x240], xmm0
movups xmmword [rsp + 0x250], xmm0
movups xmmword [rsp + 0x260], xmm0
movups xmmword [rsp + 0x270], xmm0
movups xmmword [rsp + 0x280], xmm0
movups xmmword [rsp + 0x290], xmm0
mov qword [rsp + 0x1d0], r13
mov qword [rsp + 0x218], 0
mov qword [rsp + 0x2a0], 0
lea rcx, [rsp + 0x1d0]
lea rdx, [rsp + 0x160]
mov r8, r14
call fcn.14002d510
mov rax, qword [rsp + 0x40]
mov r8, qword [rax + 0x20]
cmp r8, 0x31
jae 0x14002cd38
lea rbx, [rsp + 0x1d0]
mov rcx, rbx
lea rdx, [rsp + 0x48]
call fcn.14002d510
lea rcx, [rsp + 0x80]
mov r8d, 0xd8
mov rdx, rbx
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x20]
movups xmm0, xmmword [rsp + 0x210]
movaps xmmword [rsp + 0x350], xmm0
movups xmm0, xmmword [rsp + 0x1d0]
movups xmm1, xmmword [rsp + 0x1e0]
movups xmm2, xmmword [rsp + 0x1f0]
movups xmm3, xmmword [rsp + 0x200]
movaps xmmword [rsp + 0x340], xmm3
movaps xmmword [rsp + 0x330], xmm2
movaps xmmword [rsp + 0x320], xmm1
movaps xmmword [rsp + 0x310], xmm0
cmp r9, 0x81
jae 0x14002cd51
lea r8, [rsp + 0xd0]
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x3a0]
lea rdx, [rsp + 0x310]
call fcn.14002d2c0
mov rax, qword [rsp + 0x3a0]
test rax, rax
je 0x14002cc14
lea rcx, [rsp + 0x450]
movups xmm0, xmmword [rsp + 0x3a8]
movups xmm1, xmmword [rsp + 0x3b8]
movups xmm2, xmmword [rsp + 0x3c8]
movups xmm3, xmmword [rsp + 0x3d8]
movups xmmword [rsi + 0x38], xmm3
movups xmmword [rsi + 0x28], xmm2
movups xmmword [rsi + 0x18], xmm1
movaps xmm1, xmmword [rsp + 0x2b0]
movaps xmm2, xmmword [rsp + 0x2c0]
movaps xmm3, xmmword [rsp + 0x2d0]
movups xmmword [rsi + 0x70], xmm3
movups xmmword [rsi + 0x60], xmm2
movups xmmword [rsi + 0x50], xmm1
movups xmm1, xmmword [rcx]
movups xmm2, xmmword [rcx + 0x10]
movups xmm3, xmmword [rcx + 0x20]
movups xmm4, xmmword [rcx + 0x30]
movups xmmword [rsi + 0x80], xmm1
movups xmmword [rsi + 0x90], xmm2
movups xmmword [rsi + 0xa0], xmm3
movups xmmword [rsi + 0xb0], xmm4
movups xmm1, xmmword [rcx + 0x40]
movups xmmword [rsi + 0xc0], xmm1
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rsi + 0xd0], xmm1
movups xmm1, xmmword [rcx + 0x60]
movups xmmword [rsi + 0xe0], xmm1
mov qword [rsi], rax
movups xmmword [rsi + 8], xmm0
mov qword [rsi + 0x48], rdi
jmp 0x14002c504
mov rax, qword [rsp + 0x3a8]
mov rcx, qword [rsp + 0x3b0]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rcx
jmp 0x14002c4fd
lea r8, str._Users_caojian_.cargo_registry_src_index.crates.io_6f17d22bba15001f_ring_0.17.8_src_pkcs8.rs
call fcn.1400055e0
ud2
lea r8, str._Users_caojian_.cargo_registry_src_index.crates.io_6f17d22bba15001f_ring_0.17.8_src_pkcs8.rs
mov rcx, rdx
mov rdx, rax
call fcn.140004b30
ud2
lea r8, str._Users_caojian_.cargo_registry_src_index.crates.io_6f17d22bba15001f_ring_0.17.8_src_pkcs8.rs
mov rcx, rdx
mov rdx, r10
call fcn.1400055e0
ud2
lea r8, str._Users_caojian_.cargo_registry_src_index.crates.io_6f17d22bba15001f_ring_0.17.8_src_pkcs8.rs
mov rcx, r10
mov rdx, r11
call fcn.140004b30
ud2
lea r8, str._Users_caojian_.cargo_registry_src_index.crates.io_6f17d22bba15001f_ring_0.17.8_src_pkcs8.rs
mov rdx, r9
call fcn.1400041b0
ud2
lea r8, [0x140162928]
mov edx, 0x30
mov rcx, rbx
call fcn.140004b30
ud2
lea r8, [0x140162958]
mov edx, 0x61
mov rcx, rax
call fcn.140004b30
ud2
lea r8, [0x140162970]
mov edx, 0x61
call fcn.140004b30
ud2
lea rax, str._Users_caojian_.cargo_registry_src_index.crates.io_6f17d22bba15001f_ring_0.17.8_src_ec_suite_b_private_key.rs
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r9, [0x140160768]
lea r8, [rsp + 0x80]
mov edx, 0x2b
call fcn.140006510
ud2
lea r8, [0x140162940]
mov edx, 0x30
mov rcx, rax
call fcn.140004b30
ud2
lea r8, str._Users_caojian_.cargo_registry_src_index.crates.io_6f17d22bba15001f_ring_0.17.8_src_ec_suite_b_ops.rs
mov edx, 6
call fcn.140004b30
ud2
lea r8, [0x140160900]
mov edx, 0x40
mov rcx, r14
call fcn.140004b30
ud2
lea rax, [0x140162940]
mov edx, 0x30
mov rcx, r8
mov r8, rax
call fcn.140004b30
ud2
lea r8, str._Users_caojian_.cargo_registry_src_index.crates.io_6f17d22bba15001f_ring_0.17.8_src_digest.rs
mov edx, pe_nt_image_headers64
mov rcx, r9
call fcn.140004b30
ud2