Function at 0x14008ecb0
Capabilities:
Get file size
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x450
mov qword [rsp + 0xf0], 0xfffffffffffffffe
mov qword [rsp + 0x498], rbx
mov rax, qword [0x140121ef0]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov r12, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0xe0], r8
xor edi, edi
mov qword [rsp + 0x78], rdi
mov word [rsp + 0x230], di
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x232]
call sub.MSVCR110.dll_memset
mov qword [rsp + reloc.mfc110u.dll_Ordinal_296], 7
mov qword [rsp + 0x120], rdi
mov word [rsp + 0x110], di
mov qword [rsp + 0x168], 7
mov qword [rsp + 0x160], rdi
mov word [rsp + 0x150], di
mov qword [rsp + 0x148], 7
mov qword [rsp + 0x140], rdi
mov word [rsp + 0x130], di
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
xor r14b, r14b
mov rdx, qword [r12]
mov rdx, qword [rdx + 8]
mov rcx, r12
call fcn.1400343a0
mov rax, qword [r12]
mov qword [rax + 8], rax
mov rax, qword [r12]
mov qword [rax], rax
mov rax, qword [r12]
mov qword [rax + 0x10], rax
mov qword [r12 + 8], rdi
mov rax, qword [0x140122018]
mov r15, qword [rax + 0x1a8]
lea rcx, [rsp + 0x60]
call fcn.1400b86c0
nop
mov rdx, qword [r12]
mov rdx, qword [rdx + 8]
mov rcx, r12
call fcn.1400343a0
mov rax, qword [r12]
mov qword [rax + 8], rax
mov rax, qword [r12]
mov qword [rax], rax
mov rax, qword [r12]
mov qword [rax + 0x10], rax
mov qword [r12 + 8], rdi
lea r8d, [rdi + 4]
lea rdx, str.SIPK
lea rcx, [rsp + 0x110]
call fcn.140003310
cmp word [rsi], 0
jne 0x14008ee15
mov r8d, edi
jmp 0x14008ee2b
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rsi + r8*2], 0
jne 0x14008ee20
mov rdx, rsi
lea rcx, [rsp + 0x110]
call fcn.140004d20
cmp word [rbx], 0
jne 0x14008ee46
mov r8, rdi
jmp 0x14008ee5b
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x14008ee50
mov rdx, rbx
lea rcx, [rsp + 0x110]
call fcn.140004d20
mov rbx, qword [rsp + 0x120]
mov edx, 0x104
lea rcx, [r15 + 0x624]
call qword [sym.imp.MSVCR110.dll_wcsnlen]
add rax, rbx
cmp rax, 0x100
jbe 0x14008ef71
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14008eea9
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rsp + 0x68], rdi
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14008eebe
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rsp + 0x60], rdi
cmp qword [rsp + 0x40], 0
je 0x14008eeea
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP110.dll_public:_void___cdecl_std::_Container_base0::_Orphan_all_void____ptr64]
mov rcx, qword [rsp + 0x40]
call sub.mfc110u.dll_Ordinal_1482
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
cmp qword [rsp + 0x148], 8
jb 0x14008ef02
mov rcx, qword [rsp + 0x130]
call sub.mfc110u.dll_Ordinal_1482
mov word [rsp + 0x130], di
mov qword [rsp + 0x140], rdi
mov qword [rsp + 0x148], 7
cmp qword [rsp + 0x168], 8
jb 0x14008ef36
mov rcx, qword [rsp + 0x150]
call sub.mfc110u.dll_Ordinal_1482
mov qword [rsp + 0x168], 7
mov qword [rsp + 0x160], rdi
mov word [rsp + 0x150], di
cmp qword [rsp + reloc.mfc110u.dll_Ordinal_296], 8
jb 0x14008ef6a
mov rcx, qword [rsp + 0x110]
call sub.mfc110u.dll_Ordinal_1482
xor eax, eax
jmp 0x14008f79d
lea r8, [rsp + 0x110]
cmp qword [rsp + reloc.mfc110u.dll_Ordinal_296], 8
cmovae r8, qword [rsp + 0x110]
lea rdx, [r15 + 0x624]
lea rcx, [rsp + 0x230]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rdx, str..PKT
lea rcx, [rsp + 0x230]
call qword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14008f090
mov rbx, qword [rsp + 0x120]
mov edx, 0x104
lea rcx, [r15 + 0x210]
call qword [sym.imp.MSVCR110.dll_wcsnlen]
add rax, rbx
cmp rax, 0x100
ja 0x14008ee94
lea r8, [rsp + 0x110]
cmp qword [rsp + reloc.mfc110u.dll_Ordinal_296], 8
cmovae r8, qword [rsp + 0x110]
lea rdx, [r15 + 0x210]
lea rcx, [rsp + 0x230]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rdx, str..PKT
lea rcx, [rsp + 0x230]
call qword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14008ee94
mov dword [rsp + 0x88], edi
lea rdx, [rsp + 0xe8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rbx, qword [rsp + 0xe8]
mov rcx, rbx
call qword [sym.imp.MSVCR110.dll_malloc]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x88]
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
test eax, eax
jne 0x14008f0f7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.MSVCR110.dll_free]
jmp 0x14008ee94
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x70], eax
lea rdx, [rsp + 0x110]
cmp qword [rsp + reloc.mfc110u.dll_Ordinal_296], 8
cmovae rdx, qword [rsp + 0x110]
lea rcx, [rsp + 0x98]
call qword [sym.imp.mfc110u.dll_Ordinal_286]
nop
lea r9, [rsp + 0x70]
mov r8, qword [rsp + 0x78]
lea rdx, [rsp + 0x98]
mov rcx, qword [0x140122bb0]
call fcn.14008c9b0
mov esi, eax
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x98]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
lea rcx, [rsp + 0xb0]
call fcn.1400abf20
nop
mov r8d, dword [rsp + 0x70]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0xb0]
call fcn.1400acc00
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0xb0]
call fcn.1400ac2d0
cmp qword [rsp + 0x120], 0
jne 0x14008f1c0
mov r14b, 1
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0xb0]
call fcn.1400ac2d0
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0xb0]
call fcn.1400ac2d0
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0xb0]
call fcn.1400ac2d0
lea rcx, [rsp + 0xb0]
test r14b, r14b
je 0x14008f204
mov rdx, r12
call fcn.14008c150
jmp 0x14008f4cb
call fcn.1400ace00
mov rbx, rax
test rax, rax
je 0x14008f4cb
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x98], rax
nop word [rax + rax]
dec rbx
mov qword [rsp + 0x220], 7
mov qword [rsp + 0x218], rdi
mov word [rsp + 0x208], di
lea rdx, [rsp + 0x208]
lea rcx, [rsp + 0xb0]
call fcn.1400ac2d0
mov qword [rsp + 0x188], 7
mov qword [rsp + 0x180], rdi
mov word [rsp + 0x170], di
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0xb0]
call fcn.1400ac2d0
mov rax, qword [rsp + 0x180]
cmp rax, 4
jb 0x14008f2cf
mov qword [rsp + 0x180], 4
lea rax, [rsp + 0x170]
cmp qword [rsp + 0x188], 8
cmovae rax, qword [rsp + 0x170]
mov word [rax + 8], di
jmp 0x14008f2e7
xor r8d, r8d
mov edx, 4
sub rdx, rax
lea rcx, [rsp + 0x170]
call fcn.14001f9d0
lea rdx, [rsp + 0x170]
cmp qword [rsp + 0x188], 8
cmovae rdx, qword [rsp + 0x170]
mov qword [rsp + 0x1f8], 7
mov qword [rsp + 0x1f0], rdi
mov word [rsp + 0x1e0], di
cmp word [rdx], 0
jne 0x14008f328
mov r8, rdi
jmp 0x14008f33b
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14008f330
lea rcx, [rsp + 0x1e0]
call fcn.140003310
mov dword [rsp + 0x200], edi
mov qword [rsp + 0x1a8], 7
mov qword [rsp + 0x1a0], rdi
mov word [rsp + 0x190], di
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x208]
lea rcx, [rsp + 0x190]
call fcn.1400031d0
nop
mov qword [rsp + 0x1c8], 7
mov qword [rsp + 0x1c0], rdi
mov word [rsp + 0x1b0], di
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x1e0]
lea rcx, [rsp + 0x1b0]
call fcn.1400031d0
mov eax, dword [rsp + 0x200]
mov dword [rsp + 0x1d0], eax
movzx eax, byte [0x140122948]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x190]
xor r8d, r8d
lea rdx, [rsp + 0x100]
mov rcx, r12
call fcn.14004e840
nop
cmp qword [rsp + 0x1c8], 8
jb 0x14008f40d
mov rcx, qword [rsp + 0x1b0]
call sub.mfc110u.dll_Ordinal_1482
mov qword [rsp + 0x1c8], 7
mov qword [rsp + 0x1c0], rdi
mov word [rsp + 0x1b0], di
cmp qword [rsp + 0x1a8], 8
jb 0x14008f441
mov rcx, qword [rsp + 0x190]
call sub.mfc110u.dll_Ordinal_1482
mov qword [rsp + 0x1a8], 7
mov qword [rsp + 0x1a0], rdi
mov word [rsp + 0x190], di
cmp qword [rsp + 0x1f8], 8
jb 0x14008f476
mov rcx, qword [rsp + 0x1e0]
call sub.mfc110u.dll_Ordinal_1482
nop
cmp qword [rsp + 0x188], 8
jb 0x14008f48e
mov rcx, qword [rsp + 0x170]
call sub.mfc110u.dll_Ordinal_1482
mov qword [rsp + 0x188], 7
mov qword [rsp + 0x180], rdi
mov word [rsp + 0x170], di
cmp qword [rsp + 0x220], 8
jb 0x14008f4c2
mov rcx, qword [rsp + 0x208]
call sub.mfc110u.dll_Ordinal_1482
test rbx, rbx
jne 0x14008f230
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x70], eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xb0]
call fcn.1400ac4d0
lea rcx, [rsp + 0xb0]
call fcn.1400acc60
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x90], rdi
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8d, reloc.OLEAUT32.dll_SysStringByteLen
lea rdx, [0x1400ebf10]
mov rcx, qword [0x140122bb0]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x14008f565
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0xa8], 2
lea rdx, [0x14011cbb0]
lea rcx, [rsp + 0xa8]
call fcn.1400bb178
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov rcx, qword [0x140122bb0]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14008f5b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0xa4], 3
lea rdx, [0x14011cbb0]
lea rcx, [rsp + 0xa4]
call fcn.1400bb178
xor r9d, r9d
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x14008f5ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0xa0], 4
lea rdx, [0x14011cbb0]
lea rcx, [rsp + 0xa0]
call fcn.1400bb178
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
sub r8, rdx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rdi
mov r9, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
test eax, eax
jne 0x14008f65d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0xac], 5
lea rdx, [0x14011cbb0]
lea rcx, [rsp + 0xac]
call fcn.1400bb178
nop
jmp 0x14008f665
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14008f67a
call qword [sym.imp.MSVCR110.dll_free]
mov qword [rsp + 0x78], rdi
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14008f695
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rsp + 0x80], rdi
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x14008f6b0
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rsp + 0x90], rdi
mov ebx, edi
test esi, esi
sete bl
lea rcx, [rsp + 0xb0]
call fcn.1400abfb0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14008f6da
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rsp + 0x68], rdi
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14008f6ef
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rsp + 0x60], rdi
cmp qword [rsp + 0x40], 0
je 0x14008f71b
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP110.dll_public:_void___cdecl_std::_Container_base0::_Orphan_all_void____ptr64]
mov rcx, qword [rsp + 0x40]
call sub.mfc110u.dll_Ordinal_1482
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
cmp qword [rsp + 0x148], 8
jb 0x14008f733
mov rcx, qword [rsp + 0x130]
call sub.mfc110u.dll_Ordinal_1482
mov qword [rsp + 0x148], 7
mov qword [rsp + 0x140], rdi
mov word [rsp + 0x130], di
cmp qword [rsp + 0x168], 8
jb 0x14008f767
mov rcx, qword [rsp + 0x150]
call sub.mfc110u.dll_Ordinal_1482
mov qword [rsp + 0x168], 7
mov qword [rsp + 0x160], rdi
mov word [rsp + 0x150], di
cmp qword [rsp + reloc.mfc110u.dll_Ordinal_296], 8
jb 0x14008f79b
mov rcx, qword [rsp + 0x110]
call sub.mfc110u.dll_Ordinal_1482
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400bb310
mov rbx, qword [rsp + 0x498]
add rsp, 0x450
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret