Function at 0x516dc0
Capabilities:
Persist via run registry key
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 0x52c
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x528], eax
mov eax, dword [esp + 0x534]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x53c]
push edi
mov edi, dword [esp + 0x548]
xor ebx, ebx
push 0x103
lea ecx, [esp + 0x29]
push ebx
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x30], bl
call fcn.005dfd60
push 0x103
lea edx, [esp + 0x445]
push ebx
push edx
mov byte [esp + 0x44c], bl
call fcn.005dfd60
push 0x103
lea eax, [esp + 0x249]
push ebx
push eax
mov byte [esp + 0x250], bl
call fcn.005dfd60
push 0x103
lea ecx, [esp + 0x359]
push ebx
push ecx
mov byte [esp + 0x360], bl
call fcn.005dfd60
mov edx, dword [esp + 0x50]
xor ebp, ebp
add esp, 0x30
mov byte [edx], bl
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebx
mov byte [esi], bl
cmp edi, ebx
je 0x516e78
mov dword [edi], ebx
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push 0x612808
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x516e9e
xor eax, eax
jmp 0x5170b6
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push 0x631c54
push eax
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp byte [esp + 0x24], bl
jne 0x516ee1
lea ecx, [esp + 0x24]
push ecx
push 0x1a
call fcn.00511eb0
add esp, 8
cmp byte [esp + 0x24], bl
je 0x517092
push ebx
push 1
lea edx, [esp + 0x2c]
push edx
call fcn.005127a0
lea eax, [esp + 0x24]
push eax
call fcn.004e24e0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x43c]
push str._sMozilla_firefoxprofiles.ini
push edx
call fcn.005dfb23
push 1
push ebx
push ebx
push ebx
lea eax, [esp + 0x454]
push ebx
push eax
call fcn.004e8950
add esp, 0x28
test eax, eax
jne 0x517092
lea ecx, [esp + 0x434]
push ecx
push 0x104
lea edx, [esp + 0x338]
push edx
push 0x60c81c
push 0x6486bc
push str.Profile0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x330], bl
je 0x517092
lea eax, [esp + 0x330]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x234]
push str._sMozilla_firefox_sprefs.js
push edx
call fcn.005dfb23
push ebx
push 0x66da34
lea eax, [esp + 0x244]
push 0x60cf1c
push eax
call fcn.004e1b10
push 1
push ebx
push ebx
push ebx
lea ecx, [esp + 0x25c]
push ebx
push ecx
call fcn.004e8950
add esp, 0x38
test eax, eax
jne 0x517092
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x230]
push eax
call fcn.004f1610
mov ebp, dword [esp + 0x14]
test eax, eax
je 0x517092
cmp byte [ebp], bl
je 0x517092
cmp edi, ebx
je 0x517023
push 0x103
lea ecx, [esp + 0x12d]
push ebx
push ecx
mov byte [esp + 0x134], bl
call fcn.005dfd60
add esp, 0xc
lea edx, [esp + 0x128]
push edx
push str.network.proxy.type
push ebp
call fcn.004ff4e0
xor eax, eax
cmp byte [esp + 0x128], 0x31
sete al
mov dword [edi], eax
push esi
push str.network.proxy.http
push ebp
call fcn.004ff4e0
mov edi, dword [esp + 0x20]
push edi
push str.network.proxy.http_port
push ebp
call fcn.004ff4e0
cmp byte [esi], bl
je 0x517092
cmp byte [edi], bl
je 0x517092
push 0x103
lea ecx, [esp + 0x12d]
push ebx
push ecx
mov byte [esp + 0x134], bl
call fcn.005dfd60
add esp, 0xc
lea edx, [esp + 0x128]
push edx
push esi
mov dword [esp + 0x20], 1
call fcn.0050b090
cmp byte [esp + 0x128], bl
je 0x517092
lea eax, [esp + 0x128]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x5170a5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
cmp ebp, ebx
je 0x5170b2
push ebp
call fcn.005e0865
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x538]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005dfbbe
add esp, 0x52c
ret 0xc