Function at 0x4b80d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0x5a
mov dword [ebp - 0x10], 0
push edi
mov edi, edx
test ebx, ebx
jne 0x4b8106
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4b840f
mov esi, dword [ebp + 8]
test esi, esi
je 0x4b840f
push 8
push str.sha256__
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4b8259
push 0x20
call dword [0x74b958]
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4b8182
push ecx
push eax
mov edx, esi
mov ecx, edi
call fcn.004d9050
mov ecx, ebx
add esp, 8
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b8157
sub ecx, edx
lea esi, [ecx + 1]
push esi
call dword [0x74b958]
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x4b818e
push dword [ebp - 0xc]
call dword [0x74b960]
add esp, 4
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
push edi
call sub.VCRUNTIME140.dll_memcpy
mov ebx, dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 0xc
mov esi, edi
push str._sha256__
push esi
call ebx
mov edi, eax
add esp, 8
test edi, edi
je 0x4b81b5
mov byte [edi], 0
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 8]
lea edx, [ebp - 0x10]
call fcn.004d9170
add esp, 4
test eax, eax
jne 0x4b823b
cmp dword [ebp - 4], 0x20
mov ebx, dword [ebp - 0x10]
jne 0x4b8224
mov ecx, dword [ebp - 0xc]
lea esi, [eax + 0x1c]
mov edx, ebx
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4b8224
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4b81e0
push ebx
mov dword [ebp - 8], 0
call dword [0x74b960]
add esp, 4
push dword [ebp - 0xc]
call dword [0x74b960]
add esp, 4
push dword [ebp - 0x14]
call dword [0x74b960]
mov eax, dword [ebp - 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [0x74b960]
mov ebx, dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 4
mov dword [ebp - 0x10], 0
test edi, edi
je 0x4b8202
push str.sha256__
push edi
mov byte [edi], 0x3b
call ebx
mov esi, eax
add esp, 8
test esi, esi
jne 0x4b81a1
jmp 0x4b8202
push 0x6f15a8
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4b840f
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push 0
push eax
call ebx
add esp, 0xc
test eax, eax
jne 0x4b835a
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
push dword [ebp - 0x10]
call ebx
add esp, 0xc
test eax, eax
jne 0x4b835a
mov eax, dword [ebp - 0x14]
cmp eax, 0x100000
ja 0x4b835a
cdq
push edx
push eax
call fcn.004b9ae0
mov ebx, eax
add esp, 8
cmp esi, ebx
ja 0x4b835a
lea eax, [ebx + 1]
push eax
call dword [0x74b958]
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4b835a
push dword [ebp - 0x10]
push 1
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x4b835a
cmp esi, ebx
jne 0x4b8389
mov ecx, dword [ebp - 0xc]
sub esi, 4
jb 0x4b8321
nop word [eax + eax]
mov eax, dword [edi]
cmp eax, dword [ecx]
jne 0x4b8326
add edi, 4
add ecx, 4
sub esi, 4
jae 0x4b8310
cmp esi, 0xfffffffc
je 0x4b8353
mov al, byte [edi]
cmp al, byte [ecx]
jne 0x4b835a
cmp esi, 0xfffffffd
je 0x4b8353
mov al, byte [edi + 1]
cmp al, byte [ecx + 1]
jne 0x4b835a
cmp esi, 0xfffffffe
je 0x4b8353
mov al, byte [edi + 2]
cmp al, byte [ecx + 2]
jne 0x4b835a
cmp esi, 0xffffffff
je 0x4b8353
mov al, byte [edi + 3]
cmp al, byte [ecx + 3]
jne 0x4b835a
mov dword [ebp - 8], 0
mov ebx, dword [ebp - 4]
push dword [ebp - 0xc]
call dword [0x74b960]
add esp, 4
push ebx
call dword [0x74b960]
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [ebp - 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
mov ecx, eax
mov byte [ebx + eax], 0
call fcn.004b8000
mov ebx, dword [ebp - 4]
add esp, 4
test eax, eax
jne 0x4b835d
cmp esi, dword [ebp - 0x14]
jne 0x4b835d
mov ecx, ebx
sub esi, 4
jb 0x4b83c5
mov eax, dword [edi]
cmp eax, dword [ecx]
jne 0x4b83ca
add edi, 4
add ecx, 4
sub esi, 4
jae 0x4b83b4
cmp esi, 0xfffffffc
je 0x4b8403
mov al, byte [edi]
cmp al, byte [ecx]
jne 0x4b83f7
cmp esi, 0xfffffffd
je 0x4b8403
mov al, byte [edi + 1]
cmp al, byte [ecx + 1]
jne 0x4b83f7
cmp esi, 0xfffffffe
je 0x4b8403
mov al, byte [edi + 2]
cmp al, byte [ecx + 2]
jne 0x4b83f7
cmp esi, 0xffffffff
je 0x4b8403
mov al, byte [edi + 3]
cmp al, byte [ecx + 3]
je 0x4b8403
mov dword [ebp - 8], 0x5a
jmp 0x4b835d
mov dword [ebp - 8], 0
jmp 0x4b835d
pop edi
pop esi
mov eax, 0x5a
pop ebx
mov esp, ebp
pop ebp
ret