Function at 0x40a420
Capabilities:
Create process on windows
Create process suspended
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x49a809
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x284
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x190]
push 0x104
xor ebx, ebx
push eax
mov edi, ecx
push ebx
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], 0x100
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [0x4cc854]
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x190]
lea ecx, [esp + 0x14]
push edx
mov dword [esp + 0x2a0], ebx
call fcn.0048c58c
push 0x5c
lea ecx, [esp + 0x18]
call fcn.0048a454
inc eax
lea ecx, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0048a3dc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2a0], 1
call fcn.0048c53c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x29c], bl
call fcn.0048c403
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0048c178
lea edx, [esp + 0x14]
lea ecx, [esp + 0x20]
push edx
mov byte [esp + 0x2a0], 2
call fcn.0048c178
mov ecx, edi
mov byte [esp + 0x29c], 3
call fcn.0040a350
test eax, eax
jne 0x40a512
push str.pluginsUNLCK32UNLCK32.exe
lea ecx, [esp + 0x1c]
call fcn.0048c7df
push str.pluginsUNLCK32UnlockerDriver5.sys
jmp 0x40a525
push str.pluginsUNLCK64UNLCK64.exe
lea ecx, [esp + 0x1c]
call fcn.0048c7df
push str.pluginsUNLCK64UnlockerDriver5.sys
lea ecx, [esp + 0x24]
call fcn.0048c7df
lea eax, [esp + 0x24]
push eax
push str.SYSTEMControlSet001ServicesUnlockerDriver5
push reloc.imgsimul.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40a815
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x30]
push edx
push eax
push ebx
push str.ImagePath
push ecx
call ebp
test eax, eax
je 0x40a5de
lea edx, [esp + 0x30]
lea eax, [esp + 0x90]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x30]
push eax
push ecx
push ebx
push str.ImagePath
push edx
call ebp
test eax, eax
je 0x40a5de
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
mov byte [esp + 0x29c], 2
call fcn.0048c403
lea ecx, [esp + 0x18]
mov byte [esp + 0x29c], bl
call fcn.0048c403
lea ecx, [esp + 0x14]
mov dword [esp + 0x29c], 0xffffffff
call fcn.0048c403
xor eax, eax
jmp 0x40a95c
mov ecx, dword [0x4cc854]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x90]
lea eax, [esp + 0x10]
push edx
push 0x4c2284
push eax
mov byte [esp + 0x2a8], 4
call fcn.0048a7fc
add esp, 0xc
lea ecx, [esp + 0x10]
push 0x4c2dd4
call fcn.0048a476
or esi, 0xffffffff
cmp eax, esi
je 0x40a66e
mov ecx, dword [esp + 0x10]
push 0x4c2dd4
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x14]
call fcn.0048a476
sub esi, eax
lea edx, [esp + 0x28]
sub esi, 4
lea ecx, [esp + 0x10]
push esi
push edx
call fcn.0048a360
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a0], 5
call fcn.0048c53c
lea ecx, [esp + 0x28]
mov byte [esp + 0x29c], 4
call fcn.0048c403
or esi, 0xffffffff
mov eax, dword [0x4cc854]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov byte [esp + 0x2a4], 6
call fcn.0047514f
add esp, 8
test eax, eax
je 0x40a7e6
lea eax, [esp + 0x20]
lea ecx, [esp + 0x28]
push eax
push 0x4c2dd4
push ecx
call fcn.0048c70c
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2a0], 7
call fcn.0048c53c
lea ecx, [esp + 0x28]
mov byte [esp + 0x29c], 6
call fcn.0048c403
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.0048c178
mov ecx, edi
call fcn.0040a3a0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov ecx, dword [ecx - 8]
inc ecx
push ecx
push eax
mov eax, dword [esp + 0x2c]
push edx
push ebx
push str.ImagePath
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebx
je 0x40a719
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a78c
lea edx, [esp + 0x30]
lea eax, [esp + 0x90]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x30]
push eax
push ecx
push ebx
push str.ImagePath
push edx
call ebp
test eax, eax
je 0x40a75f
lea eax, [esp + 0x30]
lea ecx, [esp + 0x90]
push eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x30]
push ecx
push edx
push ebx
push str.ImagePath
push eax
call ebp
test eax, eax
jne 0x40a78c
lea ecx, [esp + 0x90]
lea edx, [esp + 0x10]
push ecx
push 0x4c2284
push edx
call fcn.0048a7fc
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.0047514f
add esp, 0x14
test eax, eax
je 0x40a7e6
lea ecx, [esp + 0x1c]
mov byte [esp + 0x29c], 4
call fcn.0048c403
lea ecx, [esp + 0x10]
mov byte [esp + 0x29c], 3
call fcn.0048c403
lea ecx, [esp + 0x20]
mov byte [esp + 0x29c], 2
call fcn.0048c403
lea ecx, [esp + 0x18]
mov byte [esp + 0x29c], bl
call fcn.0048c403
lea ecx, [esp + 0x14]
mov dword [esp + 0x29c], esi
call fcn.0048c403
xor eax, eax
jmp 0x40a95c
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x29c], 4
call fcn.0048c403
lea ecx, [esp + 0x10]
mov byte [esp + 0x29c], 3
call fcn.0048c403
jmp 0x40a818
or esi, 0xffffffff
mov eax, dword [esp + 0x18]
push ebx
push eax
call fcn.00476665
add esp, 8
cmp eax, esi
jne 0x40a857
lea ecx, [esp + 0x20]
mov byte [esp + 0x29c], 2
call fcn.0048c403
lea ecx, [esp + 0x18]
mov byte [esp + 0x29c], bl
call fcn.0048c403
mov dword [esp + 0x29c], esi
jmp 0x40a951
lea ecx, [esp + 0x18]
push 0x4c2af8
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.0048c698
push edi
push eax
lea eax, [esp + 0x30]
mov byte [esp + 0x2a4], 8
push eax
call fcn.0048c632
push 0x4c2dd0
lea ecx, [esp + 0x38]
push eax
push ecx
mov byte [esp + 0x2a8], 9
call fcn.0048c698
lea ecx, [esp + 0x28]
mov byte [esp + 0x29c], 0xc
call fcn.0048c403
lea ecx, [esp + 0x38]
mov byte [esp + 0x29c], 0xb
call fcn.0048c403
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x50]
mov dword [esp + 0x4c], 0x44
rep stosd dword es:[edi], eax
mov eax, 1
lea edx, [esp + 0x3c]
mov dword [esp + 0x78], eax
mov word [esp + 0x7c], ax
lea eax, [esp + 0x4c]
push edx
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x58]
call fcn.0048c833
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x3c]
push 0x4e20
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x34]
mov esi, eax
mov byte [esp + 0x29c], 3
call fcn.0048c403
lea ecx, [esp + 0x20]
mov byte [esp + 0x29c], 2
call fcn.0048c403
lea ecx, [esp + 0x18]
mov byte [esp + 0x29c], bl
call fcn.0048c403
mov dword [esp + 0x29c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0048c403
mov eax, esi
mov ecx, dword [esp + 0x294]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x290
ret