Function at 0x40f0b0
Capabilities:
Persist via run registry key
Persist via winlogon helper dll registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533c8e
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x56adc0]
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
mov dword [ebp - 4], 1
cmp dword [ebp + 0x38], 8
mov eax, dword [ebp + 0x24]
jae 0x40f0f1
lea eax, [ebp + 0x24]
push 0x541ce0
mov ecx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
call fcn.00420350
mov ebx, 7
xor edi, edi
xor eax, eax
add esp, 4
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
push str.Userinit
push reloc.OLEAUT32.dll_SysReAllocString
mov edx, 0x100
lea esi, [ebp - 0x2c]
mov ecx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
mov byte [ebp - 4], 2
call fcn.00420020
add esp, 8
cmp eax, edi
jge 0x40f1ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x60
lea ecx, [ebp - 0x120]
push ecx
mov ebx, str.appstart.cpp
call fcn.0041a6b0
mov esi, eax
mov byte [ebp - 4], 3
cmp esi, edi
je 0x40f19a
lea ebx, [esi + 0x10]
cmp ebx, edi
je 0x40f171
lea eax, [esi + 0x20]
jmp 0x40f173
xor eax, eax
push str.ERROR:
push eax
call fcn.00407c44
add esp, 8
cmp ebx, edi
je 0x40f18a
lea eax, [esi + 0x20]
jmp 0x40f18c
xor eax, eax
push str.ReadRegistryStringEx_failed_for_UserInit.
push eax
call fcn.00407c44
add esp, 8
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 2
call fcn.0041a760
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x40f1bf
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004f77ab
add esp, 4
xor eax, eax
mov ebx, 7
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
cmp dword [ebp + 0x1c], esi
jb 0x40f1e1
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f77ab
add esp, 4
xor edx, edx
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x18], edi
mov word [ebp + 8], dx
cmp dword [ebp + 0x38], esi
jb 0x40f40a
mov eax, dword [ebp + 0x24]
push eax
jmp 0x40f402
mov eax, dword [ebp + 8]
mov esi, 8
cmp dword [ebp + 0x1c], esi
jae 0x40f20f
lea eax, [ebp + 8]
mov ecx, dword [ebp + 0x18]
push ecx
push eax
lea edx, [ebp - 0x2c]
push edx
xor eax, eax
call fcn.0040fd50
cmp eax, 0xffffffff
je 0x40f270
cmp dword [ebp - 0x18], esi
jb 0x40f235
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004f77ab
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
cmp dword [ebp + 0x1c], esi
jb 0x40f252
mov edx, dword [ebp + 8]
push edx
call fcn.004f77ab
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x18], edi
mov word [ebp + 8], ax
cmp dword [ebp + 0x38], esi
jb 0x40f40a
mov ecx, dword [ebp + 0x24]
push ecx
jmp 0x40f402
lea edx, [ebp - 0x64]
push 0x541ee4
push edx
lea ebx, [ebp + 0x24]
call fcn.00405c6f
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x48]
push edx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00406035
add esp, 0x10
mov esi, eax
lea eax, [ebp - 0x2c]
mov ebx, 8
cmp eax, esi
je 0x40f303
cmp dword [ebp - 0x18], ebx
jb 0x40f2b6
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004f77ab
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
cmp dword [esi + 0x14], ebx
jae 0x40f2e1
mov eax, dword [esi + 0x10]
inc eax
add eax, eax
push eax
lea ecx, [ebp - 0x2c]
push esi
push ecx
call fcn.004f6f30
add esp, 0xc
jmp 0x40f2e8
mov edx, dword [esi]
mov dword [ebp - 0x2c], edx
mov dword [esi], edi
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x18], ecx
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], dx
cmp dword [ebp - 0x34], ebx
jb 0x40f314
mov eax, dword [ebp - 0x48]
push eax
call fcn.004f77ab
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x50], ebx
jb 0x40f339
mov edx, dword [ebp - 0x64]
push edx
call fcn.004f77ab
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x40f344
lea eax, [ebp - 0x2c]
call fcn.004203d0
cmp eax, edi
jge 0x40f3ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x6e
lea eax, [ebp - 0x120]
push eax
mov ebx, str.appstart.cpp
call fcn.0041a6b0
mov esi, eax
mov byte [ebp - 4], 6
cmp esi, edi
je 0x40f3a6
lea ebx, [esi + 0x10]
cmp ebx, edi
je 0x40f37d
lea eax, [esi + 0x20]
jmp 0x40f37f
xor eax, eax
push str.ERROR:
push eax
call fcn.00407c44
add esp, 8
cmp ebx, edi
je 0x40f396
lea eax, [esi + 0x20]
jmp 0x40f398
xor eax, eax
push 0x541ee8
push eax
call fcn.00407c44
add esp, 8
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 2
call fcn.0041a760
mov ebx, 8
cmp dword [ebp - 0x18], ebx
jb 0x40f3cb
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004f77ab
add esp, 4
xor edx, edx
mov esi, 7
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
cmp dword [ebp + 0x1c], ebx
jb 0x40f3ed
mov eax, dword [ebp + 8]
push eax
call fcn.004f77ab
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x18], edi
mov word [ebp + 8], cx
cmp dword [ebp + 0x38], ebx
jb 0x40f40a
mov edx, dword [ebp + 0x24]
push edx
call fcn.004f77ab
add esp, 4
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.004f6bad
mov esp, ebp
pop ebp
ret