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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469db5
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x94], eax
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 4], ebx
mov ecx, 7
xor edx, edx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], dx
mov eax, SysReAllocStringLen
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
xor eax, eax
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], ax
mov eax, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x44], ecx
xor ecx, ecx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], cx
lea edx, [ebp - 0x9c]
push edx
mov ecx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov byte [ebp - 4], 5
call fcn.00401110
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
cmp dword [eax + 0x144], ebx
lea esi, [ebp - 0x3c]
lea eax, [ebp - 0x64]
jne 0x410529
lea eax, [ebp - 0x8c]
call fcn.00404590
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x9c]
cmp dword [ebp - 0x3c], eax
je 0x410547
cmp eax, ebx
je 0x410547
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x3c]
push ebx
lea ecx, [ebp - 0x38]
push ecx
push ebx
push 0xf003f
push ebx
push 0x4776ac
push ebx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
mov eax, esi
mov dword [ebp - 0x34], 0xf003f
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x410572
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x30]
call fcn.00430450
cmp edi, ebx
jne 0x4108ac
mov eax, dword [0x484034]
mov edx, dword [eax + 0xc]
mov ecx, 0x484034
call edx
add eax, 0x10
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 7
mov eax, dword [0x487924]
add eax, 0xfffffff0
call fcn.004267f0
lea esi, [eax + 0x10]
mov dword [ebp - 0xa4], esi
mov byte [ebp - 4], 8
mov edi, dword [esi - 0xc]
cmp edi, ebx
jge 0x4105db
push 0x80070057
call fcn.00401670
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4105ff
mov eax, edi
lea ecx, [ebp - 0xa4]
call fcn.00401430
mov esi, dword [ebp - 0xa4]
lea eax, [edi + 1]
push eax
push esi
call fcn.00450387
add esp, 8
cmp edi, dword [esi - 8]
jg 0x4105d1
xor ecx, ecx
mov dword [esi - 0xc], edi
mov word [esi + edi*2], cx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
push str._s__d
lea edi, [ebp - 0x98]
call fcn.00428bb0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx - 0xc]
lea eax, [edx - 1]
add esp, 0xc
cmp eax, ebx
jl 0x4105d1
cmp eax, edx
jg 0x4105d1
cmp word [ecx + eax*2], 0x5c
jne 0x410690
lea eax, [edx - 1]
lea ecx, [ebp - 0xa0]
lea edx, [ebp + 0x18]
call fcn.00421f00
lea edi, [ebp + 0x18]
mov byte [ebp - 4], 9
call fcn.00421640
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0xa0]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410690
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x90]
push ecx
mov ecx, 0x4721b4
call fcn.00401110
mov byte [ebp - 4], 0xa
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [ebp - 0x90]
call fcn.00424980
push 8
push str.___sid_
call fcn.00424980
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call fcn.00424980
push 0xf
push str.___installDir_
call fcn.00424980
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call fcn.00424980
push 1
push 0x4721b4
call fcn.00424980
mov edx, dword [ebp - 0x90]
mov eax, edx
mov dword [ebp - 0xb8], 1
lea edi, [eax + 2]
jmp 0x410710
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410710
mov ecx, dword [ebp - 0xa0]
sub eax, edi
sar eax, 1
push ecx
lea eax, [edx + eax*2 + 2]
xor ebx, ebx
push eax
lea ecx, [ebp - 0xb4]
push ecx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xac], ebx
call fcn.0042b6b0
mov byte [ebp - 4], 0xb
mov edi, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0x38]
sub eax, edi
push eax
mov eax, dword [ebp - 0x98]
push edi
push edx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x410831
mov eax, dword [ebp - 0x90]
add eax, 0xfffffff0
call fcn.004267f0
mov edx, dword [ebp - 0x94]
add eax, 0x10
mov dword [edx], eax
cmp edi, ebx
je 0x4107a6
push edi
call fcn.0044ee8c
add esp, 4
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x90]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4107cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [ebp - 4], 7
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4107ec
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x98]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410812
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x9c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4108d7
cmp edi, ebx
je 0x41083e
push edi
call fcn.0044ee8c
add esp, 4
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x90]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410864
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [ebp - 4], 7
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410884
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x98]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4108aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
mov ecx, dword [ebp - 0x94]
push ecx
mov ecx, 0x4776ac
call fcn.00401110
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x9c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4108e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x60]
cmp eax, ebx
je 0x4108fa
cmp dword [ebp - 0x64], eax
je 0x4108fa
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
jmp 0x410900
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x44], 8
jb 0x410912
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.0044ee8c
add esp, 4
mov eax, dword [ebp - 0x88]
xor edx, edx
mov edi, 7
mov word [ebp - 0x58], dx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], edi
cmp eax, ebx
je 0x410938
cmp dword [ebp - 0x8c], eax
je 0x410938
push eax
call esi
cmp dword [ebp - 0x6c], 8
jb 0x41094a
mov eax, dword [ebp - 0x80]
push eax
call fcn.0044ee8c
add esp, 4
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov word [ebp - 0x80], cx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], edi
cmp eax, ebx
je 0x410965
cmp dword [ebp - 0x3c], eax
je 0x410965
push eax
call esi
cmp dword [ebp - 0x1c], 8
jb 0x410977
mov edx, dword [ebp - 0x30]
push edx
call fcn.0044ee8c
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x30], ax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4109a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4109c8
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 + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4109ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044ee97
mov esp, ebp
pop ebp
ret 0x14