Function at 0x577370
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0x5a
test esi, esi
jne 0x57739a
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
push edi
test ebx, ebx
je 0x5777a3
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x5777a3
push 8
push str.sha256__
push esi
call fcn.006d73e0
add esp, 0xc
test eax, eax
jne 0x577561
mov eax, dword [0x7f153c]
cmp dword [eax + 0x5c], 0
je 0x5777a3
push 0x20
call dword [0x7f1528]
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x57747d
push 0x20
push eax
mov eax, dword [0x7f153c]
push edi
push ebx
mov eax, dword [eax + 0x5c]
call eax
add esp, 0x10
test eax, eax
jne 0x5777a8
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0xc]
push eax
push 0x20
push edi
push dword [ebp + 8]
push 0x751340
call fcn.0057c0c0
push edi
mov ebx, eax
call dword [0x7f152c]
add esp, 0x1c
test ebx, ebx
je 0x57743d
pop edi
mov eax, ebx
pop ebx
pop esi
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 + 8]
call fcn.005738f0
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x577456
sub ecx, edx
lea edi, [ecx + 1]
push edi
call dword [0x7f1528]
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x577489
push ebx
call dword [0x7f152c]
add esp, 4
pop edi
pop ebx
mov eax, 0x1b
pop esi
mov esp, ebp
pop ebp
ret
push edi
push esi
push eax
call fcn.006c1de0
mov esi, dword [ebp - 0x10]
add esp, 0xc
mov ebx, dword [ebp - 8]
nop word [eax + eax]
push str._sha256__
push esi
call fcn.006c2bb0
mov edi, eax
add esp, 8
test edi, edi
je 0x5774b7
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 0x5774c0
sub ecx, edx
cmp ebx, ecx
jne 0x57751a
mov ecx, dword [ebp + 0xc]
mov edx, ebx
sub edx, 4
jb 0x5774e8
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x5774ed
add ecx, 4
add esi, 4
sub edx, 4
jae 0x5774d7
cmp edx, 0xfffffffc
je 0x57753b
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x57751a
cmp edx, 0xfffffffd
je 0x57753b
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x57751a
cmp edx, 0xfffffffe
je 0x57753b
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x57751a
cmp edx, 0xffffffff
je 0x57753b
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x57753b
test edi, edi
je 0x577542
push str.sha256__
push edi
mov byte [edi], 0x3b
call fcn.006c2bb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x5774a0
jmp 0x577542
mov dword [ebp - 0xc], 0
push dword [ebp + 0xc]
call dword [0x7f152c]
push dword [ebp - 0x10]
call dword [0x7f152c]
mov eax, dword [ebp - 0xc]
add esp, 8
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push 0x7187ac
push esi
call fcn.006d407e
mov esi, eax
add esp, 8
mov dword [ebp - 0x10], esi
test esi, esi
je 0x5777a3
push 2
push 0
push esi
call fcn.006d37c5
add esp, 0xc
test eax, eax
jne 0x57764a
push esi
call fcn.006d4773
push 0
push 0
push dword [ebp - 0x10]
mov esi, eax
call fcn.006d37c5
add esp, 0x10
test eax, eax
jne 0x57764a
cmp esi, 0x100000
ja 0x57764a
cmp edi, esi
ja 0x57764a
lea eax, [esi + 1]
push eax
call dword [0x7f1528]
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x57764a
push dword [ebp - 0x10]
push 1
push esi
push eax
call fcn.006d333a
add esp, 0x10
cmp eax, 1
jne 0x57764a
cmp edi, esi
jne 0x577672
mov ecx, dword [ebp - 8]
sub edi, 4
jb 0x577611
nop dword [eax]
mov eax, dword [ebx]
cmp eax, dword [ecx]
jne 0x577616
add ebx, 4
add ecx, 4
sub edi, 4
jae 0x577600
cmp edi, 0xfffffffc
je 0x577643
mov al, byte [ebx]
cmp al, byte [ecx]
jne 0x57764a
cmp edi, 0xfffffffd
je 0x577643
mov al, byte [ebx + 1]
cmp al, byte [ecx + 1]
jne 0x57764a
cmp edi, 0xfffffffe
je 0x577643
mov al, byte [ebx + 2]
cmp al, byte [ecx + 2]
jne 0x57764a
cmp edi, 0xffffffff
je 0x577643
mov al, byte [ebx + 3]
cmp al, byte [ecx + 3]
jne 0x57764a
mov dword [ebp - 0xc], 0
mov esi, dword [ebp - 4]
push dword [ebp - 8]
call dword [0x7f152c]
push esi
call dword [0x7f152c]
push dword [ebp - 0x10]
call fcn.006d2a7f
mov eax, dword [ebp - 0xc]
add esp, 0xc
pop edi
pop ebx
pop esi
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.006c2bb0
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x57764a
mov eax, dword [ebp - 8]
mov esi, ecx
sub esi, eax
je 0x5776a3
cmp byte [ecx - 1], 0xa
jne 0x57764a
add esi, 0x1a
add eax, esi
push str._n_____END_PUBLIC_KEY_____
push eax
call fcn.006c2bb0
add esp, 8
test eax, eax
je 0x57764a
sub eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
sub eax, esi
inc eax
push eax
call dword [0x7f1528]
mov ecx, eax
add esp, 4
mov dword [ebp + 0xc], ecx
test ecx, ecx
je 0x57764a
mov edx, dword [ebp - 0x18]
cmp esi, edx
jae 0x57770a
mov eax, dword [ebp - 8]
xor ebx, ebx
mov edi, ecx
mov cl, byte [esi + eax]
cmp cl, 0xa
je 0x5776f9
cmp cl, 0xd
je 0x5776f9
mov byte [edi + ebx], cl
inc ebx
inc esi
cmp esi, edx
jb 0x5776e8
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
mov byte [ecx + eax], 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push ecx
call fcn.0056ade0
push dword [ebp + 0xc]
mov esi, eax
call dword [0x7f152c]
add esp, 0x10
test esi, esi
mov esi, dword [ebp - 4]
jne 0x57764d
cmp edi, dword [ebp - 0x18]
jne 0x57764d
mov ecx, esi
sub edi, 4
jb 0x577759
mov eax, dword [ebx]
cmp eax, dword [ecx]
jne 0x57775e
add ebx, 4
add ecx, 4
sub edi, 4
jae 0x577748
cmp edi, 0xfffffffc
je 0x577797
mov al, byte [ebx]
cmp al, byte [ecx]
jne 0x57778b
cmp edi, 0xfffffffd
je 0x577797
mov al, byte [ebx + 1]
cmp al, byte [ecx + 1]
jne 0x57778b
cmp edi, 0xfffffffe
je 0x577797
mov al, byte [ebx + 2]
cmp al, byte [ecx + 2]
jne 0x57778b
cmp edi, 0xffffffff
je 0x577797
mov al, byte [ebx + 3]
cmp al, byte [ecx + 3]
je 0x577797
mov dword [ebp - 0xc], 0x5a
jmp 0x57764d
mov dword [ebp - 0xc], 0
jmp 0x57764d
mov eax, 0x5a
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret