Function at 0x40e8c0
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 0x52198e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x280
push esi
mov esi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x18], 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 - 0x188]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x18], 1
call fcn.004fd0d0
add esp, 0xc
lea eax, [ebp - 0x188]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40ee40
xorps xmm0, xmm0
mov word [ebp - 0x25], 0xb2c4
mov byte [ebp - 0x23], 0xd5
xor ecx, ecx
movq qword [ebp - 0x22], xmm0
mov word [ebp - 0x1a], 0
nop dword [eax]
lea eax, [ecx - 0x79]
xor byte [ebp + ecx - 0x25], al
inc ecx
cmp ecx, 3
jb 0x40e980
mov dword [0x55d590], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x25]
mov byte [ebp - 0x22], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x34], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e9b2
sub ecx, edx
lea eax, [ebp - 0x25]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00402b80
mov dword [ebp - 0x18], 3
mov dword [ebp - 4], 1
lea edx, [ebp - 0x48]
cmp dword [ebp - 0x34], 0x10
xorps xmm0, xmm0
movups xmmword [ebp - 0x6c], xmm0
cmovae edx, dword [ebp - 0x48]
mov ecx, edx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
lea edi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ea00
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x6c]
call fcn.00402b80
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x40ea4b
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ea41
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ee5f
push ecx
push edx
call fcn.004fb0f1
add esp, 8
xorps xmm0, xmm0
mov byte [ebp - 0x23], 0xbd
movq qword [ebp - 0x22], xmm0
xor ecx, ecx
mov word [ebp - 0x1a], 0
nop
lea eax, [ecx - 0x79]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 1
jb 0x40ea60
mov dword [0x55d620], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x23]
mov byte [ebp - 0x22], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x34], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ea92
sub ecx, edx
lea eax, [ebp - 0x23]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00402b80
mov edi, 7
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 4
lea edx, [ebp - 0x48]
cmp dword [ebp - 0x34], 0x10
xorps xmm0, xmm0
cmovae edx, dword [ebp - 0x48]
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x54], esp
mov ecx, edx
mov dword [ebp - 0x14], eax
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x4c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40eae6
sub ecx, dword [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x14]
push edx
call fcn.00402b80
sub esp, 0x18
mov byte [ebp - 4], 5
mov edx, esp
lea ecx, [ebp - 0x188]
xorps xmm0, xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40eb23
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x188]
push ecx
push eax
mov ecx, edx
call fcn.00402b80
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 4
call fcn.0040e070
add esp, 0x30
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x40eb83
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40eb79
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ee5f
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov ecx, dword [ebp - 0x74]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x78]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40ecde
xorps xmm0, xmm0
mov word [ebp - 0x24], 0xd4bd
movq qword [ebp - 0x22], xmm0
xor ecx, ecx
mov word [ebp - 0x1a], 0
lea eax, [ecx - 0x79]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 2
jb 0x40ebb6
mov dword [0x55d598], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x22], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x34], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ebe8
sub ecx, edx
lea eax, [ebp - 0x24]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00402b80
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 4], 8
lea edi, [ebp - 0x48]
cmp dword [ebp - 0x34], 0x10
mov edx, dword [ebp - 0x78]
cmovae edi, dword [ebp - 0x48]
mov ecx, edi
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x4c], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ec25
sub ecx, dword [ebp - 0x14]
mov eax, closesocket
sub eax, dword [ebp - 0x4c]
cmp eax, ecx
jb 0x40ee55
cmp dword [edx + 0x14], 0x10
jb 0x40ec47
mov edx, dword [edx]
push ecx
push edi
push dword [ebp - 0x4c]
push edx
push ecx
push dword [ebp - 0x54]
lea ecx, [ebp - 0x30]
call fcn.0048aa20
mov ecx, dword [ebp - 0x58]
mov edi, 0x1f
mov dword [ebp - 0x18], edi
cmp ecx, 0x10
jb 0x40ec94
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ec8a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, edi
ja 0x40ee5f
push ecx
push edx
call fcn.004fb0f1
add esp, 8
movups xmm0, xmmword [ebp - 0x30]
movups xmmword [ebp - 0x6c], xmm0
movq xmm0, qword [ebp - 0x20]
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x34]
movq qword [ebp - 0x5c], xmm0
cmp ecx, 0x10
jb 0x40ecde
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ecd4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ee5f
push ecx
push edx
call fcn.004fb0f1
add esp, 8
cmp dword [ebp - 0x58], 0x10
lea ecx, [ebp - 0x50]
push 0
push 0
push 0
push 0
push ecx
push 0
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x50], 0
cmovae eax, dword [ebp - 0x6c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x40ee08
push 0x104
lea eax, [ebp - 0x290]
push 0
push eax
call fcn.004fd0d0
mov eax, dword [ebp - 0x50]
xorps xmm0, xmm0
add esp, 0xc
mov dword [ebp - 0x14], eax
mov word [ebp - 0x24], 0xd0a2
xor ecx, ecx
movq qword [ebp - 0x22], xmm0
mov word [ebp - 0x1a], 0
lea eax, [ecx - 0x79]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 2
jb 0x40ed41
mov dword [0x55d598], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x22], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x34], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ed73
sub ecx, edx
lea eax, [ebp - 0x24]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00402b80
push dword [ebp - 0x14]
or edi, 0x20
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x34], 0x10
mov dword [ebp - 0x18], edi
cmovae eax, dword [ebp - 0x48]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.00403090
mov ecx, dword [ebp - 0x34]
add esp, 0xc
cmp ecx, 0x10
jb 0x40ede1
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40edd7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ee5a
push ecx
push edx
call fcn.004fb0f1
add esp, 8
lea ecx, [ebp - 0x290]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40edf0
sub ecx, edx
lea eax, [ebp - 0x290]
push ecx
push eax
mov ecx, esi
call fcn.00482bf0
lea ecx, [ebp - 0x78]
call fcn.00485200
mov ecx, dword [ebp - 0x58]
cmp ecx, 0x10
jb 0x40ee40
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ee36
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ee5f
push ecx
push edx
call fcn.004fb0f1
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.004023f0
call fcn.00500390
call fcn.00500390
int3