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

Disassembly:
push 0xffffffffffffffff
push 0x4efae0
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
xor eax, eax
mov ebx, ecx
mov word [esp + 0x24], ax
xor ebp, ebp
push 0x1d
mov eax, 0x505fc8
lea esi, [esp + 0x28]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebp
call fcn.00404e70
mov edi, esi
lea esi, [esp + 0x68]
mov dword [esp + 0x90], ebp
call fcn.00415570
mov edi, 8
mov byte [esp + 0x90], 1
cmp dword [eax + 0x14], edi
jb 0x402506
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.00405cc0
mov byte [esp + 0x90], 3
cmp dword [esp + 0x7c], edi
jb 0x40252d
mov edx, dword [esp + 0x68]
push edx
call fcn.004c9387
add esp, 4
mov esi, 7
xor eax, eax
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebp
mov word [esp + 0x68], ax
mov byte [esp + 0x90], 4
cmp dword [esp + 0x38], edi
jb 0x40255c
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004c9387
add esp, 4
mov eax, dword [0x52a1ec]
xor edx, edx
mov word [esp + 0x24], dx
mov edx, dword [eax + 0xc]
mov ecx, 0x52a1ec
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebp
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x90], 5
mov eax, dword [esp + 0x1c]
push eax
push str.__s_
lea edi, [esp + 0x20]
call fcn.00404770
mov ecx, dword [ebx]
add esp, 8
cmp dword [ecx - 0xc], ebp
je 0x4025c9
push 1
push 0x506a64
mov ebx, edi
call fcn.004057e0
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call fcn.004057e0
mov esi, 7
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
xor eax, eax
push 0x2011f
lea ecx, [esp + 0x44]
mov word [esp + 0x50], ax
push ecx
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov ecx, SysReAllocString
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebp
call fcn.00405df0
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x40]
test eax, eax
jne 0x402630
xor eax, eax
cmp esi, ebp
setne al
cmp eax, ebp
je 0x402630
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push ebp
push 0x505fc8
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [esp + 0x90], 7
cmp dword [esp + 0x60], 8
jb 0x40264c
mov eax, dword [esp + 0x4c]
push eax
call fcn.004c9387
add esp, 4
cmp edi, ebp
je 0x402657
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [esp + 0x90], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40267b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4026a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004c9392
add esp, 0x80
ret