Function at 0x10046c30
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x1008d040]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, dword [esp + 0x120]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 4], eax
mov dword [esi], eax
call fcn.10051930
cmp eax, 3
je 0x10046c7a
xor eax, eax
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.100574bd
add esp, 0x118
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0xc]
push ebp
push edi
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10046d73
push esi
push str.SearchList
push dword [esp + 0x1c]
call fcn.10046b90
lea eax, [esp + 0x1c]
push eax
push str.Domain
push dword [esp + 0x28]
call fcn.10046b90
add esp, 0x18
test eax, eax
je 0x10046d6d
mov ebx, dword [esp + 0x10]
push ebx
call fcn.10045ef0
mov ecx, dword [esi]
add esp, 4
mov ebp, eax
test ecx, ecx
je 0x10046cf9
push ecx
call fcn.10045ef0
add esp, 4
add eax, 2
jmp 0x10046cfe
mov eax, 1
add eax, ebp
push eax
push dword [esi]
call dword [0x1008d004]
add esp, 8
test eax, eax
je 0x10046d55
cmp dword [esi], 0
jne 0x10046d18
mov byte [eax], 0
push eax
mov dword [esi], eax
call fcn.10045ef0
add esp, 4
test eax, eax
je 0x10046d49
mov edi, dword [esi]
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x10046d30
mov ax, word [0x1005db60]
mov word [edi], ax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
push ebx
push dword [esi]
call sub.api_ms_win_crt_string_l1_1_0.dll_strncat
add esp, 0xc
push ebx
call dword [0x1008d008]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 4
mov dword [esp + 0x10], 0
push dword [esp + 0x14]
call edi
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SoftwarePoliciesMicrosoftWindows_NTDNSClient
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x10046e48
lea eax, [esp + 0x10]
push eax
push str.SearchList
push dword [esp + 0x1c]
call fcn.10046b90
add esp, 0xc
test eax, eax
je 0x10046e42
mov ebx, dword [esp + 0x10]
push ebx
call fcn.10045ef0
mov ecx, dword [esi]
add esp, 4
mov ebp, eax
test ecx, ecx
je 0x10046dd4
push ecx
call fcn.10045ef0
add esp, 4
add eax, 2
jmp 0x10046dd9
mov eax, 1
add eax, ebp
push eax
push dword [esi]
call dword [0x1008d004]
add esp, 8
test eax, eax
je 0x10046e2a
cmp dword [esi], 0
jne 0x10046df3
mov byte [eax], 0
push eax
mov dword [esi], eax
call fcn.10045ef0
add esp, 4
test eax, eax
je 0x10046e1e
mov edi, dword [esi]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x10046e05
mov ax, word [0x1005db60]
mov word [edi], ax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
push ebx
push dword [esi]
call sub.api_ms_win_crt_string_l1_1_0.dll_strncat
add esp, 0xc
push ebx
call dword [0x1008d008]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 4
mov dword [esp + 0x10], 0
push dword [esp + 0x14]
call edi
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SoftwarePoliciesMicrosoftSystemDNSClient
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x10046f23
lea eax, [esp + 0x10]
push eax
push str.PrimaryDNSSuffix
push dword [esp + 0x1c]
call fcn.10046b90
add esp, 0xc
test eax, eax
je 0x10046f1d
mov ebx, dword [esp + 0x10]
push ebx
call fcn.10045ef0
mov ecx, dword [esi]
add esp, 4
mov ebp, eax
test ecx, ecx
je 0x10046ea9
push ecx
call fcn.10045ef0
add esp, 4
add eax, 2
jmp 0x10046eae
mov eax, 1
add eax, ebp
push eax
push dword [esi]
call dword [0x1008d004]
add esp, 8
test eax, eax
je 0x10046f05
cmp dword [esi], 0
jne 0x10046ec8
mov byte [eax], 0
push eax
mov dword [esi], eax
call fcn.10045ef0
add esp, 4
test eax, eax
je 0x10046ef9
mov edi, dword [esi]
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x10046ee0
mov ax, word [0x1005db60]
mov word [edi], ax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
push ebx
push dword [esi]
call sub.api_ms_win_crt_string_l1_1_0.dll_strncat
add esp, 0xc
push ebx
call dword [0x1008d008]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 4
mov dword [esp + 0x10], 0
push dword [esp + 0x14]
call edi
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParametersInterfaces
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x100471c2
push eax
push eax
push eax
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x100
push eax
lea eax, [esp + 0x38]
push eax
push 0
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x100471bc
nop dword [eax]
inc dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
push 1
push 0
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x24]
call ebx
test eax, eax
jne 0x1004718b
lea eax, [esp + 0x10]
push eax
push str.SearchList
push dword [esp + 0x20]
call fcn.10046b90
add esp, 0xc
test eax, eax
je 0x10047033
mov ebx, dword [esp + 0x10]
push ebx
call fcn.10045ef0
mov ecx, dword [esi]
add esp, 4
mov ebp, eax
test ecx, ecx
je 0x10046fd1
push ecx
call fcn.10045ef0
add esp, 4
add eax, 2
jmp 0x10046fd6
mov eax, 1
add eax, ebp
push eax
push dword [esi]
call dword [0x1008d004]
add esp, 8
test eax, eax
je 0x10047021
cmp dword [esi], 0
jne 0x10046ff0
mov byte [eax], 0
push eax
mov dword [esi], eax
call fcn.10045ef0
add esp, 4
test eax, eax
je 0x10047015
mov edi, dword [esi]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x10047002
mov ax, word [0x1005db60]
mov word [edi], ax
push ebp
push ebx
push dword [esi]
call sub.api_ms_win_crt_string_l1_1_0.dll_strncat
add esp, 0xc
push ebx
call dword [0x1008d008]
add esp, 4
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push str.Domain
push dword [esp + 0x20]
call fcn.10046b90
add esp, 0xc
test eax, eax
je 0x100470d6
mov ebx, dword [esp + 0x10]
push ebx
call fcn.10045ef0
mov ecx, dword [esi]
add esp, 4
mov ebp, eax
test ecx, ecx
je 0x10047074
push ecx
call fcn.10045ef0
add esp, 4
add eax, 2
jmp 0x10047079
mov eax, 1
add eax, ebp
push eax
push dword [esi]
call dword [0x1008d004]
add esp, 8
test eax, eax
je 0x100470c4
cmp dword [esi], 0
jne 0x10047093
mov byte [eax], 0
push eax
mov dword [esi], eax
call fcn.10045ef0
add esp, 4
test eax, eax
je 0x100470b8
mov edi, dword [esi]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x100470a5
mov ax, word [0x1005db60]
mov word [edi], ax
push ebp
push ebx
push dword [esi]
call sub.api_ms_win_crt_string_l1_1_0.dll_strncat
add esp, 0xc
push ebx
call dword [0x1008d008]
add esp, 4
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push str.DhcpDomain
push dword [esp + 0x20]
call fcn.10046b90
add esp, 0xc
test eax, eax
je 0x10047179
mov ebx, dword [esp + 0x10]
push ebx
call fcn.10045ef0
mov ecx, dword [esi]
add esp, 4
mov ebp, eax
test ecx, ecx
je 0x10047117
push ecx
call fcn.10045ef0
add esp, 4
add eax, 2
jmp 0x1004711c
mov eax, 1
add eax, ebp
push eax
push dword [esi]
call dword [0x1008d004]
add esp, 8
test eax, eax
je 0x10047167
cmp dword [esi], 0
jne 0x10047136
mov byte [eax], 0
push eax
mov dword [esi], eax
call fcn.10045ef0
add esp, 4
test eax, eax
je 0x1004715b
mov edi, dword [esi]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x10047148
mov ax, word [0x1005db60]
mov word [edi], ax
push ebp
push ebx
push dword [esi]
call sub.api_ms_win_crt_string_l1_1_0.dll_strncat
add esp, 0xc
push ebx
call dword [0x1008d008]
add esp, 4
mov dword [esp + 0x10], 0
push dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x100
push eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x10046f70
push dword [esp + 0x14]
call edi
mov ecx, dword [esp + 0x124]
xor eax, eax
cmp dword [esi], eax
pop edi
pop ebp
pop ebx
setne al
pop esi
xor ecx, esp
call fcn.100574bd
add esp, 0x118
ret