Function at 0x652250
Capabilities:
Copy file
Create directory
Enumerate files on windows
Set file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x747bde
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x3b8
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x33d], dl
mov byte [ebp - 0x33e], cl
mov dword [ebp - 0x344], 0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov byte [ebp - 4], 2
xorps xmm0, xmm0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], eax
push 8
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
call fcn.006d0976
lea ecx, [ebp - 0x50]
add esp, 4
mov dword [eax + 4], 0
mov dword [ebp - 0x50], eax
mov dword [eax], ecx
mov byte [ebp - 4], 3
xorps xmm0, xmm0
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x54], 0
push 8
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
call fcn.006d0976
lea ecx, [ebp - 0x64]
add esp, 4
mov dword [eax + 4], 0
mov dword [ebp - 0x64], eax
mov dword [eax], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
xor eax, eax
mov byte [ebp - 4], 5
push eax
push 0x799430
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 7
mov word [ebp - 0xe8], ax
call fcn.00426d40
cmp byte [ebp - 0x33d], 0
mov byte [ebp - 4], 6
je 0x6523d4
lea ecx, [ebx + 8]
call fcn.006519c0
lea ecx, [ebx + 0x20]
call fcn.006519c0
push 4
push 0x8061bc
lea ecx, [ebp - 0xe8]
call fcn.00426d40
cmp dword [ebx + 0x1c], 8
lea eax, [ebx + 8]
cmovae eax, dword [ebx + 8]
push eax
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x364]
push eax
call fcn.0048f950
add esp, 0xc
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 7
call fcn.0054e650
lea ecx, [ebp - 0x364]
mov byte [ebp - 4], 6
call fcn.00426ce0
cmp dword [ebx + 0x34], 8
lea eax, [ebx + 0x20]
cmovae eax, dword [ebx + 0x20]
push eax
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x364]
push eax
call fcn.0048f950
add esp, 0xc
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 8
call fcn.0054e650
lea ecx, [ebp - 0x364]
mov byte [ebp - 4], 6
call fcn.00426ce0
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
cmp esi, edi
je 0x652471
nop word [eax + eax]
mov ecx, esi
call fcn.00426ce0
add esi, 0x18
cmp esi, edi
jne 0x652460
mov esi, dword [ebp - 0x3c]
cmp dword [ebx + 0x34], 8
lea eax, [ebx + 0x20]
mov dword [ebp - 0x38], esi
cmovae eax, dword [ebx + 0x20]
push eax
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x364]
push eax
call fcn.0048f950
add esp, 0xc
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 0x34]
je 0x6524d9
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
add dword [ebp - 0x38], 0x18
jmp 0x6524e3
push eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0050b3c0
lea ecx, [ebp - 0x364]
call fcn.00426ce0
xor eax, eax
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 7
mov word [ebp - 0xd0], ax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x652d90
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x50]
add eax, ecx
lea esi, [ebp - 0x64]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x6c], eax
dec ecx
dec eax
and ecx, eax
mov eax, dword [edx + 4]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0xd0]
cmp ecx, eax
je 0x65256f
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x652560
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0xd0]
call fcn.00426d40
mov eax, dword [ebp - 0x58]
add eax, dword [ebp - 0x54]
mov ecx, dword [esi + 8]
mov dword [ebp - 0x6c], eax
dec ecx
dec eax
and ecx, eax
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0xb8]
cmp ecx, eax
je 0x6525a8
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x652599
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0xb8]
call fcn.00426d40
push 0x79a7b0
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0048f950
add esp, 0xc
push 1
push 0x7a15b8
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.0044a2e0
mov edi, dword [ebp - 0x344]
xor ecx, ecx
or edi, 1
mov dword [ebp - 0x344], edi
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x37c], xmm0
movq xmm0, qword [eax + 0x10]
mov word [eax], cx
lea ecx, [ebp - 0xa0]
movq qword [ebp - 0x70], xmm0
movq qword [ebp - 0x36c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.00426ce0
movups xmm0, xmmword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x36c], 0
lea ecx, [ebp - 0x37c]
mov dword [ebp - 0x368], 7
movups xmmword [ebp - 0xa0], xmm0
mov word [ebp - 0x37c], ax
movq xmm0, qword [ebp - 0x70]
movq qword [ebp - 0x90], xmm0
call fcn.00426ce0
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xb
call fcn.00426ce0
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
dec eax
mov edx, dword [ebp - 0x48]
add ecx, eax
mov eax, dword [ebp - 0x4c]
dec edx
and edx, ecx
mov ecx, dword [eax + edx*4]
call fcn.00426ce0
sub dword [ebp - 0x40], 1
mov ecx, 0
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x5c]
cmove eax, ecx
mov ecx, dword [ebp - 0x54]
dec edx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x58]
dec eax
add ecx, eax
mov eax, dword [ebp - 0x60]
and edx, ecx
mov ecx, dword [eax + edx*4]
call fcn.00426ce0
sub dword [ebp - 0x54], 1
mov ecx, 0
mov eax, dword [ebp - 0x58]
cmove eax, ecx
cmp dword [ebp - 0x8c], 8
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x338]
lea eax, [ebp - 0xa0]
cmovae eax, dword [ebp - 0xa0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x348], eax
cmp eax, 0xffffffff
je 0x652d87
mov esi, eax
nop dword [eax]
mov edx, str..__
lea ecx, [ebp - 0x30c]
nop dword [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x652736
test ax, ax
je 0x652732
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x652736
add ecx, 4
add edx, 4
test ax, ax
jne 0x652710
xor eax, eax
jmp 0x65273b
sbb eax, eax
or eax, 1
test eax, eax
je 0x652d0f
mov eax, 0x7ea604
lea ecx, [ebp - 0x30c]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x652776
test dx, dx
je 0x652772
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x652776
add ecx, 4
add eax, 4
test dx, dx
jne 0x652750
xor eax, eax
jmp 0x65277b
sbb eax, eax
or eax, 1
test eax, eax
je 0x652d0f
test byte [ebp - 0x338], 0x10
lea eax, [ebp - 0xd0]
push 0x79a7b0
push eax
je 0x652a7c
lea eax, [ebp - 0x88]
push eax
call fcn.0048f950
add esp, 0xc
mov edx, eax
lea ecx, [ebp - 0x30c]
mov byte [ebp - 4], 0xd
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6527c0
sub ecx, esi
lea eax, [ebp - 0x30c]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.0044a2e0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x394], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x384], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x394]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x50]
call fcn.0054e650
lea ecx, [ebp - 0x394]
call fcn.00426ce0
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xb
call fcn.00426ce0
push 0x79a7b0
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0048f950
add esp, 0xc
mov edx, eax
lea ecx, [ebp - 0x30c]
mov byte [ebp - 4], 0xf
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x652860
sub ecx, esi
lea eax, [ebp - 0x30c]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.0044a2e0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x364], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x354], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x364]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x64]
call fcn.0054e650
lea ecx, [ebp - 0x364]
call fcn.00426ce0
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xb
call fcn.00426ce0
push 0x79a7b0
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0048f950
add esp, 0xc
mov edx, eax
lea ecx, [ebp - 0x30c]
mov byte [ebp - 4], 0x11
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x652900
sub ecx, esi
lea eax, [ebp - 0x30c]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.0044a2e0
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 0x1c], 0
or edi, 0xe
mov dword [ebp - 0x344], edi
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x20], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0x13
call fcn.00426ce0
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0
cmovae eax, dword [ebp - 0x30]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp byte [ebp - 0x33e], 0
je 0x652a21
cmp eax, 5
jne 0x652a21
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0x44
cmovae eax, dword [ebp - 0x30]
xor edi, edi
push edi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x34c], edi
mov dword [ebp - 0x33c], 0x44
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x652d3c
lea eax, [ebp - 0x33c]
push eax
push esi
push edi
push 0x1a
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x6529f8
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x34c]
push eax
sub esp, 0x14
push esi
call fcn.0054f900
mov edi, dword [ebp - 0x34c]
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
jne 0x652d3c
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push edi
cmovae eax, dword [ebp - 0x30]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edi, dword [ebp - 0x344]
test eax, eax
je 0x652a35
cmp eax, 0xb7
je 0x652a35
cmp eax, 0x50
jne 0x652d3c
cmp dword [ebp - 0x20], 0
je 0x652a74
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0
cmovae eax, dword [ebp - 0x30]
push 0xa0000080
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x652a74
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x30]
jmp 0x652d00
lea eax, [ebp - 0x3ac]
push eax
call fcn.0048f950
add esp, 0xc
mov edx, eax
lea ecx, [ebp - 0x30c]
mov byte [ebp - 4], 0x14
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x652aa0
sub ecx, esi
lea eax, [ebp - 0x30c]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.0044a2e0
mov dword [ebp - 0x78], 0
xor ecx, ecx
mov dword [ebp - 0x74], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x88], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x78], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x3ac]
mov byte [ebp - 4], 0x16
call fcn.00426ce0
push 0x79a7b0
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x3c4]
push eax
call fcn.0048f950
add esp, 0xc
mov edx, eax
lea ecx, [ebp - 0x30c]
mov byte [ebp - 4], 0x17
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x652b30
sub ecx, esi
lea eax, [ebp - 0x30c]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.0044a2e0
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 0x1c], 0
or edi, 0x30
mov dword [ebp - 0x344], edi
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x20], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x3c4]
mov byte [ebp - 4], 0x19
call fcn.00426ce0
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x30]
push 0
cmovae ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x88]
cmp dword [ebp - 0x74], 8
push ecx
cmovae eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne cl
mov byte [ebp - 0x33d], cl
test eax, eax
jne 0x652c97
cmp byte [ebp - 0x33e], al
je 0x652c97
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x652c83
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0x44
cmovae eax, dword [ebp - 0x30]
xor edi, edi
push edi
mov dword [ebp - 0x33c], eax
mov dword [ebp - 0x34c], edi
mov dword [ebp - 0x6c], 0x44
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x652c8b
lea eax, [ebp - 0x6c]
push eax
push esi
push edi
push 0x1a
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x652c4c
mov ecx, dword [ebp - 0x33c]
lea eax, [ebp - 0x34c]
push eax
sub esp, 0x14
push esi
call fcn.0054f900
mov edi, dword [ebp - 0x34c]
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
jne 0x652c8b
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x30]
push edi
cmovae ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x88]
cmp dword [ebp - 0x74], 8
push ecx
cmovae eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne cl
jmp 0x652c91
mov cl, byte [ebp - 0x33d]
jmp 0x652c97
mov cl, byte [ebp - 0x33d]
mov edi, dword [ebp - 0x344]
test cl, cl
je 0x652d59
cmp dword [ebp - 0x20], 0
je 0x652cde
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0
cmovae eax, dword [ebp - 0x30]
push 0xa0000080
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x652cde
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x30]
call fcn.00426ce0
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xb
call fcn.00426ce0
mov esi, dword [ebp - 0x348]
lea eax, [ebp - 0x338]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x652700
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
cmp eax, 0x12
jne 0x652d81
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x652526
push dword [ebp - 0x348]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x30]
call fcn.00426ce0
mov byte [ebp - 0x33d], 0
jmp 0x652d97
push dword [ebp - 0x348]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x30]
call fcn.00426ce0
lea ecx, [ebp - 0x88]
call fcn.00426ce0
mov byte [ebp - 0x33d], 0
jmp 0x652d97
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 0x33d], 0
jmp 0x652d97
mov byte [ebp - 0x33d], 1
lea ecx, [ebp - 0xb8]
call fcn.00426ce0
lea ecx, [ebp - 0xd0]
call fcn.00426ce0
lea ecx, [ebp - 0xe8]
call fcn.00426ce0
lea ecx, [ebp - 0x3c]
call fcn.00449880
lea ecx, [ebp - 0x64]
call fcn.0054e6f0
lea ecx, [ebp - 0x50]
call fcn.0054e6f0
lea ecx, [ebp - 0xa0]
call fcn.00426ce0
lea ecx, [ebx + 8]
call fcn.00426ce0
lea ecx, [ebx + 0x20]
call fcn.00426ce0
mov al, byte [ebp - 0x33d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret