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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558946
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x530
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.005326bb
lea esi, [edi + 0x20]
push 0x5ba440
push esi
mov dword [ebp - 4], 0
mov dword [edi], 0x566528
mov dword [ebp - 0x2c], 0xffffffff
call fcn.0051d0e8
mov eax, dword [0x5ba8a4]
add esp, 8
mov byte [ebp - 4], 1
push str.UrlHistory.txt
push eax
push 0x598a7c
push esi
call fcn.0051d0e8
add esp, 0x10
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x15], 0
push 0x5ba440
call fcn.00537b72
mov ecx, dword [0x5b5ecc]
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0x24]
mov byte [ebp - 4], 3
push edx
push 0xf003f
push 0
push str.SoftwareDownloadManager_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c1ab9
mov ecx, dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
push str.UrlHistory
push ecx
call esi
test eax, eax
jne 0x4c1ab9
mov eax, dword [ebp - 0x30]
cmp eax, 1
jbe 0x4c1a9f
inc eax
push eax
call fcn.005380a1
mov edx, dword [ebp - 0x30]
mov ebx, eax
xor eax, eax
mov edi, ebx
lea ecx, [edx + 1]
add esp, 4
mov edx, ecx
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 - 0x24]
lea eax, [ebp - 0x30]
push eax
push ebx
push 0
push 0
push str.UrlHistory
push ecx
call esi
test eax, eax
jne 0x4c1a93
push ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x15], 1
call fcn.00537c8d
push 0x7c
lea ecx, [ebp - 0x14]
call fcn.00537fcb
mov esi, eax
cmp esi, 0xffffffff
jle 0x4c1a93
test esi, esi
jne 0x4c1a50
push 1
push eax
lea ecx, [ebp - 0x14]
call fcn.005301d1
jmp 0x4c1a2e
lea edx, [ebp - 0x28]
push esi
push edx
lea ecx, [ebp - 0x14]
call fcn.005304fa
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00537c3d
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00537b04
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
push eax
add ecx, 4
call fcn.00532864
inc esi
lea ecx, [ebp - 0x14]
push esi
push 0
call fcn.005301d1
jmp 0x4c1a2e
push ebx
call fcn.005380ca
mov edi, dword [ebp - 0x20]
add esp, 4
mov edx, dword [ebp - 0x24]
push str.UrlHistory
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov al, byte [ebp - 0x15]
test al, al
jne 0x4c1bbe
push 0
push 0
push 4
push 0
push 1
lea eax, [edi + 0x20]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
cmp edx, 0xffffffff
mov dword [ebp - 0x2c], edx
jne 0x4c1b07
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00537b04
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00537b04
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, 0x100
xor eax, eax
lea edi, [ebp - 0x53c]
push eax
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x53c]
push ecx
push 0x3ff
push eax
push edx
call ebx
test eax, eax
je 0x4c1bbb
mov eax, dword [ebp - 0x28]
test eax, eax
jbe 0x4c1bbb
lea ecx, [ebp - 0x53c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00537ee0
push 0xa
lea ecx, [ebp - 0x14]
call fcn.00537fcb
mov esi, eax
cmp esi, 0xffffffff
jle 0x4c1bb3
test esi, esi
jne 0x4c1b70
push 1
push eax
lea ecx, [ebp - 0x14]
call fcn.005301d1
jmp 0x4c1b4e
lea edx, [ebp - 0x34]
push esi
push edx
lea ecx, [ebp - 0x14]
call fcn.005304fa
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.00537c3d
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.00537b04
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
push eax
add ecx, 4
call fcn.00532864
inc esi
lea ecx, [ebp - 0x14]
push esi
push 0
call fcn.005301d1
jmp 0x4c1b4e
mov edx, dword [ebp - 0x2c]
jmp 0x4c1b0d
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00537b04
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00537b04
jmp 0x4c1c11
mov eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
je 0x4c1c20
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