Function at 0x470ec0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0x5a
push edi
test esi, esi
jne 0x470ef0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x47134e
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x47134e
push 8
push str.sha256__
push esi
call fcn.00638a20
add esp, 0xc
test eax, eax
jne 0x4710b4
mov eax, dword [0x73167c]
cmp dword [eax + 0x5c], 0
je 0x47134e
push 0x20
call dword [0x73166c]
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
je 0x470fce
push 0x20
push eax
mov eax, dword [0x73167c]
push edi
push ebx
mov eax, dword [eax + 0x5c]
call eax
add esp, 0x10
test eax, eax
jne 0x471353
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
mov ecx, 0x710818
push eax
push 0x20
push edi
call fcn.004265f0
push edi
mov ebx, eax
call dword [0x731670]
add esp, 0x14
test ebx, ebx
je 0x470f8e
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0xc]
push ebx
push str._t_public_key_hash:_sha256___s_n
push dword [ebp - 0x14]
call fcn.004511c0
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x470fa7
sub ecx, edx
lea edi, [ecx + 1]
push edi
call dword [0x73166c]
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x470fda
push ebx
call dword [0x731670]
add esp, 4
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push esi
push eax
call fcn.00614e90
mov esi, dword [ebp - 8]
add esp, 0xc
mov ebx, dword [ebp - 4]
nop dword [eax + eax]
push str._sha256__
push esi
call fcn.00614ac0
mov edi, eax
add esp, 8
test edi, edi
je 0x471007
mov byte [edi], 0
add esi, 8
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x471010
sub ecx, edx
cmp ebx, ecx
jne 0x47106a
mov ecx, dword [ebp - 0xc]
mov edx, ebx
sub edx, 4
jb 0x471038
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x47103d
add ecx, 4
add esi, 4
sub edx, 4
jae 0x471027
cmp edx, 0xfffffffc
je 0x47108b
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x47106a
cmp edx, 0xfffffffd
je 0x47108b
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x47106a
cmp edx, 0xfffffffe
je 0x47108b
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x47106a
cmp edx, 0xffffffff
je 0x47108b
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x47108b
test edi, edi
je 0x471092
push str.sha256__
push edi
mov byte [edi], 0x3b
call fcn.00614ac0
mov esi, eax
add esp, 8
test esi, esi
jne 0x470ff0
jmp 0x471092
mov dword [ebp - 0x10], 0
push dword [ebp - 0xc]
call dword [0x731670]
add esp, 4
push dword [ebp - 8]
call dword [0x731670]
mov eax, dword [ebp - 0x10]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
mov dword [ebp - 0xc], 0
call fcn.0042c1e0
mov ecx, 0x7190b0
mov dword [ebp - 0x14], eax
call fcn.0042c1e0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4710ed
test eax, eax
je 0x4710ed
push eax
push ecx
call fcn.0063c0b0
mov ecx, dword [ebp - 0x14]
add esp, 8
mov dword [ebp - 0xc], eax
push ecx
call fcn.00619ae0
add esp, 4
push dword [ebp - 0x18]
call fcn.00619ae0
mov eax, dword [ebp - 0xc]
add esp, 4
test eax, eax
jne 0x471121
push 0x7190b0
push esi
call fcn.0063c0d0
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
je 0x47134e
push 2
push 0
push eax
call fcn.0062b560
add esp, 0xc
test eax, eax
jne 0x4711f0
push dword [ebp - 0xc]
call fcn.0063f320
add esp, 4
mov esi, eax
push 0
push 0
push dword [ebp - 0xc]
call fcn.0062b560
add esp, 0xc
test eax, eax
jne 0x4711f0
cmp esi, 0x100000
ja 0x4711f0
cmp edi, esi
ja 0x4711f0
lea eax, [esi + 1]
push eax
call dword [0x73166c]
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x4711f0
push dword [ebp - 0xc]
push 1
push esi
push eax
call fcn.0062bc10
add esp, 0x10
cmp eax, 1
jne 0x4711f0
cmp edi, esi
jne 0x47121e
mov ecx, dword [ebp - 8]
sub edi, 4
jb 0x4711b7
mov eax, dword [ebx]
cmp eax, dword [ecx]
jne 0x4711bc
add ebx, 4
add ecx, 4
sub edi, 4
jae 0x4711a6
cmp edi, 0xfffffffc
je 0x4711e9
mov al, byte [ebx]
cmp al, byte [ecx]
jne 0x4711f0
cmp edi, 0xfffffffd
je 0x4711e9
mov al, byte [ebx + 1]
cmp al, byte [ecx + 1]
jne 0x4711f0
cmp edi, 0xfffffffe
je 0x4711e9
mov al, byte [ebx + 2]
cmp al, byte [ecx + 2]
jne 0x4711f0
cmp edi, 0xffffffff
je 0x4711e9
mov al, byte [ebx + 3]
cmp al, byte [ecx + 3]
jne 0x4711f0
mov dword [ebp - 0x10], 0
mov esi, dword [ebp - 4]
push dword [ebp - 8]
call dword [0x731670]
add esp, 4
push esi
call dword [0x731670]
add esp, 4
push dword [ebp - 0xc]
call fcn.006294d0
mov eax, dword [ebp - 0x10]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
push str._____BEGIN_PUBLIC_KEY_____
push eax
mov dword [ebp - 0x14], 0
mov byte [esi + eax], 0
call fcn.00614ac0
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x4711f0
mov eax, dword [ebp - 8]
mov esi, ecx
sub esi, eax
je 0x47124f
cmp byte [ecx - 1], 0xa
jne 0x4711f0
add esi, 0x1a
add eax, esi
push str._n_____END_PUBLIC_KEY_____
push eax
call fcn.00614ac0
add esp, 8
test eax, eax
je 0x4711f0
sub eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
sub eax, esi
inc eax
push eax
call dword [0x73166c]
mov edx, eax
add esp, 4
mov dword [ebp - 0x18], edx
test edx, edx
je 0x4711f0
mov eax, dword [ebp - 0x1c]
cmp esi, eax
jae 0x4712b1
mov edi, dword [ebp - 8]
xor ebx, ebx
mov cl, byte [esi + edi]
cmp cl, 0xa
je 0x4712a3
cmp cl, 0xd
je 0x4712a3
mov byte [edx + ebx], cl
inc ebx
inc esi
cmp esi, eax
jb 0x471292
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov byte [edx + eax], 0
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 4]
call fcn.00426470
add esp, 4
mov esi, eax
push dword [ebp - 0x18]
call dword [0x731670]
add esp, 4
test esi, esi
mov esi, dword [ebp - 4]
jne 0x4711f3
cmp edi, dword [ebp - 0x1c]
jne 0x4711f3
mov ecx, esi
sub edi, 4
jb 0x471304
mov eax, dword [ebx]
cmp eax, dword [ecx]
jne 0x471309
add ebx, 4
add ecx, 4
sub edi, 4
jae 0x4712f3
cmp edi, 0xfffffffc
je 0x471342
mov al, byte [ebx]
cmp al, byte [ecx]
jne 0x471336
cmp edi, 0xfffffffd
je 0x471342
mov al, byte [ebx + 1]
cmp al, byte [ecx + 1]
jne 0x471336
cmp edi, 0xfffffffe
je 0x471342
mov al, byte [ebx + 2]
cmp al, byte [ecx + 2]
jne 0x471336
cmp edi, 0xffffffff
je 0x471342
mov al, byte [ebx + 3]
cmp al, byte [ecx + 3]
je 0x471342
mov dword [ebp - 0x10], 0x5a
jmp 0x4711f3
mov dword [ebp - 0x10], 0
jmp 0x4711f3
mov eax, 0x5a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret