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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506297
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x264
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x64], esi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
mov dword [ebp - 4], eax
push 0x104
push eax
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x20], 1
push eax
call fcn.004e1ab0
add esp, 0xc
lea eax, [ebp - 0x16c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40c4da
mov dword [ebp - 0x18], 0xb5d2a4
xor ecx, ecx
mov byte [ebp - 0x14], 1
lea eax, [ecx - 0x19]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 3
jb 0x40c233
xor eax, eax
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
lea edx, [ecx + 1]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c260
sub ecx, edx
lea eax, [ebp - 0x18]
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.00402ea0
mov dword [ebp - 4], 1
sub esp, 0x18
mov edx, esp
mov word [ebp - 0xf], 0x3a
xor eax, eax
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0xf]
mov dword [ebp - 0x68], esp
lea edi, [ecx + 1]
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c2a8
sub ecx, edi
lea eax, [ebp - 0xf]
push ecx
push eax
mov ecx, edx
call fcn.00402ea0
mov byte [ebp - 4], 2
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x18], esp
xor eax, eax
lea ecx, [ebp - 0x16c]
lea edi, [ecx + 1]
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c2e5
sub ecx, edi
lea eax, [ebp - 0x16c]
push ecx
push eax
mov ecx, edx
call fcn.00402ea0
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.0040b920
add esp, 0x30
mov byte [ebp - 4], 4
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x60]
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40c3f2
mov dword [ebp - 0x1c], 0x100b4dd
xor ecx, ecx
lea esp, [esp]
lea eax, [ecx - 0x19]
xor byte [ebp + ecx - 0x1c], al
inc ecx
cmp ecx, 2
jb 0x40c340
mov byte [ebp - 0x19], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
mov edx, dword [edi + 0x10]
lea ebx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c360
mov eax, closesocket
sub ecx, ebx
sub eax, edx
cmp eax, ecx
jb 0x40c4ed
cmp dword [edi + 0x14], 0xf
jbe 0x40c380
mov edi, dword [edi]
push ecx
lea eax, [ebp - 0x1c]
push eax
push edx
push edi
push ecx
push dword [ebp - 0x17]
lea ecx, [ebp - 0x54]
call fcn.00470ea0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x20], 3
call fcn.00402c80
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
mov eax, 3
mov dword [ebp - 0x20], eax
and eax, 0xfffffffd
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
call fcn.00402c80
cmp dword [ebp - 0x24], 0xf
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0
jbe 0x40c405
mov eax, dword [ebp - 0x38]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x40c488
push 0x104
lea eax, [ebp - 0x270]
push 0
push eax
call fcn.004e1ab0
add esp, 0xc
mov dword [ebp - 0x10], 0x100b0c2
xor ecx, ecx
nop
lea eax, [ecx - 0x19]
xor byte [ebp + ecx - 0x10], al
inc ecx
cmp ecx, 2
jb 0x40c440
push dword [ebp - 0x3c]
lea eax, [ebp - 0x10]
mov byte [ebp - 0xd], 0
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.00403220
lea ecx, [ebp - 0x270]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c470
sub ecx, edx
lea eax, [ebp - 0x270]
push ecx
push eax
mov ecx, esi
call fcn.00468880
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.0046ac50
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x40c4c8
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c4be
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c4f2
push ecx
push edx
call fcn.004dfaf3
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004025a0
call fcn.004e4d70
int3