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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4377d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4a0
push ebx
push esi
mov edx, ecx
push edi
mov ecx, 0x20
xor eax, eax
lea edi, [ebp - 0xac]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
call fcn.004050f0
cmp eax, ebx
je 0x405059
lea ecx, [ebp - 0x24]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x405059
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0xac]
push 0x80
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x405059
mov ecx, 0x80
xor eax, eax
lea edi, [ebp - 0x4ac]
lea edx, [ebp - 0x4ac]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [ebp - 0x1ac]
rep stosd dword es:[edi], eax
mov edi, str.S_1_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
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 - 0xac]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
xor edx, edx
mov dl, byte [eax + 5]
lea eax, [ebp - 0x1ac]
push edx
push 0x44780c
push eax
call fcn.0041882e
lea edi, [ebp - 0x1ac]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x4ac]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
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 [ebp - 0xac]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
xor ecx, ecx
mov cl, byte [eax]
cmp ebx, ecx
jae 0x404fc9
mov edx, dword [ebp - 0xac]
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x1ac]
push ebx
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov eax, dword [eax]
lea ecx, [ebp - 0x1ac]
push eax
push str.__lu
push ecx
call fcn.0041882e
lea edi, [ebp - 0x1ac]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x4ac]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
jmp 0x404f4c
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x4ac]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
xor edi, edi
push 0xf003f
lea ecx, [ebp - 0x4ac]
push edi
push ecx
push SysReAllocStringLen
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x405059
mov ebx, dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x14]
push eax
push ecx
push edi
push str.ProxyEnable
push ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x28], 4
call esi
cmp dword [ebp - 0x1c], edi
jne 0x40506e
cmp ebx, edi
je 0x405059
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x2ac]
mov dword [ebp - 0x14], eax
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x2ac]
push edx
lea ecx, [ebp - 0x14]
push eax
push ecx
push 0
push str.ProxyServer
push ebx
mov dword [ebp - 0x20], 0x100
call esi
test eax, eax
jne 0x4050be
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
mov edx, ecx
lea esi, [ebp - 0x2ac]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
je 0x4050c9
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4