Function at 0x40f050
Capabilities:
Check if file exists
Copy file
Create directory
Encode data using xor
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503965
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1cc
push esi
push edi
mov byte [ebp - 0xe], cl
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
mov byte [ebp - 4], 4
xor ecx, ecx
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x18], 0x7027b
mov word [ebp - 0x14], 0x100
lea eax, [ecx + 0x27]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 4
jb 0x40f0d6
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x13], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f0f0
sub ecx, edx
mov eax, closesocket
mov edx, dword [ebp + 0x18]
sub eax, edx
cmp eax, ecx
jb 0x40f654
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x80]
call fcn.0046d850
mov ecx, dword [ebp - 0x50]
cmp ecx, 0x10
jb 0x40f15d
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f153
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f65f
push ecx
push edx
call fcn.004dd0b2
add esp, 8
movups xmm1, xmmword [ebp - 0x80]
lea ecx, [ebp - 0x64]
movq xmm0, qword [ebp - 0x70]
movd eax, xmm1
movq qword [ebp - 0x54], xmm0
cmp dword [ebp - 0x50], 0x10
movups xmmword [ebp - 0x64], xmm1
cmovae ecx, eax
lea eax, [ebp - 0x1d8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, 0xffffffff
je 0x40f4e5
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop
cmp byte [ebp - 0x1ac], 0x2e
je 0x40f4be
cmp dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x3c], 0
cmovae eax, dword [ebp - 0x4c]
mov byte [eax], 0
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 0x10
mov dword [ebp - 0x24], 0
cmovae eax, dword [ebp - 0x34]
mov byte [eax], 0
mov eax, closesocket
mov ecx, dword [ebp + 0x18]
sub eax, ecx
cmp eax, 1
jb 0x40f654
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 1
cmovae eax, dword [ebp + 8]
push 0x520800
push ecx
push eax
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x80]
call fcn.0046d850
lea eax, [ebp - 0x1ac]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x80]
call fcn.00465b20
lea ecx, [ebp - 0x4c]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x98], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x98]
push eax
movq qword [ebp - 0x88], xmm0
call fcn.00465c90
mov ecx, dword [ebp - 0x84]
cmp ecx, 0x10
jb 0x40f28e
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f284
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f65f
push ecx
push edx
call fcn.004dd0b2
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0x10
jb 0x40f2c6
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f2bc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f65f
push ecx
push edx
call fcn.004dd0b2
add esp, 8
mov ecx, dword [ebp + 0x30]
mov eax, closesocket
sub eax, ecx
cmp eax, 1
jb 0x40f654
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push 1
cmovae eax, dword [ebp + 0x20]
push 0x520800
push ecx
push eax
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x80]
call fcn.0046d850
lea eax, [ebp - 0x1ac]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x80]
call fcn.00465b20
lea ecx, [ebp - 0x34]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x98], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x98]
push eax
movq qword [ebp - 0x88], xmm0
call fcn.00465c90
mov ecx, dword [ebp - 0x84]
cmp ecx, 0x10
jb 0x40f37d
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f373
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f65f
push ecx
push edx
call fcn.004dd0b2
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0x10
jb 0x40f3b5
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f3ab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f65f
push ecx
push edx
call fcn.004dd0b2
add esp, 8
test byte [ebp - 0x1d8], 0x10
je 0x40f496
cmp dword [ebp - 0x20], 0x10
lea esi, [ebp - 0x34]
push 0x536240
cmovae esi, dword [ebp - 0x34]
call fcn.004dc3b3
add esp, 4
test eax, eax
jne 0x40f659
test esi, esi
je 0x40f42c
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f3f0
sub ecx, edx
je 0x40f42c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40f41d
call edi
cmp eax, 0x44
je 0x40f41d
cmp eax, 0x20
je 0x40f41d
cmp eax, 0x45
je 0x40f41d
cmp eax, 0x24
jne 0x40f42c
push 0x536240
call fcn.004dc3c4
add esp, 4
jmp 0x40f455
push 0x536240
call fcn.004dc3c4
add esp, 4
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 0x10
cmovae eax, dword [ebp - 0x34]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40f4f6
sub esp, 0x18
mov byte [ebp - 0xd], 1
lea eax, [ebp - 0x34]
mov dword [ebp - 0x68], esp
mov ecx, esp
push eax
call fcn.00465e10
sub esp, 0x18
mov byte [ebp - 4], 7
lea eax, [ebp - 0x4c]
mov ecx, esp
push eax
call fcn.00465e10
mov cl, byte [ebp - 0xd]
mov byte [ebp - 4], 4
call fcn.0040f050
mov esi, eax
add esp, 0x30
test esi, esi
jne 0x40f4fe
mov esi, dword [ebp - 0x1c]
jmp 0x40f4ba
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x34]
push 0
cmovae ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 0x10
push ecx
cmovae eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40f4f6
mov byte [ebp - 0xd], 1
lea eax, [ebp - 0x1d8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x40f1a0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call edi
mov esi, eax
cmp esi, 0x12
jne 0x40f4fe
cmp byte [ebp - 0xe], 0
jne 0x40f4fc
cmp byte [ebp - 0xd], 0
jne 0x40f4fc
or esi, 0xffffffff
jmp 0x40f4fe
call edi
mov esi, eax
jmp 0x40f4fe
xor esi, esi
mov ecx, dword [ebp - 0x50]
cmp ecx, 0x10
jb 0x40f532
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f528
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f65f
push ecx
push edx
call fcn.004dd0b2
add esp, 8
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
cmp ecx, 0x10
jb 0x40f578
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f56e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f65f
push ecx
push edx
call fcn.004dd0b2
add esp, 8
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp ecx, 0x10
jb 0x40f5be
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f5b4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f65f
push ecx
push edx
call fcn.004dd0b2
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp ecx, 0x10
jb 0x40f600
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f5f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f65f
push ecx
push edx
call fcn.004dd0b2
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x40f642
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f638
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f65f
push ecx
push edx
call fcn.004dd0b2
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00402040
push eax
call fcn.004dc05c
call fcn.004e2350
int3