Function at 0x10046ba0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x5a
test esi, esi
jne 0x10046bca
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
push edi
test ebx, ebx
je 0x10046fe3
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x10046fe3
push 8
push str.sha256__
push esi
call fcn.1009f890
add esp, 0xc
test eax, eax
jne 0x10046d82
mov eax, dword [0x100dcbc0]
cmp dword [eax + 0x5c], 0
je 0x10046fe3
push 0x20
call dword [0x100dcbac]
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10046c91
push 0x20
push eax
mov eax, dword [0x100dcbc0]
push edi
push ebx
mov eax, dword [eax + 0x5c]
call eax
add esp, 0x10
test eax, eax
jne 0x10046fe8
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push 0x20
push edi
call fcn.10065580
push edi
mov ebx, eax
call dword [0x100dcbb0]
add esp, 0x14
test ebx, ebx
je 0x10046c61
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10046c66
sub ecx, edx
lea edi, [ecx + 1]
push edi
call dword [0x100dcbac]
mov ebx, eax
add esp, 4
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x10046c9d
push dword [ebp + 0xc]
call dword [0x100dcbb0]
add esp, 4
pop edi
pop ebx
mov eax, 0x1b
pop esi
mov esp, ebp
pop ebp
ret
push edi
push esi
push ebx
call fcn.1008dc20
add esp, 0xc
mov esi, ebx
nop word [eax + eax]
push str._sha256__
push esi
call fcn.1008e850
mov edi, eax
add esp, 8
test edi, edi
je 0x10046cc7
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 0x10046cd0
mov ebx, dword [ebp + 0xc]
sub ecx, edx
mov edx, dword [ebp - 0x10]
cmp edx, ecx
jne 0x10046d33
mov ecx, ebx
sub edx, 4
jb 0x10046d01
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x10046d06
add ecx, 4
add esi, 4
sub edx, 4
jae 0x10046cf0
cmp edx, 0xfffffffc
je 0x10046d79
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x10046d33
cmp edx, 0xfffffffd
je 0x10046d79
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x10046d33
cmp edx, 0xfffffffe
je 0x10046d79
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x10046d33
cmp edx, 0xffffffff
je 0x10046d79
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x10046d79
test edi, edi
je 0x10046d55
push str.sha256__
push edi
mov byte [edi], 0x3b
call fcn.1008e850
mov esi, eax
add esp, 8
test esi, esi
jne 0x10046cb0
mov ebx, dword [ebp + 0xc]
push ebx
call dword [0x100dcbb0]
push dword [ebp - 0x14]
mov dword [ebp + 0xc], 0
call dword [0x100dcbb0]
mov eax, dword [ebp - 8]
add esp, 8
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], 0
jmp 0x10046d55
push 0x100bbd14
push esi
call fcn.10060420
add esp, 8
mov dword [ebp + 0xc], eax
test eax, eax
je 0x10046fe3
push 2
push 0
push eax
call fcn.1009c36d
add esp, 0xc
test eax, eax
jne 0x10046e7a
push dword [ebp + 0xc]
call fcn.1009c980
push 0
push 0
push dword [ebp + 0xc]
mov esi, eax
call fcn.1009c36d
add esp, 0x10
test eax, eax
jne 0x10046e7a
cmp esi, 0x100000
ja 0x10046e7a
mov eax, esi
cdq
push edx
push eax
call fcn.1004f2d0
mov esi, eax
add esp, 8
cmp edi, esi
ja 0x10046e7a
lea eax, [esi + 1]
push eax
call dword [0x100dcbac]
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x10046e7a
push dword [ebp + 0xc]
push 1
push esi
push eax
call fcn.1009bff7
add esp, 0x10
cmp eax, 1
jne 0x10046e7a
cmp edi, esi
jne 0x10046ea8
mov ecx, dword [ebp - 4]
sub edi, 4
jb 0x10046e41
nop dword [eax]
mov eax, dword [ebx]
cmp eax, dword [ecx]
jne 0x10046e46
add ebx, 4
add ecx, 4
sub edi, 4
jae 0x10046e30
cmp edi, 0xfffffffc
je 0x10046e73
mov al, byte [ebx]
cmp al, byte [ecx]
jne 0x10046e7a
cmp edi, 0xfffffffd
je 0x10046e73
mov al, byte [ebx + 1]
cmp al, byte [ecx + 1]
jne 0x10046e7a
cmp edi, 0xfffffffe
je 0x10046e73
mov al, byte [ebx + 2]
cmp al, byte [ecx + 2]
jne 0x10046e7a
cmp edi, 0xffffffff
je 0x10046e73
mov al, byte [ebx + 3]
cmp al, byte [ecx + 3]
jne 0x10046e7a
mov dword [ebp - 8], 0
push dword [ebp - 4]
call dword [0x100dcbb0]
push dword [ebp - 0xc]
call dword [0x100dcbb0]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 0
call fcn.1009ba45
mov eax, dword [ebp - 8]
add esp, 0xc
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push str._____BEGIN_PUBLIC_KEY_____
push eax
mov dword [ebp - 0x14], 0
mov byte [esi + eax], 0
call fcn.1008e850
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x10046e7a
mov eax, dword [ebp - 4]
mov esi, ecx
sub esi, eax
je 0x10046ed9
cmp byte [ecx - 1], 0xa
jne 0x10046e7a
add esi, 0x1a
add eax, esi
push str._n_____END_PUBLIC_KEY_____
push eax
call fcn.1008e850
add esp, 8
test eax, eax
je 0x10046e7a
sub eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
sub eax, esi
inc eax
push eax
call dword [0x100dcbac]
mov ecx, eax
add esp, 4
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x10046e7a
mov edx, dword [ebp - 0x18]
cmp esi, edx
jae 0x10046f42
mov eax, dword [ebp - 4]
xor ebx, ebx
mov edi, ecx
nop
mov cl, byte [esi + eax]
cmp cl, 0xa
je 0x10046f31
cmp cl, 0xd
je 0x10046f31
mov byte [edi + ebx], cl
inc ebx
inc esi
cmp esi, edx
jb 0x10046f20
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
mov byte [ecx + eax], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
push ecx
call fcn.100653a0
push dword [ebp - 0x10]
mov esi, eax
call dword [0x100dcbb0]
add esp, 0x10
test esi, esi
jne 0x10046e7a
cmp edi, dword [ebp - 0x1c]
jne 0x10046e7a
mov ecx, dword [ebp - 0xc]
sub edi, 4
jb 0x10046f91
nop
mov eax, dword [ebx]
cmp eax, dword [ecx]
jne 0x10046f9a
add ebx, 4
add ecx, 4
sub edi, 4
jae 0x10046f80
cmp edi, 0xfffffffc
je 0x10046e73
mov al, byte [ebx]
cmp al, byte [ecx]
jne 0x10046fd7
cmp edi, 0xfffffffd
je 0x10046e73
mov al, byte [ebx + 1]
cmp al, byte [ecx + 1]
jne 0x10046fd7
cmp edi, 0xfffffffe
je 0x10046e73
mov al, byte [ebx + 2]
cmp al, byte [ecx + 2]
jne 0x10046fd7
cmp edi, 0xffffffff
je 0x10046e73
mov al, byte [ebx + 3]
cmp al, byte [ecx + 3]
je 0x10046e73
mov dword [ebp - 8], 0x5a
jmp 0x10046e7a
mov eax, 0x5a
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret