Function at 0x1400010d0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt
Terminate process

Disassembly:
push rbp
push r14
lea rbp, [rsp - 0x48]
sub rsp, 0x148
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x30], rax
movups xmm0, xmmword [str.0123456789abcdef]
movzx eax, byte [0x140008c18]
lea rcx, [rsp + 0x58]
xor r14d, r14d
mov dword [rsp + 0x48], 0x40
xor r8d, r8d
mov qword [rsp + 0x58], r14
xor edx, edx
mov qword [rsp + 0x50], r14
movups xmmword [rsp + 0x30], xmm0
lea r9d, [r14 + 0x18]
mov byte [rsp + 0x40], al
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140001348
mov qword [rsp + 0x160], rbx
mov qword [rsp + 0x168], rsi
mov esi, r14d
mov qword [rsp + 0x170], rdi
mov qword [rsp + 0x140], r15
lea r15, [0x140000000]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800e
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14000130b
mov edi, r14d
nop dword [rax + rax]
mov ecx, 8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14000135f
mov r9d, edi
mov dword [rsp + 0x20], 0x2f6
lea r8, str._d_d
mov edx, 8
mov rcx, rax
call fcn.140001070
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rbx + r8], r14b
jne 0x1400011e0
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1400012b7
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x60]
mov dword [rsp + 0x20], r14d
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400012b7
mov r11d, dword [rsp + 0x48]
mov r9d, r14d
test r11d, r11d
je 0x140001275
lea r10, [rsp + 0x60]
nop dword [rax + rax]
movzx r8d, byte [r10]
lea edx, [r9 + r9]
mov eax, r8d
lea ecx, [rdx + 1]
shr rax, 4
lea r10, [r10 + 1]
and r8d, 0xf
inc r9d
movzx eax, byte [rsp + rax + 0x30]
mov byte [rbp + rdx - 0x60], al
movzx eax, byte [rsp + r8 + 0x30]
mov byte [rbp + rcx - 0x60], al
cmp r9d, r11d
jb 0x140001240
lea eax, [r11 + r11]
cmp eax, 0x81
jae 0x14000136b
mov r8, qword [r15 + rsi*8 + 0xa080]
mov byte [rbp + rax - 0x60], r14b
lea rax, [rbp - 0x60]
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400012b3
inc rax
test ecx, ecx
jne 0x1400012a0
test edx, edx
je 0x140001303
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp edi, 0xff
jge 0x1400012f3
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800e
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
inc edi
cmp edi, 0xff
jle 0x1400011a0
jmp 0x14000130b
mov byte [rsi + r15 + 0xbe10], dil
inc rsi
cmp rsi, 0x2f6
jl 0x140001170
mov rcx, qword [rsp + 0x58]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rdi, qword [rsp + 0x170]
mov rsi, qword [rsp + 0x168]
mov rbx, qword [rsp + 0x160]
mov r15, qword [rsp + 0x140]
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140001420
add rsp, 0x148
pop r14
pop rbp
ret
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.140001548
int3