Function at 0x420b70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push edi
lea edi, [ebp - 0x60]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0x5a
cmp dword [ebp + 0xc], 0
jne 0x420ba9
xor eax, eax
jmp 0x420fef
cmp dword [ebp + 0x10], 0
je 0x420bb5
cmp dword [ebp + 0x14], 0
jne 0x420bbd
mov eax, dword [ebp - 0x18]
jmp 0x420fef
mov esi, esp
push 8
push 0x4adba0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
cmp esi, esp
call fcn.004a09b1
test eax, eax
jne 0x420e10
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x34], 0
mov ecx, dword [0x4adaec]
cmp dword [ecx + 0x5c], 0
jne 0x420c04
mov eax, dword [ebp - 0x18]
jmp 0x420fef
mov esi, esp
push 0x20
call dword [section..data]
add esp, 4
cmp esi, esp
call fcn.004a09b1
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x420c2b
mov eax, 0x1b
jmp 0x420fef
mov esi, esp
push 0x20
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [0x4adaec]
mov eax, dword [edx + 0x5c]
call eax
add esp, 0x10
cmp esi, esp
call fcn.004a09b1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x420c72
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x34]
push edx
push 0x20
mov eax, dword [ebp - 0x48]
push eax
call fcn.004565b0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov esi, esp
mov ecx, dword [ebp - 0x48]
push ecx
call dword [0x4ab004]
add esp, 4
cmp esi, esp
call fcn.004a09b1
mov dword [ebp - 0x48], 0
xor edx, edx
jne 0x420c72
cmp dword [ebp - 0x1c], 0
je 0x420ca1
mov eax, dword [ebp - 0x1c]
jmp 0x420fef
mov eax, dword [ebp - 0x34]
push eax
push str._public_key_hash:_sha256___s
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042e8d0
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add eax, 1
mov dword [ebp - 0x2c], eax
mov esi, esp
mov eax, dword [ebp - 0x2c]
push eax
call dword [section..data]
add esp, 4
cmp esi, esp
call fcn.004a09b1
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x420d12
mov esi, esp
mov ecx, dword [ebp - 0x34]
push ecx
call dword [0x4ab004]
add esp, 4
cmp esi, esp
call fcn.004a09b1
mov dword [ebp - 0x34], 0
xor edx, edx
jne 0x420ce7
mov eax, 0x1b
jmp 0x420fef
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
push str._sha256__
mov ecx, dword [ebp - 0x40]
push ecx
call sub.VCRUNTIME140.dll_strstr
add esp, 8
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x420d55
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x44]
mov byte [ecx + eax], 0
mov edx, dword [ebp - 0x40]
add edx, 8
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp dword [ebp - 0x24], eax
jne 0x420d8d
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x40]
add ecx, 8
push ecx
mov edx, dword [ebp - 0x34]
push edx
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x420d8d
mov dword [ebp - 0x18], 0
jmp 0x420dc6
cmp dword [ebp - 0x44], 0
je 0x420db6
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 0x44]
mov byte [edx + ecx], 0x3b
push str.sha256__
mov eax, dword [ebp - 0x44]
push eax
call sub.VCRUNTIME140.dll_strstr
add esp, 8
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x44], 0
je 0x420dc6
cmp dword [ebp - 0x40], 0
jne 0x420d2c
mov esi, esp
mov ecx, dword [ebp - 0x34]
push ecx
call dword [0x4ab004]
add esp, 4
cmp esi, esp
call fcn.004a09b1
mov dword [ebp - 0x34], 0
xor edx, edx
jne 0x420dc6
mov esi, esp
mov eax, dword [ebp - 0x3c]
push eax
call dword [0x4ab004]
add esp, 4
cmp esi, esp
call fcn.004a09b1
mov dword [ebp - 0x3c], 0
xor ecx, ecx
jne 0x420de7
mov eax, dword [ebp - 0x18]
jmp 0x420fef
push 0x4adbe4
mov edx, dword [ebp + 0xc]
push edx
call fcn.0044dfe0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x420e32
mov eax, dword [ebp - 0x18]
jmp 0x420fef
mov esi, esp
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
cmp esi, esp
call fcn.004a09b1
test eax, eax
je 0x420e55
jmp 0x420f94
mov esi, esp
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
cmp esi, esp
call fcn.004a09b1
mov dword [ebp - 0x4c], eax
mov esi, esp
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
cmp esi, esp
call fcn.004a09b1
test eax, eax
je 0x420e91
jmp 0x420f94
cmp dword [ebp - 0x4c], 0
jl 0x420ea0
cmp dword [ebp - 0x4c], 0x100000
jle 0x420ea5
jmp 0x420f94
mov eax, dword [ebp - 0x4c]
cdq
push edx
push eax
call fcn.00432ab0
add esp, 8
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x50]
jbe 0x420ec3
jmp 0x420f94
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov esi, esp
push ecx
call dword [section..data]
add esp, 4
cmp esi, esp
call fcn.004a09b1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x420eea
jmp 0x420f94
mov esi, esp
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp esi, esp
call fcn.004a09b1
cmp eax, 1
je 0x420f14
jmp 0x420f94
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp - 0x50]
jne 0x420f3d
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x420f3b
mov dword [ebp - 0x18], 0
jmp 0x420f94
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x50]
mov byte [eax], 0
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00422e90
add esp, 0xc
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x420f65
jmp 0x420f94
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [ebp - 0x58]
jne 0x420f8c
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x420f8c
mov dword [ebp - 0x18], 0
xor edx, edx
jne 0x420e32
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [0x4ab004]
add esp, 4
cmp esi, esp
call fcn.004a09b1
mov dword [ebp - 8], 0
xor ecx, ecx
jne 0x420f94
mov esi, esp
mov edx, dword [ebp - 0x10]
push edx
call dword [0x4ab004]
add esp, 4
cmp esi, esp
call fcn.004a09b1
mov dword [ebp - 0x10], 0
xor eax, eax
jne 0x420fb5
mov esi, esp
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
cmp esi, esp
call fcn.004a09b1
mov eax, dword [ebp - 0x18]
push edx
mov ecx, ebp
push eax
lea edx, [0x421010]
call fcn.004a095d
pop eax
pop edx
pop edi
pop esi
add esp, 0x60
cmp ebp, esp
call fcn.004a09b1
mov esp, ebp
pop ebp
ret