Function at 0x420960
Capabilities:
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x458691
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x190
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor eax, eax
push 0xa
lea ecx, [esp + 0x48]
mov dword [esp + 0x1ac], eax
mov dword [esp + 0x3c], eax
call fcn.00449a9b
mov eax, dword [0x471df4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
lea edi, [ebp + 0x48]
push str..
lea eax, [esp + 0x38]
mov bl, 7
push edi
push eax
mov byte [esp + 0x1b4], bl
call fcn.0044a61d
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1ac], 8
call fcn.0044a4c1
lea ecx, [esp + 0x34]
mov byte [esp + 0x1a8], bl
call fcn.0044a3d4
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x60]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x34], eax
je 0x420f67
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x1c]
push eax
call fcn.0044a511
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x14]
call fcn.0044a442
mov esi, eax
push 0x46a404
lea ecx, [esp + 0x34]
mov byte [esp + 0x1ac], 9
call fcn.0044a442
push eax
lea edx, [esp + 0x30]
push edi
push edx
mov byte [esp + 0x1b4], 0xa
call fcn.0044a5b7
push esi
push eax
lea eax, [esp + 0x44]
mov byte [esp + 0x1b0], 0xb
push eax
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1ac], 0xc
call fcn.0044a4c1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1a8], 0xb
call fcn.0044a3d4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1a8], 0xa
call fcn.0044a3d4
lea ecx, [esp + 0x30]
mov byte [esp + 0x1a8], 9
call fcn.0044a3d4
lea ecx, [esp + 0x10]
mov byte [esp + 0x1a8], bl
call fcn.0044a3d4
lea ecx, [esp + 0x28]
call fcn.0044a88a
push 0x46ad80
lea ecx, [esp + 0x2c]
call fcn.00449464
cmp eax, 0xffffffff
je 0x420b45
mov ecx, dword [esp + 0x1b0]
mov edx, dword [esp + 0x28]
push 0x46ac50
lea esi, [ebp + 0x70]
push 0x46ac50
push ecx
push edx
mov ecx, esi
call fcn.00413a40
test eax, eax
je 0x420b45
lea eax, [esp + 0x44]
lea edx, [esp + 0x28]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.0044a149
push 1
mov ecx, esi
call fcn.004166a0
test eax, eax
je 0x420b3b
mov eax, dword [esp + 0x50]
mov esi, 1
cmp eax, esi
je 0x420b62
jmp 0x420b45
cmp dword [ebp], 0
jne 0x420c24
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x60]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x420cad
jmp 0x420a11
lea edx, [esp + 0x28]
lea ecx, [esp + 0x20]
push edx
call fcn.0044a4c1
lea ecx, [esp + 0x20]
call fcn.0044a88a
push 0x46ad80
lea ecx, [esp + 0x24]
call fcn.00449464
cmp eax, 0xffffffff
je 0x420bbd
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
call fcn.004493ca
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1ac], 0xd
call fcn.0044a4c1
lea ecx, [esp + 0x10]
mov byte [esp + 0x1a8], bl
call fcn.0044a3d4
mov ecx, dword [esp + 0x48]
add ecx, 8
push ecx
lea ecx, [esp + 0x1c]
call fcn.0044a4c1
lea ecx, [esp + 0x18]
call fcn.0044a88a
push str..CAT
lea ecx, [esp + 0x1c]
call fcn.00449464
cmp eax, 0xffffffff
je 0x420c1b
lea edx, [esp + 0x10]
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.004493ca
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1ac], 0xe
call fcn.0044a4c1
lea ecx, [esp + 0x10]
mov byte [esp + 0x1a8], bl
call fcn.0044a3d4
mov dword [esp + 0x38], esi
jmp 0x420cad
push 0x46a404
lea ecx, [esp + 0x30]
call fcn.0044a442
push eax
lea eax, [esp + 0x34]
push edi
push eax
mov byte [esp + 0x1b4], 0xf
call fcn.0044a5b7
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
push eax
push edx
mov byte [esp + 0x1b4], 0x10
call fcn.0044a5b7
mov ecx, dword [esp + 0x1b4]
push eax
mov byte [esp + 0x1ac], 0x11
call fcn.0044a4c1
lea ecx, [esp + 0x10]
mov byte [esp + 0x1a8], 0x10
call fcn.0044a3d4
lea ecx, [esp + 0x30]
mov byte [esp + 0x1a8], 0xf
call fcn.0044a3d4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1a8], bl
call fcn.0044a3d4
mov dword [esp + 0x38], 1
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x420f67
cmp dword [ebp], 0
jne 0x420f67
lea ecx, [esp + 0x20]
push str..CAT
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0044a61d
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1ac], 0x12
call fcn.0044a4c1
lea ecx, [esp + 0x10]
mov byte [esp + 0x1a8], bl
call fcn.0044a3d4
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test al, 1
je 0x420d25
mov ecx, dword [esp + 0x14]
and al, 0xfe
push eax
push ecx
call ebp
lea edx, [esp + 0x18]
push str..CAT
lea eax, [esp + 0x14]
push edx
push eax
call fcn.0044a61d
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1ac], 0x13
call fcn.0044a4c1
lea ecx, [esp + 0x10]
mov byte [esp + 0x1a8], bl
call fcn.0044a3d4
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.0043b050
add esp, 8
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push 0x46ad80
push eax
push ecx
call fcn.0044a61d
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1ac], 0x14
call fcn.0044a4c1
lea ecx, [esp + 0x10]
mov byte [esp + 0x1a8], bl
call fcn.0044a3d4
mov edx, dword [esp + 0x14]
push edx
call esi
test al, 1
je 0x420db8
and al, 0xfe
push eax
mov eax, dword [esp + 0x18]
push eax
call ebp
lea ecx, [esp + 0x18]
push 0x46ad80
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0044a61d
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1ac], 0x15
call fcn.0044a4c1
lea ecx, [esp + 0x10]
mov byte [esp + 0x1a8], bl
call fcn.0044a3d4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.0043b050
add esp, 8
lea edx, [esp + 0x20]
lea eax, [esp + 0x10]
push str..PNF
push edx
push eax
call fcn.0044a61d
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1ac], 0x16
call fcn.0044a4c1
lea ecx, [esp + 0x10]
mov byte [esp + 0x1a8], bl
call fcn.0044a3d4
mov ecx, dword [esp + 0x14]
push ecx
call esi
test al, 1
je 0x420e4b
mov edx, dword [esp + 0x14]
and al, 0xfe
push eax
push edx
call ebp
lea eax, [esp + 0x18]
push str..PNF
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0044a61d
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x1ac], 0x17
call fcn.0044a4c1
lea ecx, [esp + 0x10]
mov byte [esp + 0x1a8], bl
call fcn.0044a3d4
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.0043b050
add esp, 8
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push 0x46ad80
push ecx
push edx
call fcn.0044a61d
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1ac], 0x18
call fcn.0044a4c1
lea ecx, [esp + 0x10]
mov byte [esp + 0x1a8], bl
call fcn.0044a3d4
push 0x5c
lea ecx, [esp + 0x20]
call fcn.00449442
cmp eax, 0xffffffff
je 0x420ee6
inc eax
lea ecx, [esp + 0x1c]
push eax
push 0
call fcn.004490eb
push 0x46a404
lea ecx, [esp + 0x30]
call fcn.0044a442
push eax
lea eax, [esp + 0x34]
push edi
push eax
mov byte [esp + 0x1b4], 0x19
call fcn.0044a5b7
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
push eax
push edx
mov byte [esp + 0x1b4], 0x1a
call fcn.0044a5b7
mov ecx, dword [esp + 0x1b4]
push eax
mov byte [esp + 0x1ac], 0x1b
call fcn.0044a4c1
lea ecx, [esp + 0x10]
mov byte [esp + 0x1a8], 0x1a
call fcn.0044a3d4
lea ecx, [esp + 0x30]
mov byte [esp + 0x1a8], 0x19
call fcn.0044a3d4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1a8], bl
call fcn.0044a3d4
lea ecx, [esp + 0x24]
mov byte [esp + 0x1a8], 6
call fcn.0044a3d4
lea ecx, [esp + 0x14]
mov byte [esp + 0x1a8], 5
call fcn.0044a3d4
lea ecx, [esp + 0x28]
mov byte [esp + 0x1a8], 4
call fcn.0044a3d4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1a8], 3
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a8], 2
call fcn.0044a3d4
lea ecx, [esp + 0x20]
mov byte [esp + 0x1a8], 1
call fcn.0044a3d4
lea ecx, [esp + 0x44]
mov byte [esp + 0x1a8], 0
call fcn.00449b0f
lea ecx, [esp + 0x1b0]
mov dword [esp + 0x1a8], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x1a0]
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x19c
ret 8