Function at 0x458570
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 0x45889d
sub eax, 1
je 0x458797
sub eax, 1
jne 0x458a2e
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 0x4585c5
cmp esi, 1
je 0x4585c5
cmp esi, 2
je 0x4585c5
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 0x458a2e
cmp byte [ebp + 0x10], al
je 0x4586fb
mov edx, dword [ebp + 8]
push 1
push edx
call fcn.0044ec90
mov ebx, eax
mov eax, dword [0x50b39c]
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.004acca0
add esp, 0x1c
test eax, eax
je 0x4586dc
mov eax, str.____GHWNDNEW_
test esi, esi
jne 0x458647
mov eax, 0x4c2ee0
push eax
lea eax, [ebp - 0x510]
push eax
call fcn.00454e00
add esp, 8
test ebx, ebx
jne 0x458669
lea ecx, [ebp - 0x510]
mov dword [ebp + 0x10], ecx
jmp 0x458723
lea eax, [ebp - 0x510]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x458672
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, ebx
lea esi, [eax + 2]
jmp 0x458690
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x458690
sub eax, esi
sar eax, 1
lea esi, [eax + edx + 5]
lea edx, [esi + esi]
push edx
call fcn.004412a0
mov edi, eax
add esp, 4
test edi, edi
je 0x458723
lea eax, [ebp - 0x510]
push eax
push esi
push edi
call fcn.00401800
push 0x4da0cc
push esi
push edi
call fcn.00401880
push ebx
push esi
push edi
call fcn.00401880
mov dword [ebp + 0x10], edi
jmp 0x458723
mov ecx, dword [0x50bb90]
push ecx
push str.File_not_found
lea edx, [ebp - 0x510]
push 0x10
push edx
call fcn.00420020
add esp, 0x10
jmp 0x458715
cmp byte [ebp + 0x14], 0
je 0x458705
xor ebx, ebx
jmp 0x45871c
mov eax, dword [ebp + 8]
push 1
push eax
call fcn.0044ec90
add esp, 8
mov ebx, eax
mov dword [ebp + 0x10], ebx
test ebx, ebx
jne 0x458723
mov dword [ebp + 0x10], 0x4c1318
mov esi, dword [ebp + 0x10]
mov eax, esi
lea edx, [eax + 2]
jmp 0x458730
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x458730
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 0x45877d
cmp edi, ebx
je 0x45877d
lea ecx, [ebp - 0x510]
cmp edi, ecx
je 0x45877d
push edi
call fcn.00441300
add esp, 4
test ebx, ebx
je 0x458a2e
push ebx
call fcn.00441300
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.004b03e0
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 0x458878
push 0x208
lea ecx, [ebp - 0x920]
push 0
push ecx
call fcn.004b03e0
push 0x208
lea edx, [ebp - 0x718]
push 0
push edx
call fcn.004b03e0
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.004ad3e0
add esp, 4
push eax
lea edx, [ebp - 0x920]
push edx
call fcn.004ad3e0
add esp, 4
push eax
push 0
lea eax, [ebp - 0x208]
push eax
mov ecx, ebx
call fcn.00452f60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp word [ebp - 0x208], 0
je 0x458a2e
lea ecx, [ebp - 0x208]
push ecx
mov ecx, ebx
call fcn.00453270
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.004b03e0
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 0x458a16
push 0x208
lea ecx, [ebp - 0xb28]
push 0
push ecx
call fcn.004b03e0
push 0x208
lea edx, [ebp - 0x920]
push 0
push edx
call fcn.004b03e0
push 0x228
lea eax, [ebp - 0x430]
push 0
push eax
call fcn.004b03e0
push 0x104
lea ecx, [ebp - 0x104]
push 0
push ecx
call fcn.004b03e0
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.00450a20
add esp, 8
test eax, eax
je 0x4589ae
lea ecx, [ebp - 0x104]
push 0x4ce78c
push ecx
call fcn.00454da0
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 0x4589ae
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 0x4589d7
mov esi, str._inside
lea edx, [ebp - 0x430]
push edx
lea eax, [ebp - 0x920]
push eax
call fcn.004ad3e0
add esp, 4
push eax
lea ecx, [ebp - 0xb28]
push ecx
call fcn.004ad3e0
add esp, 4
push eax
push esi
lea edx, [ebp - 0x718]
push edx
mov ecx, ebx
call fcn.00452f60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp word [ebp - 0x718], 0
je 0x458a2e
lea eax, [ebp - 0x718]
push eax
mov ecx, ebx
call fcn.00453270
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10