Function at 0x464bf0
Capabilities:
Persist via command processor registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0xb28
push ebx
push esi
push edi
xor edi, edi
sub eax, edi
mov ebx, ecx
je 0x464f1d
sub eax, 1
je 0x464e17
sub eax, 1
jne 0x4650ae
mov eax, dword [ebp + 8]
push edi
push edi
push pe_nt_image_headers32
push 0x96b
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov esi, eax
cmp esi, edi
je 0x464c45
cmp esi, 1
je 0x464c45
cmp esi, 2
je 0x464c45
xor esi, esi
lea ecx, [ebp + 8]
push ecx
push 0x2001f
push edi
push str.SoftwareMicrosoftCommand_Processor
push SysReAllocString
mov dword [ebp + 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4650ae
cmp byte [ebp + 0x10], al
je 0x464d7d
mov edx, dword [ebp + 8]
push 1
push edx
call fcn.0045a750
mov ebx, eax
mov eax, dword [0x52fe2c]
add eax, 0x5c8
push eax
lea ecx, [ebp - 0x510]
push str.__sCmd_Autorun.cmd
push ecx
mov dword [ebp + 0x10], ebx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp - 0x50e]
push 0
push edx
call fcn.004c5850
add esp, 0x1c
test al, al
je 0x464d5c
mov eax, str.____GHWNDNEW_
test esi, esi
jne 0x464cc7
mov eax, 0x4e587c
push eax
lea eax, [ebp - 0x510]
push eax
call fcn.00460c20
add esp, 8
test ebx, ebx
jne 0x464ce9
lea ecx, [ebp - 0x510]
mov dword [ebp + 0x10], ecx
jmp 0x464da5
lea eax, [ebp - 0x510]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x464cf2
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, ebx
lea esi, [eax + 2]
jmp 0x464d10
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x464d10
sub eax, esi
sar eax, 1
lea esi, [eax + edx + 5]
lea edx, [esi + esi]
push edx
call fcn.0044c4d0
mov edi, eax
add esp, 4
test edi, edi
je 0x464da5
lea eax, [ebp - 0x510]
push eax
push esi
push edi
call fcn.00401730
push 0x4fb1e4
push esi
push edi
call fcn.004017b0
push ebx
push esi
push edi
call fcn.004017b0
mov dword [ebp + 0x10], edi
jmp 0x464da5
mov ecx, dword [0x5306c8]
push 1
push ecx
push str.File_not_found
lea edx, [ebp - 0x510]
push 0x10
push edx
call fcn.004262f0
add esp, 0x14
jmp 0x464d97
cmp byte [ebp + 0x14], 0
je 0x464d87
xor ebx, ebx
jmp 0x464d9e
mov eax, dword [ebp + 8]
push 1
push eax
call fcn.0045a750
add esp, 8
mov ebx, eax
mov dword [ebp + 0x10], ebx
test ebx, ebx
jne 0x464da5
mov dword [ebp + 0x10], 0x4e5034
mov esi, dword [ebp + 0x10]
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x464db0
sub eax, edx
mov edx, dword [ebp + 8]
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push str.AutoRun
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x464dfd
cmp edi, ebx
je 0x464dfd
lea ecx, [ebp - 0x510]
cmp edi, ecx
je 0x464dfd
push edi
call fcn.0044c4f0
add esp, 4
test ebx, ebx
je 0x4650ae
push ebx
call fcn.0044c4f0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x208
lea edx, [ebp - 0x208]
push edi
push edx
call fcn.004c9b50
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_GetDlgItemTextW]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0x967
push esi
call edi
cmp byte [ebp + 0x10], 0
je 0x464ef8
push 0x208
lea ecx, [ebp - 0x920]
push 0
push ecx
call fcn.004c9b50
push 0x208
lea edx, [ebp - 0x718]
push 0
push edx
call fcn.004c9b50
add esp, 0x18
push 0x104
lea eax, [ebp - 0x920]
push eax
push 0x956
push esi
call edi
push 0x104
lea ecx, [ebp - 0x718]
push ecx
push 0x957
push esi
call edi
push 0x114
lea edx, [ebp - 0x430]
push edx
push 0x955
push esi
call edi
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x718]
push ecx
call fcn.00406cc0
add esp, 4
push eax
lea edx, [ebp - 0x920]
push edx
call fcn.00406cc0
add esp, 4
push eax
push 0
lea eax, [ebp - 0x208]
push eax
mov ecx, ebx
call fcn.0045edf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp word [ebp - 0x208], 0
je 0x4650ae
lea ecx, [ebp - 0x208]
push ecx
mov ecx, ebx
call fcn.0045f150
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x208
lea edx, [ebp - 0x718]
push edi
push edx
call fcn.004c9b50
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_GetDlgItemTextW]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x718]
push eax
push 0x966
push esi
call edi
cmp byte [ebp + 0x10], 0
je 0x465096
push 0x208
lea ecx, [ebp - 0xb28]
push 0
push ecx
call fcn.004c9b50
push 0x208
lea edx, [ebp - 0x920]
push 0
push edx
call fcn.004c9b50
push 0x228
lea eax, [ebp - 0x430]
push 0
push eax
call fcn.004c9b50
push 0x104
lea ecx, [ebp - 0x104]
push 0
push ecx
call fcn.004c9b50
add esp, 0x30
push 0x104
lea edx, [ebp - 0xb28]
push edx
push 0x951
push esi
call edi
push 0x104
lea eax, [ebp - 0x920]
push eax
push 0x952
push esi
call edi
push 0x95d
push esi
call fcn.0045c160
add esp, 8
test eax, eax
je 0x46502e
lea ecx, [ebp - 0x104]
push 0x4edaf4
push ecx
call fcn.00460bc0
add esp, 8
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0x104
sub ecx, eax
push ecx
lea edx, [ebp + eax*2 - 0x104]
push edx
push 0x9af
push esi
call edi
cmp word [ebp - 0xf4], 0
jne 0x46502e
xor eax, eax
mov word [ebp - 0x104], ax
push 0x114
lea ecx, [ebp - 0x430]
push ecx
push 0x950
push esi
call edi
cmp word [ebp - 0x104], 0
lea esi, [ebp - 0x104]
jne 0x465057
mov esi, str._inside
lea edx, [ebp - 0x430]
push edx
lea eax, [ebp - 0x920]
push eax
call fcn.00406cc0
add esp, 4
push eax
lea ecx, [ebp - 0xb28]
push ecx
call fcn.00406cc0
add esp, 4
push eax
push esi
lea edx, [ebp - 0x718]
push edx
mov ecx, ebx
call fcn.0045edf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp word [ebp - 0x718], 0
je 0x4650ae
lea eax, [ebp - 0x718]
push eax
mov ecx, ebx
call fcn.0045f150
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10