Function at 0x5264c0
Capabilities:
Delete registry value
Query or enumerate registry value
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x608116
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
push 0xa
lea ecx, [edi + 4]
mov dword [ebp - 0x20], edi
call fcn.005dbd5c
lea esi, [edi + 0x20]
push 0x6ce7cc
push esi
mov dword [ebp - 4], 0
mov dword [edi], 0x6397b0
mov dword [ebp - 0x30], 0xffffffff
call fcn.005c5a8c
mov eax, dword [0x6cee40]
add esp, 8
test eax, eax
mov byte [ebp - 4], 1
jne 0x52652a
mov eax, 0x6cee44
push str.UrlHistory.txt
push eax
push 0x6a12a8
push esi
call fcn.005c5a8c
add esp, 0x10
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x15], 0
push 0x6ce7c8
call fcn.005e11fa
mov eax, dword [0x6ca27c]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
push ecx
push 0xf003f
push 0
push str.SoftwareDownloadManager_
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x52667c
lea edx, [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edx
push eax
push eax
push eax
mov eax, dword [ebp - 0x2c]
push str.UrlHistory
push eax
call esi
test eax, eax
jne 0x52667c
mov eax, dword [ebp - 0x24]
cmp eax, 1
jbe 0x526662
inc eax
push eax
call fcn.005dd58d
mov ecx, dword [ebp - 0x24]
add esp, 4
inc ecx
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
push ebx
push 0
push 0
push str.UrlHistory
push ecx
call esi
test eax, eax
jne 0x526656
push ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x15], 1
call fcn.005e1315
push 0x7c
lea ecx, [ebp - 0x14]
call fcn.005e1579
mov esi, eax
cmp esi, 0xffffffff
jle 0x526656
test esi, esi
jne 0x526613
push 1
push eax
lea ecx, [ebp - 0x14]
call fcn.005d9949
jmp 0x5265f1
lea edx, [ebp - 0x28]
push esi
push edx
lea ecx, [ebp - 0x14]
call fcn.005d9bbd
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.005e12c5
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.005e118c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
push eax
add ecx, 4
call fcn.005dbf05
inc esi
lea ecx, [ebp - 0x14]
push esi
push 0
call fcn.005d9949
jmp 0x5265f1
push ebx
call fcn.005dd5b6
mov edi, dword [ebp - 0x20]
add esp, 4
mov edx, dword [ebp - 0x2c]
push str.UrlHistory
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov al, byte [ebp - 0x15]
test al, al
jne 0x526781
push 0
push 0
push 4
push 0
push 1
lea eax, [edi + 0x20]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, eax
cmp edx, 0xffffffff
mov dword [ebp - 0x30], edx
jne 0x5266ca
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.005e118c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.005e118c
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x434]
push eax
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x434]
push ecx
push 0x3ff
push eax
push edx
call ebx
test eax, eax
je 0x52677e
mov eax, dword [ebp - 0x28]
test eax, eax
jbe 0x52677e
lea ecx, [ebp - 0x434]
push ecx
lea ecx, [ebp - 0x14]
call fcn.005e148e
push 0xa
lea ecx, [ebp - 0x14]
call fcn.005e1579
mov esi, eax
cmp esi, 0xffffffff
jle 0x526776
test esi, esi
jne 0x526733
push 1
push eax
lea ecx, [ebp - 0x14]
call fcn.005d9949
jmp 0x526711
lea edx, [ebp - 0x34]
push esi
push edx
lea ecx, [ebp - 0x14]
call fcn.005d9bbd
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.005e12c5
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.005e118c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
push eax
add ecx, 4
call fcn.005dbf05
inc esi
lea ecx, [ebp - 0x14]
push esi
push 0
call fcn.005d9949
jmp 0x526711
mov edx, dword [ebp - 0x30]
jmp 0x5266d0
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.005e118c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.005e118c
jmp 0x5267d4
mov eax, dword [ebp - 0x30]
cmp eax, 0xffffffff
je 0x5267e3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret