Function at 0x1005b530
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x548
mov eax, dword [0x10189710]
xor eax, esp
mov dword [esp + 0x544], eax
mov eax, dword [ebp + 8]
push ebx
push edi
xor ebx, ebx
mov edi, ecx
push 0x103
lea ecx, [esp + 0x25]
push ebx
push ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x2c], bl
call fcn.1012e060
add esp, 0xc
push 0x103
lea edx, [esp + 0x33d]
push ebx
push edx
mov byte [esp + 0x344], bl
call fcn.1012e060
add esp, 0xc
push 0x103
lea eax, [esp + 0x235]
push ebx
push eax
mov byte [esp + 0x23c], bl
call fcn.1012e060
add esp, 0xc
push 0x103
lea ecx, [esp + 0x445]
push ebx
push ecx
mov byte [esp + 0x44c], bl
call fcn.1012e060
mov byte [edi], bl
mov edi, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 0x1c], ebx
mov byte [esi], bl
cmp edi, ebx
je 0x1005b5e7
mov dword [edi], ebx
lea edx, [esp + 0xc]
push edx
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1005b61e
xor eax, eax
pop edi
pop ebx
mov ecx, dword [esp + 0x544]
xor ecx, esp
call fcn.10127db1
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebx
push str.AppData
push edx
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp byte [esp + 0x20], bl
jne 0x1005b660
push 0x1a
lea ecx, [esp + 0x24]
call fcn.100759a0
add esp, 4
cmp byte [esp + 0x20], bl
je 0x1005b822
push 1
lea eax, [esp + 0x24]
push eax
call fcn.100796e0
lea ecx, [esp + 0x20]
call fcn.10065200
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x33c]
push str._sMozilla_firefoxprofiles.ini
push edx
call fcn.10127dc0
add esp, 0xc
push 1
push ebx
xor edx, edx
lea ecx, [esp + 0x340]
call fcn.10060eb0
add esp, 8
test eax, eax
jne 0x1005b822
lea eax, [esp + 0x338]
push eax
push 0x104
lea ecx, [esp + 0x448]
push ecx
push 0x1014d5e3
push str.Path
push str.Profile0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x440], bl
je 0x1005b822
lea edx, [esp + 0x440]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x238]
push str._sMozilla_firefox_sprefs.js
push ecx
call fcn.10127dc0
push 0x10158184
lea edx, [esp + 0x244]
push 0x1015685c
push edx
call fcn.10064100
add esp, 0x1c
push 1
push ebx
xor edx, edx
lea ecx, [esp + 0x238]
call fcn.10060eb0
add esp, 8
test eax, eax
jne 0x1005b822
lea eax, [esp + 0x230]
push eax
xor ecx, ecx
lea edx, [esp + 0xc]
call fcn.1007a110
add esp, 4
test eax, eax
je 0x1005b822
mov ecx, dword [esp + 8]
cmp byte [ecx], bl
je 0x1005b822
cmp edi, ebx
je 0x1005b7ab
push 0x103
lea edx, [esp + 0x12d]
push ebx
push edx
mov byte [esp + 0x134], bl
call fcn.1012e060
mov ecx, dword [esp + 0x14]
add esp, 0xc
lea eax, [esp + 0x128]
push eax
mov edi, str.network.proxy.type
call fcn.1005b430
mov edx, dword [esp + 0x18]
xor ecx, ecx
cmp byte [esp + 0x128], 0x31
sete cl
mov dword [edx], ecx
mov ecx, dword [esp + 8]
push esi
mov edi, str.network.proxy.http
call fcn.1005b430
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
mov edi, str.network.proxy.http_port
call fcn.1005b430
cmp byte [esi], bl
je 0x1005b822
mov ecx, dword [esp + 0x14]
cmp byte [ecx], bl
je 0x1005b822
push 0x103
lea edx, [esp + 0x12d]
push ebx
push edx
mov byte [esp + 0x134], bl
call fcn.1012e060
add esp, 0xc
lea ebx, [esp + 0x128]
mov ecx, esi
mov dword [esp + 0x10], 1
call fcn.10086b20
cmp byte [esp + 0x128], 0
je 0x1005b820
mov eax, ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor ebx, ebx
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x1005b835
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x1005b846
push eax
call fcn.10128243
add esp, 4
mov ecx, dword [esp + 0x54c]
mov eax, dword [esp + 0x10]
pop edi
pop ebx
xor ecx, esp
call fcn.10127db1
mov esp, ebp
pop ebp
ret 4