Function at 0x43bbe6
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
push ebx
push esi
push edi
or esi, 0xffffffff
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0043a4f0
mov ebx, dword [eax]
push esi
push dword [ebp + 0x18]
lea ecx, [ebp - 0x2c]
call fcn.0043a4f0
push esi
push dword [ebp + 0x14]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x28], eax
call fcn.0043a4f0
push esi
push dword [ebp + 0x10]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], eax
call fcn.0043a4f0
mov edi, dword [ebp + 0xc]
push esi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], eax
call fcn.0043a4f0
mov ecx, dword [ebp - 0x28]
push dword [ecx]
mov ecx, dword [ebp - 0x20]
push dword [ecx]
mov ecx, dword [ebp - 0x1c]
push dword [ecx]
push dword [eax]
push ebx
push str._r_nRegSetIP__s__s__s__s__s__r_n
push 0x49aed0
call fcn.0040c0f5
add esp, 0x1c
lea ecx, [ebp - 0x18]
call fcn.00428a48
lea ecx, [ebp - 0x14]
call fcn.00428a48
lea ecx, [ebp - 0x30]
call fcn.00428a48
lea ecx, [ebp - 0x34]
call fcn.00428a48
lea ecx, [ebp - 0x2c]
call fcn.00428a48
cmp byte [edi], 0x2a
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
lea ecx, [ebp - 0x1c]
sete byte [ebp - 0xd]
call fcn.0043a46d
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.0042e0b6
lea eax, [ebp - 8]
push eax
mov al, byte [ebp - 0xd]
neg al
sbb eax, eax
and eax, 0xfffdfffa
add eax, 0x20006
or eax, 1
push eax
xor ebx, ebx
push ebx
push dword [ebp - 0x1c]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43bda2
cmp byte [edi], 0x2d
jne 0x43bcf6
push dword [ebp + 0x18]
lea ebx, [ebp - 8]
push dword [ebp + 8]
call fcn.0043bafb
pop ecx
pop ecx
mov ebx, eax
jmp 0x43bda2
cmp byte [ebp - 0xd], bl
je 0x43bdb1
lea eax, [edi + 1]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.IPAddress
push dword [ebp - 8]
mov esi, 0x320
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], esi
call edi
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
call fcn.00429b9b
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
push ebx
push str.SubnetMask
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], esi
call edi
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
call fcn.00429b9b
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
push ebx
push str.DefaultGateway
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], esi
call edi
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
call fcn.00429b9b
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0xc]
push eax
push ebx
push str.NameServer
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], esi
call edi
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x1c]
call fcn.00428a48
mov eax, ebx
jmp 0x43c0e8
xor eax, eax
push 0x36
pop edx
mov byte [ebp - 0x1d8], bl
mov ecx, edx
lea edi, [ebp - 0x1d7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x2b4], bl
mov ecx, edx
lea edi, [ebp - 0x2b3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x46c], bl
mov ecx, edx
lea edi, [ebp - 0x46b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov byte [ebp - 0x390], bl
mov ecx, edx
lea edi, [ebp - 0x38f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.IPAddress
push dword [ebp - 8]
mov edi, 0xc8
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
call esi
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x46c]
call fcn.00429b9b
shl eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x390]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.SubnetMask
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
call esi
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x390]
call fcn.00429b9b
shl eax, 0x10
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x34], eax
push 0x31
xor eax, eax
mov byte [ebp - 0xfc], bl
pop ecx
lea edi, [ebp - 0xfb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 4
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.EnableDHCP
push dword [ebp - 8]
call esi
cmp dword [ebp - 0x24], ebx
jle 0x43beca
add dword [ebp - 0x14], 0x10000
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x2d
jne 0x43bed7
mov eax, 0x4855be
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edi, 0xc6
push edi
push eax
lea eax, [ebp - 0x1d8]
push eax
call esi
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0x2d
jne 0x43befa
mov eax, 0x4855be
push edi
push eax
lea eax, [ebp - 0x2b4]
push eax
call esi
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0x2d
jne 0x43bf12
mov eax, 0x4855be
cmp byte [eax], 0x30
je 0x43bf22
push edi
push eax
lea eax, [ebp - 0xfc]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x1d8]
push eax
call esi
mov edi, eax
inc edi
lea eax, [ebp - 0x2b4]
inc edi
push eax
mov dword [ebp - 0x2c], edi
call esi
inc eax
inc eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xfc]
push eax
call esi
push dword [ebp + 0xc]
inc eax
inc eax
mov dword [ebp - 0x28], eax
call dword [0x49b098]
mov eax, dword [ebp - 0x28]
mov byte [ebp + eax - 0xfd], bl
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x2b4]
mov byte [ebp + eax - 0x2b5], bl
mov byte [ebp + edi - 0x1d9], bl
call fcn.00429b76
lea ecx, [ebp - 0x1d8]
mov edi, eax
call fcn.00429b76
add eax, dword [ebp - 0x14]
lea ecx, [ebp - 0xfc]
add eax, edi
mov dword [ebp - 0x14], eax
call fcn.00429b76
mov eax, dword [ebp + 0x18]
xor ecx, ecx
cmp eax, ebx
sete cl
cmp eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], ecx
je 0x43bfcf
mov al, byte [eax]
cmp al, 0x2d
jne 0x43bfc4
mov dword [ebp - 0x18], 0x4855be
cmp al, 0x30
jne 0x43bfcf
mov dword [ebp - 0x18], 0x4855be
mov eax, dword [ebp + 0xc]
cmp byte [eax], bl
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
je 0x43bff3
push dword [ebp - 0x2c]
lea eax, [ebp - 0x1d8]
push eax
push 7
push ebx
push str.IPAddress
push dword [ebp - 8]
call edi
mov eax, dword [ebp + 0x10]
cmp byte [eax], bl
je 0x43c011
push dword [ebp - 0x20]
lea eax, [ebp - 0x2b4]
push eax
push 7
push ebx
push str.SubnetMask
push dword [ebp - 8]
call edi
mov eax, dword [ebp + 0x14]
cmp byte [eax], bl
je 0x43c02f
push dword [ebp - 0x28]
lea eax, [ebp - 0xfc]
push eax
push 7
push ebx
push str.DefaultGateway
push dword [ebp - 8]
call edi
mov eax, dword [ebp + 0x18]
cmp byte [eax], bl
je 0x43c04c
push dword [ebp - 0x18]
call esi
push eax
push dword [ebp - 0x18]
push 1
push ebx
push str.NameServer
push dword [ebp - 8]
call edi
push 4
lea eax, [ebp - 0x24]
push eax
push 4
push ebx
push str.EnableDHCP
push dword [ebp - 8]
call edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 0x10]
cmp byte [esi], bl
jne 0x43c0a2
cmp byte [ebp - 0x390], bl
je 0x43c0a2
mov edi, dword [ebp - 0x34]
push edi
lea eax, [ebp - 0x390]
push eax
push esi
call fcn.00470580
lea ecx, [edi - 2]
add esp, 0xc
xor eax, eax
cmp ecx, ebx
jle 0x43c0a2
cmp byte [eax + esi], bl
jne 0x43c09d
mov byte [eax + esi], 0x3b
inc eax
cmp eax, ecx
jl 0x43c094
mov edi, dword [ebp + 0xc]
cmp byte [edi], bl
jne 0x43c0dc
cmp byte [ebp - 0x46c], bl
je 0x43c0dc
mov esi, dword [ebp - 0x30]
push esi
lea eax, [ebp - 0x46c]
push eax
push edi
call fcn.00470580
lea ecx, [esi - 2]
add esp, 0xc
xor eax, eax
cmp ecx, ebx
jle 0x43c0dc
cmp byte [eax + edi], bl
jne 0x43c0d7
mov byte [eax + edi], 0x3b
inc eax
cmp eax, ecx
jl 0x43c0ce
lea ecx, [ebp - 0x1c]
call fcn.00428a48
mov eax, dword [ebp - 0x14]
inc eax
pop edi
pop esi
pop ebx
leave
ret