Function at 0x495b10
Capabilities:
Access peb ldr_data
Get ntdll base address
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5552c7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x38], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], 0x11
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 0xa
lea eax, [esp + 0x30]
lea ecx, [esp + 0x10]
push eax
push ecx
push ebx
push 0xf003f
push ebx
push 0x5ba440
push ebx
push str.SoftwareDownloadManagerPasswords
push 0x80000001
mov dword [esp + 0x170], ebx
mov dword [esi], method.CCommandLineInfo.virtual_0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ebx
push ebx
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push ebx
lea edx, [esp + 0x50]
push ebx
lea eax, [esp + 0x40]
push edx
push eax
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x495dee
cmp dword [esp + 0x28], ebx
je 0x495dee
mov eax, dword [0x5b5ecc]
push ebp
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x154], 3
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x48]
push 0x104
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x34], ebp
jne 0x495d73
push str.SoftwareDownloadManagerPasswords_
lea ecx, [esp + 0x14]
call fcn.00537c8d
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.00537ee0
lea eax, [esp + 0x48]
lea ecx, [esp + 0x20]
push eax
call fcn.00537c8d
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x38]
lea edx, [esp + 0x1c]
push ecx
push edx
push ebx
push 0xf003f
push ebx
push 0x5ba440
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x495d73
mov eax, dword [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x48]
push ecx
push edx
push ebx
push ebx
push 0x5a5d74
push eax
mov dword [esp + 0x44], 0x104
call edi
test eax, eax
jne 0x495d73
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x28]
call fcn.00537c8d
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
lea eax, [esp + 0x48]
push edx
push eax
push ebx
push ebx
push 0x5a5d68
push ecx
mov dword [esp + 0x44], 0x104
call edi
test eax, eax
jne 0x495d73
lea edx, [esp + 0x48]
lea ecx, [esp + 0x28]
push edx
call fcn.00537c8d
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x40], eax
mov ebx, eax
call fcn.005309cb
xor edx, edx
div dword [esi + 8]
mov eax, dword [esi + 4]
test eax, eax
mov ebp, edx
je 0x495d0b
mov edi, dword [eax + ebp*4]
test edi, edi
je 0x495d0b
mov eax, dword [edi + 8]
push ebx
push eax
call fcn.0051c942
add esp, 8
test eax, eax
je 0x495d07
mov edi, dword [edi]
test edi, edi
jne 0x495cee
jmp 0x495d0b
test edi, edi
jne 0x495d46
mov eax, dword [esi + 4]
test eax, eax
jne 0x495d1f
mov eax, dword [esi + 8]
push 1
push eax
mov ecx, esi
call fcn.00497690
mov ecx, esi
call fcn.00497700
mov ecx, dword [esp + 0x3c]
mov edi, eax
push ecx
lea ecx, [edi + 8]
mov dword [edi + 4], ebp
call fcn.00537c8d
mov edx, dword [esi + 4]
mov eax, dword [edx + ebp*4]
mov dword [edi], eax
mov ecx, dword [esi + 4]
mov dword [ecx + ebp*4], edi
add edi, 0xc
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call fcn.00537c3d
lea eax, [esp + 0x28]
lea ecx, [edi + 4]
push eax
call fcn.00537c3d
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x34]
xor ebx, ebx
mov ecx, dword [esp + 0x14]
inc ecx
cmp ebp, ebx
mov dword [esp + 0x14], ecx
je 0x495bd6
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 2
call fcn.00537b04
lea ecx, [esp + 0x20]
mov byte [esp + 0x154], 1
call fcn.00537b04
lea ecx, [esp + 0x28]
mov byte [esp + 0x154], 4
call fcn.00537b04
lea ecx, [esp + 0x24]
mov byte [esp + 0x154], 0
call fcn.00537b04
pop edi
mov eax, esi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
add esp, 0x148
ret
mov ecx, dword [esp + 0x144]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x148
ret