Function at 0x140001000
Capabilities:
Authenticate hmac
Create new key via cryptacquirecontext
Encode data using xor
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140028058]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor edi, edi
mov rsi, rdx
mov r12, rcx
mov dword [rsp + 0x30], r8d
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov ebx, edi
test rcx, rcx
jne 0x140001053
mov ebx, 0xa0
jmp 0x1400012ed
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
lea rcx, [rsp + 0x38]
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetElement
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1400010a1
lea r9d, [rax + 0x18]
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider__Prototype_
lea rcx, [rsp + 0x38]
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400012a3
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400012a3
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400012a3
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400012a3
mov r10d, dword [rsp + 0x30]
cmp r10d, 0x40
jbe 0x140001176
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
mov r8d, r10d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1400012a3
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x30]
lea r8, [rbp - 0x20]
mov edx, 2
mov dword [rsp + 0x30], 0x40
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400012a3
mov r10d, dword [rsp + 0x30]
lea rsi, [rbp - 0x20]
test r10d, r10d
je 0x1400011a2
lea rax, [rsp + 0x60]
mov r8, rsi
lea rcx, [rsp + 0x60]
sub r8, rax
mov edx, r10d
nop
movzx eax, byte [r8 + rcx]
inc rcx
xor al, 0x36
dec rdx
mov byte [rcx - 1], al
jne 0x140001190
mov eax, r10d
mov r8d, 0x40
mov edx, 0x36
lea rcx, [rsp + rax + 0x60]
sub r8d, r10d
call fcn.140011a90
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
lea r8d, [r9 + 0x40]
lea rdx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1400012a3
mov r9d, dword [rsp + 0x30]
test r9d, r9d
je 0x140001211
lea rax, [rsp + 0x60]
lea rcx, [rsp + 0x60]
mov edx, r9d
sub rsi, rax
nop word [rax + rax]
movzx eax, byte [rcx + rsi]
inc rcx
xor al, 0x5c
dec rdx
mov byte [rcx - 1], al
jne 0x140001200
mov r8d, 0x40
lea rcx, [rsp + r9 + 0x60]
mov edx, 0x5c
sub r8d, r9d
call fcn.140011a90
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
lea r8d, [r9 + 0x40]
lea rdx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1400012a3
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElement
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r11, rax
mov rax, qword [rsp + 0x38]
mov qword [r11], rax
mov rax, qword [rsp + 0x48]
mov qword [r11 + 8], rax
mov rax, qword [rsp + 0x40]
mov qword [r11 + 0x10], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov dword [r12], 0x50524643
mov dword [r12 + 4], 0x8004
mov edi, 1
mov dword [r12 + 8], SafeArrayGetElement
mov qword [r12 + 0x10], r11
jmp 0x1400012ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400012bb
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400012cb
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400012db
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400012ed
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.14000f440
add rsp, 0x130
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret