Function at 0x407020
Capabilities:
Get hostname
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a74
call fcn.00407f50
mov dword [ebp - 0x1a5c], 0
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x6b0], 0
mov dword [ebp - 0x49c], 0
mov dword [ebp - 0x1a58], 0
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x1850], 0
mov dword [ebp - 0x42c], str.B1F0D3A2_CCDB_11d2_8757_00C04F94A989
mov dword [ebp - 0x428], str.EFCDCEE0_CCDB_11d2_8757_00C04F94A989
mov dword [ebp - 0x424], str.EFCDCEE1_CCDB_11d2_8757_00C04F94A989
mov dword [ebp - 0x420], 0x40e80c
mov dword [ebp - 0x41c], str.SQL_Server
mov dword [ebp - 0x418], 0x40e850
mov dword [ebp - 0x494], str.F963E600_CCDB_11d2_8757_00C04F94A989
mov dword [ebp - 0x490], str.F963E601_CCDB_11d2_8757_00C04F94A989
mov dword [ebp - 0x48c], str.FFF1B9E0_CCDB_11d2_8757_00C04F94A989
mov dword [ebp - 0x488], 0x40e940
mov dword [ebp - 0x484], str.OLAP_Server
mov dword [ebp - 0x480], str.8.00
mov dword [ebp - 0x1a54], 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x184c]
push ecx
call fcn.00403873
add esp, 8
mov dword [ebp - 0x1a5c], eax
cmp dword [ebp - 0x1a5c], 0
je 0x407122
mov eax, dword [ebp - 0x1a5c]
jmp 0x40777f
mov dword [0x40ea70], 3
mov dword [0x40ea88], 3
mov dword [0x40eaa0], 3
mov dword [0x40eab8], 3
mov dword [0x40ead0], 3
mov dword [0x40eae8], 3
cmp dword [ebp + 0xc], 1
jne 0x40724d
lea edx, [ebp - 0xfdc]
mov dword [0x40ea78], edx
lea eax, [ebp - 0xf8c]
mov dword [0x40ea90], eax
lea ecx, [ebp - 0xf3c]
mov dword [0x40eaa8], ecx
lea edx, [ebp - 0x1848]
mov dword [0x40eac0], edx
lea eax, [ebp - 0x1740]
mov dword [0x40ead8], eax
push 0xa
lea ecx, [ebp - 0x1a70]
push ecx
mov edx, dword [ebp - 0x1638]
push edx
call sub.MSVCRT.dll__itow
add esp, 0xc
lea eax, [ebp - 0x1a70]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0xe88
push ecx
call sub.MSVCRT.dll_wcscpy
add esp, 8
push 0xa
lea edx, [ebp - 0x1a70]
push edx
mov eax, dword [ebp - 0x1634]
push eax
call sub.MSVCRT.dll__itow
add esp, 0xc
push 0x40e990
mov ecx, dword [ebp + 0x10]
add ecx, 0xe88
push ecx
call sub.MSVCRT.dll_wcscat
add esp, 8
lea edx, [ebp - 0x1a70]
push edx
mov eax, dword [ebp + 0x10]
add eax, 0xe88
push eax
call sub.MSVCRT.dll_wcscat
add esp, 8
mov ecx, dword [ebp + 0x10]
add ecx, 0xe88
mov dword [0x40eaf0], ecx
mov edx, dword [ebp + 0x10]
push edx
push 1
call fcn.004036cc
add esp, 8
push 0x40e994
lea eax, [ebp - 0x1a50]
push eax
call sub.MSVCRT.dll_wcscpy
add esp, 8
jmp 0x4072b7
mov ecx, dword [ebp - 0x494]
mov dword [0x40ea78], ecx
mov edx, dword [ebp - 0x490]
mov dword [0x40ea90], edx
mov eax, dword [ebp + 0x10]
add eax, 0xc30
mov dword [0x40eaa8], eax
mov ecx, dword [ebp - 0x488]
mov dword [0x40eac0], ecx
mov edx, dword [ebp - 0x484]
mov dword [0x40ead8], edx
mov eax, dword [ebp - 0x480]
mov dword [0x40eaf0], eax
mov ecx, dword [ebp + 0x10]
push ecx
push 9
call fcn.004036cc
add esp, 8
push str.OLAPServer
lea edx, [ebp - 0x1a50]
push edx
call sub.MSVCRT.dll_wcscat
add esp, 8
call fcn.004042de
cmp eax, 1
jne 0x4072f1
push 0x104
lea eax, [ebp - 0x8bc]
push eax
call fcn.004044b1
add esp, 8
mov dword [ebp - 0x6b0], eax
cmp dword [ebp - 0x6b0], 0
je 0x4072ef
mov eax, dword [ebp - 0x6b0]
jmp 0x40777f
jmp 0x40730f
lea ecx, [ebp - 0x8bc]
push ecx
call fcn.00404337
add esp, 4
test eax, eax
jne 0x40730f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40777f
mov dword [0x40ed40], 3
lea edx, [ebp - 0x8bc]
mov dword [0x40ed48], edx
mov dword [0x40f058], 3
lea eax, [ebp - 0x1a50]
mov dword [0x40f060], eax
mov dword [ebp - 0x414], 0x208
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x407372
lea eax, [ebp - 0x8bc]
push eax
lea ecx, [ebp - 0x208]
push ecx
call sub.MSVCRT.dll_wcscpy
add esp, 8
push str.MSSQLSERVER
mov edx, dword [ebp + 0x10]
add edx, 0x820
push edx
call sub.MSVCRT.dll_wcscmp
add esp, 8
test eax, eax
je 0x4073ba
push 0x40e9d8
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_wcscat
add esp, 8
mov ecx, dword [ebp + 0x10]
add ecx, 0x820
push ecx
lea edx, [ebp - 0x208]
push edx
call sub.MSVCRT.dll_wcscat
add esp, 8
mov dword [0x40ef98], 3
lea eax, [ebp - 0x208]
mov dword [0x40efa0], eax
mov dword [0x40ebf0], 3
mov dword [0x40ebf8], 0x40e9dc
cmp dword [ebp + 0xc], 1
jne 0x4073fc
lea ecx, [ebp - 0x184c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00402ef4
add esp, 8
lea eax, [ebp - 0x6ac]
push eax
call fcn.00405b05
add esp, 4
mov dword [ebp - 0x6b0], eax
cmp dword [ebp - 0x6b0], 0
je 0x407425
mov eax, dword [ebp - 0x6b0]
jmp 0x40777f
push 0x40e9e0
lea ecx, [ebp - 0x410]
push ecx
call sub.MSVCRT.dll_wcscpy
add esp, 8
lea edx, [ebp - 0x6ac]
push edx
lea eax, [ebp - 0x410]
push eax
call sub.MSVCRT.dll_wcscat
add esp, 8
lea ecx, [ebp - 0x1a58]
push ecx
push 0x409350
lea edx, [ebp - 0x410]
push edx
call dword [0x40f0b8]
mov dword [ebp - 0x6b0], eax
cmp dword [ebp - 0x6b0], 0
jge 0x40747c
jmp 0x40777a
cmp dword [ebp + 0xc], 1
jne 0x40748e
mov dword [ebp - 0x4a0], 0x1f
jmp 0x407498
mov dword [ebp - 0x4a0], 0x12
cmp dword [ebp + 0xc], 1
jne 0x4074d5
lea eax, [ebp - 0x49c]
push eax
mov ecx, dword [ebp - 0x4a0]
push ecx
push 0x40d390
mov edx, dword [ebp + 0x10]
add edx, 0x410
push edx
mov eax, dword [ebp - 0x1a58]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x1a58]
push edx
call dword [ecx + 0x18]
mov dword [ebp - 0x6b0], eax
jmp 0x40750a
lea eax, [ebp - 0x49c]
push eax
mov ecx, dword [ebp - 0x4a0]
push ecx
push 0x40d960
mov edx, dword [ebp + 0x10]
add edx, 0x410
push edx
mov eax, dword [ebp - 0x1a58]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x1a58]
push edx
call dword [ecx + 0x18]
mov dword [ebp - 0x6b0], eax
cmp dword [ebp - 0x6b0], 0
jge 0x407555
mov eax, dword [ebp - 0x6b0]
and eax, 0xffff
cmp eax, 0x1392
jne 0x407550
mov ecx, dword [ebp - 0x1a58]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x1a58]
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.00407783
add esp, 0xc
jmp 0x40777f
jmp 0x407775
lea ecx, [ebp - 0x498]
push ecx
push 0x409190
mov edx, dword [ebp - 0x49c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x49c]
push ecx
call dword [eax]
mov dword [ebp - 0x6b0], eax
cmp dword [ebp - 0x6b0], 0
jge 0x407586
jmp 0x407770
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 - 0x498]
push eax
call fcn.0040495d
add esp, 0x24
mov dword [ebp - 0x6b0], eax
cmp dword [ebp - 0x6b0], 0
je 0x4075be
jmp 0x40776b
lea ecx, [ebp - 0x1850]
push ecx
mov edx, dword [ebp - 0x498]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x498]
push ecx
call dword [eax + 0x24]
mov dword [ebp - 0x6b0], eax
cmp dword [ebp - 0x6b0], 0
je 0x4075eb
jmp 0x407766
cmp dword [ebp - 0x1850], 0
je 0x40760a
mov edx, dword [ebp - 0x1850]
push edx
lea eax, [ebp - 0x47c]
push eax
call sub.MSVCRT.dll_wcscpy
add esp, 8
cmp dword [ebp - 0x1850], 0
je 0x407620
mov ecx, dword [ebp - 0x1850]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x498], 0
je 0x40763b
mov edx, dword [ebp - 0x498]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x498]
push ecx
call dword [eax + 8]
cmp dword [ebp - 0x49c], 0
je 0x407656
mov edx, dword [ebp - 0x49c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x49c]
push ecx
call dword [eax + 8]
cmp dword [ebp - 0x1a58], 0
je 0x407671
mov edx, dword [ebp - 0x1a58]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1a58]
push ecx
call dword [eax + 8]
cmp dword [ebp - 0x6b0], 0
je 0x407685
mov eax, dword [ebp - 0x6b0]
jmp 0x40777f
mov dword [ebp - 0x1a54], 0
mov edx, dword [ebp + 0x10]
push edx
push 1
call fcn.00402655
add esp, 8
lea eax, [ebp - 0x1a54]
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 - 0x1a5c], eax
cmp dword [ebp - 0x1a5c], 0
je 0x4076d0
jmp 0x407764
lea eax, [ebp - 0x47c]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 4
shl eax, 1
push eax
lea ecx, [ebp - 0x47c]
push ecx
push 1
push 0
push 0x40e9f0
mov edx, dword [ebp - 0x1a54]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x1a5c], eax
cmp dword [ebp - 0x1a5c], 0
je 0x407710
jmp 0x407762
cmp dword [ebp + 0x14], 0
je 0x407721
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1a74], eax
jmp 0x40772b
mov dword [ebp - 0x1a74], str.LocalSystem
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x1a74]
push edx
call fcn.004048d0
add esp, 8
mov dword [ebp - 0x1a5c], eax
cmp dword [ebp - 0x1a54], 0
je 0x40775a
mov eax, dword [ebp - 0x1a54]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1a5c]
jmp 0x40777f
jmp 0x407744
jmp 0x407744
jmp 0x40760a
jmp 0x40760a
jmp 0x40760a
jmp 0x40760a
jmp 0x40760a
mov esp, ebp
pop ebp
ret