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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fd65
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x4786a0]
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 + 0x124], ebx
lea esi, [ebp - 0x3c]
lea eax, [ebp - 0x64]
jne 0x40eed9
lea eax, [ebp - 0x8c]
call fcn.00404210
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x9c]
cmp dword [ebp - 0x3c], eax
je 0x40eef7
cmp eax, ebx
je 0x40eef7
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 0x46cea0
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 0x40ef22
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x30]
call fcn.00429690
cmp edi, ebx
jne 0x40f25c
mov eax, dword [0x478034]
mov edx, dword [eax + 0xc]
mov ecx, 0x478034
call edx
add eax, 0x10
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 7
mov eax, dword [0x47b764]
add eax, 0xfffffff0
call fcn.004218e0
lea esi, [eax + 0x10]
mov dword [ebp - 0xa4], esi
mov byte [ebp - 4], 8
mov edi, dword [esi - 0xc]
cmp edi, ebx
jge 0x40ef8b
push 0x80070057
call fcn.00401680
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40efaf
mov eax, edi
lea ecx, [ebp - 0xa4]
call fcn.00401440
mov esi, dword [ebp - 0xa4]
lea eax, [edi + 1]
push eax
push esi
call fcn.00446937
add esp, 8
cmp edi, dword [esi - 8]
jg 0x40ef81
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.00422e30
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx - 0xc]
lea eax, [edx - 1]
add esp, 0xc
cmp eax, ebx
jl 0x40ef81
cmp eax, edx
jg 0x40ef81
cmp word [ecx + eax*2], 0x5c
jne 0x40f040
lea eax, [edx - 1]
lea ecx, [ebp - 0xa0]
lea edx, [ebp + 0x18]
call fcn.0041e3e0
lea edi, [ebp + 0x18]
mov byte [ebp - 4], 9
call fcn.0041db20
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 0x40f040
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, 0x4695fc
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.00420540
push 8
push str.___sid_
call fcn.00420540
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call fcn.00420540
push 0xf
push str.___installDir_
call fcn.00420540
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call fcn.00420540
push 1
push 0x4695fc
call fcn.00420540
mov edx, dword [ebp - 0x90]
mov eax, edx
mov dword [ebp - 0xb8], 1
lea edi, [eax + 2]
jmp 0x40f0c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f0c0
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.004250d0
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 0x40f1e1
mov eax, dword [ebp - 0x90]
add eax, 0xfffffff0
call fcn.004218e0
mov edx, dword [ebp - 0x94]
add eax, 0x10
mov dword [edx], eax
cmp edi, ebx
je 0x40f156
push edi
call fcn.0044543c
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 0x40f17c
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 0x40f19c
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 0x40f1c2
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 0x40f287
cmp edi, ebx
je 0x40f1ee
push edi
call fcn.0044543c
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 0x40f214
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 0x40f234
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 0x40f25a
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, 0x46cea0
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 0x40f293
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 0x40f2aa
cmp dword [ebp - 0x64], eax
je 0x40f2aa
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
jmp 0x40f2b0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x44], 8
jb 0x40f2c2
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.0044543c
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 0x40f2e8
cmp dword [ebp - 0x8c], eax
je 0x40f2e8
push eax
call esi
cmp dword [ebp - 0x6c], 8
jb 0x40f2fa
mov eax, dword [ebp - 0x80]
push eax
call fcn.0044543c
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 0x40f315
cmp dword [ebp - 0x3c], eax
je 0x40f315
push eax
call esi
cmp dword [ebp - 0x1c], 8
jb 0x40f327
mov edx, dword [ebp - 0x30]
push edx
call fcn.0044543c
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 0x40f356
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 0x40f378
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 0x40f39e
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.00445447
mov esp, ebp
pop ebp
ret 0x14