Function at 0x4108f0
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 0x51e690
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c8
push esi
push edi
mov byte [ebp - 0xe], cl
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
mov byte [ebp - 4], 4
xor ecx, ecx
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x3d], 0xc4c3c6b7
movq qword [ebp - 0x39], xmm0
mov byte [ebp - 0x31], 0
nop
lea eax, [ecx - 0x15]
xor byte [ebp + ecx - 0x3d], al
inc ecx
cmp ecx, 4
jb 0x410980
mov dword [0x558588], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x3d]
mov byte [ebp - 0x39], 0
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x50], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x4c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4109b2
sub ecx, edx
lea eax, [ebp - 0x3d]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.00402b20
mov byte [ebp - 4], 5
lea edx, [ebp - 0x60]
cmp dword [ebp - 0x4c], 0x10
cmovae edx, dword [ebp - 0x60]
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4109e0
sub ecx, esi
mov eax, closesocket
mov esi, dword [ebp + 0x18]
sub eax, esi
cmp eax, ecx
jb 0x410f4f
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
push edx
push esi
push eax
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x48]
call fcn.00487550
mov ecx, dword [ebp - 0x7c]
cmp ecx, 0x10
jb 0x410a4d
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410a43
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410f54
push ecx
push edx
call fcn.004f7c11
add esp, 8
movups xmm0, xmmword [ebp - 0x48]
movups xmmword [ebp - 0x90], xmm0
movq xmm0, qword [ebp - 0x38]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x4c]
movq qword [ebp - 0x80], xmm0
cmp ecx, 0x10
jb 0x410a9a
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410a90
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410f54
push ecx
push edx
call fcn.004f7c11
add esp, 8
cmp dword [ebp - 0x7c], 0x10
lea ecx, [ebp - 0x1d4]
lea eax, [ebp - 0x90]
cmovae eax, dword [ebp - 0x90]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, 0xffffffff
je 0x410dd6
nop word [eax + eax]
cmp byte [ebp - 0x1a8], 0x2e
je 0x410dab
cmp dword [ebp - 0x64], 0x10
lea eax, [ebp - 0x78]
mov dword [ebp - 0x68], 0
cmovae eax, dword [ebp - 0x78]
mov byte [eax], 0
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 0x10
mov dword [ebp - 0x20], 0
cmovae eax, dword [ebp - 0x30]
mov byte [eax], 0
mov eax, closesocket
mov ecx, dword [ebp + 0x18]
sub eax, ecx
cmp eax, 1
jb 0x410f4f
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 1
cmovae eax, dword [ebp + 8]
push 0x53e91c
push ecx
push eax
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x48]
call fcn.00487550
lea eax, [ebp - 0x1a8]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x48]
call fcn.0047f7d0
lea ecx, [ebp - 0x78]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x60], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x60]
push eax
movq qword [ebp - 0x50], xmm0
call fcn.0047f920
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0x10
jb 0x410baf
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410ba5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410f54
push ecx
push edx
call fcn.004f7c11
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x410be7
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410bdd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410f54
push ecx
push edx
call fcn.004f7c11
add esp, 8
mov ecx, dword [ebp + 0x30]
mov eax, closesocket
sub eax, ecx
cmp eax, 1
jb 0x410f4f
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push 1
cmovae eax, dword [ebp + 0x20]
push 0x53e91c
push ecx
push eax
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x48]
call fcn.00487550
lea eax, [ebp - 0x1a8]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x48]
call fcn.0047f7d0
lea ecx, [ebp - 0x30]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x60], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x60]
push eax
movq qword [ebp - 0x50], xmm0
call fcn.0047f920
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0x10
jb 0x410c8f
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410c85
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410f54
push ecx
push edx
call fcn.004f7c11
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x410cc7
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410cbd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410f54
push ecx
push edx
call fcn.004f7c11
add esp, 8
test byte [ebp - 0x1d4], 0x10
je 0x410d83
mov esi, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
mov edi, dword [ebp - 0x30]
cmp esi, 0x10
jb 0x410ce8
mov edx, edi
test edx, edx
je 0x410d28
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410cf0
sub ecx, dword [ebp - 0x18]
je 0x410d28
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x410d42
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x44
je 0x410d42
cmp eax, 0x20
je 0x410d42
cmp eax, 0x45
je 0x410d42
cmp eax, 0x24
je 0x410d42
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x30]
cmp esi, 0x10
lea eax, [ebp - 0x30]
push 0
cmovae eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x410de7
sub esp, 0x18
mov byte [ebp - 0xd], 1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x18], esp
mov ecx, esp
push eax
call fcn.0047faa0
sub esp, 0x18
mov byte [ebp - 4], 8
lea eax, [ebp - 0x78]
mov ecx, esp
push eax
call fcn.0047faa0
mov cl, byte [ebp - 0xd]
mov byte [ebp - 4], 4
call fcn.004108f0
mov esi, eax
add esp, 0x30
test esi, esi
jne 0x410df3
mov edi, dword [ebp - 0x14]
jmp 0x410da7
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x30]
push 0
cmovae ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x78]
cmp dword [ebp - 0x64], 0x10
push ecx
cmovae eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x410de7
mov byte [ebp - 0xd], 1
lea eax, [ebp - 0x1d4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x410ad0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
jne 0x410df3
cmp byte [ebp - 0xe], 0
jne 0x410df1
cmp byte [ebp - 0xd], 0
jne 0x410df1
or esi, 0xffffffff
jmp 0x410df3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x410df3
xor esi, esi
mov ecx, dword [ebp - 0x7c]
cmp ecx, 0x10
jb 0x410e2a
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410e20
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410f54
push ecx
push edx
call fcn.004f7c11
add esp, 8
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
cmp ecx, 0x10
jb 0x410e73
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410e69
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410f54
push ecx
push edx
call fcn.004f7c11
add esp, 8
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp ecx, 0x10
jb 0x410eb9
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410eaf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410f54
push ecx
push edx
call fcn.004f7c11
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
cmp ecx, 0x10
jb 0x410efb
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410ef1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410f54
push ecx
push edx
call fcn.004f7c11
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 0x410f3d
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410f33
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410f54
push ecx
push edx
call fcn.004f7c11
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.00402390
call fcn.004fceb0
int3