Function at 0x40b866
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8fc
mov eax, dword [0x5500cc]
add eax, 1
mov dword [0x5500cc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.os_check_ads
lea eax, [ebp - 0x50]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._stat
test eax, eax
jns 0x40b8aa
mov eax, 0xffffffff
jmp 0x40bb77
movzx eax, word [ebp - 0x4a]
movzx eax, ax
and eax, 0xf000
cmp eax, 0x4000
jne 0x40b906
mov dword [esp + 4], str._dev_fd
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strstr
test eax, eax
je 0x40b8de
mov eax, 0
jmp 0x40bb77
mov eax, dword [statbuf.st_gid]
test eax, eax
jne 0x40b8ef
mov eax, 0
jmp 0x40bb77
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.read_sys_dir
jmp 0x40bb77
movzx eax, word [ebp - 0x4a]
movzx eax, ax
and eax, 0xf000
cmp eax, 0x8000
jne 0x40bb72
cmp dword [ebp + 0xc], 0
je 0x40bb72
mov dword [ebp - 0x1c], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._open
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
js 0x40bb72
jmp 0x40b95e
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x1c], eax
mov dword [esp + 8], 0x400
lea eax, [ebp - 0x851]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._read
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jg 0x40b958
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._close
mov dword [esp + 4], str._dev_bus_usb_.usbfs_devices
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strcmp
test eax, eax
je 0x40bb72
mov eax, dword [statbuf.st_gid]
cmp dword [ebp - 0x1c], eax
je 0x40bb72
lea eax, [ebp - 0x8dc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._stat
test eax, eax
jne 0x40bb72
mov eax, dword [statbuf2.st_gid]
cmp dword [ebp - 0x1c], eax
je 0x40bb72
mov edx, dword [statbuf.st_gid]
mov eax, dword [statbuf2.st_gid]
cmp edx, eax
jne 0x40bb72
lea eax, [ebp - 0x8b7]
mov ebx, str.Anomaly_detected_in_file__s._File_size_doesnt_match_what_we_found._Possible_kernel_level_rootkit.
mov edx, 0x66
mov ecx, dword [ebx]
mov dword [eax], ecx
mov ecx, dword [ebx + edx - 4]
mov dword [eax + edx - 4], ecx
lea edi, [eax + 4]
and edi, 0xfffffffc
sub eax, edi
sub ebx, eax
add edx, eax
and edx, 0xfffffffc
mov eax, edx
shr eax, 2
mov esi, ebx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
lea eax, [ebp - 0x8b7]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._snprintf_4
mov dword [statbuf.st_ctime], eax
cmp dword [statbuf.st_ctime], 0
js 0x40bb0e
mov eax, dword [statbuf.st_ctime]
cmp eax, 0x400
ja 0x40bab0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
lea eax, [ebp - 0x8b7]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x401
lea eax, [ebp - 0x451]
mov dword [esp], eax
call sym._snprintf_4
jmp 0x40baf6
mov eax, dword [statbuf.st_ctime]
sub eax, 0x400
mov dword [statbuf.st_mtime], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
sub eax, dword [statbuf.st_mtime]
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
lea eax, [ebp - 0x8b7]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x401
lea eax, [ebp - 0x451]
mov dword [esp], eax
call sym._snprintf_4
lea eax, [ebp - 0x451]
mov dword [esp + 4], eax
mov dword [esp], 3
call dbg.notify_rk
jmp 0x40bb65
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov edx, dword [ebp + 8]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], str.Error__d___s__with_snprintf_with_file__s
mov dword [esp + 0xc], global___func__.167
mov dword [esp + 8], 0x77
mov dword [esp + 4], str.rootcheck_check_rc_sys.c
mov dword [esp], 0x4eb0de
call dbg._mtdebug2
mov eax, dword [0x5500c8]
add eax, 1
mov dword [0x5500c8], eax
mov eax, 0
add esp, 0x8fc
pop ebx
pop esi
pop edi
pop ebp
ret