Function at 0x401120
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d76e
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x414004]
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
mov edx, dword [ebp + 8]
xor ebx, ebx
mov edi, edx
mov dword [ebp - 0x29c], ebx
xor eax, eax
mov dword [ebp - 0x2a8], edx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x401174
sub edi, ecx
sar edi, 1
cmp edi, 7
ja 0x4011ba
lea esi, [edi + edi]
mov dword [ebp - 0x18], edi
push esi
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.004031c0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x28], ax
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x294], esi
mov dword [ebp - 0x2a4], ecx
jmp 0x40122a
cmp edi, 0x7ffffffe
ja 0x4016ae
mov esi, edi
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4011da
mov esi, 0x7ffffffe
jmp 0x4011e4
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x294], esi
push eax
lea ecx, [ebp - 0x28]
call fcn.004016f0
mov dword [ebp - 0x14], esi
lea esi, [edi + edi]
push esi
push dword [ebp - 0x2a8]
mov dword [ebp - 0x2a4], eax
push eax
mov dword [ebp - 0x18], edi
call fcn.00402c40
mov ecx, dword [ebp - 0x2a4]
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x28], ecx
mov word [esi + ecx], ax
mov esi, dword [ebp - 0x294]
lea eax, [edi - 1]
mov dword [ebp - 4], 0
cmp edi, eax
jbe 0x4016b3
cmp edi, esi
jae 0x40125b
lea eax, [edi + 1]
cmp esi, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, ecx
mov dword [eax + edi*2], 0x5c
jmp 0x40133a
mov edx, 0x7ffffffe
mov eax, edx
sub eax, edi
cmp eax, 1
jb 0x4016b8
lea ecx, [edi + 1]
or ecx, 7
cmp ecx, edx
jbe 0x40127b
mov ecx, edx
jmp 0x401293
mov eax, esi
shr eax, 1
sub edx, eax
cmp esi, edx
jbe 0x40128c
mov ecx, 0x7ffffffe
jmp 0x401293
add eax, esi
cmp ecx, eax
cmovb ecx, eax
lea eax, [ecx + 1]
mov dword [ebp - 0x2a0], ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004016f0
lea ecx, [edi + 1]
mov dword [ebp - 0x29c], eax
cmp esi, 8
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x2a0]
lea esi, [edi + edi]
mov dword [ebp - 0x14], ecx
push esi
jb 0x40131d
mov edi, dword [ebp - 0x2a4]
push edi
push eax
call fcn.00402c40
mov eax, dword [ebp - 0x29c]
add esp, 0xc
mov dword [esi + eax], 0x5c
mov eax, dword [ebp - 0x294]
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x40130b
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4016bd
push ecx
push edi
call fcn.00401c76
mov eax, dword [ebp - 0x29c]
add esp, 8
jmp 0x401337
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.00402c40
mov eax, dword [ebp - 0x29c]
add esp, 0xc
mov dword [esi + eax], 0x5c
mov dword [ebp - 0x28], eax
push 0x40e170
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c0]
push eax
call section..text
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x40135a
mov eax, dword [eax]
lea ecx, [ebp - 0x290]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x2ac]
mov esi, eax
mov dword [ebp - 0x294], esi
cmp edx, 8
jb 0x4013b0
mov ecx, dword [ebp - 0x2c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4013a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4016c2
push edx
push ecx
call fcn.00401c76
add esp, 8
xor eax, eax
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 7
mov word [ebp - 0x2c0], ax
cmp esi, 0xffffffff
je 0x40165c
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov edi, dword [ebp - 0x294]
test byte [ebp - 0x290], 0x10
je 0x401454
push 0x40e178
lea eax, [ebp - 0x264]
push eax
call esi
test eax, eax
je 0x401633
push 0x40e17c
lea eax, [ebp - 0x264]
push eax
call esi
test eax, eax
je 0x401633
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call section..text
add esp, 0xc
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 1
jb 0x40143a
mov eax, dword [eax]
push eax
call fcn.00401120
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004010c0
jmp 0x401633
xor eax, eax
mov byte [ebp - 4], 2
or ebx, 1
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
mov dword [ebp - 0x29c], ebx
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401480
mov esi, dword [ebp - 0x18]
sub ecx, edx
sar ecx, 1
lea eax, [esi + ecx]
push eax
lea ecx, [ebp - 0x40]
call fcn.004018f0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.00401760
lea ecx, [ebp - 0x264]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4014c0
sub ecx, edx
lea eax, [ebp - 0x264]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00401760
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x2c]
test eax, eax
mov byte [ebp - 4], 0
sete al
and ebx, 0xfffffffe
mov byte [ebp - 0x295], al
mov edi, ebx
cmp edx, 8
jb 0x401545
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401535
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4016bd
push edx
push ecx
call fcn.00401c76
mov al, byte [ebp - 0x295]
add esp, 8
test al, al
je 0x401627
xor eax, eax
mov byte [ebp - 4], 3
or ebx, 2
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
mov dword [ebp - 0x29c], ebx
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401577
mov esi, dword [ebp - 0x18]
sub ecx, edx
sar ecx, 1
lea eax, [esi + ecx]
push eax
lea ecx, [ebp - 0x40]
call fcn.004018f0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.00401760
lea ecx, [ebp - 0x264]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4015b3
sub ecx, edx
lea eax, [ebp - 0x264]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00401760
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x2c]
mov ebx, edi
and ebx, 0xfffffffd
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x401627
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40161d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4016bd
push edx
push ecx
call fcn.00401c76
add esp, 8
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov edi, dword [ebp - 0x294]
lea eax, [ebp - 0x290]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4013e2
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x2a8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x401692
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401688
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4016c7
push edx
push ecx
call fcn.00401c76
add esp, 8
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.00401c84
mov esp, ebp
pop ebp
ret
call fcn.004016d0
call fcn.004016e0
call fcn.004016d0
call fcn.004053c9
call fcn.004053c9
call fcn.004053c9
int3