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

Disassembly:
push 0xffffffffffffffff
push 0x419ff8
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x4243c8]
xor eax, esp
mov dword [esp + 0x648], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4243c8]
xor eax, esp
push eax
lea eax, [esp + 0x660]
mov dword fs:[0], eax
xor ebp, ebp
push 0x618
lea eax, [esp + 0x46]
push ebp
push eax
mov dword [esp + 0x674], ebp
mov word [esp + 0x4c], bp
call fcn.0040b3b0
mov ecx, dword [esp + 0x67c]
push ecx
lea edx, [esp + 0x50]
push str.cmd__c__rmdir__s__q___s__
push edx
call fcn.0040b451
add esp, 0x18
lea eax, [esp + 0x14]
push eax
push 2
push ebp
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402738
mov esi, dword [sym.imp.RPCRT4.dll_UuidCreate]
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
call esi
mov edi, dword [sym.imp.ole32.dll_StringFromCLSID]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
call edi
lea ecx, [esp + 0x30]
push ecx
call esi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x34]
push eax
call edi
cmp dword [esp + 0x1c], ebp
je 0x4026bd
cmp dword [esp + 0x18], ebp
je 0x4026bd
call dword [0x42430c]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x40]
push ecx
call edi
mov ecx, dword [esp + 0x14]
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x44]
push eax
push 1
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ecx
call esi
mov ebx, dword [esp + 0x18]
push str.cmd__c__regsvr32__s_Urlmon.dllregsvr32__s_Actxprxy.dllregsvr32__s_Oleaut32.dllregsvr32__s_Shell32.dll_
call edi
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x14]
push edx
push str.cmd__c__regsvr32__s_Urlmon.dllregsvr32__s_Actxprxy.dllregsvr32__s_Oleaut32.dllregsvr32__s_Shell32.dll_
push 1
push ebp
push ebx
push eax
call esi
jmp 0x402709
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x40]
push ecx
call esi
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x44]
push eax
push 1
push ebp
push str.remove
push ecx
call edi
push str.cmd__c__regsvr32__s_Urlmon.dllregsvr32__s_Actxprxy.dllregsvr32__s_Oleaut32.dllregsvr32__s_Shell32.dll_
call esi
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x14]
push edx
push str.cmd__c__regsvr32__s_Urlmon.dllregsvr32__s_Actxprxy.dllregsvr32__s_Oleaut32.dllregsvr32__s_Shell32.dll_
push 1
push ebp
push str.rereg
push eax
call edi
mov eax, dword [esp + 0x1c]
cmp eax, ebp
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
je 0x40271e
push eax
call esi
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x40272d
push eax
call esi
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x670]
add eax, 0xfffffff0
mov dword [esp + 0x668], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402766
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x660]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x648]
xor ecx, esp
call fcn.0040b399
add esp, 0x658
ret