Function at 0x40df90
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ff0b
mov eax, dword fs:[0]
push eax
sub esp, 0x80
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
xor ebx, ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 4], ebx
mov eax, SysReAllocStringLen
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
lea ecx, [ebp - 0x40]
push ecx
mov ecx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov byte [ebp - 4], 1
call fcn.00401110
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x40]
cmp dword [ebp - 0x3c], eax
je 0x40e01f
cmp eax, ebx
je 0x40e01f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
push edx
push 0x20019
push ebx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov eax, esi
mov dword [ebp - 0x34], 0x20019
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40e042
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x30]
call fcn.00429690
cmp edi, ebx
jne 0x40e17e
mov edx, dword [0x478034]
mov eax, dword [edx + 0xc]
mov ecx, 0x478034
call eax
add eax, 0x10
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 8]
push ecx
push 0x469600
lea edi, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00422e30
mov edi, dword [ebp - 0x44]
lea edx, [ebp - 0x3c]
add esp, 8
lea esi, [ebp - 0x74]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], edi
call fcn.004044c0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], eax
call fcn.0041ec90
mov eax, dword [ebp - 0x70]
cmp eax, ebx
je 0x40e0cf
push eax
call fcn.0044543c
add esp, 4
cmp dword [ebp - 0x60], 1
mov eax, dword [ebp - 0x5c]
jne 0x40e151
cmp eax, ebx
je 0x40e0e5
push eax
call fcn.0044543c
add esp, 4
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e105
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e128
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x40e13b
cmp dword [ebp - 0x3c], eax
je 0x40e13b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 8
jb 0x40e14d
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0044543c
add esp, 4
mov al, 1
jmp 0x40e1c8
cmp eax, ebx
je 0x40e15e
push eax
call fcn.0044543c
add esp, 4
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e17e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e1a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x40e1b4
cmp dword [ebp - 0x3c], eax
je 0x40e1b4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 8
jb 0x40e1c6
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0044543c
add esp, 4
xor al, al
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 4