Function at 0x419354
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebx + 0x14]
mov dword [ebp - 0x48], 0x53474c
mov dword [ebp - 0x44], 0x53bfc0
mov dword [ebp - 0x40], ebp
mov dword [ebp - 0x38], esp
mov dword [ebp - 0x40], 0x4192d9
lea eax, [ebp - 0x64]
call fcn.005353b5
test esi, esi
je 0x4190b2
lea edi, [ebx + 4]
cmp dword [ebx + 0x18], 0xf
ja 0x4190cb
mov eax, edi
jmp 0x4190ce
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], 0
mov word [edi + 4], 0
jmp 0x4192a9
mov eax, dword [ebx + 4]
mov dword [ebp - 0x5c], 0xffffffff
sub esp, 8
push 0
push 0
push esi
push eax
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar
add esp, 8
mov esi, eax
test esi, esi
je 0x419160
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], 0
cmp esi, 0xffffffff
je 0x4192c2
mov dword [ebp - 0x5c], 0xffffffff
sub esp, 4
lea eax, [ebp - 0x28]
push 0
push esi
push eax
call fcn.00403e04
add esp, 0x10
test al, al
je 0x419196
mov eax, dword [ebp - 0x10]
cmp eax, 7
ja 0x41919b
lea ecx, [ebp - 0x24]
cmp esi, 1
je 0x4191a3
mov dword [ebp - 0x5c], 0xffffffff
sub esp, 4
push esi
push 0
push ecx
call fcn.00524b81
add esp, 0x10
mov eax, dword [ebp - 0x10]
cmp eax, 7
jbe 0x4191ad
mov ecx, dword [ebp - 0x24]
jmp 0x4191b0
mov edi, dword [ebp + 8]
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], 0
mov word [edi + 4], 0
mov dword [ebp - 0x5c], 0xffffffff
sub esp, 4
push 0
push 0x53bdf6
push edi
call fcn.0041cd04
add esp, 0x10
jmp 0x4192a9
mov eax, dword [ebp - 0x10]
jmp 0x4191b9
mov ecx, dword [ebp - 0x24]
cmp esi, 1
jne 0x41913d
mov word [ecx], 0
cmp eax, 7
ja 0x41915b
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], esi
mov word [ecx + esi*2], 0
cmp dword [ebx + 0x18], 0xf
mov ecx, dword [ebx + 0x14]
jbe 0x4191c5
mov edi, dword [ebx + 4]
cmp eax, 7
ja 0x4191cf
lea eax, [ebp - 0x24]
jmp 0x4191d2
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x5c], 1
sub esp, 8
push esi
push eax
push ecx
push edi
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar
add esp, 8
test eax, eax
mov edi, dword [ebp + 8]
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], 0
mov word [edi + 4], 0
je 0x41923b
lea ecx, [edi + 4]
mov eax, dword [ebp - 0x10]
cmp eax, 7
ja 0x419280
mov edx, dword [ebp - 0x14]
inc edx
je 0x41928c
mov dword [ebp - 0x5c], 3
sub esp, 4
push edx
lea eax, [ebp - 0x24]
push eax
push ecx
call fcn.00524aac
add esp, 0x10
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
jmp 0x41928c
mov dword [ebp - 0x5c], 2
sub esp, 4
push 0
push 0x53bdf6
push edi
call fcn.0041cd04
add esp, 0x10
mov ecx, dword [ebp - 0x10]
cmp ecx, 8
mov edi, dword [ebp + 8]
jb 0x4192a9
mov eax, dword [ebp - 0x24]
lea ecx, [ecx + ecx + 2]
cmp ecx, 0x1000
jb 0x419272
mov eax, dword [eax - 4]
sub esp, 0xc
push eax
call fcn.0051a4c8
add esp, 0x10
jmp 0x4192a9
mov edx, dword [ebp - 0x24]
mov dword [ecx], edx
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], eax
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], 0
lea eax, [ebp - 0x64]
sub esp, 0xc
push eax
call fcn.005353d6
add esp, 0x10
mov eax, edi
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x5c], 0xffffffff
sub esp, 0xc
push 0x53bea7
call fcn.0051fe94
add esp, 0xc
mov eax, dword [ebp - 0x60]
cmp eax, 3
jbe 0x4192e5
ud2
sub eax, 1
jmp dword [eax*4 + 0x419348]
mov esi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x10]
cmp eax, 8
jb 0x419322
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
lea eax, [eax + eax + 2]
cmp eax, 0x1000
mov eax, dword [ebp - 0x2c]
jb 0x419316
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax - 4]
sub esp, 0xc
push eax
call fcn.0051a4c8
add esp, 0x10
mov dword [ebp - 0x5c], 0xffffffff
sub esp, 0xc
push esi
call fcn.00535354
add esp, 0xc
mov eax, dword [ebp - 0x54]
sub esp, 0xc
push dword [ebp - 0x58]
call fcn.00403630
add esp, 0xc
nop
int1
xchg edx, eax
inc ecx
add cl, dh
xchg edx, eax
inc ecx
add byte [0x55004193], dh
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3ac
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0
mov dword [ebp - 0x60], 0x53474c
mov dword [ebp - 0x5c], 0x53bfe0
mov dword [ebp - 0x58], ebp
mov dword [ebp - 0x50], esp
mov dword [ebp - 0x58], 0x41985e
mov dword [ebp - 0x74], 1
lea eax, [ebp - 0x7c]
call fcn.005353b5
mov dword [esp + 4], esi
lea eax, [ebp - 0x3a8]
mov dword [esp], eax
call fcn.0041906c
mov dword [ebp - 0x74], 2
lea eax, [ebp - 0x3a8]
mov dword [esp], eax
mov dword [esp + 8], 4
mov dword [esp + 4], str._.
call fcn.0041d05c
mov dword [ebp - 0xdc], 7
lea esi, [ebp - 0xf0]
mov dword [ebp - 0xe0], 0
mov word [ebp - 0xf0], 0
mov edx, dword [eax + 0x18]
cmp edx, 7
ja 0x41944c
mov ecx, dword [eax + 0x14]
mov edi, eax
add edi, 4
inc ecx
je 0x419461
mov dword [ebp - 0x74], 3
mov dword [esp + 8], ecx
mov dword [ebp - 0x40], edi
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [ebp - 0x1c], eax
call fcn.00524aac
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x18]
lea esi, [ebp - 0xf0]
mov edi, dword [ebp - 0x40]
jmp 0x419461
mov edi, eax
add edi, 4
mov ecx, dword [eax + 4]
mov dword [ebp - 0xf0], ecx
mov dword [eax + 4], 0
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0xdc], edx
mov dword [eax + 0x18], 7
mov dword [eax + 0x14], 0
mov word [edi], 0
mov ecx, dword [ebp - 0x390]
cmp ecx, 8
jb 0x4194ab
mov eax, dword [ebp - 0x3a4]
lea ecx, [ecx + ecx + 2]
cmp ecx, 0x1000
jb 0x4194a3
mov eax, dword [eax - 4]
mov dword [esp], eax
call fcn.0051a4c8
cmp dword [ebp - 0xdc], 7
jbe 0x4194ba
mov esi, dword [ebp - 0xf0]
mov dword [ebp - 0x74], 4
lea eax, [ebp - 0x3a8]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.DLL_FindFirstFileW
sub esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x41981d
lea esi, [ebp - 0x37c]
nop word cs:[eax + eax]
test byte [ebp - 0x3a8], 0x10
jne 0x4197db
mov dword [ebp - 0x120], 7
mov dword [ebp - 0x124], 0
mov word [ebp - 0x134], 0
cmp word [ebp - 0x37c], 0
je 0x419532
mov dword [esp], esi
call fcn.005243e8
jmp 0x419534
xor eax, eax
mov dword [ebp - 0x74], 5
mov dword [esp + 8], eax
mov dword [esp + 4], esi
lea eax, [ebp - 0x138]
mov dword [esp], eax
call fcn.0041cd04
mov dword [ebp - 0x74], 6
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0xd8]
mov dword [esp], eax
call fcn.0041906c
mov dword [ebp - 0x74], 7
lea eax, [ebp - 0xd8]
mov dword [esp], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x53be02
call fcn.0041d05c
mov edx, eax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], 0
mov eax, dword [edx + 0x18]
cmp eax, 7
ja 0x4195f4
mov ecx, dword [edx + 0x14]
mov esi, edx
add esi, 4
inc ecx
je 0x419606
mov dword [ebp - 0x74], 8
mov dword [esp + 8], ecx
mov dword [ebp - 0xf8], esi
mov dword [esp + 4], esi
lea eax, [ebp - 0x38]
mov dword [esp], eax
mov dword [ebp - 0x40], edx
call fcn.00524aac
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x18]
mov esi, dword [ebp - 0xf8]
jmp 0x419606
mov esi, edx
add esi, 4
mov ecx, dword [edx + 4]
mov dword [ebp - 0x38], ecx
mov dword [edx + 4], 0
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
mov dword [edx + 0x18], 7
mov dword [edx + 0x14], 0
mov word [esi], 0
mov dword [ebp - 0x74], 9
lea eax, [ebp - 0x138]
mov dword [esp + 8], eax
lea eax, [ebp - 0x3c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x154]
mov dword [esp], eax
call fcn.00418c20
mov ecx, dword [ebp - 0x24]
cmp ecx, 8
jb 0x41966a
mov eax, dword [ebp - 0x38]
lea ecx, [ecx + ecx + 2]
cmp ecx, 0x1000
jb 0x419662
mov eax, dword [eax - 4]
mov dword [esp], eax
call fcn.0051a4c8
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], 0
mov ecx, dword [ebp - 0xc0]
cmp ecx, 8
jb 0x4196a6
mov eax, dword [ebp - 0xd4]
lea ecx, [ecx + ecx + 2]
cmp ecx, 0x1000
jb 0x41969e
mov eax, dword [eax - 4]
mov dword [esp], eax
call fcn.0051a4c8
mov dword [ebp - 0x74], 0xa
lea eax, [ebp - 0x154]
mov dword [esp + 4], eax
lea eax, [ebp - 0xd8]
mov dword [esp], eax
call fcn.00418e90
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x74], 0xb
mov dword [esp + 4], eax
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call fcn.00403830
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x74], 0xc
lea ecx, [ebp - 0x3c]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00419d84
mov ecx, dword [ebp - 0x24]
cmp ecx, 0x10
jb 0x419731
mov eax, dword [ebp - 0x38]
inc ecx
cmp ecx, 0x1000
jb 0x419729
mov eax, dword [eax - 4]
mov dword [esp], eax
call fcn.0051a4c8
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
cmp dword [ebp - 0x14], 0
je 0x41978b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xcc]
sub ecx, eax
cmp ecx, 0x1000
mov eax, dword [ebp - 0x14]
jb 0x419765
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 4]
mov dword [esp], eax
call fcn.0051a4c8
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0
mov ecx, dword [ebp - 0x13c]
cmp ecx, 8
jb 0x4197b3
mov eax, dword [ebp - 0x150]
lea ecx, [ecx + ecx + 2]
cmp ecx, 0x1000
jb 0x4197ab
mov eax, dword [eax - 4]
mov dword [esp], eax
call fcn.0051a4c8
mov ecx, dword [ebp - 0x120]
cmp ecx, 8
jb 0x4197db
mov eax, dword [ebp - 0x134]
lea ecx, [ecx + ecx + 2]
cmp ecx, 0x1000
jb 0x4197d3
mov eax, dword [eax - 4]
mov dword [esp], eax
call fcn.0051a4c8
mov dword [ebp - 0x74], 0xd
lea eax, [ebp - 0x3a8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.KERNEL32.DLL_FindNextFileW
sub esp, 8
test eax, eax
lea esi, [ebp - 0x37c]
jne 0x4194f4
mov dword [ebp - 0x74], 0xe
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.KERNEL32.DLL_FindClose
sub esp, 4
mov ecx, dword [ebp - 0xdc]
cmp ecx, 8
jb 0x419845
mov eax, dword [ebp - 0xf0]
lea ecx, [ecx + ecx + 2]
cmp ecx, 0x1000
jb 0x41983d
mov eax, dword [eax - 4]
mov dword [esp], eax
call fcn.0051a4c8
lea eax, [ebp - 0x7c]
mov dword [esp], eax
call fcn.005353d6
mov eax, dword [ebp + 8]
add esp, 0x3ac
pop esi
pop edi
pop ebx
pop ebp
ret