Function at 0x40b022
Capabilities:
Get common file path
Get disk information
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
push ebx
mov ebx, dword [ebp + 8]
push esi
lea eax, [ebx + 0x57bc]
push edi
mov edi, 0x80
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], eax
test eax, eax
je 0x40b04e
push eax
call fcn.0040aab4
jmp 0x40b050
xor al, al
test al, al
je 0x40b303
mov eax, dword [0x4201e8]
or eax, dword [0x4201ec]
jne 0x40b2f5
mov ecx, 0x100
lea eax, [ebp - 0x264]
mov byte [eax], 0
inc eax
dec ecx
jne 0x40b074
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x264]
push eax
push 6
call dword [sym.imp.Secur32.dll_GetComputerObjectNameW]
test al, al
jne 0x40b2dd
mov esi, 0x104
push esi
lea eax, [ebp - 0x674]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
mov word [ebp - 0x66e], ax
push esi
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x674]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x40b102
push 0x4c
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x46c]
push eax
mov dword [ebp - 0x1c], 0x26
call fcn.00401ab0
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
xor eax, eax
mov word [ebp + ecx*2 - 0x46c], ax
lea eax, [ebp - 0x46c]
jmp 0x40b2e3
xor ecx, ecx
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersion
mov dword [ebp - 0x24], edi
cmp ecx, eax
je 0x40b128
lea ecx, [ebp - 0x264]
push ecx
push eax
lea esi, [ebp - 0x24]
call fcn.00409ff1
test al, al
jne 0x40b2dd
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
push 8
pop ecx
push 0xffffffffffffffff
xor eax, eax
lea edi, [ebp - 0x164]
push ebx
lea esi, [ebp - 0x164]
rep stosd dword es:[edi], eax
call fcn.0040c4fa
push 8
movzx eax, ax
xor dword [ebp - 0x14], eax
pop ecx
push 0xffff
xor eax, eax
lea edi, [ebp - 0x124]
push ebx
lea esi, [ebp - 0x124]
rep stosd dword es:[edi], eax
call fcn.0040c4fa
mov ecx, dword [ebp - 0x14]
or ecx, eax
xor word [ebp - 0x10], cx
push 8
pop ecx
mov eax, 0x1234
xor word [ebp - 0xe], ax
mov ebx, 0xff
push ebx
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0xa4]
lea esi, [ebp - 0xa4]
rep stosd dword es:[edi], eax
call fcn.0040c4fa
xor byte [ebp - 0xc], al
push 8
pop ecx
push ebx
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x44]
lea esi, [ebp - 0x44]
rep stosd dword es:[edi], eax
call fcn.0040c4fa
push 8
pop ecx
add al, 0x64
xor byte [ebp - 0xb], al
push ebx
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0xe4]
lea esi, [ebp - 0xe4]
rep stosd dword es:[edi], eax
call fcn.0040c4fa
push 8
pop ecx
sub al, 0x11
xor byte [ebp - 0xa], al
push ebx
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x144]
lea esi, [ebp - 0x144]
rep stosd dword es:[edi], eax
call fcn.0040c4fa
mov cl, 0x22
imul cl
xor byte [ebp - 9], al
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
push ebx
push dword [ebp + 8]
rep stosd dword es:[edi], eax
lea esi, [ebp - 0x64]
call fcn.0040c4fa
push 8
pop ecx
add al, 0x1d
xor byte [ebp - 8], al
push ebx
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x84]
lea esi, [ebp - 0x84]
rep stosd dword es:[edi], eax
call fcn.0040c4fa
push 8
pop ecx
sub al, 0x61
xor byte [ebp - 7], al
push ebx
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0xc4]
lea esi, [ebp - 0xc4]
rep stosd dword es:[edi], eax
call fcn.0040c4fa
mov cl, 0x15
imul cl
xor byte [ebp - 6], al
push 8
pop ecx
push ebx
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x104]
lea esi, [ebp - 0x104]
rep stosd dword es:[edi], eax
call fcn.0040c4fa
add al, 0xb
xor byte [ebp - 5], al
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ole32.dll_StringFromIID]
test eax, eax
jne 0x40b2dd
push dword [ebp - 0x18]
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor edx, edx
mov ecx, str.SoftwareMicrosoftWindows_NTCurrentVersion
add eax, eax
cmp edx, ecx
je 0x40b2d4
push eax
push dword [ebp - 0x18]
push 3
push str.SerialIID
push ecx
push 0x80000001
call fcn.00409f83
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x264]
push eax
call fcn.0040afdb
pop ecx
mov dword [0x4201e8], eax
mov dword [0x4201ec], edx
cmp dword [ebp - 0x20], 0
je 0x40b303
push dword [ebp - 0x20]
call fcn.0040aa94
mov eax, dword [0x4201e8]
mov edx, dword [0x4201ec]
pop edi
pop esi
pop ebx
leave
ret 4