Function at 0x4079f0
Capabilities:
Get hostname
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a78
call fcn.00408990
push edi
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], 0x40eae8
mov dword [ebp - 0x428], 0x40eb34
mov dword [ebp - 0x424], 0x40eb80
mov dword [ebp - 0x420], 0x40ebcc
mov dword [ebp - 0x41c], 0x40ebf8
mov dword [ebp - 0x418], 0x40ec10
mov dword [ebp - 0x494], 0x40ec1c
mov dword [ebp - 0x490], 0x40ec68
mov dword [ebp - 0x48c], 0x40ecb4
mov dword [ebp - 0x488], 0x40ed00
mov dword [ebp - 0x484], 0x40ed2c
mov dword [ebp - 0x480], 0x40ed44
mov dword [ebp - 0x1a54], 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x184c]
push ecx
call fcn.00404130
add esp, 8
mov dword [ebp - 0x1a5c], eax
cmp dword [ebp - 0x1a5c], 0
je 0x407af3
mov eax, dword [ebp - 0x1a5c]
jmp 0x408176
mov dword [0x40ee30], 3
mov dword [0x40ee48], 3
mov dword [0x40ee60], 3
mov dword [0x40ee78], 3
mov dword [0x40ee90], 3
mov dword [0x40eea8], 3
cmp dword [ebp + 0xc], 1
jne 0x407c22
lea edx, [ebp - 0xfdc]
mov dword [0x40ee38], edx
lea eax, [ebp - 0xf8c]
mov dword [0x40ee50], eax
lea ecx, [ebp - 0xf3c]
mov dword [0x40ee68], ecx
lea edx, [ebp - 0x1848]
mov dword [0x40ee80], edx
lea eax, [ebp - 0x1740]
mov dword [0x40ee98], eax
push 0xa
lea ecx, [ebp - 0x1a74]
push ecx
mov edx, dword [ebp - 0x1638]
push edx
call sub.MSVCRT.dll__itow
add esp, 0xc
push 0xa
lea eax, [ebp - 0x1a74]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0xe88
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0xa
lea edx, [ebp - 0x1a74]
push edx
mov eax, dword [ebp - 0x1634]
push eax
call sub.MSVCRT.dll__itow
add esp, 0xc
push 0x40ed50
push 0xa
mov ecx, dword [ebp + 0x10]
add ecx, 0xe88
push ecx
call fcn.004063a0
add esp, 0xc
lea edx, [ebp - 0x1a74]
push edx
push 0xa
mov eax, dword [ebp + 0x10]
add eax, 0xe88
push eax
call fcn.004063a0
add esp, 0xc
mov ecx, dword [ebp + 0x10]
add ecx, 0xe88
mov dword [0x40eeb0], ecx
mov edx, dword [ebp + 0x10]
push edx
push 1
call fcn.00403f89
add esp, 8
push 0x40ed54
lea eax, [ebp - 0x1a50]
push eax
call sub.MSVCRT.dll_wcscpy
add esp, 8
jmp 0x407c8c
mov ecx, dword [ebp - 0x494]
mov dword [0x40ee38], ecx
mov edx, dword [ebp - 0x490]
mov dword [0x40ee50], edx
mov eax, dword [ebp + 0x10]
add eax, 0xc30
mov dword [0x40ee68], eax
mov ecx, dword [ebp - 0x488]
mov dword [0x40ee80], ecx
mov edx, dword [ebp - 0x484]
mov dword [0x40ee98], edx
mov eax, dword [ebp - 0x480]
mov dword [0x40eeb0], eax
mov ecx, dword [ebp + 0x10]
push ecx
push 9
call fcn.00403f89
add esp, 8
push 0x40ed68
lea edx, [ebp - 0x1a50]
push edx
call sub.MSVCRT.dll_wcscat
add esp, 8
call fcn.00404bd2
cmp eax, 1
jne 0x407cc6
push 0x104
lea eax, [ebp - 0x8bc]
push eax
call fcn.00404cf5
add esp, 8
mov dword [ebp - 0x6b0], eax
cmp dword [ebp - 0x6b0], 0
je 0x407cc4
mov eax, dword [ebp - 0x6b0]
jmp 0x408176
jmp 0x407ce4
lea ecx, [ebp - 0x8bc]
push ecx
call fcn.00404c2b
add esp, 4
test eax, eax
jne 0x407ce4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x408176
mov dword [0x40f100], 3
lea edx, [ebp - 0x8bc]
mov dword [0x40f108], edx
mov dword [0x40f418], 3
lea eax, [ebp - 0x1a50]
mov dword [0x40f420], eax
mov word [ebp - 0x208], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
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 0x407d64
push 0x104
lea eax, [ebp - 0x8bc]
push eax
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x40ed80
mov edx, dword [ebp + 0x10]
add edx, 0x820
push edx
call sub.MSVCRT.dll_wcscmp
add esp, 8
test eax, eax
je 0x407dac
push 0x40ed98
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 [0x40f358], 3
lea eax, [ebp - 0x208]
mov dword [0x40f360], eax
mov dword [0x40efb0], 3
mov dword [0x40efb8], 0x40ed9c
cmp dword [ebp + 0xc], 1
jne 0x407dee
lea ecx, [ebp - 0x184c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.004037b1
add esp, 8
lea eax, [ebp - 0x6ac]
push eax
call fcn.00406350
add esp, 4
mov dword [ebp - 0x6b0], eax
cmp dword [ebp - 0x6b0], 0
je 0x407e17
mov eax, dword [ebp - 0x6b0]
jmp 0x408176
push 0x40eda0
lea ecx, [ebp - 0x410]
push ecx
call sub.MSVCRT.dll_wcscpy
add esp, 8
lea edx, [ebp - 0x6ac]
push edx
push 0x104
lea eax, [ebp - 0x410]
push eax
call fcn.004063a0
add esp, 0xc
lea ecx, [ebp - 0x1a58]
push ecx
push 0x4093a0
lea edx, [ebp - 0x410]
push edx
call dword [0x40f49c]
mov dword [ebp - 0x6b0], eax
cmp dword [ebp - 0x6b0], 0
jge 0x407e73
jmp 0x408171
cmp dword [ebp + 0xc], 1
jne 0x407e85
mov dword [ebp - 0x4a0], 0x1f
jmp 0x407e8f
mov dword [ebp - 0x4a0], 0x12
cmp dword [ebp + 0xc], 1
jne 0x407ecc
lea eax, [ebp - 0x49c]
push eax
mov ecx, dword [ebp - 0x4a0]
push ecx
push 0x40d750
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 0x407f01
lea eax, [ebp - 0x49c]
push eax
mov ecx, dword [ebp - 0x4a0]
push ecx
push 0x40dd20
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 0x407f4c
mov eax, dword [ebp - 0x6b0]
and eax, 0xffff
cmp eax, 0x1392
jne 0x407f47
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.0040817b
add esp, 0xc
jmp 0x408176
jmp 0x40816c
lea ecx, [ebp - 0x498]
push ecx
push 0x4091e0
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 0x407f7d
jmp 0x408167
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.004051a3
add esp, 0x24
mov dword [ebp - 0x6b0], eax
cmp dword [ebp - 0x6b0], 0
je 0x407fb5
jmp 0x408162
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 0x407fe2
jmp 0x40815d
cmp dword [ebp - 0x1850], 0
je 0x408001
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 0x408017
mov ecx, dword [ebp - 0x1850]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x498], 0
je 0x408032
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 0x40804d
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 0x408068
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 0x40807c
mov eax, dword [ebp - 0x6b0]
jmp 0x408176
mov dword [ebp - 0x1a54], 0
mov edx, dword [ebp + 0x10]
push edx
push 1
call fcn.00402f0d
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 0x4080c7
jmp 0x40815b
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 0x40edb0
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 0x408107
jmp 0x408159
cmp dword [ebp + 0x14], 0
je 0x408118
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1a78], eax
jmp 0x408122
mov dword [ebp - 0x1a78], 0x40b038
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x1a78]
push edx
call fcn.00405116
add esp, 8
mov dword [ebp - 0x1a5c], eax
cmp dword [ebp - 0x1a54], 0
je 0x408151
mov eax, dword [ebp - 0x1a54]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1a5c]
jmp 0x408176
jmp 0x40813b
jmp 0x40813b
jmp 0x408001
jmp 0x408001
jmp 0x408001
jmp 0x408001
jmp 0x408001
pop edi
mov esp, ebp
pop ebp
ret