Function at 0x505710
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565860
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x55c
push ebx
mov edx, dword [0x5c74b0]
push esi
push edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x260]
push eax
push ecx
push 0
push 0
push str.VScannerProgram
push edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x104
call esi
test eax, eax
jne 0x505a6e
lea edi, [ebp - 0x260]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 5
jb 0x505a6e
lea eax, [ebp - 0x568]
lea ecx, [ebp - 0x260]
push eax
push 0
push 0
push 0
push ecx
call fcn.0052776a
lea edx, [ebp - 0x568]
push 0x5a5c00
push edx
call fcn.0052f680
add esp, 0x1c
test eax, eax
jne 0x505a6e
mov edx, dword [0x5c74b0]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x15c]
push eax
push ecx
push 0
push 0
push str.VScannerParameters
push edx
mov dword [ebp - 0x18], 0xf0
call esi
test eax, eax
je 0x505809
mov edi, str.__File_
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x15c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x15c]
push str._File_
push ecx
call fcn.005271a0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x505a6e
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x468]
mov edx, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x15c]
lea ecx, [ebp - 0x15c]
sub edx, eax
push edx
lea edx, [ebp - 0x468]
push ecx
push edx
call fcn.005270a0
or ecx, 0xffffffff
mov edi, 0x5b75a0
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x468]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x468]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x468]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x5b75a0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x468]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 6]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
push 0x5b75a0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x11
lea edi, [ebp - 0x6c]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x6c], 0x44
mov dword [ebp - 0x40], 1
mov word [ebp - 0x3c], 6
call fcn.0054222c
lea eax, [ebp - 0x260]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
call fcn.0054259a
push 0x5bf2b4
lea ecx, [ebp - 0x14]
call fcn.0054259a
lea ecx, [ebp - 0x468]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0054259a
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x50598a
mov edx, dword [0x5c7e18]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push edx
push 0x138e
push 0x111
push esi
call ebx
jmp 0x505990
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x6c]
push eax
push ecx
push 0
push 0
push 0x30
push 1
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x505a7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x5c2a74]
mov dword [ebp + 8], eax
push edi
lea ecx, [ebp + 8]
push str.CreateProcess_error__d_during_SessionManager::VirusChecking___r_n
push ecx
mov byte [ebp - 4], 2
call fcn.0053afda
mov ecx, dword [ebp + 0x10]
add esp, 0xc
test ecx, ecx
je 0x5059ee
mov edx, dword [ebp + 8]
push edx
call fcn.004d1cc0
push 0
lea eax, [ebp + 0xc]
push 0
push eax
push 0x400
push edi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x5c80cc]
push ecx
lea eax, [ebp + 8]
push edx
push eax
call fcn.0053afda
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp + 8]
push 0x50030
push str.Internet_Download_Manager
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
test esi, esi
je 0x505a56
push str.Download_complete.
push 0x138e
push 0x111
push esi
call ebx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.005421be
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005421be
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [ebp - 0x28]
push edx
call edi
test esi, esi
je 0x505a62
push str.Download_complete.
push 0x138e
push 0x111
push esi
call ebx
jmp 0x505a62