Function at 0x423f8e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, 0x20044
call fcn.004d7290
sub esp, eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x19], 0
mov byte [ebp - 0x1001a], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Running_full_command__s
mov dword [esp + 8], global___func__.97
mov dword [esp + 4], 0x1c
mov dword [esp], str.logcollector_read_fullcommand.c
call dbg._mdebug2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], 0x4f0098
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__popen]
call eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x424051
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unable_to_execute_command:__s.
mov dword [esp + 8], global___func__.97
mov dword [esp + 4], 0x20
mov dword [esp], str.logcollector_read_fullcommand.c
call dbg._merror
mov eax, dword [ebp + 8]
mov dword [eax + 0x34], 0
mov eax, 0
jmp 0x424235
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x424063
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x38]
jmp 0x424069
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.ossec:_output:__s:_n
mov dword [esp + 4], 0x100
lea eax, [ebp - 0x10019]
mov dword [esp], eax
call sym._snprintf_20
lea eax, [ebp - 0x10019]
mov dword [esp], eax
call sym._strlen
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x10019]
mov eax, dword [ebp - 0x14]
add edx, eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xfe00
mov dword [esp + 4], 1
mov dword [esp], edx
call sym._fread
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x424223
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [ebp + eax - 0x10019], 0
mov dword [esp + 4], 0xa
lea eax, [ebp - 0x10019]
mov dword [esp], eax
call sym._strrchr
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x424108
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
lea eax, [ebp - 0x10019]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Reading_command_message:__s
mov dword [esp + 8], global___func__.97
mov dword [esp + 4], 0x36
mov dword [esp], str.logcollector_read_fullcommand.c
call dbg._mdebug2
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x10019]
mov dword [ebp - 0x10], eax
jmp 0x42418e
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
cmp al, 0xd
jne 0x424158
add dword [ebp - 0x10], 1
jmp 0x42418e
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
cmp al, 0xa
jne 0x424173
mov eax, dword [ebp - 0x10]
add eax, 1
movzx eax, byte [eax]
cmp al, 0xa
jne 0x424173
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
lea ecx, [ebp - 0x2001a]
mov edx, dword [ebp - 0xc]
add edx, ecx
mov byte [edx], al
add dword [ebp - 0xc], 1
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test al, al
jne 0x424148
lea edx, [ebp - 0x2001a]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0
cmp dword [ebp + 0x10], 0
jne 0x424223
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x74]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x70]
lea ecx, [ebp - 0x2001a]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call dbg.check_ignore_and_restrict
test eax, eax
jne 0x424223
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x64]
lea eax, [ebp - 0x2001a]
mov dword [esp], eax
call sym._strlen
lea edx, [eax + 1]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x4241fb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x38]
jmp 0x424201
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x10], 0x31
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
lea eax, [ebp - 0x2001a]
mov dword [esp], eax
call dbg.w_msg_hash_queues_push
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__pclose]
call eax
mov eax, 0
mov ebx, dword [ebp - 4]
leave
ret