Function at 0x180002fe0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi
Hash data using sha1
Hash data using sha256

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x180055010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov r8d, 0x320
xor edx, edx
mov rbx, rcx
call fcn.18002fae0
xor esi, esi
mov dword [rbx + 0xc8], 5
lea rcx, [rbx + 0x1fc]
mov dword [rbx + 0xe8], 5
lea rax, [rbx + 0xb0]
mov dword [rcx], 0xffffffff
mov qword [rbx + 0xb8], rax
lea rax, [rbx + 0xd0]
mov qword [rbx + 0xd8], rax
lea rax, [rbx + 0x200]
mov dword [rax], 0xffffffff
mov qword [rbx + 0x28], rax
lea rax, [0x180006950]
mov qword [rbx + 0x68], rax
mov rax, qword [0x180056fa8]
mov qword [rbx + 0x20], rcx
mov ecx, 0x3f0
mov word [rbx + 0x301], 0
mov word [rbx + 0x306], 0
mov byte [rbx + 0x303], 0
mov byte [rbx + 0x2fe], 0
mov qword [rbx + 0x60], rbx
mov qword [rbx + 0x1e8], 0xffffffffffffffff
mov qword [rbx + 0x1f0], 0xffffffffffffffff
mov qword [rbx + 0x70], rsi
mov qword [rbx + 0x90], rsi
mov qword [rbx + 0x78], rsi
mov qword [rbx + 0x98], rsi
mov qword [rbx + 0x80], rsi
mov qword [rbx + 0xa0], rsi
mov byte [rbx + 0x88], sil
mov byte [rbx + 0xa8], sil
mov dword [rbx + 0x22a], 0xffffffff
mov word [rbx + 0x22e], 0xff
mov byte [rbx + 0x231], sil
mov dword [rbx + 0x222], esi
mov word [rbx + 0x226], si
test rax, rax
je 0x180003118
call rax
jmp 0x18000311d
call fcn.180035030
mov qword [rbx + 0x10], rax
test rax, rax
je 0x180003381
xor edx, edx
mov r8d, 0x3f0
mov rcx, rax
call fcn.18002fae0
mov rax, qword [0x180056fa8]
mov ecx, 0x154
test rax, rax
je 0x18000314f
call rax
jmp 0x180003154
call fcn.180035030
mov qword [rbx + 8], rax
test rax, rax
je 0x180003381
mov rdx, rdi
mov rcx, rbx
call fcn.180002a80
cmp eax, 1
jne 0x180003386
mov eax, 0x7fff
mov ecx, 0x8000
and word [rbx + 0x2f8], ax
mov eax, esi
cmp byte [rbx + 0x21e], 0xfe
cmove ax, cx
mov ecx, 0x1b0
or word [rbx + 0x2f8], ax
mov rax, qword [0x180056fa8]
test rax, rax
je 0x1800031af
call rax
jmp 0x1800031b4
call fcn.180035030
mov qword [rbx + 0x18], rax
test rax, rax
je 0x180003381
mov dword [rax + 0x134], 0x67452301
mov ecx, 0x18
mov dword [rax + 0x138], 0xefcdab89
mov dword [rax + 0x13c], 0x98badcfe
mov dword [rax + 0x140], 0x10325476
mov qword [rax + 0xe8], rsi
mov dword [rax + 0xf0], esi
mov rax, qword [rbx + 0x18]
add rax, 0x88
mov dword [rax + 0x4c], 0x67452301
mov dword [rax + 0x50], 0xefcdab89
mov dword [rax + 0x54], 0x98badcfe
mov dword [rax + 0x58], 0x10325476
mov dword [rax + 0x5c], 0xc3d2e1f0
mov qword [rax], rsi
mov dword [rax + 8], esi
mov rax, qword [rbx + 0x18]
add rax, 0x144
mov dword [rax + 0xc], 0x6a09e667
mov dword [rax + 0x10], 0xbb67ae85
mov dword [rax + 0x14], 0x3c6ef372
mov dword [rax + 0x18], 0xa54ff53a
mov dword [rax + 0x1c], 0x510e527f
mov dword [rax + 0x20], 0x9b05688c
mov dword [rax + 0x24], 0x1f83d9ab
mov dword [rax + 0x28], 0x5be0cd19
mov qword [rax], rsi
mov dword [rax + 8], esi
mov rax, qword [0x180056fa8]
test rax, rax
je 0x180003286
call rax
jmp 0x18000328b
call fcn.180035030
mov qword [rbx + 0x30], rax
mov rdi, rax
test rax, rax
je 0x180003381
xor ecx, ecx
call fcn.18002a550
test eax, eax
jne 0x180003374
mov rax, qword [0x180056fa8]
mov ecx, 0x78
test rax, rax
je 0x1800032bf
call rax
jmp 0x1800032c4
call fcn.180035030
mov qword [rdi], rax
mov ebx, 0x30
test rax, rax
jne 0x1800032d6
lea ecx, [rax - 0x7d]
jmp 0x18000333f
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rdi + 8]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x18000333a
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x18000333a
mov rcx, qword [rdi + 8]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rdi]
lea rdx, [rsp + 0x30]
call fcn.18002a070
test eax, eax
jne 0x18000333a
mov rcx, qword [rdi]
xor r8d, r8d
xor edx, edx
call fcn.180029a80
mov ecx, eax
jmp 0x18000333f
mov ecx, 2
lea rax, [rsp + 0x30]
mov byte [rax], sil
lea rax, [rax + 1]
add ebx, 0xffffffff
jne 0x180003344
test ecx, ecx
jne 0x18000335c
mov byte [rdi + 0x10], 1
xor eax, eax
jmp 0x180003386
cmp ecx, 4
je 0x180003374
mov eax, 0xffffff39
mov byte [rdi + 0x10], 2
cmp ecx, 2
cmove ecx, eax
mov eax, ecx
jmp 0x180003386
mov ecx, 0xffffff2f
mov byte [rdi + 0x10], 3
mov eax, ecx
jmp 0x180003386
mov eax, 0xffffff83
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18002d8d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret