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

Disassembly:
push ebp
lea ebp, [esp - 0x156c]
mov eax, 0x156c
call fcn.0061ea30
push 0xffffffffffffffff
push 0x653cd3
mov eax, dword fs:[0]
push eax
sub esp, 0x378
mov eax, dword [0x755898]
xor eax, ebp
mov dword [ebp + 0x1568], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x384]
call fcn.00507480
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00402500
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.00402500
mov byte [ebp - 4], 4
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
cmp byte [ebp + 0x1574], bl
jne 0x4fff55
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0x69eab8
lea ecx, [ebp - 0x384]
call fcn.005085f0
test al, al
je 0x4fff55
cmp dword [ebp - 0x3c], ebx
je 0x4fff55
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], ebx
je 0x4fff55
xor edi, edi
mov dword [ebp - 0x2c], edi
mov eax, 8
mov ecx, str.127.0.0.
mov edx, esi
cmp eax, 4
jb 0x4ffe9f
mov ebx, dword [edx]
cmp ebx, dword [ecx]
jne 0x4ffea9
sub eax, 4
add ecx, 4
add edx, 4
xor ebx, ebx
jmp 0x4ffe87
mov edi, 1
mov dword [ebp - 0x2c], edi
jmp 0x4ffeab
xor ebx, ebx
cmp dword [esi], 0x2e302e30
jne 0x4ffec7
cmp byte [esi + 4], 0x30
jne 0x4ffec7
cmp byte [esi + 5], 0x2e
jne 0x4ffec7
mov edi, 1
mov dword [ebp - 0x2c], edi
push str.localhost
lea ecx, [ebp - 0x14]
call fcn.0040dec0
test eax, eax
jne 0x4ffee1
mov dword [ebp - 0x2c], 1
jmp 0x4fff55
cmp edi, ebx
jne 0x4fff55
mov dword [ebp - 0x34], 0x100
push 0x100
push ebx
lea eax, [ebp + 0x1468]
push eax
call fcn.0061d9e0
add esp, 0xc
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp + 0x1468]
push edx
push ebx
push ebx
push str.HttpProxy
mov eax, dword [0x75abd8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4fff4e
lea eax, [ebp + 0x1468]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4fff30
sub eax, edx
je 0x4fff4e
lea ecx, [ebp + 0x1468]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040dec0
test eax, eax
je 0x4fff55
mov dword [ebp - 0x24], 1
push ebx
lea edx, [ebp - 0x28]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x50000c
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push str.AutoConfigURL
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call edi
test eax, eax
jne 0x500002
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x20]
call fcn.00402850
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
push ebx
push str.AutoConfigURL
mov ecx, dword [ebp - 0x28]
push ecx
call edi
test eax, eax
jne 0x500002
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4fffc0
sub eax, edx
je 0x500002
mov ecx, esi
mov eax, dword [0x75b708]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4ffff2
cmp dl, bl
je 0x4fffee
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4ffff2
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4fffd2
xor eax, eax
jmp 0x4ffff7
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x500002
mov dword [ebp - 0x30], 1
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x38], 1
push 4
lea eax, [ebp - 0x38]
push eax
push 4
push ebx
push str.FSPSSettingsChecked
mov ecx, dword [0x75abd8]
push ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call esi
cmp dword [ebp - 0x24], ebx
jne 0x500097
cmp dword [ebp - 0x30], ebx
jne 0x500297
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.00402570
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00402570
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00402570
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x384]
call fcn.004ffad0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1568]
xor ecx, ebp
call fcn.0061d2ff
add ebp, 0x156c
mov esp, ebp
pop ebp
ret 4
push 0x50004
mov edx, dword [0x75bff8]
push edx
mov eax, dword [0x75bff4]
push eax
push ebx
call fcn.00472580
add esp, 0x10
cmp eax, 6
jne 0x50003e
mov dword [ebp - 0x18], 1
push 4
lea eax, [ebp - 0x18]
push eax
push 4
push ebx
push str.UseHttpProxy
mov ecx, dword [0x75abd8]
push ecx
call esi
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
push 1
push ebx
push str.HttpProxy
mov edx, dword [0x75abd8]
push edx
call esi
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
je 0x50010c
inc eax
push eax
push ecx
push 1
push ebx
push str.HttpPort
mov eax, dword [0x75abd8]
push eax
call esi
push ebx
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
push str.ftp
lea ecx, [ebp - 0x384]
call fcn.005085f0
test al, al
je 0x50017b
push 4
lea eax, [ebp - 0x18]
push eax
push 4
push ebx
push str.UseFtpProxy
mov ecx, dword [0x75abd8]
push ecx
call esi
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
je 0x50015e
inc eax
push eax
push ecx
push 1
push ebx
push str.FtpProxy
mov edx, dword [0x75abd8]
push edx
call esi
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
je 0x50017b
inc eax
push eax
push ecx
push 1
push ebx
push str.FtpPort
mov eax, dword [0x75abd8]
push eax
call esi
push ebx
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0x69ea50
lea ecx, [ebp - 0x384]
call fcn.005085f0
test al, al
je 0x5001ea
push 4
lea eax, [ebp - 0x18]
push eax
push 4
push ebx
push str.UseHttpsProxy
mov ecx, dword [0x75abd8]
push ecx
call esi
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
je 0x5001cd
inc eax
push eax
push ecx
push 1
push ebx
push str.HttpsProxy
mov edx, dword [0x75abd8]
push edx
call esi
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
je 0x5001ea
inc eax
push eax
push ecx
push 1
push ebx
push str.HttpsPort
mov eax, dword [0x75abd8]
push eax
call esi
mov dword [0x75b734], 0x10
cmp dword [ebp - 0x30], ebx
je 0x50022c
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, 0x75b700
call fcn.004cba40
mov dword [0x75b710], eax
mov edx, dword [ebp - 0x20]
push edx
push 0x675ea0
push 0x75b70c
call fcn.00402f70
add esp, 0xc
mov dword [0x75b734], 8
push ebx
push ebx
push 3
push 1
push ebx
mov eax, dword [0x75c1a8]
push eax
lea ecx, [ebp]
call fcn.00516fa0
mov byte [ebp - 4], 6
lea ecx, [ebp]
call fcn.00607b2a
mov byte [ebp - 4], 4
lea ecx, [ebp]
call fcn.00515fa0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.00402570
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00402570
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00402570
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x384]
call fcn.004ffad0
mov dword [ebp - 4], 0xffffffff
jmp 0x500070
lea ecx, [ebp - 0x18]
call fcn.00402500
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [0x75c5f4]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.00402f70
push 0x50004
mov ecx, dword [0x75bff8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push ebx
call fcn.00472580
add esp, 0x1c
cmp eax, 6
je 0x5002e6
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.00402570
jmp 0x50003e
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.00402570
jmp 0x5001f4