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

Disassembly:
push 0xffffffffffffffff
push 0x412aef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
mov al, byte [esp + 0x1f]
push ebx
push ebp
push esi
push edi
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
call fcn.00405990
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xa0], 0
mov ebp, dword [eax + 4]
mov eax, dword [eax + 8]
cmp ebp, eax
je 0x404161
mov ecx, dword [ebp]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov al, byte [ecx + 0x70]
test al, al
je 0x40414e
mov edi, str.SYSTEMCurrentControlSetServices_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.SYSTEMCurrentControlSetServices_
lea ecx, [esp + 0x24]
call fcn.004060a0
mov edx, dword [ebp]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x8c]
push eax
push ecx
call fcn.00406dc0
push str.ParametersTcpip
lea edx, [esp + 0x68]
push eax
push edx
mov byte [esp + 0xb8], 1
call fcn.00406770
add esp, 0x18
mov ecx, dword [0x413168]
mov byte [esp + 0xa0], 2
push ecx
push 0
push eax
lea ecx, [esp + 0x28]
call fcn.004054f0
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0xa4], 1
call fcn.00405990
push 1
lea ecx, [esp + 0x8c]
mov byte [esp + 0xa4], 0
call fcn.00405990
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x403ce6
mov eax, 0x413184
lea edx, [esp + 0x14]
push edx
push 0xf003f
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40418a
mov eax, dword [ebp]
mov esi, 0x413184
mov ecx, dword [eax + 0x38]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x403d1a
mov esi, eax
mov eax, ecx
lea edi, [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x38]
mov word [esp + eax + 0x34], 0
lea ecx, [esp + 0x34]
lea edx, [esp + eax + 0x34]
mov eax, dword [ebp]
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 0x38]
add eax, 2
push eax
push ecx
push 7
push 0
push str.IPAddress
push edx
call ebx
test eax, eax
jne 0x4041ee
mov eax, dword [ebp]
mov esi, 0x413184
mov ecx, dword [eax + 0x48]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x403d78
mov esi, eax
mov eax, ecx
lea edi, [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x48]
mov word [esp + eax + 0x34], 0
lea ecx, [esp + 0x34]
lea edx, [esp + eax + 0x34]
mov eax, dword [ebp]
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 0x48]
add eax, 2
push eax
push ecx
push 7
push 0
push str.SubnetMask
push edx
call ebx
test eax, eax
jne 0x404262
mov edx, dword [ebp]
mov edi, 0x4161b8
or ecx, 0xffffffff
add edx, 0x50
repne scasb al, byte es:[edi]
mov eax, dword [edx + 8]
not ecx
dec ecx
push ecx
push 0x4161b8
push eax
push 0
mov ecx, edx
call fcn.004087a0
lea edx, [esp + 0x30]
push 4
xor ecx, ecx
push edx
test eax, eax
mov eax, dword [esp + 0x1c]
push 4
push 0
push str.enableDHCP
setne cl
push eax
mov dword [esp + 0x48], ecx
call ebx
test eax, eax
jne 0x4042d6
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318_
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x20]
push ebx
call fcn.004057a0
test al, al
je 0x403e61
mov edi, dword [esp + 0x20]
mov ecx, ebx
mov edx, ecx
mov esi, str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318_
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.00405780
mov eax, dword [ebp]
lea ecx, [esp + 0x1c]
add eax, 0x60
lea edx, [esp + 0x68]
push eax
push ecx
push edx
call fcn.00406dc0
push 0x4167bc
push eax
lea eax, [esp + 0x8c]
mov byte [esp + 0xb4], 7
push eax
call fcn.00406770
add esp, 0x18
mov ecx, dword [0x413168]
mov byte [esp + 0xa0], 8
push ecx
push 0
push eax
lea ecx, [esp + 0x28]
call fcn.004054f0
push 1
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa4], 7
call fcn.00405990
push 1
lea ecx, [esp + 0x6c]
mov byte [esp + 0xa4], 0
call fcn.00405990
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x403ee3
mov eax, 0x413184
lea edx, [esp + 0x14]
push edx
push 0xf003f
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40434f
mov eax, dword [ebp]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x403f15
mov eax, 0x413184
inc ecx
push ecx
push eax
mov eax, dword [esp + 0x1c]
push 1
push 0
push str.HubPortName
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4043b3
mov ecx, dword [ebp]
mov edi, str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
push 1
mov byte [ecx + 0x70], al
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x20]
push ebx
call fcn.004057a0
test al, al
je 0x403f7e
mov edi, dword [esp + 0x20]
mov ecx, ebx
mov edx, ecx
mov esi, str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], ebx
mov byte [eax + ebx], 0
mov ecx, dword [ebp]
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
call fcn.00406dc0
add esp, 0xc
mov ecx, dword [0x413168]
xor esi, esi
push ecx
push esi
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xac], 0xb
call fcn.004054f0
mov eax, dword [esp + 0x4c]
mov byte [esp + 0xa0], 0
cmp eax, esi
je 0x403fdd
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x403fd4
cmp al, 0xff
je 0x403fd4
dec al
mov byte [ecx], al
jmp 0x403fdd
push ecx
call fcn.00409383
add esp, 4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x4c], esi
cmp eax, esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
jne 0x403ff6
mov eax, 0x413184
lea edx, [esp + 0x14]
push edx
push 0xf003f
push esi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40442c
mov eax, dword [ebp]
mov ecx, dword [eax + 0x38]
mov eax, dword [eax + 0x34]
cmp eax, esi
mov esi, 0x413184
je 0x404029
mov esi, eax
mov eax, ecx
lea edi, [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x38]
mov word [esp + eax + 0x34], 0
lea ecx, [esp + 0x34]
lea edx, [esp + eax + 0x34]
mov eax, dword [ebp]
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 0x38]
add eax, 2
push eax
push ecx
push 7
push 0
push str.IPAddress
push edx
call ebx
test eax, eax
jne 0x404490
mov eax, dword [ebp]
mov esi, 0x413184
mov ecx, dword [eax + 0x48]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x40408d
mov esi, eax
mov eax, ecx
lea edi, [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x48]
mov word [esp + eax + 0x34], 0
lea ecx, [esp + 0x34]
lea edx, [esp + eax + 0x34]
mov eax, dword [ebp]
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 0x48]
add eax, 2
push eax
push ecx
push 7
push 0
push str.SubnetMask
push edx
call ebx
test eax, eax
jne 0x404504
mov edx, dword [ebp]
mov edi, 0x4161b8
or ecx, 0xffffffff
add edx, 0x50
repne scasb al, byte es:[edi]
mov eax, dword [edx + 8]
not ecx
dec ecx
mov ebx, ecx
mov ecx, eax
cmp eax, ebx
jb 0x4040f7
mov ecx, ebx
mov edx, dword [edx + 4]
mov edi, 0x4161b8
mov esi, edx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x40410c
sbb edx, edx
sbb edx, 0xffffffff
test edx, edx
jne 0x404120
cmp eax, ebx
jae 0x404119
or edx, 0xffffffff
jmp 0x404120
xor edx, edx
cmp eax, ebx
setne dl
lea ecx, [esp + 0x30]
push 4
xor eax, eax
push ecx
test edx, edx
mov edx, dword [esp + 0x1c]
push 4
push 0
push str.enableDHCP
setne al
push edx
mov dword [esp + 0x48], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x404578
mov eax, dword [esp + 0xa8]
add ebp, 4
cmp ebp, dword [eax + 8]
jne 0x403c32
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4045fb
mov al, byte [ecx - 1]
test al, al
je 0x4045f1
cmp al, 0xff
je 0x4045f1
dec al
mov byte [ecx - 1], al
jmp 0x4045fb
push 0x1c
call fcn.0040a116
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0xa0], 3
je 0x4041d1
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x4041b1
mov ecx, 0x413184
push ecx
push str.RegOpenKey__s__failed
push 0x373
push 0x418154
push str.Z:workBelcarraUSBLAN_applicationsusblan_ifconfigusblan_ifconfig.cpp
push eax
call fcn.00403700
add esp, 0x18
jmp 0x4041d3
xor eax, eax
lea ecx, [esp + 0x10]
push 0x414618
push ecx
mov byte [esp + 0xa8], 0
mov dword [esp + 0x18], eax
call fcn.0040a1a6
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1c
call fcn.0040a116
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0xa0], 4
je 0x404245
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x404220
mov ecx, 0x413184
push ecx
push str.IPAddress
push str.RegSetValueEx__s___s__failed
push 0x37b
push 0x418154
push str.Z:workBelcarraUSBLAN_applicationsusblan_ifconfigusblan_ifconfig.cpp
push eax
call fcn.00403700
add esp, 0x1c
jmp 0x404247
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 0x414618
push eax
mov byte [esp + 0xa8], 0
call fcn.0040a1a6
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1c
call fcn.0040a116
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0xa0], 5
je 0x4042b9
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x404294
mov ecx, 0x413184
push ecx
push str.SubnetMask
push str.RegSetValueEx__s___s__failed
push 0x382
push 0x418154
push str.Z:workBelcarraUSBLAN_applicationsusblan_ifconfigusblan_ifconfig.cpp
push eax
call fcn.00403700
add esp, 0x1c
jmp 0x4042bb
xor eax, eax
lea edx, [esp + 0x10]
push 0x414618
push edx
mov byte [esp + 0xa8], 0
mov dword [esp + 0x18], eax
call fcn.0040a1a6
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1c
call fcn.0040a116
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0xa0], 6
je 0x404332
mov ebp, dword [ebp]
add ebp, 0x50
mov ebp, dword [ebp + 4]
test ebp, ebp
jne 0x40430d
mov ebp, 0x413184
push ebp
push str.enableDHCP
push str.RegSetValueEx__s___s__failed
push 0x388
push 0x418154
push str.Z:workBelcarraUSBLAN_applicationsusblan_ifconfigusblan_ifconfig.cpp
push eax
call fcn.00403700
add esp, 0x1c
jmp 0x404334
xor eax, eax
lea ecx, [esp + 0x10]
push 0x414618
push ecx
mov byte [esp + 0xa8], 0
mov dword [esp + 0x18], eax
call fcn.0040a1a6
push 0x1c
call fcn.0040a116
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0xa0], 9
je 0x404396
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x404376
mov ecx, 0x413184
push ecx
push str.RegOpenKey__s__failed
push 0x392
push 0x418154
push str.Z:workBelcarraUSBLAN_applicationsusblan_ifconfigusblan_ifconfig.cpp
push eax
call fcn.00403700
add esp, 0x18
jmp 0x404398
xor eax, eax
lea edx, [esp + 0x10]
push 0x414618
push edx
mov byte [esp + 0xa8], 0
mov dword [esp + 0x18], eax
call fcn.0040a1a6
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1c
call fcn.0040a116
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0xa0], 0xa
je 0x40440f
mov ebp, dword [ebp]
add ebp, 0x10
mov ebp, dword [ebp + 4]
test ebp, ebp
jne 0x4043ea
mov ebp, 0x413184
push ebp
push str.HubPortName
push str.RegSetValueEx__s___s__failed
push 0x397
push 0x418154
push str.Z:workBelcarraUSBLAN_applicationsusblan_ifconfigusblan_ifconfig.cpp
push eax
call fcn.00403700
add esp, 0x1c
jmp 0x404411
xor eax, eax
lea ecx, [esp + 0x10]
push 0x414618
push ecx
mov byte [esp + 0xa8], 0
mov dword [esp + 0x18], eax
call fcn.0040a1a6
push 0x1c
call fcn.0040a116
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, esi
mov byte [esp + 0xa0], 0xc
je 0x404473
mov ecx, dword [esp + 0x20]
cmp ecx, esi
jne 0x404453
mov ecx, 0x413184
push ecx
push str.RegOpenKey__s__failed
push 0x3a1
push 0x418154
push str.Z:workBelcarraUSBLAN_applicationsusblan_ifconfigusblan_ifconfig.cpp
push eax
call fcn.00403700
add esp, 0x18
jmp 0x404475
xor eax, eax
lea edx, [esp + 0x10]
push 0x414618
push edx
mov byte [esp + 0xa8], 0
mov dword [esp + 0x18], eax
call fcn.0040a1a6
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1c
call fcn.0040a116
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0xa0], 0xd
je 0x4044e7
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x4044c2
mov ecx, 0x413184
push ecx
push str.IPAddress
push str.RegSetValueEx__s___s__failed
push 0x3a9
push 0x418154
push str.Z:workBelcarraUSBLAN_applicationsusblan_ifconfigusblan_ifconfig.cpp
push eax
call fcn.00403700
add esp, 0x1c
jmp 0x4044e9
xor eax, eax
lea ecx, [esp + 0x10]
push 0x414618
push ecx
mov byte [esp + 0xa8], 0
mov dword [esp + 0x18], eax
call fcn.0040a1a6
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1c
call fcn.0040a116
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0xa0], 0xe
je 0x40455b
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x404536
mov ecx, 0x413184
push ecx
push str.SubnetMask
push str.RegSetValueEx__s___s__failed
push 0x3b0
push 0x418154
push str.Z:workBelcarraUSBLAN_applicationsusblan_ifconfigusblan_ifconfig.cpp
push eax
call fcn.00403700
add esp, 0x1c
jmp 0x40455d
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 0x414618
push eax
mov byte [esp + 0xa8], 0
call fcn.0040a1a6
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1c
call fcn.0040a116
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0xa0], 0xf
je 0x4045d4
mov ebp, dword [ebp]
add ebp, 0x50
mov ebp, dword [ebp + 4]
test ebp, ebp
jne 0x4045af
mov ebp, 0x413184
push ebp
push str.enableDHCP
push str.RegSetValueEx__s___s__failed
push 0x3b6
push 0x418154
push str.Z:workBelcarraUSBLAN_applicationsusblan_ifconfigusblan_ifconfig.cpp
push eax
call fcn.00403700
add esp, 0x1c
jmp 0x4045d6
xor eax, eax
lea edx, [esp + 0x10]
push 0x414618
push edx
mov byte [esp + 0xa8], 0
mov dword [esp + 0x18], eax
call fcn.0040a1a6
dec ecx
push ecx
call fcn.00409383
add esp, 4
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x94
ret