Function at 0x10005e30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x19c4
call fcn.1001a150
mov eax, dword [0x10029494]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov edx, str.ENTERING________________________________________________EHExecuteFilesInFolder
mov esi, 0x1002c2c8
mov dword [ebp - 0x1824], edi
call fcn.10001830
push edi
lea eax, [ebp - 0x1008]
push 0x400
push eax
call fcn.1000bb31
add esp, 0xc
push str.getfile.txt
lea ecx, [ebp - 0x1008]
push 0x400
push ecx
call fcn.1000c903
add esp, 0xc
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push 0x80000000
lea edx, [ebp - 0x1008]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10005efd
push str.ERROR______________hFile__INVALID_HANDLE_VALUE___FileName__
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.1000bb31
add esp, 0xc
lea ecx, [ebp - 0x1008]
push ecx
push 0x400
lea edx, [ebp - 0x808]
push edx
call fcn.1000c903
add esp, 0xc
lea edx, [ebp - 0x808]
mov esi, 0x1002c2c8
call fcn.10001830
jmp 0x1000616d
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x1814]
push eax
push edi
push esi
mov dword [ebp - 0x1818], edi
mov dword [ebp - 0x1814], edi
call ebx
mov edi, eax
mov dword [ebp - 0x1818], edi
cmp edi, 0xffffffff
jne 0x10005f42
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10005f3c
or edi, edi
mov dword [ebp - 0x1814], edi
jmp 0x10005f42
mov edi, dword [ebp - 0x1818]
push 2
xor eax, eax
lea ecx, [ebp - 0x180c]
push ecx
push eax
push esi
mov dword [ebp - 0x1810], eax
mov dword [ebp - 0x180c], eax
call ebx
mov dword [ebp - 0x1810], eax
cmp eax, 0xffffffff
jne 0x10005f7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10005f79
or eax, 0xffffffff
or ecx, eax
jmp 0x10005f85
mov eax, dword [ebp - 0x1810]
mov ecx, dword [ebp - 0x180c]
sub eax, edi
sbb ecx, dword [ebp - 0x1814]
mov edi, eax
xor eax, eax
push eax
lea edx, [ebp - 0x180c]
push edx
push eax
push esi
mov dword [ebp - 0x182c], ecx
mov dword [ebp - 0x1810], eax
mov dword [ebp - 0x180c], eax
call ebx
mov dword [ebp - 0x1810], eax
cmp eax, 0xffffffff
jne 0x10005fc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [edi + 1]
push eax
call fcn.1000ba7a
add esp, 4
push 0
lea ecx, [ebp - 0x181c]
push ecx
mov ebx, eax
push edi
push ebx
push esi
mov dword [ebp - 0x1814], ebx
mov dword [ebp - 0x181c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10006025
push str.ERROR______________ReadFileFALSE___FileName__
lea edx, [ebp - 0x808]
push 0x400
push edx
call fcn.1000bb31
add esp, 0xc
lea eax, [ebp - 0x1008]
push eax
push 0x400
lea ecx, [ebp - 0x808]
push ecx
jmp 0x10005ee0
xor ecx, ecx
cmp edi, dword [ebp - 0x181c]
jne 0x10006037
cmp dword [ebp - 0x182c], ecx
je 0x10006068
push str.ERROR______________fileSize_dwbytesRead___FileName__
lea edx, [ebp - 0x808]
push 0x400
push edx
call fcn.1000bb31
add esp, 0xc
lea eax, [ebp - 0x1008]
push eax
push 0x400
lea ecx, [ebp - 0x808]
push ecx
jmp 0x10005ee0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x1820]
push edx
push 0x100223fc
push ebx
mov byte [edi + ebx], 0
xor esi, esi
call fcn.1000d77d
add esp, 0xc
test eax, eax
je 0x100060b2
mov edi, edi
mov dword [ebp + esi*4 - 0x19c0], eax
lea eax, [ebp - 0x1820]
push eax
push 0x100223fc
push 0
call fcn.1000d77d
add esp, 0xc
inc esi
test eax, eax
jne 0x10006090
mov ebx, esi
xor esi, esi
test ebx, ebx
jle 0x1000615e
mov edi, edi
mov ecx, dword [ebp + esi*4 - 0x19c0]
mov eax, ecx
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100060d0
sub eax, edi
inc eax
push eax
push ecx
push 0x400
lea ecx, [ebp - 0x1808]
push ecx
lea edx, [ebp - 0x180c]
push edx
call fcn.1000dabf
mov eax, dword [ebp - 0x1824]
add esp, 0x14
push eax
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call fcn.1000bb31
add esp, 0xc
push 0x10021118
lea edx, [ebp - 0x808]
push 0x400
push edx
call fcn.1000c903
add esp, 0xc
lea eax, [ebp - 0x1808]
push eax
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call fcn.1000c903
lea edx, [ebp - 0x808]
add esp, 0xc
push edx
call sym.AdminServ.dll_EHExecuteFile
inc esi
add esp, 4
cmp esi, ebx
jl 0x100060c0
mov eax, dword [ebp - 0x1814]
push eax
call fcn.1000bd44
add esp, 4
mov edx, str.LEAVING________________________________________________EHExecuteFilesInFolder
mov esi, 0x1002c2c8
call fcn.10001830
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000bb22
mov esp, ebp
pop ebp
ret