Function at 0x407ea0
Capabilities:
Get hostname
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1a8c
call fcn.00408f10
mov eax, dword [0x40feb8]
mov dword [ebp - 8], eax
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x1a6c], 0
mov dword [ebp - 0x1800], 0
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x1808], 0
mov dword [ebp - 0x180c], 0
mov dword [ebp - 0x17fc], 0
mov dword [ebp - 0x440], str.B1F0D3A2_CCDB_11d2_8757_00C04F94A989
mov dword [ebp - 0x43c], str.EFCDCEE0_CCDB_11d2_8757_00C04F94A989
mov dword [ebp - 0x438], str.EFCDCEE1_CCDB_11d2_8757_00C04F94A989
mov dword [ebp - 0x434], 0x40cb6c
mov dword [ebp - 0x430], str.SQL_Server
mov dword [ebp - 0x42c], 0x40cbb0
mov dword [ebp - 0x458], str.F963E600_CCDB_11d2_8757_00C04F94A989
mov dword [ebp - 0x454], str.F963E601_CCDB_11d2_8757_00C04F94A989
mov dword [ebp - 0x450], str.FFF1B9E0_CCDB_11d2_8757_00C04F94A989
mov dword [ebp - 0x44c], 0x40ccac
mov dword [ebp - 0x448], str.OLAP_Server
mov dword [ebp - 0x444], str.8.00
mov dword [ebp - 0x1804], 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x13f0]
push ecx
call fcn.00404360
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x407fa1
mov eax, dword [ebp - 4]
jmp 0x4085f1
mov dword [0x40ffe8], 3
mov dword [0x410000], 3
mov dword [0x410018], 3
mov dword [0x410030], 3
mov dword [0x410048], 3
mov dword [0x410060], 3
cmp dword [ebp + 0xc], 1
jne 0x4080d0
lea edx, [ebp - 0xb80]
mov dword [0x40fff0], edx
lea eax, [ebp - 0xb30]
mov dword [0x410008], eax
lea ecx, [ebp - 0xae0]
mov dword [0x410020], ecx
lea edx, [ebp - 0x13ec]
mov dword [0x410038], edx
lea eax, [ebp - 0x12e4]
mov dword [0x410050], eax
push 0xa
lea ecx, [ebp - 0x1a88]
push ecx
mov edx, dword [ebp - 0x11dc]
push edx
call sub.MSVCR71.dll__itow
add esp, 0xc
push 0xa
lea eax, [ebp - 0x1a88]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0xe88
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0xa
lea edx, [ebp - 0x1a88]
push edx
mov eax, dword [ebp - 0x11d8]
push eax
call sub.MSVCR71.dll__itow
add esp, 0xc
push 0x40ccfc
push 0xa
mov ecx, dword [ebp + 0x10]
add ecx, 0xe88
push ecx
call fcn.00406720
add esp, 0xc
lea edx, [ebp - 0x1a88]
push edx
push 0xa
mov eax, dword [ebp + 0x10]
add eax, 0xe88
push eax
call fcn.00406720
add esp, 0xc
mov ecx, dword [ebp + 0x10]
add ecx, 0xe88
mov dword [0x410068], ecx
mov edx, dword [ebp + 0x10]
push edx
push 1
call fcn.004041b0
add esp, 8
push 0x40cd00
lea eax, [ebp - 0x17f8]
push eax
call sub.MSVCR71.dll_wcscpy
add esp, 8
jmp 0x40813a
mov ecx, dword [ebp - 0x458]
mov dword [0x40fff0], ecx
mov edx, dword [ebp - 0x454]
mov dword [0x410008], edx
mov eax, dword [ebp + 0x10]
add eax, 0xc30
mov dword [0x410020], eax
mov ecx, dword [ebp - 0x44c]
mov dword [0x410038], ecx
mov edx, dword [ebp - 0x448]
mov dword [0x410050], edx
mov eax, dword [ebp - 0x444]
mov dword [0x410068], eax
mov ecx, dword [ebp + 0x10]
push ecx
push 9
call fcn.004041b0
add esp, 8
push str.OLAPServer
lea edx, [ebp - 0x17f8]
push edx
call sub.MSVCR71.dll_wcscat
add esp, 8
call fcn.00404df0
cmp eax, 1
jne 0x408174
push 0x104
lea eax, [ebp - 0x428]
push eax
call fcn.00404fd0
add esp, 8
mov dword [ebp - 0x1800], eax
cmp dword [ebp - 0x1800], 0
je 0x408172
mov eax, dword [ebp - 0x1800]
jmp 0x4085f1
jmp 0x408197
push 0x105
lea ecx, [ebp - 0x428]
push ecx
call fcn.00404e60
add esp, 8
test eax, eax
jne 0x408197
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4085f1
mov dword [0x40fec8], 3
lea edx, [ebp - 0x428]
mov dword [0x40fed0], edx
mov dword [0x4101c8], 3
lea eax, [ebp - 0x17f8]
mov dword [0x4101d0], eax
mov word [ebp - 0x1a18], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x1a16]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x1a6c], 0x208
lea ecx, [ebp - 0x1a6c]
push ecx
lea edx, [ebp - 0x1a18]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x408217
push 0x104
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x1a18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push str.MSSQLSERVER
mov edx, dword [ebp + 0x10]
add edx, 0x820
push edx
call sub.MSVCR71.dll_wcscmp
add esp, 8
test eax, eax
je 0x40825f
push 0x40cd44
lea eax, [ebp - 0x1a18]
push eax
call sub.MSVCR71.dll_wcscat
add esp, 8
mov ecx, dword [ebp + 0x10]
add ecx, 0x820
push ecx
lea edx, [ebp - 0x1a18]
push edx
call sub.MSVCR71.dll_wcscat
add esp, 8
mov dword [0x410330], 3
lea eax, [ebp - 0x1a18]
mov dword [0x410338], eax
mov dword [0x410120], 3
mov dword [0x410128], 0x40cd48
cmp dword [ebp + 0xc], 1
jne 0x4082a1
lea ecx, [ebp - 0x13f0]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00403990
add esp, 8
push 0x105
lea eax, [ebp - 0x218]
push eax
call fcn.004065e0
add esp, 8
mov dword [ebp - 0x1800], eax
cmp dword [ebp - 0x1800], 0
je 0x4082cf
mov eax, dword [ebp - 0x1800]
jmp 0x4085f1
push 0x40cd4c
lea ecx, [ebp - 0x15f8]
push ecx
call sub.MSVCR71.dll_wcscpy
add esp, 8
lea edx, [ebp - 0x218]
push edx
push 0x104
lea eax, [ebp - 0x15f8]
push eax
call fcn.00406720
add esp, 0xc
lea ecx, [ebp - 0x1808]
push ecx
push 0x40df00
lea edx, [ebp - 0x15f8]
push edx
call dword [0x410510]
mov dword [ebp - 0x1800], eax
cmp dword [ebp - 0x1800], 0
jge 0x40832b
jmp 0x4084b0
cmp dword [ebp + 0xc], 1
jne 0x40833d
mov dword [ebp - 0x1a70], 0x1f
jmp 0x408347
mov dword [ebp - 0x1a70], 0x12
cmp dword [ebp + 0xc], 1
jne 0x408384
lea eax, [ebp - 0x45c]
push eax
mov ecx, dword [ebp - 0x1a70]
push ecx
push 0x40f780
mov edx, dword [ebp + 0x10]
add edx, 0x410
push edx
mov eax, dword [ebp - 0x1808]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x1808]
push edx
call dword [ecx + 0x18]
mov dword [ebp - 0x1800], eax
jmp 0x4083b9
lea eax, [ebp - 0x45c]
push eax
mov ecx, dword [ebp - 0x1a70]
push ecx
push 0x40fd50
mov edx, dword [ebp + 0x10]
add edx, 0x410
push edx
mov eax, dword [ebp - 0x1808]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x1808]
push edx
call dword [ecx + 0x18]
mov dword [ebp - 0x1800], eax
cmp dword [ebp - 0x1800], 0
jge 0x408404
mov eax, dword [ebp - 0x1800]
and eax, 0xffff
cmp eax, 0x1392
jne 0x4083ff
mov ecx, dword [ebp - 0x1808]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x1808]
push eax
call dword [edx + 8]
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00408610
add esp, 0xc
jmp 0x4085f1
jmp 0x4084b0
lea ecx, [ebp - 0x180c]
push ecx
push 0x40e0c0
mov edx, dword [ebp - 0x45c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x45c]
push ecx
call dword [eax]
mov dword [ebp - 0x1800], eax
cmp dword [ebp - 0x1800], 0
jge 0x408432
jmp 0x4084b0
push 0
push 1
mov edx, dword [ebp + 0x14]
push edx
push 0
push 0
push 0
push 0
push 0x10040000
mov eax, dword [ebp - 0x180c]
push eax
call fcn.00405570
add esp, 0x24
mov dword [ebp - 0x1800], eax
cmp dword [ebp - 0x1800], 0
je 0x408467
jmp 0x4084b0
lea ecx, [ebp - 0x17fc]
push ecx
mov edx, dword [ebp - 0x180c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x180c]
push ecx
call dword [eax + 0x24]
mov dword [ebp - 0x1800], eax
cmp dword [ebp - 0x1800], 0
je 0x408491
jmp 0x4084b0
cmp dword [ebp - 0x17fc], 0
je 0x4084b0
mov edx, dword [ebp - 0x17fc]
push edx
lea eax, [ebp - 0x1a68]
push eax
call sub.MSVCR71.dll_wcscpy
add esp, 8
cmp dword [ebp - 0x17fc], 0
je 0x4084c6
mov ecx, dword [ebp - 0x17fc]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x180c], 0
je 0x4084e1
mov edx, dword [ebp - 0x180c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x180c]
push ecx
call dword [eax + 8]
cmp dword [ebp - 0x45c], 0
je 0x4084fc
mov edx, dword [ebp - 0x45c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x45c]
push ecx
call dword [eax + 8]
cmp dword [ebp - 0x1808], 0
je 0x408517
mov edx, dword [ebp - 0x1808]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1808]
push ecx
call dword [eax + 8]
cmp dword [ebp - 0x1800], 0
je 0x40852b
mov eax, dword [ebp - 0x1800]
jmp 0x4085f1
mov dword [ebp - 0x1804], 0
mov edx, dword [ebp + 0x10]
push edx
push 1
call fcn.00402ff0
add esp, 8
lea eax, [ebp - 0x1804]
push eax
push 2
push 0
mov ecx, dword [ebp + 0x10]
add ecx, 0x618
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40856d
jmp 0x4085d8
lea eax, [ebp - 0x1a68]
push eax
call sub.MSVCR71.dll_wcslen
add esp, 4
shl eax, 1
push eax
lea ecx, [ebp - 0x1a68]
push ecx
push 1
push 0
push 0x40cd5c
mov edx, dword [ebp - 0x1804]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4085a7
jmp 0x4085d8
cmp dword [ebp + 0x14], 0
je 0x4085b8
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1a8c], eax
jmp 0x4085c2
mov dword [ebp - 0x1a8c], str.LocalSystem
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x1a8c]
push edx
call fcn.004054d0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 0x1804], 0
je 0x4085ee
mov eax, dword [ebp - 0x1804]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00408ef1
pop edi
mov esp, ebp
pop ebp
ret