Function at 0x10008180
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0x5a
cmp edi, eax
jne 0x100081a2
pop edi
mov esp, ebp
pop ebp
ret
push esi
cmp dword [ebp + 0x10], eax
je 0x100084f0
mov esi, dword [ebp + 0x14]
cmp esi, eax
je 0x100084f0
push ebx
push 8
push str.sha256__
push edi
call fcn.10166530
add esp, 0xc
test eax, eax
jne 0x10008348
push 0x20
call dword [0x1020934c]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1000826c
mov eax, dword [ebp + 0x10]
push 0x20
push ebx
push esi
push eax
call fcn.10022de0
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
push 0x20
push ebx
push edi
call fcn.10024610
push ebx
mov esi, eax
call dword [0x10209350]
add esp, 0x28
test esi, esi
je 0x1000821f
pop ebx
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
push str._t_public_key_hash:_sha256___s_n
push edi
call fcn.100133e0
mov ebx, dword [ebp + 0xc]
mov eax, ebx
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10008240
sub eax, edx
lea esi, [eax + 1]
push esi
call dword [0x1020934c]
mov edi, eax
add esp, 4
mov dword [ebp + 0xc], edi
test edi, edi
jne 0x10008278
mov ecx, dword [ebp - 4]
push ecx
call dword [0x10209350]
add esp, 4
pop ebx
pop esi
mov eax, 0x1b
pop edi
mov esp, ebp
pop ebp
ret
push esi
push ebx
push edi
call fcn.10160a40
add esp, 0xc
mov esi, edi
push str._sha256__
push esi
call fcn.10165b40
mov edi, eax
add esp, 8
test edi, edi
je 0x1000829c
mov byte [edi], 0
lea ecx, [esi + 8]
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x100082a2
sub ecx, edx
mov ebx, ecx
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
jne 0x100082f8
lea edx, [esi + 8]
mov esi, dword [ebp - 4]
cmp ecx, 4
jb 0x100082d4
nop
mov eax, dword [esi]
cmp eax, dword [edx]
jne 0x100082f8
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x100082c0
test ecx, ecx
je 0x10008319
mov al, byte [edx]
cmp al, byte [esi]
jne 0x100082f8
cmp ecx, 1
jbe 0x10008319
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x100082f8
cmp ecx, 2
jbe 0x10008319
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x10008319
test edi, edi
je 0x10008320
push str.sha256__
push edi
mov byte [edi], 0x3b
call fcn.10165b40
mov esi, eax
add esp, 8
test esi, esi
jne 0x10008285
jmp 0x10008320
mov dword [ebp - 8], 0
mov edx, dword [ebp - 4]
push edx
call dword [0x10209350]
mov eax, dword [ebp + 0xc]
push eax
mov dword [ebp - 4], 0
call dword [0x10209350]
mov eax, dword [ebp - 8]
add esp, 8
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push 0x101ac72c
push edi
call fcn.10164451
mov ebx, eax
add esp, 8
mov dword [ebp + 0xc], ebx
test ebx, ebx
jne 0x10008369
lea eax, [ebx + 0x5a]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push 2
push 0
push ebx
call fcn.1016649f
add esp, 0xc
test eax, eax
jne 0x100084c2
push ebx
call fcn.101663a4
push 0
push 0
push ebx
mov edi, eax
call fcn.1016649f
add esp, 0x10
test eax, eax
jne 0x100084c2
cmp edi, 0x100000
ja 0x100084c2
mov eax, edi
cdq
push edx
push eax
call fcn.100eedd0
mov edi, eax
add esp, 8
cmp esi, edi
ja 0x100084c2
lea ecx, [edi + 1]
push ecx
call dword [0x1020934c]
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100084c2
push ebx
push 1
push edi
push eax
call fcn.10165f68
add esp, 0x10
cmp eax, 1
jne 0x100084c2
cmp esi, edi
jne 0x1000844d
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
cmp esi, 4
jb 0x10008418
jmp 0x10008400
mov edx, dword [ecx]
cmp edx, dword [eax]
jne 0x100084c2
sub esi, 4
add eax, 4
add ecx, 4
cmp esi, 4
jae 0x10008400
test esi, esi
je 0x10008444
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100084c2
cmp esi, 1
jbe 0x10008444
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100084c2
cmp esi, 2
jbe 0x10008444
mov al, byte [eax + 2]
cmp al, byte [ecx + 2]
jne 0x100084c2
mov dword [ebp - 8], 0
jmp 0x100084c2
mov ebx, dword [ebp - 0xc]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x10]
push edx
mov byte [edi + ebx], 0
call fcn.100080b0
add esp, 8
test eax, eax
jne 0x100084bf
cmp esi, dword [ebp - 0x18]
jne 0x100084bf
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp + 0x10]
mov eax, esi
cmp esi, 4
jb 0x10008494
lea ebx, [ebx]
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x100084bf
sub eax, 4
add ecx, 4
add edi, 4
cmp eax, 4
jae 0x10008480
test eax, eax
je 0x100084b8
mov dl, byte [ecx]
cmp dl, byte [edi]
jne 0x100084bf
cmp eax, 1
jbe 0x100084b8
mov dl, byte [ecx + 1]
cmp dl, byte [edi + 1]
jne 0x100084bf
cmp eax, 2
jbe 0x100084b8
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x100084bf
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [0x10209350]
mov edx, dword [ebp - 0x10]
push edx
call dword [0x10209350]
push ebx
mov dword [ebp - 0x10], 0
call fcn.10165890
mov eax, dword [ebp - 8]
add esp, 0xc
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 0x5a
pop edi
mov esp, ebp
pop ebp
ret