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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e5f46
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x66a074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x2c5], cl
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2d0], 0
lea ecx, [ebp - 0x2d8]
mov dword [ebp - 4], 0
call fcn.004b0820
mov edi, dword [ebp - 0x2d4]
test al, al
je 0x4b7c61
mov esi, dword [ebp - 0x2d8]
xor al, al
xor bl, bl
mov byte [ebp - 0x2bd], al
mov dword [ebp - 0x2cc], ebx
cmp esi, edi
je 0x4b7c61
lea ecx, [ebp - 0x2c4]
mov dword [ebp - 0x2bc], 0
call fcn.004c4a10
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c]
push 0x3d
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x618c10
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00409060
push 1
push 0x618c0c
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
call fcn.00409220
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4b7867
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00409220
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2bc]
push ecx
push 0xf003f
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4b78ad
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
call fcn.00408ff0
jmp 0x4b7c36
push 0xa
xor eax, eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x74]
push str.EnableDHCP
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
call fcn.00409060
lea eax, [ebp - 0x2dc]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x2bc]
lea ecx, [ebp - 0x2c4]
call fcn.004c56f0
mov bl, al
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x11
call fcn.00408ff0
mov byte [ebp - 4], 0xb
test bl, bl
jne 0x4b796e
mov eax, dword [ebp - 0x2c4]
mov eax, dword [eax + 4]
test eax, eax
je 0x4b7948
push 0x628ff0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4b7948
mov ecx, dword [ebp - 0x2bc]
test ecx, ecx
je 0x4b7948
push ecx
call eax
mov dword [ebp - 0x2bc], 0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x15
call fcn.00408ff0
lea ecx, [ebp - 0x2c4]
mov byte [ebp - 4], 0
call fcn.0040d0b0
mov ebx, dword [ebp - 0x2cc]
jmp 0x4b7c45
mov ebx, dword [ebp - 0x2cc]
mov eax, 1
cmp dword [ebp - 0x2dc], 1
movzx ebx, bl
cmovne ebx, eax
mov byte [ebp - 0x2bd], 1
cmp byte [ebp - 0x2c5], 0
mov dword [ebp - 0x2cc], ebx
je 0x4b7bed
mov dword [ebp - 0x2dc], eax
lea ecx, [ebp - 0x5c]
push 0xa
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
push str.EnableDHCP
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
call fcn.00409060
mov byte [ebp - 4], 0x19
mov eax, dword [ebp - 0x2c4]
mov edi, dword [ebp - 0x2bc]
mov dword [ebp - 0x14], 1
mov eax, dword [eax + 4]
test eax, eax
je 0x4b7a57
push 0x629754
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x4b7a51
test edi, edi
je 0x4b7a51
lea eax, [ebp - 0x2e0]
mov dword [ebp - 0x2e0], 0
push eax
lea eax, [ebp - 0x5c]
push eax
push edi
lea ecx, [ebp - 0x2c4]
call fcn.004c56f0
test al, al
je 0x4b7a3b
mov eax, dword [ebp - 0x2e0]
cmp eax, dword [ebp - 0x14]
je 0x4b7a51
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0
lea ecx, [ebp - 0x5c]
call fcn.00408e30
push eax
push edi
call ebx
mov ebx, dword [ebp - 0x2cc]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x1a
call fcn.00408ff0
lea ecx, [ebp - 0x198]
mov byte [ebp - 4], 0xb
call fcn.004cb990
mov eax, dword [ebp - 0x194]
cmp eax, 6
jbe 0x4b7a81
mov al, 1
jmp 0x4b7a92
jne 0x4b7a90
cmp dword [ebp - 0x190], 1
jb 0x4b7a90
mov al, 1
jmp 0x4b7a92
xor al, al
test al, al
jne 0x4b7b83
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0
push 0
push 7
push 0
push str.DefaultGateway
push dword [ebp - 0x2bc]
call edi
push 0
push 0
push 7
push 0
push str.DefaultGatewayMetric
push dword [ebp - 0x2bc]
call edi
push 7
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x44]
push str.0.0.0.0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.00409060
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x34]
cmovae ecx, dword [ebp - 0x44]
add eax, eax
push eax
push ecx
push 7
push 0
push str.IPAddress
push dword [ebp - 0x2bc]
call edi
push 0
push 0
push 1
push 0
push str.NameServer
push dword [ebp - 0x2bc]
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.IPAutoconfigurationAddress
push dword [ebp - 0x2bc]
call edi
push str.IPAutoconfigurationMask
push dword [ebp - 0x2bc]
call edi
push str.IPAutoconfigurationSeed
push dword [ebp - 0x2bc]
call edi
push str.DefaultGateway
push dword [ebp - 0x2bc]
call edi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x1f
call fcn.00408ff0
mov byte [ebp - 4], 0xb
jmp 0x4b7bdc
lea ecx, [ebp - 0x2b8]
call fcn.004cb990
cmp dword [ebp - 0x2b4], 6
ja 0x4b7ba2
jne 0x4b7bdc
cmp dword [ebp - 0x2b0], 1
jb 0x4b7bdc
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.DefaultGateway
push dword [ebp - 0x2bc]
call edi
push str.DefaultGatewayMetric
push dword [ebp - 0x2bc]
call edi
push str.IPAddress
push dword [ebp - 0x2bc]
call edi
push str.NameServer
push dword [ebp - 0x2bc]
call edi
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 0x2d4]
cmp dword [ebp - 0x2bc], 0
je 0x4b7c2a
mov eax, dword [ebp - 0x2c4]
mov eax, dword [eax + 4]
test eax, eax
je 0x4b7c2a
push 0x628ff0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4b7c2a
mov ecx, dword [ebp - 0x2bc]
test ecx, ecx
je 0x4b7c2a
push ecx
call eax
mov dword [ebp - 0x2bc], 0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x23
call fcn.00408ff0
lea ecx, [ebp - 0x2c4]
mov byte [ebp - 4], 0
call fcn.0040d0b0
add esi, 0x48
cmp esi, edi
jne 0x4b7800
cmp byte [ebp - 0x2bd], 0
je 0x4b7c61
test bl, bl
jne 0x4b7c61
mov bl, 1
jmp 0x4b7c63
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x2d8]
test esi, esi
je 0x4b7d0f
cmp esi, edi
je 0x4b7ca8
nop dword [eax]
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0x28
call fcn.00408ff0
mov ecx, esi
mov byte [ebp - 4], 0x2c
call fcn.00408ff0
add esi, 0x48
mov dword [ebp - 4], 0xffffffff
cmp esi, edi
jne 0x4b7c80
mov ecx, dword [ebp - 0x2d0]
mov eax, 0x38e38e39
mov esi, dword [ebp - 0x2d8]
sub ecx, esi
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*8]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x4b7ce7
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b7d2d
push ecx
push esi
call fcn.005b7992
add esp, 8
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2d0], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b75ab
mov esp, ebp
pop ebp
ret
call fcn.005c00b0
int3