Function at 0x10042c20
Capabilities:
Get file size
Hash data via bcrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10079f26
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x10099128]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.10056e60
add esp, 0xc
lea eax, [ebp - 0x110]
push 0xff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10042c80
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
mov ecx, 0x10099c54
call fcn.1000d320
lea eax, [ebp - 0x110]
sub esp, 8
mov edx, esp
mov ecx, eax
mov dword [edx], eax
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10042cb0
sub ecx, esi
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x128]
call fcn.1000ed40
add esp, 8
mov ecx, 0x10099c3c
push eax
call fcn.1000c9d0
mov edx, dword [ebp - 0x114]
cmp edx, 0x10
jb 0x10042d0f
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10042d05
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10042f9a
push edx
push ecx
call fcn.100550a8
add esp, 8
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x150], esi
cmp esi, 0xffffffff
je 0x10042f7f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x100af908], eax
cmp eax, 0xffffffff
je 0x10042f78
push ecx
inc eax
mov dword [ebp - 0x154], 0
push eax
lea ecx, [ebp - 0x16c]
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0
call fcn.10046810
push 0
lea eax, [ebp - 0x154]
mov dword [ebp - 4], 0
push eax
push dword [0x100af908]
push dword [ebp - 0x16c]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10042f6d
push 0
push 0
push str.SHA256
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
jne 0x10042f6d
push eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x148]
call dword [sym.imp.bcrypt.dll_BCryptCreateHash]
test eax, eax
jne 0x10042f6d
cmp dword [ebp - 0x144], eax
je 0x10042f6d
push 0x20
call fcn.10055073
mov edi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x160], edi
lea esi, [edi + 0x20]
movups xmmword [edi], xmm0
mov dword [ebp - 0x158], esi
movups xmmword [edi + 0x10], xmm0
mov dword [ebp - 0x15c], esi
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.10018350
push 0
mov byte [ebp - 4], 2
push dword [0x100af908]
push dword [ebp - 0x16c]
push dword [ebp - 0x144]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
push 0
push 0x20
push edi
push dword [ebp - 0x144]
call dword [sym.imp.bcrypt.dll_BCryptFinishHash]
push dword [ebp - 0x144]
call dword [sym.imp.bcrypt.dll_BCryptDestroyHash]
push 0
push dword [ebp - 0x148]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov dword [ebp - 0x14c], edi
cmp edi, esi
je 0x10042f0a
mov edi, esi
nop word [eax + eax]
mov eax, dword [ebp - 0x20c]
push 0
push 2
mov eax, dword [eax + 4]
mov byte [ebp + eax - 0x1cc], 0x30
lea eax, [ebp - 0x120]
push eax
call fcn.100531a4
add esp, 0xc
lea ecx, [ebp - 0x20c]
mov edx, eax
call fcn.1002b000
mov esi, eax
mov eax, dword [ebp - 0x14c]
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + esi + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [edx + esi + 0x14], ecx
mov ecx, esi
movzx eax, byte [eax]
push eax
call fcn.10046f50
mov eax, dword [ebp - 0x14c]
inc eax
mov dword [ebp - 0x14c], eax
cmp eax, edi
jne 0x10042e90
mov edi, dword [ebp - 0x160]
mov esi, dword [ebp - 0x158]
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x21c]
call fcn.10018270
push eax
mov ecx, 0x10099c24
call fcn.1000c9d0
lea ecx, [ebp - 0x140]
call fcn.1000c980
lea ecx, [ebp - 0x21c]
call fcn.10012d00
test edi, edi
je 0x10042f67
sub esi, edi
cmp esi, 0x1000
jb 0x10042f5d
mov ecx, dword [edi - 4]
add esi, 0x23
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x10042f9a
mov edi, ecx
push esi
push edi
call fcn.100550a8
add esp, 8
mov esi, dword [ebp - 0x150]
lea ecx, [ebp - 0x16c]
call fcn.100467c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10054e57
mov esp, ebp
pop ebp
ret
call fcn.1006065f
int3