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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4481c1
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4590c0]
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, 0x44e978
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 0x413484
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.004316dd
add esp, 8
cmp eax, esi
jl 0x41387b
mov ecx, dword [ebp - 0x214]
cmp eax, dword [ecx - 8]
jg 0x41387b
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 0x413696
push 0x1fc
lea edx, [ebp - 0x20e]
xor ecx, ecx
push esi
push edx
mov word [ebp - 0x210], cx
call fcn.00433910
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 0x4500f8
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, 0x450110
mov byte [ebp - 4], 1
call fcn.0040c120
mov eax, dword [ebp - 0x218]
add esp, 8
mov edi, eax
test eax, eax
jne 0x413580
xor esi, esi
jmp 0x4135c7
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x4135bd
lea ebx, [eax + eax]
mov eax, ebx
call fcn.004384a0
mov esi, esp
test esi, esi
je 0x4135bd
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 0x4135bf
xor eax, eax
mov esi, eax
mov eax, dword [ebp - 0x218]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4135dc
push 0x80004005
call fcn.00402060
mov ecx, dword [ebp - 0x220]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x413608
test dx, dx
je 0x413604
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x413608
add ecx, 4
add eax, 4
test dx, dx
jne 0x4135e2
xor eax, eax
jmp 0x41360d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x413641
mov eax, esi
lea edx, [eax + 1]
jmp 0x413620
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413620
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 0x413670
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 0x413696
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 0x41382e
push 0x1fc
lea eax, [ebp - 0x20e]
xor edx, edx
push edi
push eax
mov word [ebp - 0x210], dx
call fcn.00433910
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 0x4500f8
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, 0x450110
mov byte [ebp - 4], 2
call fcn.0040c120
mov eax, dword [ebp - 0x218]
add esp, 8
mov ebx, eax
test eax, eax
je 0x413782
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x41377c
lea esi, [eax + eax]
mov eax, esi
call fcn.004384a0
mov eax, esp
test eax, eax
je 0x41377c
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 0x413797
push 0x80004005
call fcn.00402060
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4137c6
test dx, dx
je 0x4137c2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4137c6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4137a0
xor eax, eax
jmp 0x4137cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x4137d9
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 0x413808
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 0x41382e
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 0x413857
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.00430f3e
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402060
int3