Function at 0x10176aa0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
xor ebx, ebx
push edi
mov edi, dword [esp + 0x20]
mov eax, 0x5a
mov dword [esp + 8], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
cmp edi, ebx
jne 0x10176ac8
pop edi
xor eax, eax
pop ebx
add esp, 0x10
ret
push ebp
mov ebp, dword [esp + 0x28]
push esi
cmp ebp, ebx
je 0x10176e30
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x10176e30
push 8
push str.sha256__
push edi
call dword [sym.imp.MSVCR100.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x10176ca0
mov eax, dword [0x10263bc0]
cmp dword [eax + 0x58], ebx
je 0x10176cb8
push 0x20
call dword [0x10263bac]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10176bb4
mov ecx, dword [0x10263bc0]
mov edx, dword [ecx + 0x58]
push 0x20
push ebx
push esi
push ebp
call edx
add esp, 0x10
test eax, eax
jne 0x10176e30
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x20
push ebx
push edi
call fcn.101908c0
push ebx
mov esi, eax
call dword [0x10263bb0]
add esp, 0x18
test esi, esi
je 0x10176b6a
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x10
ret
mov edx, dword [esp + 0x10]
push edx
push str._t_public_key_hash:_sha256___s_n
push edi
call fcn.1017f0b0
mov ebx, dword [esp + 0x34]
mov eax, ebx
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10176b86
sub eax, edx
lea esi, [eax + 1]
push esi
call dword [0x10263bac]
mov edi, eax
add esp, 4
mov dword [esp + 0x28], edi
test edi, edi
jne 0x10176bc1
mov eax, dword [esp + 0x10]
push eax
call dword [0x10263bb0]
add esp, 4
pop esi
pop ebp
pop edi
mov eax, 0x1b
pop ebx
add esp, 0x10
ret
push esi
push ebx
push edi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov esi, edi
mov edi, edi
push str._sha256__
push esi
call dword [sym.imp.MSVCR100.dll_strstr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x10176be9
mov byte [ebp], 0
lea edx, [esi + 8]
mov ecx, edx
lea esi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x10176bf1
sub ecx, esi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
cmp ecx, edi
jne 0x10176c48
mov esi, dword [esp + 0x10]
cmp ecx, 4
jb 0x10176c24
lea ecx, [ecx]
mov eax, dword [esi]
cmp eax, dword [edx]
jne 0x10176c48
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x10176c10
test ecx, ecx
je 0x10176c6b
mov al, byte [edx]
cmp al, byte [esi]
jne 0x10176c48
cmp ecx, 1
jbe 0x10176c6b
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x10176c48
cmp ecx, 2
jbe 0x10176c6b
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x10176c6b
test ebp, ebp
je 0x10176c73
push str.sha256__
push ebp
mov byte [ebp], 0x3b
call dword [sym.imp.MSVCR100.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x10176bd0
jmp 0x10176c73
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x10]
push edx
call dword [0x10263bb0]
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x18], 0
call dword [0x10263bb0]
mov eax, dword [esp + 0x1c]
add esp, 8
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x10
ret
push 0x101fe86c
push edi
call sub.MSVCR100.dll_fopen
mov ebx, eax
add esp, 8
mov dword [esp + 0x28], ebx
test ebx, ebx
jne 0x10176cc5
pop esi
pop ebp
pop edi
mov eax, 0x5a
pop ebx
add esp, 0x10
ret
mov edi, dword [sym.imp.MSVCR100.dll_fseek]
push 2
push 0
push ebx
call edi
add esp, 0xc
test eax, eax
jne 0x10176e00
push ebx
call dword [sym.imp.MSVCR100.dll_ftell]
mov ecx, dword [esp + 0x2c]
push 0
push 0
push ecx
mov ebx, eax
call edi
add esp, 0x10
test eax, eax
jne 0x10176e00
cmp ebx, 0x100000
ja 0x10176e00
mov eax, ebx
cdq
push edx
push eax
call fcn.100546c0
mov ebx, eax
add esp, 8
cmp esi, ebx
ja 0x10176e00
lea edx, [ebx + 1]
push edx
call dword [0x10263bac]
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x10176e00
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
push eax
push 1
push ebx
push ecx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x10176e00
cmp esi, ebx
jne 0x10176d8a
mov ecx, dword [esp + 0x10]
mov eax, esi
mov edi, ebp
cmp esi, 4
jb 0x10176dd4
jmp 0x10176d70
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x10176e00
sub eax, 4
add ecx, 4
add edi, 4
cmp eax, 4
jae 0x10176d70
jmp 0x10176dd4
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
mov byte [ebx + eax], 0
push edx
mov ebx, eax
call fcn.101769d0
add esp, 8
test eax, eax
jne 0x10176e00
cmp esi, dword [esp + 0x1c]
jne 0x10176e00
mov ecx, dword [esp + 0x18]
mov eax, esi
mov edi, ebp
cmp esi, 4
jb 0x10176dd4
lea ecx, [ecx]
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x10176e00
sub eax, 4
add ecx, 4
add edi, 4
cmp eax, 4
jae 0x10176dc0
test eax, eax
je 0x10176df8
mov dl, byte [ecx]
cmp dl, byte [edi]
jne 0x10176e00
cmp eax, 1
jbe 0x10176df8
mov dl, byte [ecx + 1]
cmp dl, byte [edi + 1]
jne 0x10176e00
cmp eax, 2
jbe 0x10176df8
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x10176e00
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x10263bb0]
mov edx, dword [esp + 0x1c]
push edx
call dword [0x10263bb0]
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [esp + 0x20]
add esp, 0xc
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x10
ret