Function at 0x140001440
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x688
mov dword [rsp + 0x80], 0
lea rax, [rsp + 0x170]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
xor r9d, r9d
lea r8, [rsp + 0x170]
mov edx, 0x104
mov ecx, 0x73
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
jne 0x1400014a0
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x5c], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x60], 0
lea rax, [rsp + 0x88]
lea rcx, [0x1400042d0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x11
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x14000154e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14000158e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x44]
jmp 0x140001881
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1400015dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [rsp + 0x44]
jmp 0x140001881
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
je 0x140001672
cmp dword [rsp + 0x58], 0
jne 0x140001618
jmp 0x140001672
xor r9d, r9d
mov r8d, dword [rsp + 0x58]
lea rdx, [rsp + 0x280]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x14000166d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x44]
jmp 0x140001881
jmp 0x1400015dd
cmp dword [rsp + 0x5c], 0
jne 0x1400016af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x44]
jmp 0x140001881
lea rax, [rsp + 0x118]
mov rdi, rax
xor eax, eax
mov ecx, 0x21
rep stosb byte [rdi], al
lea rax, [rsp + 0x140]
mov rdi, rax
xor eax, eax
mov ecx, 0x21
rep stosb byte [rdi], al
lea rax, [rsp + 0xc8]
lea rcx, str.4bfd1fa8df30c2285af62c9524153df8
mov rdi, rax
mov rsi, rcx
mov ecx, 0x21
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xf0]
lea rcx, str.3a93dad6445f880efaf3f3c1022fd6db
mov rdi, rax
mov rsi, rcx
mov ecx, 0x21
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x64], 1
mov dword [rsp + 0x68], 1
mov dword [rsp + 0x60], 0x21
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
lea r8, [rsp + 0xa0]
mov edx, 2
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140001852
mov dword [rsp + 0x48], 0
jmp 0x140001768
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x48], eax
jae 0x140001837
mov eax, dword [rsp + 0x48]
movzx eax, byte [rsp + rax + 0xa0]
sar eax, 4
cdqe
movzx eax, byte [rsp + rax + 0x88]
mov byte [rsp + 0x40], al
mov eax, dword [rsp + 0x48]
movzx eax, byte [rsp + rax + 0xa0]
and eax, 0xf
cdqe
movzx eax, byte [rsp + rax + 0x88]
mov byte [rsp + 0x41], al
cmp dword [rsp + 0x64], 0
je 0x1400017f1
movsx eax, byte [rsp + 0x40]
mov ecx, dword [rsp + 0x48]
shl ecx, 1
mov ecx, ecx
movsx ecx, byte [rsp + rcx + 0xc8]
cmp eax, ecx
je 0x1400017f1
movsx eax, byte [rsp + 0x41]
mov ecx, dword [rsp + 0x48]
inc ecx
mov ecx, ecx
movsx ecx, byte [rsp + rcx + 0xc8]
cmp eax, ecx
je 0x1400017f1
mov dword [rsp + 0x64], 0
cmp dword [rsp + 0x68], 0
je 0x140001832
movsx eax, byte [rsp + 0x40]
mov ecx, dword [rsp + 0x48]
shl ecx, 1
mov ecx, ecx
movsx ecx, byte [rsp + rcx + 0xf0]
cmp eax, ecx
je 0x140001832
movsx eax, byte [rsp + 0x41]
mov ecx, dword [rsp + 0x48]
inc ecx
mov ecx, ecx
movsx ecx, byte [rsp + rcx + 0xf0]
cmp eax, ecx
je 0x140001832
mov dword [rsp + 0x68], 0
jmp 0x14000175e
cmp dword [rsp + 0x64], 0
jne 0x140001845
cmp dword [rsp + 0x68], 0
je 0x140001850
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x14000185c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x688
pop rdi
pop rsi
ret