Function at 0x40b7f0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416a60
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
mov esi, 0x10
cmp dword [ebp + 0x1c], esi
jae 0x40b835
lea eax, [ebp + 8]
push eax
push str.CompareBinfileCheckSum__:_Enter_checksum_check__bin_path___s
push 0x421108
call fcn.00404280
sub esp, 0x10
mov ecx, esp
lea eax, [ebp + 8]
mov dword [ebp - 0x418], esp
mov edi, 0xf
push eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], 0
or eax, 0xffffffff
xor ebx, ebx
mov byte [ecx], 0
call fcn.00401650
call fcn.0040bf40
cmp al, bl
je 0x40babe
sub esp, 0x1c
mov ecx, esp
lea edx, [ebp + 0x24]
mov dword [ebp - 0x418], esp
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push edx
or eax, 0xffffffff
mov byte [ecx], bl
call fcn.00401650
call fcn.0040bf40
test al, al
je 0x40babc
mov eax, dword [ebp + 0x24]
cmp dword [ebp + 0x38], esi
jae 0x40b8b4
lea eax, [ebp + 0x24]
mov ebx, dword [sym.imp.MSVCR100.dll_fopen]
push 0x41b4b8
push eax
call ebx
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b916
push str.CompareBinfileCheckSum__:__ERROR__Open_checksum_file_fail_
push 0x421108
call fcn.00404280
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov ebx, 0x10
add esp, 8
cmp dword [ebp + 0x1c], ebx
jb 0x40b8f6
mov eax, dword [ebp + 8]
push eax
call esi
add esp, 4
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp dword [ebp + 0x38], ebx
jb 0x40bafc
mov ecx, dword [ebp + 0x24]
push ecx
jmp 0x40baf7
mov edi, dword [sym.imp.MSVCR100.dll_fread]
push esi
push 2
lea edx, [ebp - 0x410]
push 1
push edx
call edi
add esp, 0x10
test eax, eax
jne 0x40b958
push str.CompareBinfileCheckSum__:__ERROR__Read_checksum_file_fail_
push 0x421108
call fcn.00404280
add esp, 8
lea esi, [ebp + 8]
call fcn.004116f0
lea esi, [ebp + 0x24]
call fcn.004116f0
jmp 0x40bafc
mov al, byte [ebp - 0x410]
mov byte [ebp - 0x411], al
movzx eax, al
push eax
push str.CompareBinfileCheckSum__:_Checksum1__08X__from_checksum_file.
push 0x421108
call fcn.00404280
add esp, 0xc
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [ebp + 8]
add esp, 4
cmp dword [ebp + 0x1c], 0x10
jae 0x40b990
lea eax, [ebp + 8]
push 0x41b4b8
push eax
call ebx
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b9a8
push str.CompareBinfileCheckSum__:__ERROR__Open_data_file_fail_
jmp 0x40b936
push esi
xor bl, bl
call dword [sym.imp.MSVCR100.dll_feof]
add esp, 4
test eax, eax
jne 0x40b9fa
jmp 0x40b9c0
push esi
push 0x400
lea ecx, [ebp - 0x410]
push 1
push ecx
call edi
add esp, 0x10
xor ecx, ecx
test eax, eax
je 0x40b9ec
lea ebx, [ebx]
xor bl, byte [ebp + ecx - 0x410]
inc ecx
cmp ecx, eax
jb 0x40b9e0
push esi
call dword [sym.imp.MSVCR100.dll_feof]
add esp, 4
test eax, eax
je 0x40b9c0
movzx edx, bl
push edx
push str.CompareBinfileCheckSum__:_Checksum2__08X__from_computing_bin_file.
push 0x421108
call fcn.00404280
add esp, 0xc
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
cmp byte [ebp - 0x411], bl
jne 0x40ba74
push str.CompareBinfileCheckSum__:_Checksums_are_matched
push 0x421108
call fcn.00404280
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov edi, 0x10
add esp, 8
cmp dword [ebp + 0x1c], edi
jb 0x40ba4d
mov eax, dword [ebp + 8]
push eax
call esi
add esp, 4
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp dword [ebp + 0x38], edi
jb 0x40ba6d
mov ecx, dword [ebp + 0x24]
push ecx
call esi
add esp, 4
mov al, 1
jmp 0x40bafe
push str.ComputeBinfileCheckSum__:_Checksums_are_dismatched
push 0x421108
call fcn.00404280
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov edi, 0x10
add esp, 8
cmp dword [ebp + 0x1c], edi
jb 0x40ba9f
mov edx, dword [ebp + 8]
push edx
call esi
add esp, 4
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp dword [ebp + 0x38], edi
jb 0x40bafc
mov eax, dword [ebp + 0x24]
push eax
jmp 0x40baf7
xor ebx, ebx
push str.CompareBinfileCheckSum__:__ERROR__Can_not_find_file_
push 0x421108
call fcn.00404280
add esp, 8
cmp dword [ebp + 0x1c], esi
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x40bae4
mov ecx, dword [ebp + 8]
push ecx
call esi
add esp, 4
cmp dword [ebp + 0x38], 0x10
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
jb 0x40bafc
mov edx, dword [ebp + 0x24]
push edx
call esi
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415aec
mov esp, ebp
pop ebp
ret 0x38