Function at 0x424fb0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push str.:r:k:
xor ebx, ebx
push edi
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [0x44a4c8], ebx
call fcn.00430880
add esp, 0xc
cmp eax, 0xffffffff
je 0x425019
cmp eax, 0x6b
je 0x424ffc
cmp eax, 0x72
jne 0x4252a3
mov eax, dword [0x44fa90]
mov dword [ebp - 8], eax
jmp 0x425005
mov ecx, dword [0x44fa90]
mov dword [ebp - 4], ecx
push str.:r:k:
push edi
push esi
call fcn.00430880
add esp, 0xc
cmp eax, 0xffffffff
jne 0x424fe4
mov eax, dword [0x44a4c8]
sub esi, eax
cmp esi, 1
lea edi, [edi + eax*4]
jle 0x42503e
mov eax, dword [0x44f8ec]
push ebx
push eax
call fcn.00406f30
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jne 0x425057
mov ecx, dword [edi]
push ecx
call fcn.004232d0
mov edx, dword [edi]
mov edi, dword [ebp - 0xc]
add esp, 4
mov ebx, eax
mov dword [ebp + 0xc], edx
jmp 0x42505c
mov edi, 1
mov esi, dword [ebp - 4]
test esi, esi
je 0x4250a4
mov al, byte [esi]
test al, al
je 0x4250a4
and eax, 0xff
push eax
mov eax, dword [str.PVST]
push eax
call fcn.0042d3b0
add esp, 8
test eax, eax
je 0x425086
inc esi
jne 0x425063
jmp 0x4250a4
xor ecx, ecx
mov cl, byte [esi]
push ecx
push str.0Bad_Restore_Option__c
call fcn.00401fa0
add esp, 8
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00424b60
add esp, 4
mov esi, eax
test edi, edi
je 0x4250db
push 0x5c
push esi
call fcn.004303a0
add esp, 8
test eax, eax
jne 0x4250c9
mov dword [ebp + 0xc], esi
mov eax, esi
jmp 0x4250cd
inc eax
mov dword [ebp + 0xc], eax
push eax
push str.saving_environment_as___s_
call fcn.00401fa0
add esp, 8
mov edx, dword [ebp - 4]
push edx
push esi
call fcn.00424740
mov ebx, eax
mov eax, dword [ebp - 8]
xor edi, edi
add esp, 8
cmp eax, edi
je 0x42529a
push str.RunOnce
mov dword [ebp + 8], edi
mov dword [ebp - 4], edi
call fcn.004232d0
add esp, 4
push eax
call fcn.00415230
add esp, 4
lea ecx, [ebp - 0xc]
lea edx, [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push edx
push edi
push 0x20006
push edi
push 0x44b560
push edi
push eax
push 0x80000001
call esi
mov dword [0x4586cc], eax
lea eax, [ebp - 0xc]
lea ecx, [ebp - 4]
push eax
push ecx
push edi
push 0x20006
push edi
push 0x44b560
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push 0x80000001
call esi
cmp eax, edi
mov dword [0x4586cc], eax
je 0x42517b
push str._Cannot_open_registry_key
call fcn.00401fa0
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.mks_shell_restart_
call fcn.004152b0
mov edx, dword [ebp + 0xc]
add esp, 4
push edx
call fcn.00415300
mov eax, dword [0x457d6c]
add esp, 4
push eax
call fcn.00415230
add esp, 4
mov esi, eax
call fcn.00424870
mov edi, eax
test edi, edi
jne 0x4251bb
push str.start
call fcn.004152b0
jmp 0x4251db
push str.start__c__D
call fcn.004152b0
add esp, 4
push edi
call fcn.00415300
add esp, 4
push 0x442a00
call fcn.00415300
mov ecx, dword [ebp - 8]
add esp, 4
push ecx
call fcn.00415300
mov edx, dword [0x457d70]
mov eax, dword [0x457d6c]
mov ecx, dword [ebp + 8]
add esp, 4
inc edx
push edx
push eax
push 1
push 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
call esi
test eax, eax
mov dword [0x4586cc], eax
je 0x425220
push str._Cannot_write_to_registry
call fcn.00401fa0
add esp, 4
inc ebx
push str.wstart__Nm
call fcn.004152b0
add esp, 4
push str._mksnt_sh.exe
call fcn.004290b0
add esp, 4
push eax
call fcn.00415300
add esp, 4
push str.__H
call fcn.00415300
add esp, 4
push str._etc_mksenv.ksh
call fcn.004290b0
add esp, 4
push eax
call fcn.00415300
mov edx, dword [0x457d70]
mov eax, dword [0x457d6c]
mov ecx, dword [ebp - 4]
add esp, 4
inc edx
push edx
push eax
push 1
push 0
push str.MKSKornShellStatup
push ecx
call esi
test eax, eax
mov dword [0x4586cc], eax
je 0x42529a
push str._Cannot_write_to_registry
call fcn.00401fa0
add esp, 4
inc ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x44f8ec]
push eax
push edx
call fcn.00406f30
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret