Function at 0x41aa40
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fcfbb
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x52c1c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.policywaitstart.
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x70]
xor bl, bl
push eax
call fcn.004025e0
push str.policy_running
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004025e0
push eax
mov byte [ebp - 4], 2
call fcn.00423820
add esp, 0x1c
mov byte [ebp - 4], 1
test al, al
mov eax, dword [ebp - 0x2c]
sete bh
cmp eax, 0x10
jb 0x41aaca
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00423630
test bh, bh
je 0x41ab06
push str.policy_running
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004025e0
push eax
mov byte [ebp - 4], 3
call fcn.00423550
mov eax, dword [ebp - 0x2c]
add esp, 0x10
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x41ab06
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00423630
push 0x140
lea eax, [ebp - 0x1c8]
push 0
push eax
call fcn.004d8600
add esp, 0xc
lea ecx, [ebp - 0x1c8]
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41ad65
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
nop word [eax + eax]
test dword [ebp - 0x1c8], 0x400
jne 0x41ad48
push 0x504d9c
lea eax, [ebp - 0x19c]
push eax
call esi
test eax, eax
je 0x41ad48
push 0x504da0
lea eax, [ebp - 0x19c]
push eax
call esi
test eax, eax
je 0x41ad48
test byte [ebp - 0x1c8], 0x10
je 0x41ad48
push str.policywaitstart_
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004025e0
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00402580
add esp, 0x18
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 6
cmp eax, 0x10
jb 0x41abdf
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00423630
push str.policy_running_
lea eax, [ebp + 8]
mov dword [ebp - 0x44], 0xf
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x48], 0
push eax
mov byte [ebp - 0x58], 0
call fcn.004025e0
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 7
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402580
add esp, 0x18
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 9
cmp eax, 0x10
jb 0x41ac34
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00423630
cmp dword [ebp - 0x74], 0x10
lea eax, [ebp - 0x88]
mov dword [ebp - 0x2c], 0xf
cmovae eax, dword [ebp - 0x88]
push eax
push str.start_taskid___s_n
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.0041e1f0
lea eax, [ebp - 0x28]
push eax
call fcn.00423820
add esp, 0xc
test al, al
je 0x41ad15
lea eax, [ebp - 0x28]
push eax
push str.DeleteDir:
push 0x531bb0
call fcn.004018f0
add esp, 8
push eax
call fcn.004015e0
push eax
call fcn.00404d50
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.StartPolicy_DeleteDir:_s_n
call fcn.0041e1f0
push ecx
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x41acc9
mov eax, dword [ecx]
jmp 0x41accb
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.00422170
lea eax, [ebp - 0x58]
push eax
call fcn.0041d310
add esp, 0x1c
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xa
jb 0x41acf3
mov eax, dword [eax]
push eax
call fcn.004b6920
mov eax, dword [ebp - 0x44]
add esp, 4
mov byte [ebp - 4], 9
cmp eax, 8
jb 0x41ad15
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004237a0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004b78e0
add esp, 8
test al, al
je 0x41adc2
lea ecx, [ebp - 0x28]
mov bl, 1
call fcn.00415140
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], bl
call fcn.00415140
lea eax, [ebp - 0x1c8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41ab50
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
movzx esi, bl
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x41ad7d
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00423630
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
cmp ecx, 0x10
jb 0x41ada4
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00423630
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bedf5
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
push eax
push str.Failed_to_move_file.
push 0x531bb0
call fcn.004018f0
add esp, 8
push eax
call fcn.004015e0
push eax
call fcn.00404d50
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.Failed_to_move_file:_s_n
call fcn.0041e1f0
mov eax, dword [ebp - 0x14]
add esp, 0x14
cmp eax, 0x10
jb 0x41ae12
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00423630
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x41ae3f
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00423630
xor esi, esi
jmp 0x41ad68