Function at 0x42a530
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4b5a8c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x33c
mov al, byte [esp + 0x17]
push ebx
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
call esi
add esp, 4
mov edi, eax
lea ecx, [esp + 0x10]
push 1
push edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x42a5a4
mov ecx, dword [esp + 0x14]
push edi
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
push ecx
call fcn.0040a5a0
add esp, 0xc
lea ecx, [esp + 0x10]
push edi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Eos_unsigned_int_]
mov edi, dword [esp + 0x358]
mov dword [esp + 0x350], ebx
push edi
call esi
add esp, 4
lea ecx, [esp + 0x10]
push eax
push edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x42a5d1
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
lea edx, [esp + 0xc]
push edx
push 0x20006
push ebx
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42a60a
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x354], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
xor eax, eax
jmp 0x42a861
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x2a]
mov word [esp + 0x28], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x1ba]
mov word [esp + 0x1b8], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0xf2]
mov word [esp + 0xf0], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x282]
mov word [esp + 0x280], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [esp + 0x360]
push ebp
push edi
call esi
push eax
lea eax, [esp + 0x34]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_wcsncpy]
push eax
call edi
mov ebp, dword [esp + 0x378]
push ebp
call esi
push eax
lea ecx, [esp + 0x1d4]
push ebp
push ecx
call edi
mov ebp, dword [esp + 0x38c]
push ebp
call esi
push eax
lea edx, [esp + 0x11c]
push ebp
push edx
call edi
mov ebp, dword [esp + 0x3a0]
push ebp
call esi
push eax
lea eax, [esp + 0x2bc]
push ebp
push eax
call edi
add esp, 0x40
lea ecx, [esp + 0x2c]
push ecx
call esi
lea edx, [esp + 0x1c0]
mov edi, eax
push edx
call esi
mov ebp, eax
lea eax, [esp + 0xfc]
push eax
call esi
lea ecx, [esp + 0x290]
mov ebx, eax
push ecx
call esi
add esp, 0x10
add edi, 2
lea edx, [esp + 0x2c]
mov dword [esp + 0x28], eax
push edi
push edx
push 7
mov eax, dword [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0
push str.IPAddress
push eax
call edi
mov edx, dword [esp + 0x10]
add ebp, 2
lea ecx, [esp + 0x1bc]
push ebp
push ecx
push 7
push 0
push str.SubnetMask
push edx
call edi
mov ecx, dword [esp + 0x10]
add ebx, 2
lea eax, [esp + 0xf4]
push ebx
push eax
push 7
push 0
push str.DefaultGateway
push ecx
call edi
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x284]
push edx
push eax
push 1
push 0
push str.NameServer
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
pop ebp
test eax, eax
jne 0x42a78a
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push 0
push str.EnableDHCP
push eax
push reloc.WS2_32.dll_bind
call fcn.00423fb0
push str.SYSTEMCurrentControlSetServicesTcpipParameters_
call esi
add esp, 0x14
mov esi, eax
lea ecx, [esp + 0x10]
push 1
push esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x42a7e5
mov eax, dword [esp + 0x14]
mov ecx, str.SYSTEMCurrentControlSetServicesTcpipParameters_
test esi, esi
jbe 0x42a7d7
mov edx, esi
mov di, word [ecx]
add ecx, 2
mov word [eax], di
add eax, 2
dec edx
jne 0x42a7c8
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], esi
mov word [eax + esi*2], 0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x42a7f2
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0xc]
push ecx
push 0x20006
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x42a83a
test ecx, ecx
je 0x42a836
mov al, byte [ecx - 1]
test al, al
je 0x42a82a
cmp al, 0xff
je 0x42a82a
dec al
mov byte [ecx - 1], al
xor eax, eax
jmp 0x42a861
add ecx, 0xfffffffe
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
xor eax, eax
jmp 0x42a861
test ecx, ecx
je 0x42a85c
mov al, byte [ecx - 1]
test al, al
je 0x42a850
cmp al, 0xff
je 0x42a850
dec al
mov byte [ecx - 1], al
jmp 0x42a85c
add ecx, 0xfffffffe
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x348]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x348
ret