Function at 0x416c80
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451841
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4650c0]
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
lea eax, [ebp - 0x214]
push eax
mov ecx, 0x4589e4
call fcn.00401e30
xor esi, esi
mov dword [ebp - 4], esi
mov edx, dword [ebp - 0x214]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x416cf4
mov eax, 0x104
lea ecx, [ebp - 0x214]
call fcn.00402000
mov edx, dword [ebp - 0x214]
push 0x104
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00439f8d
add esp, 8
cmp eax, esi
jl 0x4170eb
mov ecx, dword [ebp - 0x214]
cmp eax, dword [ecx - 8]
jg 0x4170eb
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x214]
xor ecx, ecx
mov word [edx + eax*2], cx
lea eax, [ebp - 0x21c]
push eax
push 0x20007
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x21c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x416f06
push 0x1fc
lea edx, [ebp - 0x20e]
xor ecx, ecx
push esi
push edx
mov word [ebp - 0x210], cx
call fcn.0043c440
mov edx, dword [ebp - 0x21c]
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x210]
push ecx
push esi
push esi
push 0x45a3d8
push edx
mov dword [ebp - 0x224], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x210]
call fcn.00401e30
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x218]
push edx
mov ebx, 0x45a3f0
mov byte [ebp - 4], 1
call fcn.0040df70
mov eax, dword [ebp - 0x218]
add esp, 8
mov edi, eax
test eax, eax
jne 0x416df0
xor esi, esi
jmp 0x416e37
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x416e2d
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00440f80
mov esi, esp
test esi, esi
je 0x416e2d
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x416e2f
xor eax, eax
mov esi, eax
mov eax, dword [ebp - 0x218]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x416e4c
push 0x80004005
call fcn.00402060
mov ecx, dword [ebp - 0x220]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x416e78
test dx, dx
je 0x416e74
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x416e78
add ecx, 4
add eax, 4
test dx, dx
jne 0x416e52
xor eax, eax
jmp 0x416e7d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x416eb1
mov eax, esi
lea edx, [eax + 1]
jmp 0x416e90
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x416e90
sub eax, edx
push eax
mov eax, dword [ebp - 0x21c]
push esi
push 1
push 0
push str.SQ_Platform
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x218]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416ee0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416f06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x21c]
push ecx
push 0x20007
xor edi, edi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x21c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x41709e
push 0x1fc
lea eax, [ebp - 0x20e]
xor edx, edx
push edi
push eax
mov word [ebp - 0x210], dx
call fcn.0043c440
mov eax, dword [ebp - 0x21c]
add esp, 0xc
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x210]
push edx
push edi
push edi
push 0x45a3d8
push eax
mov dword [ebp - 0x224], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x210]
call fcn.00401e30
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x218]
push eax
mov ebx, 0x45a3f0
mov byte [ebp - 4], 2
call fcn.0040df70
mov eax, dword [ebp - 0x218]
add esp, 8
mov ebx, eax
test eax, eax
je 0x416ff2
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x416fec
lea esi, [eax + eax]
mov eax, esi
call fcn.00440f80
mov eax, esp
test eax, eax
je 0x416fec
push edi
push edi
push esi
push eax
push 0xffffffffffffffff
push ebx
push edi
push 3
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x218]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x417007
push 0x80004005
call fcn.00402060
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x417036
test dx, dx
je 0x417032
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x417036
add ecx, 4
add eax, 4
test dx, dx
jne 0x417010
xor eax, eax
jmp 0x41703b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x417049
mov edi, 1
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x218]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417078
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41709e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4170c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
lea esp, [ebp - 0x234]
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.004397ee
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402060
int3