Function at 0x411420
Capabilities:
Access peb ldr_data
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get common file path
Get kernel32 base address
Move file
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x49eae2
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x2ac]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x2bc]
lea eax, [esp + 0x18]
xor esi, esi
push eax
mov dword [esp + 0x30], esi
call fcn.00406d60
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x3c]
push edx
mov ebx, 0x4a93a0
mov dword [esp + 0x2bc], esi
call fcn.00412200
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x54]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov dword [esp + 0x24], esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4114c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
jne 0x4114d3
mov esi, 1
jmp 0x411a2e
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea esp, [esp]
test byte [esp + 0x54], 0x10
je 0x411603
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x4a93a4
lea ecx, [esp + 0x84]
push ecx
call esi
test eax, eax
je 0x4119ff
push 0x4a93a8
lea edx, [esp + 0x84]
push edx
call esi
test eax, eax
je 0x4119ff
xor edi, edi
mov esi, 0x4c2260
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x84]
push ecx
call fcn.0047e0cc
add esp, 8
test eax, eax
jne 0x411540
lea edi, [eax + 1]
add esi, 4
cmp esi, 0x4c2270
jl 0x411526
test edi, edi
jne 0x4119ff
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x4c]
push eax
lea ebx, [esp + 0x88]
call fcn.00412200
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ebx, 0x4a93b0
mov byte [esp + 0x2c4], 1
call fcn.00412200
mov edx, dword [esp + 0x2d4]
mov ecx, dword [esp + 0x2d0]
push edx
mov byte [esp + 0x2c8], 2
mov eax, dword [eax]
push ecx
push eax
call fcn.00411420
mov esi, eax
mov byte [esp + 0x2d0], 1
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
add esp, 0x1c
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4115ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2b4], 0
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4115f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x411a1f
jmp 0x4119ff
xor edi, edi
mov esi, 0x4c2270
lea ebx, [ebx]
mov ecx, dword [esi]
push ecx
lea edx, [esp + 0x84]
push edx
call fcn.0047e0cc
add esp, 8
test eax, eax
jne 0x41162a
lea edi, [eax + 1]
add esi, 4
cmp esi, 0x4c2278
jl 0x411610
test edi, edi
jne 0x4119ff
cmp dword [esp + 0x2c0], edi
je 0x41170e
lea eax, [esp + 0x80]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411654
sub eax, edx
sar eax, 1
cmp eax, 4
jle 0x41170e
lea eax, [esp + eax*2 + 0x78]
push 0x4a93b4
push eax
call fcn.0047e0cc
add esp, 8
test eax, eax
jne 0x41170e
lea esi, [esp + 0x20]
call fcn.00411b70
lea eax, [esp + 0x80]
mov byte [esp + 0x2b4], 3
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4116a1
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00412690
mov esi, dword [esp + 0x20]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4116ea
cmp dword [esp + 0x2c4], eax
je 0x4116ea
push 4
push eax
push esi
call ebp
lea eax, [esi - 0x10]
mov byte [esp + 0x2b4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41170e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x44]
push edx
lea ebx, [esp + 0x88]
call fcn.00412200
mov eax, dword [eax]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411752
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x54]
push edx
lea ebx, [esp + 0x88]
call fcn.00412200
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411796
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x4119ff
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x84]
call fcn.00406d60
lea edx, [esp + 0x28]
push edx
lea eax, [esi + 4]
lea ecx, [esp + 0x38]
mov byte [esp + 0x2b8], 4
call fcn.00412120
mov eax, dword [eax]
mov ecx, 0x4a93c0
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4117f6
test dx, dx
je 0x4117f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4117f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4117d0
xor eax, eax
jmp 0x4117fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x34]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411820
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x411995
mov edx, dword [0x4c45ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x4c45ac
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov byte [esp + 0x2b4], 5
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
jge 0x41186d
mov ecx, 0x105
lea eax, [esp + 0x1c]
call fcn.00407630
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push esi
push 0
push 0x4a93cc
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0047e15f
add esp, 8
test eax, eax
jl 0x411a8e
cmp eax, dword [esi - 8]
jg 0x411a8e
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
test edi, edi
jne 0x4118d1
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x80]
push eax
push ecx
push str._s_s.tmp
lea edi, [esp + 0x28]
call fcn.004128d0
mov esi, dword [esp + 0x28]
add esp, 0xc
jmp 0x4118d8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x40]
push eax
lea ebx, [esp + 0x88]
call fcn.00412200
mov eax, dword [eax]
push esi
push eax
call fcn.0047e17e
mov edi, eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41191c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x411936
push 4
push edi
push esi
call ebp
mov byte [esp + 0x2b4], 4
lea eax, [esi - 0x10]
jmp 0x4119be
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x2c4], 0
je 0x411988
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x48]
push edx
lea ebx, [esp + 0x88]
call fcn.00412200
mov eax, dword [eax]
add esp, 8
push 4
push 0
push eax
call ebp
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411988
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2b4], 4
lea eax, [esi - 0x10]
jmp 0x4119be
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x50]
push edx
lea ebx, [esp + 0x88]
call fcn.00412200
mov eax, dword [eax]
add esp, 8
push 4
push 0
push eax
call ebp
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4119d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2b4], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4119ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x54]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4114e0
mov dword [esp + 0x2c], 1
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [esp + 0x2b4], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411a64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x2ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.0047cee5
add esp, 0x2a4
ret
push 0x80070057
call fcn.00402890
int3