Function at 0x4731a0
Capabilities:
Enumerate files on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x7eba44]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x140
lea eax, [ebp - 0x148]
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x190], edi
push 0
push eax
mov dword [ebp - 0x180], ebx
call fcn.006dca70
add esp, 0xc
test ebx, ebx
je 0x473764
test edi, edi
je 0x473764
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4731f1
sub ecx, edx
push 1
lea eax, [ecx + 3]
push eax
call fcn.006e6b64
mov ebx, eax
add esp, 8
mov dword [ebp - 0x198], ebx
test ebx, ebx
je 0x473764
push edi
push 0x7d5794
push ebx
call fcn.004540c0
add esp, 0xc
lea eax, [ebp - 0x148]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
mov dword [ebp - 0x194], ebx
cmp ebx, 0xffffffff
je 0x473764
lea eax, [ebp - 0x11c]
xor esi, esi
push eax
call fcn.006e718e
add esp, 4
mov dword [ebp - 0x188], eax
test eax, eax
je 0x473726
push 0x7d591c
push eax
call fcn.006ded60
add esp, 8
test eax, eax
je 0x47327a
mov byte [eax], 0
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x473280
sub ecx, edx
lea edx, [ebp - 0x11c]
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x473292
sub edx, edi
lea eax, [ecx + 2]
add eax, edx
push 1
push eax
call fcn.006e6b64
mov ebx, eax
add esp, 8
mov dword [ebp - 0x184], ebx
test ebx, ebx
je 0x47370c
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 0x190]
push str._s__s
push ebx
call fcn.004540c0
lea eax, [ebp - 0x178]
push eax
push ebx
call fcn.006ee957
add esp, 0x18
test eax, eax
jne 0x473703
push 1
push dword [ebp - 0x164]
call fcn.006e6b64
mov edi, eax
add esp, 8
mov dword [ebp - 0x17c], edi
test edi, edi
je 0x473703
push 0x7d3f30
push ebx
call fcn.006e62e4
add esp, 8
mov dword [ebp - 0x18c], eax
test eax, eax
je 0x4736fa
push eax
push dword [ebp - 0x164]
push 1
push edi
call fcn.006e66a4
add esp, 0x10
test eax, eax
je 0x4736ec
mov ebx, dword [ebp - 0x18c]
add esi, eax
mov eax, dword [ebp - 0x164]
push ebx
sub eax, esi
push eax
push 1
push edi
call fcn.006e66a4
add esp, 0x10
test eax, eax
jne 0x473347
test esi, esi
je 0x4736e6
push 0x10
push 1
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4736e6
push dword [ebp - 0x188]
call fcn.006e718e
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x4733be
push dword [ebp - 0x184]
call fcn.006e718e
add esp, 4
mov dword [ebx + 4], eax
test eax, eax
jne 0x473401
mov eax, dword [ebx]
test eax, eax
je 0x4733d5
push eax
call fcn.006e60fe
add esp, 4
mov dword [ebx], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x4733d5
push eax
call fcn.006e60fe
add esp, 4
mov dword [ebx + 4], 0
mov eax, dword [ebx + 8]
test eax, eax
je 0x4733ec
push eax
call fcn.006e60fe
add esp, 4
mov dword [ebx + 8], 0
push ebx
mov dword [ebx + 0xc], 0
call fcn.006e60fe
add esp, 4
jmp 0x4736e6
push 1
push esi
mov dword [ebx + 0xc], esi
call fcn.006e6b64
add esp, 8
mov dword [ebx + 8], eax
test eax, eax
jne 0x47341e
mov eax, dword [ebx]
test eax, eax
je 0x4733be
jmp 0x4733af
push esi
push edi
push eax
call fcn.006dccc0
mov ecx, dword [ebp - 0x180]
add esp, 0xc
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x473445
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x180]
mov esi, dword [ecx + 0xc]
test esi, esi
je 0x4736ce
mov edi, dword [esi + 8]
test edi, edi
je 0x47354f
nop dword [eax + eax]
mov ecx, dword [edi]
test ecx, ecx
jne 0x47350a
test esi, esi
je 0x4734f4
cmp byte [esi + 0x10], cl
je 0x473487
mov eax, dword [esi + 0x14]
test eax, eax
je 0x473487
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp edi, dword [esi + 8]
jne 0x473492
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
cmp edi, dword [esi + 0xc]
jne 0x47349d
mov eax, dword [edi + 4]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4734a8
dec eax
mov dword [esi + 4], eax
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4734b5
mov eax, dword [edi + 8]
mov dword [ecx + 8], eax
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4734c2
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4734d5
mov eax, dword [edi]
test eax, eax
je 0x4734d5
push eax
call ecx
add esp, 4
push edi
call fcn.006e60fe
add esp, 4
cmp byte [esi + 0x10], 0
je 0x4734f4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4734f4
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x180]
mov esi, dword [ecx + 0xc]
test esi, esi
je 0x4736c8
mov edi, dword [esi + 8]
jmp 0x473544
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x188]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x473532
test dl, dl
je 0x47352e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x473532
add eax, 2
add ecx, 2
test dl, dl
jne 0x473512
xor eax, eax
jmp 0x473537
sbb eax, eax
or eax, 1
test eax, eax
je 0x4735b0
mov edi, dword [edi + 8]
mov ecx, dword [ebp - 0x180]
test edi, edi
jne 0x473460
mov esi, dword [ecx + 0xc]
test esi, esi
je 0x4736c8
cmp byte [esi + 0x10], 0
je 0x47356d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47356d
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test edi, edi
je 0x4736b7
test eax, eax
je 0x473697
mov dword [eax], ebx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
mov ecx, dword [eax + 8]
mov dword [eax + 4], edi
test ecx, ecx
je 0x4736c0
mov dword [ecx + 4], eax
inc dword [esi + 4]
jmp 0x473697
mov esi, dword [ebp - 0x180]
mov esi, dword [esi + 0xc]
test esi, esi
je 0x473619
cmp byte [esi + 0x10], 0
je 0x4735d3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4735d3
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test eax, eax
je 0x473603
mov dword [eax], ebx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
mov dword [eax + 8], edi
test ecx, ecx
je 0x4735fd
mov dword [ecx + 8], eax
jmp 0x473600
mov dword [esi + 8], eax
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x473619
mov eax, dword [esi + 0x14]
test eax, eax
je 0x473619
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [ebp - 0x180]
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x4736c8
cmp byte [esi + 0x10], 0
je 0x473640
mov eax, dword [esi + 0x14]
test eax, eax
je 0x473640
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp edi, dword [esi + 8]
jne 0x47364b
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
cmp edi, dword [esi + 0xc]
jne 0x473656
mov eax, dword [edi + 4]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x473661
dec eax
mov dword [esi + 4], eax
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x47366e
mov eax, dword [edi + 8]
mov dword [ecx + 8], eax
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x47367b
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x47368e
mov eax, dword [edi]
test eax, eax
je 0x47368e
push eax
call ecx
add esp, 4
push edi
call fcn.006e60fe
add esp, 4
cmp byte [esi + 0x10], 0
je 0x4736c8
mov eax, dword [esi + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test eax, eax
je 0x4736af
push dword [eax + 4]
call ebx
mov edi, dword [ebp - 0x17c]
jmp 0x4736d4
test eax, eax
je 0x473697
mov dword [eax], ebx
mov dword [esi + 8], eax
inc dword [esi + 4]
mov dword [esi + 0xc], eax
jmp 0x473697
mov edi, dword [ebp - 0x17c]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x180]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4736e6
push dword [eax + 4]
call ebx
mov ebx, dword [ebp - 0x184]
push dword [ebp - 0x18c]
call fcn.006e6467
add esp, 4
push edi
call fcn.006e60fe
add esp, 4
push ebx
call fcn.006e60fe
add esp, 4
push dword [ebp - 0x188]
call fcn.006e60fe
mov edi, dword [ebp - 0x190]
add esp, 4
mov ebx, dword [ebp - 0x194]
lea eax, [ebp - 0x148]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x473246
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x198]
call fcn.006e60fe
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006dbabd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006dbabd
mov esp, ebp
pop ebp
ret