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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100798e6
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x10098128]
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.10056820
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 0x10042640
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
mov ecx, 0x10098c54
call fcn.1000c8b0
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 0x10042670
sub ecx, esi
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x128]
call fcn.1000e2d0
add esp, 8
mov ecx, 0x10098c3c
push eax
call fcn.1000bf60
mov edx, dword [ebp - 0x114]
cmp edx, 0x10
jb 0x100426cf
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100426c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004295a
push edx
push ecx
call fcn.10054a68
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 0x1004293f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x100ae908], eax
cmp eax, 0xffffffff
je 0x10042938
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.100461d0
push 0
lea eax, [ebp - 0x154]
mov dword [ebp - 4], 0
push eax
push dword [0x100ae908]
push dword [ebp - 0x16c]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004292d
push 0
push 0
push 0x1008c1c4
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
jne 0x1004292d
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 0x1004292d
cmp dword [ebp - 0x144], eax
je 0x1004292d
push 0x20
call fcn.10054a33
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.10017bd0
push 0
mov byte [ebp - 4], 2
push dword [0x100ae908]
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 0x100428ca
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.10052b64
add esp, 0xc
lea ecx, [ebp - 0x20c]
mov edx, eax
call fcn.1002a910
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.10046910
mov eax, dword [ebp - 0x14c]
inc eax
mov dword [ebp - 0x14c], eax
cmp eax, edi
jne 0x10042850
mov edi, dword [ebp - 0x160]
mov esi, dword [ebp - 0x158]
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x21c]
call fcn.10017af0
push eax
mov ecx, 0x10098c24
call fcn.1000bf60
lea ecx, [ebp - 0x140]
call fcn.1000bf10
lea ecx, [ebp - 0x21c]
call fcn.10012290
test edi, edi
je 0x10042927
sub esi, edi
cmp esi, 0x1000
jb 0x1004291d
mov ecx, dword [edi - 4]
add esi, 0x23
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x1004295a
mov edi, ecx
push esi
push edi
call fcn.10054a68
add esp, 8
mov esi, dword [ebp - 0x150]
lea ecx, [ebp - 0x16c]
call fcn.10046180
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.10054817
mov esp, ebp
pop ebp
ret
call fcn.1006001f
int3