Function at 0x100bf5f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x10167c60]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x7c], edx
push edi
test esi, esi
je 0x100bf92e
cmp dword [esi], 0x3c
jne 0x100bf92e
mov ebx, dword [esi + 0xc]
mov dword [ebp - 0x80], ebx
test ebx, ebx
je 0x100bf653
cmp byte [ebx], al
jne 0x100bf658
mov ebx, str.DefaultConnectionSettings
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push 0x20019
push 0
push str.SOFTWAREPoliciesMicrosoftWindowsCurrentVersionInternet_Settings
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x74], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], edi
jne 0x100bf6d0
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x84], 4
push ecx
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x88], 4
push ecx
lea ecx, [ebp - 0x88]
push ecx
push 0
push str.ProxySettingsPerUser
push dword [ebp - 0x6c]
call eax
test eax, eax
je 0x100bf6ca
call edi
push dword [ebp - 0x6c]
call dword [ebp - 0x7c]
mov eax, dword [ebp - 0x74]
mov dword [esi + 8], 0
neg eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
sbb eax, eax
mov dword [esi + 0x18], 0
add eax, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
cmp dword [ebp - 0x64], 0
mov ecx, dword [ebp - 0x80]
mov dword [esi + 0xc], ecx
mov ecx, 1
mov dword [esi], 0x3c
mov dword [esi + 4], 1
movups xmm0, xmmword [str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_SettingsConnections]
movups xmmword [ebp - 0x4c], xmm0
movups xmm0, xmmword [0x1013e180]
movups xmmword [ebp - 0x3c], xmm0
movups xmm0, xmmword [0x1013e190]
movups xmmword [ebp - 0x2c], xmm0
movups xmm0, xmmword [0x1013e1a0]
movups xmmword [ebp - 0x1c], xmm0
movq xmm0, qword [0x1013e1b0]
movq qword [ebp - 0xc], xmm0
je 0x100bf78f
mov dword [ebp - 0x50], ebx
mov ecx, 2
lea edx, [ebp - 0x80]
push edx
lea edx, [ebp - 0x68]
push edx
push 0
push ecx
push 0
push 0x10130784
push 0
lea ecx, [ebp - 0x4c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
test edi, edi
jne 0x100bf831
cmp dword [ebp - 0x64], 0
mov eax, 0x400
mov edi, dword [ebp - 0x78]
mov dword [ebp - 0x58], eax
jne 0x100bf7ef
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push ebx
push dword [ebp - 0x68]
call edi
test eax, eax
je 0x100bf7e3
mov ecx, dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x58], eax
jmp 0x100bf80b
mov eax, dword [ebp - 0x58]
test eax, eax
jne 0x100bf7ef
mov ecx, dword [ebp - 0x54]
jmp 0x100bf80b
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [ebp - 0x54], ecx
test ecx, ecx
jne 0x100bf808
call dword [ebp - 0x70]
mov edi, eax
jmp 0x100bf82d
mov eax, dword [ebp - 0x58]
cmp dword [ebp - 0x64], 0
jne 0x100bf83c
test eax, eax
je 0x100bf83c
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
push ecx
push 0
push 0
push ebx
push dword [ebp - 0x68]
call edi
mov edi, eax
test edi, edi
je 0x100bf83c
test edi, edi
je 0x100bf843
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x68]
jmp 0x100bf933
mov dword [ebp - 0x5c], 0
push 4
push esi
lea ecx, [ebp - 0x68]
call fcn.100bf4e0
test eax, eax
je 0x100bf924
cmp dword [esi], 0x3c
jb 0x100bf924
push 4
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x68]
call fcn.100bf4e0
push 4
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x68]
call fcn.100bf4e0
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 0x68]
call fcn.100bf530
lea eax, [esi + 0x14]
push eax
lea ecx, [ebp - 0x68]
call fcn.100bf530
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0x68]
call fcn.100bf530
push 4
lea eax, [esi + 0x20]
push eax
lea ecx, [ebp - 0x68]
call fcn.100bf4e0
lea eax, [esi + 0x24]
push eax
lea ecx, [ebp - 0x68]
call fcn.100bf530
push 8
lea eax, [esi + 0x2c]
push eax
lea ecx, [ebp - 0x68]
call fcn.100bf4e0
push 4
lea ebx, [esi + 0x34]
push ebx
lea ecx, [ebp - 0x68]
call fcn.100bf4e0
mov eax, dword [ebx]
test eax, eax
je 0x100bf90a
shl eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 0x38], eax
test eax, eax
je 0x100bf90a
xor edi, edi
cmp dword [ebx], edi
jbe 0x100bf90a
mov eax, dword [esi + 0x38]
lea ecx, [ebp - 0x68]
push 4
lea eax, [eax + edi*4]
push eax
call fcn.100bf4e0
inc edi
cmp edi, dword [ebx]
jb 0x100bf8f4
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebp - 0x68]
call fcn.100bf530
push 4
lea eax, [esi + 0x28]
push eax
lea ecx, [ebp - 0x68]
call fcn.100bf4e0
mov eax, dword [ebp - 0x54]
xor edi, edi
mov ecx, dword [ebp - 0x68]
jmp 0x100bf933
mov edi, 0x57
cmp dword [ebp - 0x60], 0
je 0x100bf960
cmp dword [ebp - 0x64], 0
je 0x100bf960
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x100bf960
test eax, eax
je 0x100bf960
push dword [ebp - 0x5c]
push eax
push 3
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x100bf96b
push ecx
call dword [ebp - 0x7c]
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x100bf976
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100c495f
mov esp, ebp
pop ebp
ret