Function at 0x40d280
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 0x51e37e
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.004f9bf0
add esp, 0xc
lea eax, [ebp - 0x188]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40d800
xorps xmm0, xmm0
mov word [ebp - 0x24], 0xd6a8
mov byte [ebp - 0x22], 0xb1
xor ecx, ecx
movq qword [ebp - 0x21], xmm0
mov byte [ebp - 0x19], 0
nop dword [eax + eax]
lea eax, [ecx - 0x15]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x40d340
mov dword [0x558540], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x21], 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 0x40d372
sub ecx, edx
lea eax, [ebp - 0x24]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00402b20
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 0x40d3c0
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x6c]
call fcn.00402b20
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x40d40b
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d401
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d81f
push ecx
push edx
call fcn.004f7c11
add esp, 8
xorps xmm0, xmm0
mov byte [ebp - 0x22], 0xd1
movq qword [ebp - 0x21], xmm0
xor ecx, ecx
mov byte [ebp - 0x19], 0
nop dword [eax]
lea eax, [ecx - 0x15]
xor byte [ebp + ecx - 0x22], al
inc ecx
cmp ecx, 1
jb 0x40d420
mov dword [0x5585d0], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x22]
mov byte [ebp - 0x21], 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 0x40d452
sub ecx, edx
lea eax, [ebp - 0x22]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00402b20
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 0x40d4a6
sub ecx, dword [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x14]
push edx
call fcn.00402b20
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 0x40d4e3
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x188]
push ecx
push eax
mov ecx, edx
call fcn.00402b20
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 4
call fcn.0040ca20
add esp, 0x30
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x40d543
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d539
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d81f
push ecx
push edx
call fcn.004f7c11
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 0x40d69c
xorps xmm0, xmm0
mov word [ebp - 0x23], 0xb0d1
movq qword [ebp - 0x21], xmm0
xor ecx, ecx
mov byte [ebp - 0x19], 0
lea eax, [ecx - 0x15]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 2
jb 0x40d574
mov dword [0x558548], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x23]
mov byte [ebp - 0x21], 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 0x40d5a6
sub ecx, edx
lea eax, [ebp - 0x23]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00402b20
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 0x40d5e3
sub ecx, dword [ebp - 0x14]
mov eax, closesocket
sub eax, dword [ebp - 0x4c]
cmp eax, ecx
jb 0x40d815
cmp dword [edx + 0x14], 0x10
jb 0x40d605
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.00487550
mov ecx, dword [ebp - 0x58]
mov edi, 0x1f
mov dword [ebp - 0x18], edi
cmp ecx, 0x10
jb 0x40d652
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d648
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, edi
ja 0x40d81f
push ecx
push edx
call fcn.004f7c11
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 0x40d69c
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d692
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d81f
push ecx
push edx
call fcn.004f7c11
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 0x40d7c8
push 0x104
lea eax, [ebp - 0x290]
push 0
push eax
call fcn.004f9bf0
mov eax, dword [ebp - 0x50]
xorps xmm0, xmm0
add esp, 0xc
mov dword [ebp - 0x14], eax
mov word [ebp - 0x23], 0xb4ce
xor ecx, ecx
movq qword [ebp - 0x21], xmm0
mov byte [ebp - 0x19], 0
nop dword [eax]
lea eax, [ecx - 0x15]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 2
jb 0x40d700
mov dword [0x558548], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x23]
mov byte [ebp - 0x21], 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 0x40d732
sub ecx, edx
lea eax, [ebp - 0x23]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00402b20
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.00402ff0
mov ecx, dword [ebp - 0x34]
add esp, 0xc
cmp ecx, 0x10
jb 0x40d7a0
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d796
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d81a
push ecx
push edx
call fcn.004f7c11
add esp, 8
lea ecx, [ebp - 0x290]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d7b0
sub ecx, edx
lea eax, [ebp - 0x290]
push ecx
push eax
mov ecx, esi
call fcn.0047f6a0
lea ecx, [ebp - 0x78]
call fcn.00481d80
mov ecx, dword [ebp - 0x58]
cmp ecx, 0x10
jb 0x40d800
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d7f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d81f
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
mov esp, ebx
pop ebx
ret
call fcn.00402390
call fcn.004fceb0
call fcn.004fceb0
int3