Function at 0x6c127230
Capabilities:
Get proxy
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x9c
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [esp], 0x6c1451e0
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x6c15300c]
sub esp, 4
test eax, eax
je 0x6c12729c
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [ebx], edx
mov dword [esp], eax
call esi
mov dword [ebx + 4], eax
mov eax, dword [0x6c15300c]
mov eax, dword [eax + 8]
mov dword [esp], eax
call esi
mov dword [ebx + 8], eax
mov dword [esp], 0x6c1451e0
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
lea eax, [esp + 0x48]
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
mov dword [esp + 8], eax
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
mov dword [esp + 0x24], eax
test eax, eax
jne 0x6c127588
lea eax, [esp + 0x50]
mov dword [esp + 0x50], 4
mov dword [esp + 0x14], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.ProxyEnable
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x28], eax
call eax
sub esp, 0x18
test eax, eax
jne 0x6c127324
cmp dword [esp + 0x4c], 4
je 0x6c127368
mov eax, dword [esp + 0x48]
mov dword [ebx], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.ProxyEnable
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov esi, eax
test eax, eax
jne 0x6c1275c0
mov eax, dword [sym.imp.ucrtbase.dll__wgetenv]
mov dword [esp], str.http_proxy
mov dword [esp + 0x2c], eax
call eax
mov dword [esp + 0x30], eax
test eax, eax
je 0x6c12738c
mov ebp, dword [ebx]
test ebp, ebp
je 0x6c1278a8
lea eax, [esp + 0x50]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], 0
mov dword [esp + 4], str.ProxyServer
mov dword [esp], eax
mov eax, dword [esp + 0x28]
call eax
sub esp, 0x18
test eax, eax
jne 0x6c1273d4
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x6c127610
test byte [0x6c1451fc], 8
jne 0x6c127980
mov eax, dword [ebx + 4]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 8]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call esi
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
movzx eax, byte [0x6c1451fc]
mov edi, dword [ebx]
and eax, 8
test edi, edi
je 0x6c127556
test al, al
jne 0x6c127710
mov eax, dword [esp + 0x2c]
mov dword [esp], str.no_proxy
call eax
mov ebp, eax
test eax, eax
je 0x6c127740
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcslen]
add eax, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x6c127d69
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [ebp + eax]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x6c127470
mov eax, dword [ebx + 8]
mov dword [esp], eax
call esi
mov dword [ebx + 8], edi
test byte [0x6c1451fc], 8
je 0x6c1274f8
mov eax, edi
shr eax, 0x10
test eax, eax
je 0x6c127ba8
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x6c14b9ad
test edx, edx
jne 0x6c1274cd
mov edx, 0xffffffff
mov eax, edi
call fcn.6c123990
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.http_proxy_bypass__from_environment____s_n
mov dword [esp + 8], str.INTERNET_LoadProxySettings
mov dword [esp + 4], 0x6c1451fc
mov dword [esp], 3
call fcn.6c123f10
lea esi, [esi]
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [esp + 0x24]
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 4]
mov dword [ebx + 0xc], 0
mov dword [esp], eax
call esi
lea esi, [esi]
lea esi, [esi]
movzx eax, byte [0x6c1451fc]
test al, 4
jne 0x6c127bd0
mov dword [ebx], 0
and eax, 8
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
test al, al
je 0x6c1274f8
mov dword [esp + 0xc], str.Proxy_is_disabled._n
mov dword [esp + 8], str.INTERNET_LoadProxySettings
mov dword [esp + 4], 0x6c1451fc
mov dword [esp], 3
call fcn.6c123f10
jmp 0x6c1274f8
mov eax, dword [ebx + 4]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 8]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call esi
mov eax, dword [esp + 0x24]
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call edi
mov eax, dword [ebx + 8]
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call edi
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x24]
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esp + 0x4c], 1
jne 0x6c1273d4
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
mov eax, dword [esp + 0x48]
test edi, edi
je 0x6c127d37
lea ecx, [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.ProxyServer
call eax
sub esp, 0x18
mov dword [esp + 4], 0x6c14bc18
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcsstr]
mov edx, 0x6c14bc18
test eax, eax
je 0x6c1276a8
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x6c127680
sub edx, 0x6c14bc18
lea ecx, [eax + edx]
xor eax, eax
lea esi, [esi]
movzx edx, word [ecx + eax]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x6c127698
mov dword [esp + 4], 0x3b
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcschr]
test eax, eax
je 0x6c1276c2
xor edx, edx
mov word [eax], dx
mov eax, dword [ebx + 4]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 8]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call esi
mov dword [ebx + 4], edi
mov dword [ebx + 8], 0
test byte [0x6c1451fc], 8
jne 0x6c127c7b
mov eax, dword [ebx]
test eax, eax
jne 0x6c127431
jmp 0x6c1274f8
mov dword [esp + 0xc], str.Proxy_is_enabled._n
mov dword [esp + 8], str.INTERNET_LoadProxySettings
mov dword [esp + 4], 0x6c1451fc
mov dword [esp], 3
call fcn.6c123f10
jmp 0x6c127431
lea eax, [esp + 0x50]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], 0
mov dword [esp + 4], str.ProxyOverride
mov dword [esp], eax
mov eax, dword [esp + 0x28]
call eax
sub esp, 0x18
test eax, eax
jne 0x6c127860
mov eax, dword [esp + 0x50]
test eax, eax
je 0x6c127860
cmp dword [esp + 0x4c], 1
jne 0x6c127860
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
mov eax, dword [esp + 0x48]
test edi, edi
je 0x6c127d20
lea ecx, [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.ProxyOverride
call eax
mov eax, dword [ebx + 8]
sub esp, 0x18
mov dword [esp], eax
call esi
mov dword [ebx + 8], edi
test byte [0x6c1451fc], 8
je 0x6c1274f8
mov eax, edi
shr eax, 0x10
test eax, eax
je 0x6c127d0b
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x6c14b9ad
test edx, edx
jne 0x6c12782c
or edx, 0xffffffff
mov eax, edi
call fcn.6c123990
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.http_proxy_bypass__from_registry____s_n
mov dword [esp + 8], str.INTERNET_LoadProxySettings
mov dword [esp + 4], 0x6c1451fc
mov dword [esp], 3
call fcn.6c123f10
jmp 0x6c1274f8
mov eax, dword [ebx + 8]
mov dword [esp], eax
call esi
mov dword [ebx + 8], 0
test byte [0x6c1451fc], 8
je 0x6c1274f8
mov dword [esp + 0xc], str.No_proxy_bypass_server_settings_in_registry._n
mov dword [esp + 8], str.INTERNET_LoadProxySettings
mov dword [esp + 4], 0x6c1451fc
mov dword [esp], 3
call fcn.6c123f10
jmp 0x6c1274f8
mov eax, dword [ebx + 4]
lea edi, [esp + 0x58]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 8]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call esi
mov eax, ebp
mov ecx, 0xe
mov dword [esp + 0x54], 0x3c
rep stosd dword es:[edi], eax
lea eax, [esp + 0x54]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], 0
mov dword [esp + 0x68], 1
mov dword [esp + 0x74], 1
mov dword [esp], eax
mov dword [esp + 0x7c], 1
call sym.wininet.dll_InternetCrackUrlW
sub esp, 0x10
test eax, eax
je 0x6c127530
mov edi, dword [esp + 0x68]
test edi, edi
jne 0x6c1279b0
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov edi, eax
mov dword [ebx + 4], eax
test eax, eax
je 0x6c127530
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
test byte [0x6c1451fc], 8
jne 0x6c127aa8
mov dword [ebx], 1
mov dword [ebx + 8], 0
jmp 0x6c127431
mov dword [esp + 0xc], str.No_proxy_server_settings_in_registry._n
mov dword [esp + 8], str.INTERNET_LoadProxySettings
mov dword [esp + 4], 0x6c1451fc
mov dword [esp], 3
call fcn.6c123f10
jmp 0x6c1273e1
lea ecx, [edi + 0xc]
lea eax, [ecx + ecx]
mov dword [esp + 0x34], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 0x38], eax
call eax
mov dword [ebx + 4], eax
test eax, eax
je 0x6c127530
movzx edx, word [esp + 0x6c]
mov dword [esp + 0xc], edi
mov ecx, dword [esp + 0x34]
mov dword [esp + 8], str._.s:_u
mov dword [esp], eax
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x64]
mov dword [esp + 4], ecx
mov dword [esp + 0x10], edx
call fcn.6c123730
mov edi, dword [esp + 0x74]
test edi, edi
jne 0x6c127b28
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x7c]
mov dword [ebx + 0xc], eax
test ecx, ecx
je 0x6c127bc0
mov edi, dword [esp + 0x78]
test edi, edi
jne 0x6c127a40
jmp 0x6c127cdc
cmp ecx, ebp
je 0x6c127c49
movzx edx, word [edi + ebp*2]
mov eax, ebp
lea ebp, [ebp + 1]
test dx, dx
jne 0x6c127a38
lea ebp, [eax + eax + 2]
mov eax, dword [esp + 0x38]
mov dword [esp], ebp
call eax
mov edx, eax
test eax, eax
je 0x6c127cdc
lea eax, [ebp - 2]
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp + 0x30], edx
call sub.ucrtbase.dll_memcpy
mov edx, dword [esp + 0x30]
xor eax, eax
mov word [edx + ebp - 2], ax
mov dword [ebx + 0x10], edx
test byte [0x6c1451fc], 8
je 0x6c127967
mov edi, dword [ebx + 4]
mov eax, 0x6c14b9a6
test edi, edi
je 0x6c127ae0
lea esi, [esi]
nop
mov eax, edi
shr eax, 0x10
test eax, eax
je 0x6c127c66
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x6c14b9ad
test edx, edx
jne 0x6c127ae0
mov edx, 0xffffffff
mov eax, edi
call fcn.6c123990
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.http_proxy__from_environment____s_n
mov dword [esp + 8], str.INTERNET_LoadProxySettings
mov dword [esp + 4], 0x6c1451fc
mov dword [esp], 3
call fcn.6c123f10
movzx eax, byte [0x6c1451fc]
mov dword [ebx + 8], 0
mov dword [ebx], 1
and eax, 8
jmp 0x6c127429
mov ecx, dword [esp + 0x70]
xor eax, eax
mov dword [esp + 0x3c], ecx
test ecx, ecx
je 0x6c127517
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x3c]
jmp 0x6c127b50
cmp edi, eax
je 0x6c127c3e
movzx ecx, word [ebx + eax*2]
mov edx, eax
lea eax, [eax + 1]
test cx, cx
jne 0x6c127b48
mov ebx, dword [esp + 0x34]
lea edi, [edx + edx + 2]
mov eax, dword [esp + 0x38]
mov dword [esp], edi
call eax
mov ecx, eax
mov dword [esp + 0x34], eax
test eax, eax
je 0x6c127517
lea eax, [edi - 2]
mov dword [esp], ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
call sub.ucrtbase.dll_memcpy
mov ecx, dword [esp + 0x34]
xor eax, eax
mov word [ecx + edi - 2], ax
jmp 0x6c127a14
mov dword [esp + 4], edi
mov dword [esp], 0x6c14b9a0
call fcn.6c123dd0
jmp 0x6c1274cd
xor edx, edx
jmp 0x6c127a87
mov eax, dword [esp + 0x30]
shr eax, 0x10
test eax, eax
je 0x6c127c50
mov edi, dword [esp + 0x30]
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x6c14b9ad
test edx, edx
jne 0x6c127c0a
mov edx, 0xffffffff
mov eax, edi
call fcn.6c123990
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.failed_to_parse_http_proxy_value__s_n
mov dword [esp + 8], str.INTERNET_LoadProxySettings
mov dword [esp + 4], 0x6c1451fc
mov dword [esp], 2
call fcn.6c123f10
movzx eax, byte [0x6c1451fc]
jmp 0x6c12753f
mov ebx, dword [esp + 0x34]
mov edx, edi
jmp 0x6c127b62
mov eax, ecx
jmp 0x6c127a4e
mov eax, dword [esp + 0x30]
mov dword [esp], 0x6c14b9a0
mov dword [esp + 4], eax
call fcn.6c123dd0
jmp 0x6c127c0a
mov dword [esp + 4], edi
mov dword [esp], 0x6c14b9a0
call fcn.6c123dd0
jmp 0x6c127ae0
mov eax, edi
shr eax, 0x10
test eax, eax
je 0x6c127cf9
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x6c14b9ad
test edx, edx
jne 0x6c127caf
mov edx, 0xffffffff
mov eax, edi
call fcn.6c123990
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.http_proxy__from_registry____s_n
mov dword [esp + 8], str.INTERNET_LoadProxySettings
mov dword [esp + 4], 0x6c1451fc
mov dword [esp], 3
call fcn.6c123f10
jmp 0x6c127415
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x10], 0
mov dword [esp], eax
call esi
mov eax, dword [ebx + 4]
mov dword [esp], eax
call esi
jmp 0x6c127530
mov dword [esp + 4], edi
mov dword [esp], 0x6c14b9a0
call fcn.6c123dd0
jmp 0x6c127caf
mov dword [esp + 4], edi
mov dword [esp], 0x6c14b9a0
call fcn.6c123dd0
jmp 0x6c12782c
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push ecx
mov dword [esp + 0x24], 0xe
jmp 0x6c127508
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov esi, dword [sym.imp.ucrtbase.dll_free]
push ecx
mov eax, dword [ebx + 4]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 8]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call esi
jmp 0x6c127d2a
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push edx
jmp 0x6c127d2a