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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4481a1
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 0x413564
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.0043169d
add esp, 8
cmp eax, esi
jl 0x41395b
mov ecx, dword [ebp - 0x214]
cmp eax, dword [ecx - 8]
jg 0x41395b
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 0x413776
push 0x1fc
lea edx, [ebp - 0x20e]
xor ecx, ecx
push esi
push edx
mov word [ebp - 0x210], cx
call fcn.004338d0
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.0040c1e0
mov eax, dword [ebp - 0x218]
add esp, 8
mov edi, eax
test eax, eax
jne 0x413660
xor esi, esi
jmp 0x4136a7
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x41369d
lea ebx, [eax + eax]
mov eax, ebx
call fcn.004383d0
mov esi, esp
test esi, esi
je 0x41369d
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 0x41369f
xor eax, eax
mov esi, eax
mov eax, dword [ebp - 0x218]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4136bc
push 0x80004005
call fcn.00402060
mov ecx, dword [ebp - 0x220]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4136e8
test dx, dx
je 0x4136e4
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4136e8
add ecx, 4
add eax, 4
test dx, dx
jne 0x4136c2
xor eax, eax
jmp 0x4136ed
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x413721
mov eax, esi
lea edx, [eax + 1]
jmp 0x413700
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413700
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 0x413750
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 0x413776
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 0x41390e
push 0x1fc
lea eax, [ebp - 0x20e]
xor edx, edx
push edi
push eax
mov word [ebp - 0x210], dx
call fcn.004338d0
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.0040c1e0
mov eax, dword [ebp - 0x218]
add esp, 8
mov ebx, eax
test eax, eax
je 0x413862
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x41385c
lea esi, [eax + eax]
mov eax, esi
call fcn.004383d0
mov eax, esp
test eax, eax
je 0x41385c
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 0x413877
push 0x80004005
call fcn.00402060
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4138a6
test dx, dx
je 0x4138a2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4138a6
add ecx, 4
add eax, 4
test dx, dx
jne 0x413880
xor eax, eax
jmp 0x4138ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x4138b9
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 0x4138e8
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 0x41390e
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 0x413937
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.00430efe
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402060
int3