Function at 0x7ff788e21a40
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov dword [rax + 0x18], r8d
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
lea rcx, str.Advapi32.dll
mov dword [rbp + 0x7f], 0x10
mov r13, rdx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r12d, r12d
mov rdi, rax
test rax, rax
je 0x7ff788e21ca9
lea rdx, str.CryptAcquireContextA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptCreateHash
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptHashData
mov rcx, rdi
mov qword [rbp - 0x39], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptGetHashParam
mov rcx, rdi
mov qword [rbp - 0x31], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptDestroyHash
mov rcx, rdi
mov qword [rbp - 0x29], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CryptReleaseContext
mov rcx, rdi
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
lea r8d, [r12 + 0x32]
lea rcx, [rbp - 0x11]
mov r14, rax
call fcn.7ff788e27164
lea esi, [r12 + 1]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, esi
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
xor edx, edx
lea rcx, [rbp - 0x41]
call rbx
test eax, eax
je 0x7ff788e21ca9
mov ebx, r12d
mov r8d, 0x10
mov qword [rbp - 0x51], r12
lea rdx, [rbp - 0x51]
mov word [rbp - 0x49], r12w
mov ecx, ebx
call fcn.7ff788e2a1d8
lea rcx, [rbp - 0x51]
call fcn.7ff788e29ff0
mov rcx, qword [rbp - 0x41]
mov r12, rax
lea rax, [rbp - 0x59]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x8003
call qword [rbp - 0x39]
test eax, eax
je 0x7ff788e21c97
mov rcx, qword [rbp - 0x59]
lea rdx, [rbp - 0x51]
xor r9d, r9d
mov r8d, r12d
call qword [rbp - 0x31]
xor r12d, r12d
test eax, eax
je 0x7ff788e21c85
mov rcx, qword [rbp - 0x59]
lea r9, [rbp + 0x7f]
lea r8, [rbp - 0x21]
mov dword [rsp + 0x20], r12d
lea edx, [r12 + 2]
call qword [rbp - 0x29]
test eax, eax
je 0x7ff788e21c65
xor edx, edx
lea r8d, [r12 + 0x32]
lea rcx, [rbp - 0x11]
call fcn.7ff788e27164
mov eax, dword [rbp + 0x7f]
test eax, eax
je 0x7ff788e21c0f
lea r8, [rbp - 0x21]
mov r9d, eax
lea rdx, [rbp - 0x10]
lea r10, str.0123456789abcdef
movzx ecx, byte [r8]
add r8, rsi
mov eax, ecx
and ecx, 0xf
shr rax, 4
mov al, byte [rax + r10]
mov byte [rdx - 1], al
mov al, byte [rcx + r10]
mov byte [rdx], al
lea rdx, [rdx + 2]
sub r9, rsi
jne 0x7ff788e21be9
mov rcx, qword [rbp - 0x59]
call r15
mov rcx, qword [rbp + 0x67]
lea rdx, [rbp - 0x11]
call fcn.7ff788e29f70
test eax, eax
je 0x7ff788e21c41
add ebx, esi
movabs rcx, 0x999999999
movsxd rax, ebx
cmp rax, rcx
jl 0x7ff788e21b3a
jmp 0x7ff788e21c68
lea rcx, [rbp - 0x51]
call fcn.7ff788e29ff0
mov ecx, dword [rbp + 0x77]
cmp rax, rcx
jae 0x7ff788e21c60
lea rdx, [rbp - 0x51]
mov rcx, r13
call fcn.7ff788e29ea0
jmp 0x7ff788e21c68
or eax, 0xffffffff
jmp 0x7ff788e21cab
mov esi, r12d
mov rcx, qword [rbp - 0x41]
xor edx, edx
call r14
mov rcx, qword [rbp - 0x59]
call r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x7ff788e21cab
mov rcx, qword [rbp - 0x41]
xor edx, edx
call r14
mov rcx, qword [rbp - 0x59]
call r15
jmp 0x7ff788e21ca0
mov rcx, qword [rbp - 0x41]
xor edx, edx
call r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rbx, qword [rsp + 0xf8]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret