Function at 0x402ad0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41630d
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x41f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
xor ebx, ebx
movq qword [ebp - 0x224], xmm0
xor edi, edi
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x25c], edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 4], edi
xor eax, eax
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], edi
mov word [ebp - 0x254], ax
mov dword [ebp - 0x228], 7
mov dword [ebp - 0x22c], eax
mov word [ebp - 0x23c], ax
push 0x208
push eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
call fcn.004072f0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 1
push ecx
lea ecx, [ebp - 0x270]
call fcn.004048f0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x224]
cmp eax, esi
je 0x402be6
mov ecx, eax
call fcn.00404170
mov edi, dword [esi + 4]
mov ebx, dword [esi]
mov eax, dword [esi + 8]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x25c], edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], eax
mov dword [esi + 8], 0
lea ecx, [ebp - 0x270]
call fcn.00404170
mov ecx, edi
mov eax, 0x2aaaaaab
sub ecx, ebx
xor esi, esi
imul ecx
mov dword [ebp - 0x264], esi
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [ebp - 0x260], ecx
je 0x402d80
mov edi, ebx
cmp ecx, esi
jbe 0x402ed0
lea eax, [ebp - 0x254]
cmp eax, edi
je 0x402c3a
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.004019f0
cmp dword [ebp - 0x240], 8
lea eax, [ebp - 0x254]
push 1
cmovae eax, dword [ebp - 0x254]
push eax
push ecx
lea ecx, [ebp - 0x27c]
call fcn.00404b90
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x23c]
cmp eax, esi
je 0x402cad
mov eax, dword [ebp - 0x228]
cmp eax, 8
jb 0x402c84
inc eax
push eax
push dword [ebp - 0x23c]
call fcn.004018d0
xor eax, eax
mov dword [ebp - 0x228], 7
push esi
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], ax
call fcn.004015b0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x268]
cmp eax, 8
jb 0x402cc9
inc eax
push eax
push dword [ebp - 0x27c]
call fcn.004018d0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
cmp word [edx], 0
jne 0x402ce2
xor ecx, ecx
jmp 0x402cf6
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402ce7
sub ecx, esi
sar ecx, 1
push ecx
push ecx
push edx
lea ecx, [ebp - 0x23c]
call fcn.00404210
cmp eax, 0xffffffff
je 0x402d62
cmp dword [ebp - 0x240], 8
lea eax, [ebp - 0x258]
push eax
push 0xf013f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea esi, [ebp - 0x254]
mov dword [ebp - 0x258], 0
cmovae esi, dword [ebp - 0x254]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402d56
push esi
push dword [ebp - 0x258]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x258]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x264]
add edi, 0x18
mov ecx, dword [ebp - 0x260]
inc esi
mov dword [ebp - 0x264], esi
cmp ecx, esi
ja 0x402c24
push 0
push ecx
lea ecx, [ebp - 0x270]
call fcn.004048f0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x224]
cmp eax, esi
je 0x402dd8
mov ecx, eax
call fcn.00404170
mov eax, dword [esi + 4]
mov ebx, dword [esi]
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x220], eax
mov eax, dword [esi + 8]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x21c], eax
mov dword [esi + 8], 0
lea ecx, [ebp - 0x270]
call fcn.00404170
mov ecx, dword [ebp - 0x25c]
mov eax, 0x2aaaaaab
sub ecx, ebx
xor edi, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x260], eax
je 0x402f6d
cmp eax, edi
jbe 0x402ed0
lea eax, [ebp - 0x254]
cmp eax, ebx
je 0x402e28
push 0xffffffffffffffff
push 0
push ebx
mov ecx, eax
call fcn.004019f0
cmp dword [ebp - 0x240], 8
lea eax, [ebp - 0x254]
push 0
cmovae eax, dword [ebp - 0x254]
push eax
push ecx
lea ecx, [ebp - 0x27c]
call fcn.00404b90
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x23c]
cmp eax, esi
je 0x402e9b
mov eax, dword [ebp - 0x228]
cmp eax, 8
jb 0x402e72
inc eax
push eax
push dword [ebp - 0x23c]
call fcn.004018d0
xor eax, eax
mov dword [ebp - 0x228], 7
push esi
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], ax
call fcn.004015b0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x268]
cmp eax, 8
jb 0x402eb7
inc eax
push eax
push dword [ebp - 0x27c]
call fcn.004018d0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
cmp word [edx], 0
jne 0x402eda
xor ecx, ecx
jmp 0x402eef
push str.invalid_vector_T__subscript
call fcn.0040509c
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402ee0
sub ecx, esi
sar ecx, 1
push ecx
push ecx
push edx
lea ecx, [ebp - 0x23c]
call fcn.00404210
cmp eax, 0xffffffff
je 0x402f5b
cmp dword [ebp - 0x240], 8
lea eax, [ebp - 0x258]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea esi, [ebp - 0x254]
mov dword [ebp - 0x258], 0
cmovae esi, dword [ebp - 0x254]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402f4f
push esi
push dword [ebp - 0x258]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x258]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x260]
inc edi
add ebx, 0x18
cmp eax, edi
ja 0x402e12
mov eax, dword [ebp - 0x228]
cmp eax, 8
jb 0x402f85
inc eax
push eax
push dword [ebp - 0x23c]
call fcn.004018d0
xor eax, eax
mov dword [ebp - 0x228], 7
mov word [ebp - 0x23c], ax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x22c], 0
cmp eax, 8
jb 0x402fba
inc eax
push eax
push dword [ebp - 0x254]
call fcn.004018d0
xor eax, eax
mov dword [ebp - 0x240], 7
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], ax
call fcn.00404170
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004050c9
mov esp, ebp
pop ebp
ret