Function at 0x40c6c0
Capabilities:
Encode data using xor
Get common file path
Get disk information

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 0x5026c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x268
push esi
mov esi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x20], 0
push edi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
push 0x104
lea eax, [ebp - 0x170]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x20], 1
call fcn.004ddfe0
add esp, 0xc
lea eax, [ebp - 0x170]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40c9f0
mov dword [ebp - 0x1c], 0x4d2a4c
xor ecx, ecx
mov byte [ebp - 0x18], 1
lea eax, [ecx + 0xf]
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 3
jb 0x40c770
xorps xmm0, xmm0
mov byte [ebp - 0x18], 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x28], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c7a0
sub ecx, edx
lea eax, [ebp - 0x1c]
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402810
sub esp, 0x18
mov dword [ebp - 4], 1
mov edx, esp
mov word [ebp - 0x13], 0x3a
xorps xmm0, xmm0
mov byte [ebp - 0x11], 0
lea ecx, [ebp - 0x13]
mov dword [ebp - 0x1c], esp
lea edi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c7f0
sub ecx, edi
lea eax, [ebp - 0x13]
push ecx
push eax
mov ecx, edx
call fcn.00402810
sub esp, 0x18
mov byte [ebp - 4], 2
mov edx, esp
lea ecx, [ebp - 0x170]
xorps xmm0, xmm0
lea edi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c830
sub ecx, edi
lea eax, [ebp - 0x170]
push ecx
push eax
mov ecx, edx
call fcn.00402810
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.0040be70
add esp, 0x30
mov byte [ebp - 4], 3
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x4c]
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40c921
mov dword [ebp - 0x14], 0x1004c35
xor ecx, ecx
lea eax, [ecx + 0xf]
xor byte [ebp + ecx - 0x14], al
inc ecx
cmp ecx, 2
jb 0x40c883
mov edx, dword [edi + 0x10]
lea ecx, [ebp - 0x14]
lea eax, [ecx + 1]
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x1c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c8a0
sub ecx, dword [ebp - 0x1c]
mov eax, closesocket
sub eax, edx
cmp eax, ecx
jb 0x40ca05
cmp dword [edi + 0x14], 0x10
jb 0x40c8c1
mov edi, dword [edi]
push ecx
lea eax, [ebp - 0x14]
push eax
push edx
push edi
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x64]
call fcn.0046c8f0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x20], 3
cmp ecx, 0x10
jb 0x40c90f
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c905
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ca0a
push ecx
push edx
call fcn.004dc002
add esp, 8
movups xmm0, xmmword [ebp - 0x64]
movups xmmword [ebp - 0x3c], xmm0
movq xmm0, qword [ebp - 0x54]
movq qword [ebp - 0x2c], xmm0
cmp dword [ebp - 0x28], 0x10
lea ecx, [ebp - 0x24]
push 0
push 0
push 0
push 0
push ecx
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x24], 0
cmovae eax, dword [ebp - 0x3c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x40c9b8
push 0x104
lea eax, [ebp - 0x278]
push 0
push eax
call fcn.004ddfe0
add esp, 0xc
mov dword [ebp - 0x14], 0x100482a
xor ecx, ecx
nop dword [eax]
lea eax, [ecx + 0xf]
xor byte [ebp + ecx - 0x14], al
inc ecx
cmp ecx, 2
jb 0x40c970
push dword [ebp - 0x24]
lea eax, [ebp - 0x14]
mov byte [ebp - 0x11], 0
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.00402cc0
lea ecx, [ebp - 0x278]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c9a0
sub ecx, edx
lea eax, [ebp - 0x278]
push ecx
push eax
mov ecx, esi
call fcn.00464c20
lea ecx, [ebp - 0x4c]
call fcn.00467220
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x40c9f0
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c9e6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ca0a
push ecx
push edx
call fcn.004dc002
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
mov esp, ebx
pop ebx
ret
call fcn.00402040
call fcn.004e12a0
int3