Function at 0x4278c7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov eax, edx
mov dword [ebp - 0x14], ecx
push 0x5a
xor ebx, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ebx
pop esi
mov dword [ebp - 0x10], esi
test eax, eax
je 0x427bdb
cmp dword [ebp + 8], ebx
je 0x427bd9
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x427bd9
push 8
push str.sha256__
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x427a9b
mov eax, dword [0x46f0c4]
cmp dword [eax + 0x5c], ebx
je 0x427bd9
mov esi, dword [0x46f048]
mov ecx, esi
push 0x20
call dword [0x4553fc]
call esi
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
jne 0x427948
push 0x1b
pop eax
jmp 0x427bdb
push 0x20
push eax
mov eax, dword [0x46f0c4]
push edi
push dword [ebp + 8]
mov esi, dword [eax + 0x5c]
mov ecx, esi
call dword [0x4553fc]
call esi
add esp, 0x10
test eax, eax
jne 0x427bdb
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
mov edx, esi
push eax
push 0x20
call fcn.004467ee
add esp, 0xc
mov edi, eax
push esi
mov esi, dword [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, esi
call dword [0x4553fc]
call esi
pop ecx
test edi, edi
je 0x4279a2
mov eax, edi
jmp 0x427bdb
push dword [ebp - 4]
push str._public_key_hash:_sha256___s
push dword [ebp - 0x14]
call fcn.0041d632
mov edi, dword [ebp - 8]
add esp, 0xc
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4279bd
mov esi, dword [0x46f048]
sub ecx, edx
lea eax, [ecx + 1]
mov ecx, esi
push eax
mov dword [ebp - 0x14], eax
call dword [0x4553fc]
call esi
mov esi, eax
mov dword [ebp - 0x10], esi
pop ecx
test esi, esi
jne 0x427a00
push dword [ebp - 4]
mov esi, dword [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, esi
call dword [0x4553fc]
call esi
pop ecx
jmp 0x427940
push dword [ebp - 0x14]
push edi
push esi
call fcn.00452780
add esp, 0xc
mov edi, esi
push str._sha256__
push edi
call fcn.00451b50
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x427a24
mov byte [esi], bl
add edi, 8
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x427a2c
sub ecx, edx
cmp dword [ebp - 0xc], ecx
jne 0x427a4d
push dword [ebp - 0xc]
push edi
push dword [ebp - 4]
call fcn.0045345d
add esp, 0xc
test eax, eax
je 0x427a97
test esi, esi
je 0x427a67
push str.sha256__
push esi
mov byte [esi], 0x3b
call fcn.00451b50
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x427a0f
push 0x5a
pop edi
push dword [ebp - 4]
mov esi, dword [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, esi
call dword [0x4553fc]
call esi
mov esi, dword [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
push dword [ebp - 0x10]
mov ecx, esi
call dword [0x4553fc]
call esi
pop ecx
jmp 0x42799b
mov edi, ebx
jmp 0x427a6a
push 0x458dd4
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov dword [ebp - 8], eax
pop ecx
pop ecx
test eax, eax
je 0x427bd9
push 2
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x427ba2
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
pop ecx
push ebx
push ebx
push dword [ebp - 8]
mov esi, eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x427ba2
cmp esi, 0x100000
ja 0x427ba2
cmp edi, esi
ja 0x427ba2
lea eax, [esi + 1]
mov esi, dword [0x46f048]
push eax
mov ecx, esi
call dword [0x4553fc]
call esi
mov dword [ebp - 4], eax
pop ecx
test eax, eax
je 0x427ba4
push dword [ebp - 8]
mov esi, dword [ebp - 0x14]
push 1
push esi
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x427b9d
cmp edi, esi
jne 0x427b5a
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0045345d
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 4]
jne 0x427ba4
mov edi, ebx
jmp 0x427ba7
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xc]
mov ecx, eax
mov byte [esi + eax], bl
call fcn.004277f7
mov ebx, dword [ebp - 0xc]
pop ecx
test eax, eax
jne 0x427b9d
cmp edi, dword [ebp - 0x14]
jne 0x427b95
push edi
push ebx
push dword [ebp + 8]
call fcn.0045345d
add esp, 0xc
xor edx, edx
test eax, eax
push 0x5a
pop ecx
cmove ecx, edx
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
jmp 0x427ba7
mov eax, dword [ebp - 4]
jmp 0x427ba4
mov eax, ebx
push 0x5a
pop edi
mov esi, dword [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, esi
push eax
call dword [0x4553fc]
call esi
mov esi, dword [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
push ebx
mov ecx, esi
call dword [0x4553fc]
call esi
pop ecx
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x427a91
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret