Function at 0x4259e0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x350
lea eax, [esp + 8]
push 0x104
mov dword [esp + 4], ecx
push eax
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov ecx, 0x104
lea eax, [esp + 8]
cmp byte [eax], 0
je 0x425a16
inc eax
dec ecx
jne 0x425a0b
jmp 0x425a46
test ecx, ecx
je 0x425a46
lea edx, [esp]
test edx, edx
je 0x425a2b
mov eax, 0x104
sub eax, ecx
jmp 0x425a2f
mov eax, dword [esp]
mov ecx, 0x104
push str.inf
sub ecx, eax
lea edx, [esp + eax + 0xc]
push ecx
push edx
call fcn.004057a0
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov edx, str..inf
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, 0x104
lea edi, [esp + ecx + 0x18]
mov byte [edi], 0x5c
inc edi
mov eax, edi
sub edx, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x425a7d
mov byte [eax], cl
inc eax
dec esi
jne 0x425a6e
jmp 0x425a81
test esi, esi
jne 0x425a82
dec eax
mov byte [eax], 0
lea eax, [esp + 0x220]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, dword [esp + 0x364]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x425b4c
test byte [esp + 0x220], 0x10
jne 0x425b2e
lea edx, [esp + 0x24c]
mov esi, 0x104
mov eax, edi
sub edx, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x425ad3
mov byte [eax], cl
inc eax
dec esi
jne 0x425ac4
jmp 0x425ad7
test esi, esi
jne 0x425ad8
dec eax
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
mov ecx, esi
mov byte [eax], 0
call fcn.004265a0
test eax, eax
je 0x425b14
mov ecx, dword [esp + 0x14]
inc ecx
test ebx, ebx
mov dword [esp + 0x14], ecx
je 0x425b2e
mov eax, dword [esp + 0x368]
lea ecx, [esp + 0x18]
push eax
push 4
push ecx
push esi
call ebx
test eax, eax
je 0x425b45
jmp 0x425b2e
test ebx, ebx
je 0x425b2e
mov edx, dword [esp + 0x368]
lea eax, [esp + 0x18]
push edx
push 0
push eax
push esi
call ebx
test eax, eax
je 0x425b45
lea ecx, [esp + 0x220]
push ecx
push ebp
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x425aaa
push ebp
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea edx, [esp + 0x18]
push 0x104
push edx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov ecx, 0x104
lea eax, [esp + 0x18]
cmp byte [eax], 0
je 0x425b70
inc eax
dec ecx
jne 0x425b65
jmp 0x425ba0
test ecx, ecx
je 0x425ba0
lea eax, [esp + 0x10]
test eax, eax
je 0x425b85
mov eax, 0x104
sub eax, ecx
jmp 0x425b89
mov eax, dword [esp + 0x10]
mov ecx, 0x104
push str._system32
sub ecx, eax
lea edx, [esp + eax + 0x1c]
push ecx
push edx
call fcn.004057a0
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov edx, str.msos.dll
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x104
lea esi, [esp + ecx + 0x18]
mov byte [esi], 0x5c
inc esi
mov eax, esi
sub edx, esi
mov cl, byte [edx + eax]
test cl, cl
je 0x425bd3
mov byte [eax], cl
inc eax
dec edi
jne 0x425bc4
jmp 0x425bd7
test edi, edi
jne 0x425bd8
dec eax
mov byte [eax], 0
lea eax, [esp + 0x220]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x425cbc
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
test byte [esp + 0x220], 0x10
jne 0x425c97
lea edx, [esp + 0x24c]
push str.msoss.dll
push edx
call ebx
add esp, 8
test eax, eax
je 0x425c97
lea edx, [esp + 0x24c]
mov edi, 0x104
mov eax, esi
sub edx, esi
mov cl, byte [edx + eax]
test cl, cl
je 0x425c42
mov byte [eax], cl
inc eax
dec edi
jne 0x425c33
jmp 0x425c46
test edi, edi
jne 0x425c47
dec eax
mov edi, dword [esp + 0x10]
push esi
mov ecx, edi
mov byte [eax], 0
call fcn.004268a0
test eax, eax
jne 0x425c97
lea eax, [esp + 0x18]
push 1
push eax
call fcn.00412780
add esp, 8
test eax, eax
jne 0x425c97
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x364]
inc edx
test eax, eax
mov dword [esp + 0x14], edx
je 0x425c97
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x18]
push ecx
push 4
push edx
push edi
call eax
test eax, eax
je 0x425cae
lea eax, [esp + 0x220]
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x425bff
push ebp
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov ebx, dword [esp + 0x364]
lea ecx, [esp + 0x18]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov ecx, 0x104
lea eax, [esp + 0x18]
cmp byte [eax], 0
je 0x425ce0
inc eax
dec ecx
jne 0x425cd5
jmp 0x425d10
test ecx, ecx
je 0x425d10
lea edx, [esp + 0x10]
test edx, edx
je 0x425cf5
mov eax, 0x104
sub eax, ecx
jmp 0x425cf9
mov eax, dword [esp + 0x10]
mov ecx, 0x104
push str._system32
sub ecx, eax
lea edx, [esp + eax + 0x1c]
push ecx
push edx
call fcn.004057a0
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov edx, str.msos.dat
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, 0x104
lea edi, [esp + ecx + 0x18]
mov byte [edi], 0x5c
inc edi
mov eax, edi
sub edx, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x425d43
mov byte [eax], cl
inc eax
dec esi
jne 0x425d34
jmp 0x425d47
test esi, esi
jne 0x425d48
dec eax
mov byte [eax], 0
lea eax, [esp + 0x220]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x425dee
test byte [esp + 0x220], 0x10
jne 0x425dd4
lea edx, [esp + 0x24c]
mov esi, 0x104
mov eax, edi
sub edx, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x425d92
mov byte [eax], cl
inc eax
dec esi
jne 0x425d83
jmp 0x425d96
test esi, esi
jne 0x425d97
dec eax
lea edx, [esp + 0x18]
push 1
push edx
mov byte [eax], 0
call fcn.00412780
add esp, 8
test eax, eax
jne 0x425dd4
mov ecx, dword [esp + 0x14]
inc ecx
test ebx, ebx
mov dword [esp + 0x14], ecx
je 0x425dd4
mov eax, dword [esp + 0x368]
mov edx, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push 4
push ecx
push edx
call ebx
test eax, eax
je 0x425de7
lea eax, [esp + 0x220]
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x425d69
push ebp
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea ecx, [esp + 0x11c]
push 0x104
push ecx
call ebx
lea ebp, [esp + eax + 0x11c]
mov edi, 0x431c68
mov byte [ebp], 0x5c
inc ebp
mov ecx, dword [edi]
mov esi, 0x104
mov eax, ebp
mov dl, byte [ecx]
test dl, dl
je 0x425e2c
mov byte [eax], dl
inc eax
inc ecx
dec esi
jne 0x425e1d
jmp 0x425e30
test esi, esi
jne 0x425e31
dec eax
lea edx, [esp + 0x11c]
mov byte [eax], 0
push edx
call fcn.00411e00
add esp, 4
test eax, eax
je 0x425e91
lea eax, [esp + 0x11c]
push 0
push eax
call fcn.00412780
add esp, 8
test eax, eax
jne 0x425e91
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x364]
inc edx
test eax, eax
mov dword [esp + 0x14], edx
je 0x425eb9
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x11c]
push ecx
mov ecx, dword [esp + 0x14]
push 4
push edx
push ecx
call eax
test eax, eax
je 0x425ec8
jmp 0x425eb9
mov eax, dword [esp + 0x364]
test eax, eax
je 0x425eb9
mov edx, dword [esp + 0x368]
lea ecx, [esp + 0x11c]
push edx
mov edx, dword [esp + 0x14]
push 0
push ecx
push edx
call eax
test eax, eax
je 0x425ec8
add edi, 4
cmp edi, 0x431ca4
jb 0x425e14
lea eax, [esp + 0x11c]
push 0x104
push eax
call ebx
mov byte [esp + 0x11e], 0
mov ecx, 0x104
lea eax, [esp + 0x11c]
cmp byte [eax], 0
je 0x425ef6
inc eax
dec ecx
jne 0x425eeb
jmp 0x425f29
test ecx, ecx
je 0x425f29
lea edx, [esp + 0x10]
test edx, edx
je 0x425f0b
mov eax, 0x104
sub eax, ecx
jmp 0x425f0f
mov eax, dword [esp + 0x10]
mov ecx, 0x104
push str.Program_Files
sub ecx, eax
lea edx, [esp + eax + 0x120]
push ecx
push edx
call fcn.004057a0
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x431ca4
lea ebp, [esp + ecx + 0x11c]
mov byte [ebp], 0x5c
inc ebp
xor ebx, ebx
mov ecx, dword [edi]
mov esi, 0x104
mov eax, ebp
mov dl, byte [ecx]
test dl, dl
je 0x425f65
mov byte [eax], dl
inc eax
inc ecx
dec esi
jne 0x425f56
jmp 0x425f69
test esi, esi
jne 0x425f6a
dec eax
mov byte [eax], 0
lea eax, [esp + 0x11c]
push eax
call fcn.00411e00
add esp, 4
test eax, eax
je 0x425fca
lea ecx, [esp + 0x11c]
push 0
push ecx
call fcn.00412780
add esp, 8
test eax, eax
jne 0x425fca
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x364]
inc edx
test eax, eax
mov dword [esp + 0x14], edx
je 0x425ff2
mov edx, dword [esp + 0x368]
lea ecx, [esp + 0x11c]
push edx
mov edx, dword [esp + 0x14]
push 4
push ecx
push edx
call eax
test eax, eax
je 0x426002
jmp 0x425ff2
mov eax, dword [esp + 0x364]
test eax, eax
je 0x425ff2
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x11c]
push ecx
mov ecx, dword [esp + 0x14]
push 0
push edx
push ecx
call eax
test eax, eax
je 0x426002
add edi, 4
inc ebx
cmp edi, 0x431cb4
jb 0x425f4d
lea edx, [esp + 0x11c]
push 0x104
push edx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
lea edi, [esp + eax + 0x11c]
mov byte [edi], 0x5c
inc edi
xor ebp, ebp
mov ecx, dword [ebx*4 + 0x431ca4]
mov esi, 0x104
mov eax, edi
mov dl, byte [ecx]
test dl, dl
je 0x42603f
mov byte [eax], dl
inc eax
inc ecx
dec esi
jne 0x426030
jmp 0x426043
test esi, esi
jne 0x426044
dec eax
mov byte [eax], 0
lea eax, [esp + 0x11c]
push eax
call fcn.00411e00
add esp, 4
test eax, eax
je 0x4260a4
lea ecx, [esp + 0x11c]
push 0
push ecx
call fcn.00412780
add esp, 8
test eax, eax
jne 0x4260a4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x364]
inc edx
test eax, eax
mov dword [esp + 0x14], edx
je 0x4260cc
mov edx, dword [esp + 0x368]
lea ecx, [esp + 0x11c]
push edx
mov edx, dword [esp + 0x14]
push 4
push ecx
push edx
call eax
test eax, eax
je 0x4260d6
jmp 0x4260cc
mov eax, dword [esp + 0x364]
test eax, eax
je 0x4260cc
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x11c]
push ecx
mov ecx, dword [esp + 0x14]
push 0
push edx
push ecx
call eax
test eax, eax
je 0x4260d6
inc ebp
cmp ebp, 9
jb 0x426022
lea edx, [esp + 0x18]
push 0x104
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov byte [esp + 0x1a], 0
mov ecx, 0x104
lea eax, [esp + 0x18]
cmp byte [eax], 0
je 0x4260ff
inc eax
dec ecx
jne 0x4260f4
jmp 0x42612f
test ecx, ecx
je 0x42612f
lea eax, [esp + 0x10]
test eax, eax
je 0x426114
mov eax, 0x104
sub eax, ecx
jmp 0x426118
mov eax, dword [esp + 0x10]
mov ecx, 0x104
push str.Program_FilesMicrosoft_OfficeSYSTEM
sub ecx, eax
lea edx, [esp + eax + 0x1c]
push ecx
push edx
call fcn.004057a0
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov edx, 0x450da8
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, 0x104
lea edi, [esp + ecx + 0x18]
mov byte [edi], 0x5c
inc edi
mov eax, edi
sub edx, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x426162
mov byte [eax], cl
inc eax
dec esi
jne 0x426153
jmp 0x426166
test esi, esi
jne 0x426167
dec eax
mov byte [eax], 0
lea eax, [esp + 0x220]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, dword [esp + 0x364]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x426233
test byte [esp + 0x220], 0x10
jne 0x426215
lea edx, [esp + 0x24c]
mov esi, 0x104
mov eax, edi
sub edx, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x4261b8
mov byte [eax], cl
inc eax
dec esi
jne 0x4261a9
jmp 0x4261bc
test esi, esi
jne 0x4261bd
dec eax
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x18]
push 1
push edx
mov ecx, esi
mov byte [eax], 0
call fcn.00426440
test eax, eax
je 0x4261fb
mov ecx, dword [esp + 0x14]
inc ecx
test ebx, ebx
mov dword [esp + 0x14], ecx
je 0x426215
mov eax, dword [esp + 0x368]
lea ecx, [esp + 0x18]
push eax
push 4
push ecx
push esi
call ebx
test eax, eax
je 0x42622c
jmp 0x426215
test ebx, ebx
je 0x426215
mov edx, dword [esp + 0x368]
lea eax, [esp + 0x18]
push edx
push 0
push eax
push esi
call ebx
test eax, eax
je 0x42622c
lea ecx, [esp + 0x220]
push ecx
push ebp
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x42618f
push ebp
call dword [sym.imp.KERNEL32.DLL_FindClose]
push 0
lea edx, [esp + 0x1c]
push 0x23
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x426384
mov ecx, 0x104
lea eax, [esp + 0x18]
cmp byte [eax], 0
je 0x426260
inc eax
dec ecx
jne 0x426255
jmp 0x426290
test ecx, ecx
je 0x426290
lea eax, [esp + 0x10]
test eax, eax
je 0x426275
mov eax, 0x104
sub eax, ecx
jmp 0x426279
mov eax, dword [esp + 0x10]
mov ecx, 0x104
push str.MicrosoftOFFICESystem
sub ecx, eax
lea edx, [esp + eax + 0x1c]
push ecx
push edx
call fcn.004057a0
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov edx, 0x450da8
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, 0x104
lea edi, [esp + ecx + 0x18]
mov byte [edi], 0x5c
inc edi
mov eax, edi
sub edx, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x4262c3
mov byte [eax], cl
inc eax
dec esi
jne 0x4262b4
jmp 0x4262c7
test esi, esi
jne 0x4262c8
dec eax
mov byte [eax], 0
lea eax, [esp + 0x220]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x426384
test byte [esp + 0x220], 0x10
jne 0x426366
lea edx, [esp + 0x24c]
mov esi, 0x104
mov eax, edi
sub edx, edi
mov cl, byte [edx + eax]
test cl, cl
je 0x426312
mov byte [eax], cl
inc eax
dec esi
jne 0x426303
jmp 0x426316
test esi, esi
jne 0x426317
dec eax
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x18]
push 1
push edx
mov ecx, esi
mov byte [eax], 0
call fcn.00426440
test eax, eax
je 0x42634c
test ebx, ebx
je 0x426366
mov eax, dword [esp + 0x368]
lea ecx, [esp + 0x18]
push eax
push 4
push ecx
push esi
call ebx
test eax, eax
je 0x42637d
jmp 0x426366
test ebx, ebx
je 0x426366
mov edx, dword [esp + 0x368]
lea eax, [esp + 0x18]
push edx
push 0
push eax
push esi
call ebx
test eax, eax
je 0x42637d
lea ecx, [esp + 0x220]
push ecx
push ebp
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4262e9
push ebp
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea edx, [esp + 0x18]
push 0x104
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov ecx, 0x104
lea eax, [esp + 0x18]
cmp byte [eax], 0
je 0x4263a8
inc eax
dec ecx
jne 0x42639d
jmp 0x4263d8
test ecx, ecx
je 0x4263d8
lea eax, [esp + 0x10]
test eax, eax
je 0x4263bd
mov eax, 0x104
sub eax, ecx
jmp 0x4263c1
mov eax, dword [esp + 0x10]
mov ecx, 0x104
push str._sysloader.dll
sub ecx, eax
lea edx, [esp + eax + 0x1c]
push ecx
push edx
call fcn.004057a0
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push 0
push eax
mov ecx, esi
call fcn.00426440
test eax, eax
je 0x426413
test ebx, ebx
je 0x426429
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x18]
push ecx
push 4
push edx
push esi
call ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x350
ret 8
test ebx, ebx
je 0x426429
mov eax, dword [esp + 0x368]
lea ecx, [esp + 0x18]
push eax
push 0
push ecx
push esi
call ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x350
ret 8