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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0x57bc]
push edi
mov edi, 0x80
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4054d0
push eax
call fcn.00405cd1
jmp 0x4054d2
xor al, al
test al, al
je 0x40578f
mov eax, dword [0x42d5f8]
or eax, dword [0x42d5fc]
jne 0x405781
mov ecx, 0x100
lea eax, [ebp - 0x264]
mov byte [eax], 0
inc eax
dec ecx
jne 0x4054f6
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 0x405769
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x674]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
mov word [ebp - 0x66e], ax
push ebx
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x674]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x405584
push 0x4c
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x46c]
push eax
mov dword [ebp - 0x1c], 0x26
call fcn.00412d60
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
xor eax, eax
mov word [ebp + ecx*2 - 0x46c], ax
lea eax, [ebp - 0x46c]
jmp 0x40576f
xor ecx, ecx
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersion
mov dword [ebp - 0x24], edi
cmp ecx, eax
je 0x4055b4
lea ecx, [ebp - 0x264]
push ecx
push str.SerialIID
push eax
push 0x80000001
lea edi, [ebp - 0x24]
call fcn.004068cf
test al, al
jne 0x405769
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 esi
lea ebx, [ebp - 0x164]
rep stosd dword es:[edi], eax
call fcn.0040394f
push 8
movzx eax, ax
xor dword [ebp - 0x14], eax
pop ecx
push 0xffff
xor eax, eax
lea edi, [ebp - 0x124]
push esi
lea ebx, [ebp - 0x124]
rep stosd dword es:[edi], eax
call fcn.0040394f
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 esi, 0xff
push esi
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0xa4]
lea ebx, [ebp - 0xa4]
rep stosd dword es:[edi], eax
call fcn.0040394f
xor byte [ebp - 0xc], al
push 8
pop ecx
push esi
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x44]
lea ebx, [ebp - 0x44]
rep stosd dword es:[edi], eax
call fcn.0040394f
push 8
pop ecx
add al, 0x64
xor byte [ebp - 0xb], al
push esi
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0xe4]
lea ebx, [ebp - 0xe4]
rep stosd dword es:[edi], eax
call fcn.0040394f
push 8
pop ecx
sub al, 0x11
xor byte [ebp - 0xa], al
push esi
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x144]
lea ebx, [ebp - 0x144]
rep stosd dword es:[edi], eax
call fcn.0040394f
mov cl, 0x22
imul cl
xor byte [ebp - 9], al
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
push esi
push dword [ebp + 8]
rep stosd dword es:[edi], eax
lea ebx, [ebp - 0x64]
call fcn.0040394f
push 8
pop ecx
add al, 0x1d
xor byte [ebp - 8], al
push esi
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x84]
lea ebx, [ebp - 0x84]
rep stosd dword es:[edi], eax
call fcn.0040394f
push 8
pop ecx
sub al, 0x61
xor byte [ebp - 7], al
push esi
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0xc4]
lea ebx, [ebp - 0xc4]
rep stosd dword es:[edi], eax
call fcn.0040394f
mov cl, 0x15
imul cl
xor byte [ebp - 6], al
push 8
pop ecx
push esi
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x104]
lea ebx, [ebp - 0x104]
rep stosd dword es:[edi], eax
call fcn.0040394f
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 0x405769
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 0x405760
push eax
push dword [ebp - 0x18]
push 3
push str.SerialIID
push ecx
push 0x80000001
call fcn.0040697b
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x264]
push eax
call fcn.0040545d
pop ecx
mov dword [0x42d5f8], eax
mov dword [0x42d5fc], edx
cmp dword [ebp - 0x20], 0
je 0x40578f
push dword [ebp - 0x20]
call fcn.00405cf1
mov eax, dword [0x42d5f8]
mov edx, dword [0x42d5fc]
pop edi
pop esi
pop ebx
leave
ret 4