Function at 0x402820
Capabilities:
Create directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a73a
mov eax, dword fs:[0]
push eax
sub esp, 0x384
mov eax, dword [0x4213d4]
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 eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push 0x41e264
push eax
mov dword [ebp - 0x34c], eax
lea eax, [ebp - 0xf0]
push eax
mov dword [ebp - 0x344], ecx
mov dword [ebp - 0x348], edx
call fcn.00408040
add esp, 0xc
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xf0]
mov edi, 8
cmp dword [ebp - 0xdc], edi
jae 0x40289e
lea eax, [ebp - 0xf0]
lea ecx, [ebp - 0x340]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x374], esi
cmp esi, 0xffffffff
jne 0x4028d7
cmp dword [ebp - 0xdc], edi
jb 0x4028d0
mov edx, dword [ebp - 0xf0]
push edx
call fcn.0040a478
add esp, 4
xor al, al
jmp 0x402fde
lea eax, [ebp - 0x340]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x402fbd
xor ecx, ecx
lea eax, [ebp - 0x314]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], cx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402910
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x314]
lea esi, [ebp - 0x48]
call fcn.00405560
mov byte [ebp - 4], 1
test byte [ebp - 0x340], 0x10
je 0x402c77
mov esi, dword [ebp - 0x38]
mov edx, esi
cmp esi, 2
jb 0x40294e
mov edx, 2
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x48]
cmp edi, 8
jae 0x40295c
lea ecx, [ebp - 0x48]
mov eax, 0x41e26c
test edx, edx
je 0x402980
mov bx, word [ecx]
cmp bx, word [eax]
jne 0x402978
add ecx, 2
add eax, 2
dec edx
jne 0x402965
jmp 0x402980
sbb eax, eax
and eax, 0xfffffffe
inc eax
jne 0x402992
cmp esi, 2
jae 0x40298a
or eax, 0xffffffff
jmp 0x402992
xor eax, eax
cmp esi, 2
setne al
test eax, eax
sete al
test al, al
je 0x4029b1
mov byte [ebp - 4], 0
cmp edi, 8
jb 0x402fa1
mov eax, dword [ebp - 0x48]
push eax
jmp 0x402f99
mov ecx, dword [ebp - 0x344]
push 0x41e274
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.00408040
add esp, 0xc
mov ecx, eax
lea eax, [ebp - 0x48]
lea ebx, [ebp - 0xb8]
mov byte [ebp - 4], 2
call fcn.00408130
mov edi, 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0x18], edi
jb 0x4029f7
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040a478
add esp, 4
mov eax, 7
xor esi, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x35c], eax
xor ecx, ecx
push esi
lea eax, [ebp - 0xb8]
mov word [ebp - 0x2c], cx
xor edx, edx
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x370]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x360], esi
mov word [ebp - 0x370], dx
call fcn.00405460
lea ecx, [ebp - 0x94]
push 1
mov edx, ecx
push edx
mov dword [ebp - 0x38c], 0xc
mov dword [ebp - 0x384], esi
mov dword [ebp - 0x388], ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov eax, dword [ebp - 0x388]
push esi
push esi
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov eax, dword [ebp - 0x370]
cmp dword [ebp - 0x35c], edi
jae 0x402a81
lea eax, [ebp - 0x370]
lea ecx, [ebp - 0x38c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp - 0x35c], edi
jb 0x402aa6
mov edx, dword [ebp - 0x370]
push edx
call fcn.0040a478
add esp, 4
mov eax, dword [ebp - 0x348]
push 0x41e274
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.00408040
add esp, 0xc
mov ecx, eax
lea eax, [ebp - 0x48]
lea ebx, [ebp - 0xd4]
mov byte [ebp - 4], 5
call fcn.00408130
mov ebx, 7
mov edi, 8
mov byte [ebp - 4], bl
cmp dword [ebp - 0x6c], edi
jb 0x402af0
mov edx, dword [ebp - 0x80]
push edx
call fcn.0040a478
add esp, 4
xor esi, esi
xor eax, eax
xor ecx, ecx
push esi
lea edx, [ebp - 0xd4]
mov word [ebp - 0x80], ax
mov word [ebp - 0x370], cx
push edx
or eax, 0xffffffff
lea ecx, [ebp - 0x370]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x35c], ebx
mov dword [ebp - 0x360], esi
call fcn.00405460
lea eax, [ebp - 0x94]
push 1
mov ecx, eax
push ecx
mov dword [ebp - 0x380], 0xc
mov dword [ebp - 0x378], esi
mov dword [ebp - 0x37c], eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov edx, dword [ebp - 0x37c]
push esi
push esi
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov eax, dword [ebp - 0x370]
cmp dword [ebp - 0x35c], edi
jae 0x402b75
lea eax, [ebp - 0x370]
lea ecx, [ebp - 0x380]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp - 0x35c], edi
jb 0x402b9a
mov edx, dword [ebp - 0x370]
push edx
call fcn.0040a478
add esp, 4
mov eax, dword [ebp - 0x34c]
push 0x41e274
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00408040
add esp, 0xc
mov ecx, eax
lea eax, [ebp - 0x48]
lea ebx, [ebp - 0x64]
mov byte [ebp - 4], 8
call fcn.00408130
mov esi, 8
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x18], esi
jb 0x402bdd
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0040a478
add esp, 4
mov ecx, dword [ebp + 0x14]
push ecx
xor eax, eax
lea edx, [ebp - 0xd4]
mov word [ebp - 0x2c], ax
push edx
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x64]
mov edi, 7
xor ebx, ebx
push ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
call fcn.00402820
add esp, 0x10
cmp dword [ebp - 0x50], esi
jb 0x402c1f
mov edx, dword [ebp - 0x64]
push edx
call fcn.0040a478
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
cmp dword [ebp - 0xc0], esi
jb 0x402c42
mov ecx, dword [ebp - 0xd4]
push ecx
call fcn.0040a478
add esp, 4
xor edx, edx
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xc4], ebx
mov word [ebp - 0xd4], dx
cmp dword [ebp - 0xa4], esi
jb 0x402f8d
mov eax, dword [ebp - 0xb8]
push eax
call fcn.0040a478
add esp, 4
jmp 0x402f8d
mov ecx, dword [ebp - 0x348]
push 0x41e274
push ecx
lea edx, [ebp - 0xb8]
push edx
call fcn.00408040
add esp, 0xc
mov ecx, eax
lea eax, [ebp - 0x48]
lea ebx, [ebp - 0x64]
mov byte [ebp - 4], 0xb
call fcn.00408130
mov esi, eax
mov eax, dword [ebp - 0x344]
push 0x41e274
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 0xc
call fcn.00408040
add esp, 0xc
mov ecx, eax
lea eax, [ebp - 0x48]
lea ebx, [ebp - 0x80]
mov byte [ebp - 4], 0xd
call fcn.00408130
mov ebx, 8
cmp dword [esi + 0x14], ebx
jb 0x402cde
mov esi, dword [esi]
cmp dword [eax + 0x14], ebx
jb 0x402ce5
mov eax, dword [eax]
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 0x6c], ebx
jb 0x402d00
mov edx, dword [ebp - 0x80]
push edx
call fcn.0040a478
add esp, 4
xor edi, edi
xor eax, eax
mov esi, 7
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], edi
mov word [ebp - 0x80], ax
cmp dword [ebp - 0x18], ebx
jb 0x402d24
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0040a478
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x50], ebx
jb 0x402d41
mov eax, dword [ebp - 0x64]
push eax
call fcn.0040a478
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], cx
cmp dword [ebp - 0xa4], ebx
jb 0x402d68
mov edx, dword [ebp - 0xb8]
push edx
call fcn.0040a478
add esp, 4
mov eax, dword [ebp - 0x344]
push 0x41e274
push eax
lea ecx, [ebp - 0xb8]
push ecx
call fcn.00408040
add esp, 0xc
mov ecx, eax
lea eax, [ebp - 0x48]
lea ebx, [ebp - 0x64]
mov byte [ebp - 4], 0xe
call fcn.00408130
mov esi, eax
mov edx, dword [ebp - 0x34c]
push 0x41e274
push edx
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0xf
call fcn.00408040
add esp, 0xc
mov ecx, eax
lea eax, [ebp - 0x48]
lea ebx, [ebp - 0x80]
mov byte [ebp - 4], 0x10
call fcn.00408130
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x402dcf
mov esi, dword [esi]
cmp dword [eax + 0x14], edi
jb 0x402dd6
mov eax, dword [eax]
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 0x6c], edi
jb 0x402df1
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.0040a478
add esp, 4
xor ebx, ebx
xor edx, edx
mov esi, 7
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
cmp dword [ebp - 0x18], edi
jb 0x402e15
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040a478
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x50], edi
jb 0x402e32
mov edx, dword [ebp - 0x64]
push edx
call fcn.0040a478
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
cmp dword [ebp - 0xa4], edi
jb 0x402e59
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.0040a478
add esp, 4
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x9c]
call fcn.00401aa0
mov byte [ebp - 4], 0x11
mov esi, dword [ebp - 0x8c]
mov edx, esi
cmp esi, 3
jb 0x402e7d
mov edx, 3
mov ecx, dword [ebp - 0x9c]
cmp dword [ebp - 0x88], edi
jae 0x402e91
lea ecx, [ebp - 0x9c]
mov eax, 0x41e278
cmp edx, ebx
jbe 0x402eb6
lea ebx, [ebx]
mov di, word [ecx]
cmp di, word [eax]
jne 0x402ec0
add ecx, 2
add eax, 2
dec edx
jne 0x402ea0
mov edi, 8
cmp esi, 3
jae 0x402ed1
or eax, 0xffffffff
jmp 0x402ed9
sbb eax, eax
and eax, 0xfffffffe
inc eax
cmp eax, ebx
je 0x402eb1
mov edi, 8
jmp 0x402ed9
xor eax, eax
cmp esi, 3
setne al
cmp eax, ebx
sete al
cmp al, bl
jne 0x402f52
mov edx, esi
cmp esi, 3
jb 0x402eee
mov edx, 3
mov ecx, dword [ebp - 0x9c]
cmp dword [ebp - 0x88], edi
jae 0x402f02
lea ecx, [ebp - 0x9c]
mov eax, 0x41e280
cmp edx, ebx
jbe 0x402f26
jmp 0x402f10
mov di, word [ecx]
cmp di, word [eax]
jne 0x402f30
add ecx, 2
add eax, 2
dec edx
jne 0x402f10
mov edi, 8
cmp esi, 3
jae 0x402f41
or eax, 0xffffffff
jmp 0x402f49
sbb eax, eax
and eax, 0xfffffffe
inc eax
cmp eax, ebx
je 0x402f21
mov edi, 8
jmp 0x402f49
xor eax, eax
cmp esi, 3
setne al
cmp eax, ebx
sete al
cmp al, bl
je 0x402f6f
push ebx
lea edx, [ebp - 0x48]
push edx
or eax, 0xffffffff
mov ecx, 0x422400
call fcn.00405460
mov eax, dword [ebp - 0x324]
mov dword [0x423670], eax
cmp dword [ebp - 0x88], edi
jb 0x402f86
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.0040a478
add esp, 4
mov esi, 8
xor ebx, ebx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], esi
jb 0x402fa1
mov edx, dword [ebp - 0x48]
push edx
call fcn.0040a478
add esp, 4
mov esi, dword [ebp - 0x374]
lea eax, [ebp - 0x340]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4028ed
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0xdc], 8
jb 0x402fdc
mov ecx, dword [ebp - 0xf0]
push ecx
call fcn.0040a478
add esp, 4
mov al, 1
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.00409cc0
mov esp, ebp
pop ebp
ret