Function at 0x402600
Capabilities:
Get disk information
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x134]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40264c
lea eax, [ebp - 0x134]
push 0x5c
push eax
call fcn.00406930
add esp, 8
test eax, eax
je 0x4026a9
mov byte [eax], 0
push 0x4276bc
lea eax, [ebp - 0x260]
push 0x104
push eax
call fcn.00409703
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x260]
push 0x104
push eax
call fcn.0040975d
push 0x4276c0
lea eax, [ebp - 0x260]
push 0x104
push eax
call fcn.0040975d
push str.ultravnc.ini
lea eax, [ebp - 0x260]
push 0x104
push eax
call fcn.0040975d
add esp, 0x30
push ebx
push esi
push edi
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov al, byte [ebp - 0x15c]
add al, byte [ebp - 0x148]
add al, byte [ebp - 0x144]
push 0
push 0
push 0
push 0
mov byte [ebp - 0x261], al
lea eax, [ebp - 0x138]
push eax
push 0
push 0
push 0x427780
mov dword [ebp - 0x138], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 0x138]
lea edi, [ebp - 0x20]
mov ecx, eax
xorps xmm0, xmm0
shr ecx, 0x10
add cl, al
xor eax, eax
mov dword [ebp - 0x270], ecx
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
movups xmmword [ebp - 0x20], xmm0
pop ebx
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov ebx, dword [ebp - 0x18]
mov eax, ebx
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
sar eax, 0x10
sar edi, 0x10
add edi, eax
sar edx, 0x10
mov eax, dword [ebp - 0x1c]
sar eax, 0x10
add eax, dword [ebp - 0x14]
add eax, edi
mov dword [ebp - 0x138], 0
add edx, eax
add edx, ebx
add edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x20]
movzx eax, dx
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x144]
add eax, dword [ebp - 0x148]
add eax, dword [ebp - 0x15c]
push 0
push 0
push 0
shr eax, 8
push 0
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x138]
push eax
push 0
push 0
push 0x427780
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [ebp - 0x138]
xorps xmm0, xmm0
shr ecx, 0x10
add ecx, dword [ebp - 0x138]
shr ecx, 8
mov dword [ebp - 0x138], ecx
movups xmmword [ebp - 0x20], xmm0
xor eax, eax
lea edi, [ebp - 0x20]
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
mov cl, byte [ebp - 0x261]
mov dword [edi + 0xc], edx
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
sar eax, 0x10
sar edi, 0x10
add edi, eax
sar edx, 0x10
mov eax, dword [ebp - 0x1c]
sar eax, 0x10
add eax, dword [ebp - 0x14]
add eax, edi
mov byte [0x42ba68], cl
mov ecx, dword [ebp - 0x270]
add edx, eax
add edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x20]
mov byte [0x42ba69], cl
mov ecx, dword [ebp - 0x274]
movzx eax, dx
shr eax, 8
mov byte [0x42ba6a], cl
mov ecx, dword [ebp - 0x268]
mov byte [0x42ba6d], al
mov eax, dword [ebp + 8]
mov byte [0x42ba6b], cl
mov ecx, dword [ebp - 0x138]
mov byte [str.NX_a_], cl
mov word [0x42ba6e], 0x758
movq qword [ebp - 0x10], xmm0
mov byte [ebp - 8], 0
movq qword [0x42cc38], xmm0
movq qword [0x42cc44], xmm0
cmp eax, 2
jne 0x402921
mov esi, dword [ebp - 0x26c]
push dword [esi + 4]
push 9
push 0x42cc38
call fcn.00409703
add esp, 0xc
mov eax, str._secure
mov ecx, 0x42cc38
nop word [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4028c0
test dl, dl
je 0x4028bc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4028c0
add ecx, 2
add eax, 2
test dl, dl
jne 0x4028a0
xor eax, eax
jmp 0x4028c5
sbb eax, eax
or eax, 1
test eax, eax
je 0x402a0b
mov ecx, 0x42cc38
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4028d5
sub ecx, edx
je 0x402a10
push 0
lea edx, [ebp - 0x10]
call fcn.00402510
add esp, 4
lea eax, [ebp - 0x260]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push str.passwd
push str.UltraVNC
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004032e5
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x402a0b
mov esi, dword [ebp - 0x26c]
push dword [esi + 4]
push 9
push 0x42cc44
call fcn.00409703
add esp, 0xc
mov ecx, str._secure
mov eax, 0x42cc44
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402970
test dl, dl
je 0x40296c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402970
add eax, 2
add ecx, 2
test dl, dl
jne 0x402950
xor eax, eax
jmp 0x402975
sbb eax, eax
or eax, 1
test eax, eax
jne 0x402a0b
push dword [esi + 8]
push 9
push 0x42cc38
call fcn.00409703
mov ecx, 0x42cc38
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402997
sub ecx, edx
je 0x402a10
push 1
lea edx, [ebp - 0x10]
call fcn.00402510
push 1
lea eax, [ebp - 0x30]
push 0x4276d4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x30]
push eax
push str.Secure
push str.admin
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 0x260]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push str.passwd
push str.UltraVNC
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004032e5
mov esp, ebp
pop ebp
ret
call fcn.00402bc0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004032e5
mov esp, ebp
pop ebp
ret