Function at 0x4084c0
Capabilities:
Get hostname
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1a8c
call fcn.00409590
mov eax, dword [0x410060]
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], 0x40ce0c
mov dword [ebp - 0x430], str.SQL_Server
mov dword [ebp - 0x42c], 0x40ce50
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], 0x40cf4c
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.004049c0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4085c1
mov eax, dword [ebp - 4]
jmp 0x408c11
mov dword [0x410198], 3
mov dword [0x4101b0], 3
mov dword [0x4101c8], 3
mov dword [0x4101e0], 3
mov dword [0x4101f8], 3
mov dword [0x410210], 3
cmp dword [ebp + 0xc], 1
jne 0x4086f0
lea edx, [ebp - 0xb80]
mov dword [0x4101a0], edx
lea eax, [ebp - 0xb30]
mov dword [0x4101b8], eax
lea ecx, [ebp - 0xae0]
mov dword [0x4101d0], ecx
lea edx, [ebp - 0x13ec]
mov dword [0x4101e8], edx
lea eax, [ebp - 0x12e4]
mov dword [0x410200], 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 0x40cf9c
push 0xa
mov ecx, dword [ebp + 0x10]
add ecx, 0xe88
push ecx
call fcn.00406c90
add esp, 0xc
lea edx, [ebp - 0x1a88]
push edx
push 0xa
mov eax, dword [ebp + 0x10]
add eax, 0xe88
push eax
call fcn.00406c90
add esp, 0xc
mov ecx, dword [ebp + 0x10]
add ecx, 0xe88
mov dword [0x410218], ecx
mov edx, dword [ebp + 0x10]
push edx
push 1
call fcn.00404810
add esp, 8
push 0x40cfa0
lea eax, [ebp - 0x17f8]
push eax
call sub.MSVCR71.dll_wcscpy
add esp, 8
jmp 0x40875a
mov ecx, dword [ebp - 0x458]
mov dword [0x4101a0], ecx
mov edx, dword [ebp - 0x454]
mov dword [0x4101b8], edx
mov eax, dword [ebp + 0x10]
add eax, 0xc30
mov dword [0x4101d0], eax
mov ecx, dword [ebp - 0x44c]
mov dword [0x4101e8], ecx
mov edx, dword [ebp - 0x448]
mov dword [0x410200], edx
mov eax, dword [ebp - 0x444]
mov dword [0x410218], eax
mov ecx, dword [ebp + 0x10]
push ecx
push 9
call fcn.00404810
add esp, 8
push str.OLAPServer
lea edx, [ebp - 0x17f8]
push edx
call sub.MSVCR71.dll_wcscat
add esp, 8
call fcn.00405450
cmp eax, 1
jne 0x408794
push 0x104
lea eax, [ebp - 0x428]
push eax
call fcn.00405630
add esp, 8
mov dword [ebp - 0x1800], eax
cmp dword [ebp - 0x1800], 0
je 0x408792
mov eax, dword [ebp - 0x1800]
jmp 0x408c11
jmp 0x4087b7
push 0x105
lea ecx, [ebp - 0x428]
push ecx
call fcn.004054c0
add esp, 8
test eax, eax
jne 0x4087b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x408c11
mov dword [0x410078], 3
lea edx, [ebp - 0x428]
mov dword [0x410080], edx
mov dword [0x410378], 3
lea eax, [ebp - 0x17f8]
mov dword [0x410380], 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 0x408837
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 0x40887f
push 0x40cfe4
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 [0x4104e0], 3
lea eax, [ebp - 0x1a18]
mov dword [0x4104e8], eax
mov dword [0x4102d0], 3
mov dword [0x4102d8], 0x40cfe8
cmp dword [ebp + 0xc], 1
jne 0x4088c1
lea ecx, [ebp - 0x13f0]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00403ff0
add esp, 8
push 0x105
lea eax, [ebp - 0x218]
push eax
call fcn.00406c40
add esp, 8
mov dword [ebp - 0x1800], eax
cmp dword [ebp - 0x1800], 0
je 0x4088ef
mov eax, dword [ebp - 0x1800]
jmp 0x408c11
push 0x40cfec
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.00406c90
add esp, 0xc
lea ecx, [ebp - 0x1808]
push ecx
push 0x40e1a0
lea edx, [ebp - 0x15f8]
push edx
call dword [0x4106e0]
mov dword [ebp - 0x1800], eax
cmp dword [ebp - 0x1800], 0
jge 0x40894b
jmp 0x408ad0
cmp dword [ebp + 0xc], 1
jne 0x40895d
mov dword [ebp - 0x1a70], 0x1f
jmp 0x408967
mov dword [ebp - 0x1a70], 0x12
cmp dword [ebp + 0xc], 1
jne 0x4089a4
lea eax, [ebp - 0x45c]
push eax
mov ecx, dword [ebp - 0x1a70]
push ecx
push 0x40f928
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 0x4089d9
lea eax, [ebp - 0x45c]
push eax
mov ecx, dword [ebp - 0x1a70]
push ecx
push 0x40fef8
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 0x408a24
mov eax, dword [ebp - 0x1800]
and eax, 0xffff
cmp eax, 0x1392
jne 0x408a1f
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.00408c30
add esp, 0xc
jmp 0x408c11
jmp 0x408ad0
lea ecx, [ebp - 0x180c]
push ecx
push 0x40e360
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 0x408a52
jmp 0x408ad0
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.00405bd0
add esp, 0x24
mov dword [ebp - 0x1800], eax
cmp dword [ebp - 0x1800], 0
je 0x408a87
jmp 0x408ad0
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 0x408ab1
jmp 0x408ad0
cmp dword [ebp - 0x17fc], 0
je 0x408ad0
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 0x408ae6
mov ecx, dword [ebp - 0x17fc]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x180c], 0
je 0x408b01
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 0x408b1c
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 0x408b37
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 0x408b4b
mov eax, dword [ebp - 0x1800]
jmp 0x408c11
mov dword [ebp - 0x1804], 0
mov edx, dword [ebp + 0x10]
push edx
push 1
call fcn.00403650
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 0x408b8d
jmp 0x408bf8
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 0x40cffc
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 0x408bc7
jmp 0x408bf8
cmp dword [ebp + 0x14], 0
je 0x408bd8
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1a8c], eax
jmp 0x408be2
mov dword [ebp - 0x1a8c], str.LocalSystem
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x1a8c]
push edx
call fcn.00405b30
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 0x1804], 0
je 0x408c0e
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.00409559
pop edi
mov esp, ebp
pop ebp
ret