Function at 0x18002e400
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x490
mov rax, qword [0x180080920]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15d, r9d
movzx r13d, r8b
mov r12, rdx
mov r14b, 1
xor edi, edi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x58], edi
mov ebx, 0xffffffff
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov qword [rsp + 0x60], rax
cmp rax, 0xffffffffffffffff
je 0x18002e5e4
test r12, r12
je 0x18002e5e4
cmp r15d, 3
je 0x18002e7d0
mov dword [rsp + 0x20], edi
lea r9d, [rdi + 1]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x18002e4de
mov dword [rsp + 0x20], 8
lea r9d, [rdi + 1]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x18002e5db
mov edx, edi
cmp r15d, 1
setne dl
add edx, 0x8003
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x18002e530
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x18002e5e4
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
mov r8d, 0x400
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, dword [rsp + 0x40]
test eax, eax
jne 0x18002e55f
xor r14b, r14b
jmp 0x18002e564
test r8d, r8d
je 0x18002e587
xor r9d, r9d
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x18002e613
test r14b, r14b
jne 0x18002e530
test r14b, r14b
je 0x18002e613
cmp r15d, 1
jne 0x18002e6fe
mov dword [rsp + 0x58], 0x10
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x68]
lea edx, [r15 + 1]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x18002e62d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.180049ad0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x18002e5db
cmp dword [0x180080928], 2
jl 0x18002e650
movdqu xmm0, xmmword [rsp + 0x68]
pshufb xmm0, xmmword [0x18006e230]
movdqu xmmword [rsp + 0x68], xmm0
mov edi, 4
cmp rdi, 4
jae 0x18002e673
nop word [rax + rax]
mov eax, dword [rsp + rdi*4 + 0x68]
bswap eax
mov dword [rsp + rdi*4 + 0x68], eax
inc rdi
cmp rdi, 4
jl 0x18002e660
test r13b, r13b
je 0x18002e6a4
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x6c]
mov r8d, dword [rsp + 0x68]
lea rdx, str._08X_08X_08X_08X
mov rcx, r12
call qword [sym.imp.USER32.dll_wsprintfA]
jmp 0x18002e6ac
mov eax, dword [rsp + 0x68]
mov dword [r12], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x18002e5e6
cmp r15d, 2
jne 0x18002e5db
mov dword [rsp + 0x58], 0x14
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x68]
mov edx, r15d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x18002e5c3
mov eax, dword [rsp + 0x68]
bswap eax
mov dword [rsp + 0x68], eax
mov r9d, dword [rsp + 0x6c]
bswap r9d
mov dword [rsp + 0x6c], r9d
mov ecx, dword [rsp + 0x70]
bswap ecx
mov dword [rsp + 0x70], ecx
mov edx, dword [rsp + 0x74]
bswap edx
mov dword [rsp + 0x74], edx
mov r8d, dword [rsp + 0x78]
bswap r8d
mov dword [rsp + 0x78], r8d
test r13b, r13b
je 0x18002e793
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], ecx
mov r8d, eax
lea rdx, str._08X_08X_08X_08X_08X
mov rcx, r12
call qword [sym.imp.USER32.dll_wsprintfA]
jmp 0x18002e7a1
mov dword [r12], eax
movzx eax, byte [rsp + 0x6c]
mov byte [r12 + 4], al
jmp 0x18002e6ac
lea r15, [0x180090b10]
nop word [rax + rax]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
mov r8d, 0x400
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x40]
test eax, eax
jne 0x18002e80e
xor r14b, r14b
jmp 0x18002e812
test edx, edx
je 0x18002e83f
lea r8, [rsp + 0x80]
test edx, edx
je 0x18002e83a
nop
movzx ecx, bl
movzx eax, byte [r8]
xor rcx, rax
shr ebx, 8
xor ebx, dword [r15 + rcx*4]
lea r8, [r8 + 1]
add edx, 0xffffffff
jne 0x18002e820
test r14b, r14b
jne 0x18002e7e0
not ebx
test r13b, r13b
je 0x18002e869
mov r8d, ebx
lea rdx, str._08X
mov rcx, r12
call qword [sym.imp.USER32.dll_wsprintfA]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x18002e5e6
mov dword [r12], ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x18002e5e6