Function at 0x954c00
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x454
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x450], eax
push ebx
push esi
xor eax, eax
push edi
xor ebx, ebx
push 0x103
mov dword [esp + 0x13d], eax
mov word [esp + 0x141], ax
mov byte [esp + 0x143], al
lea eax, [esp + 0x145]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x144], bl
mov byte [esp + 0x14c], bl
call fcn.00a7ffb0
add esp, 0xc
push esi
lea ecx, [esp + 0x144]
push str.SYSTEMCurrentControlSetServices_s
push ecx
mov dword [esp + 0x1c], 8
call fcn.00a78f30
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 1
push ebx
lea eax, [esp + 0x14c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, ebx
jne 0x954cfa
call fcn.009548e0
push 0x104
lea ecx, [esp + 0x144]
push ebx
push ecx
mov dword [esp + 0x1c], 0x104
call fcn.00a7ffb0
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x144]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push str.ImagePath
push edx
call edi
test eax, eax
je 0x954d11
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x450]
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x13c]
push edx
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], eax
lea eax, [esp + 0x20]
push eax
push ebx
push str.DeleteFlag
push ecx
mov dword [esp + 0x28], 8
call edi
cmp byte [esp + 0x138], 1
jne 0x954d74
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x450]
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x13c]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push str.Start
push eax
mov dword [esp + 0x28], 8
call edi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x138]
mov ecx, 3
cmp al, cl
jne 0x954dd0
cmp dword [ebp + 8], ecx
jne 0x954df1
jmp 0x954ef6
cmp dword [ebp + 8], ecx
je 0x954df1
cmp al, 2
jne 0x954de4
cmp dword [ebp + 8], 1
jne 0x954df1
jmp 0x954ef6
cmp al, 4
jne 0x954df1
cmp dword [ebp + 8], ebx
je 0x954ef6
push 0x103
lea edx, [esp + 0x24d]
push ebx
push edx
mov byte [esp + 0x254], bl
call fcn.00a7ffb0
add esp, 0xc
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x248]
mov dword [esp + 0x1c], 0x104
call fcn.00951c00
test eax, eax
je 0x954ef6
push 0x103
lea eax, [esp + 0x355]
push ebx
push eax
mov byte [esp + 0x35c], bl
call fcn.00a7ffb0
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea edi, [esp + 0x350]
mov byte [esp + ecx + 0x248], bl
call fcn.00988be0
mov edx, edi
push edx
lea eax, [esp + 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x954e80
call fcn.009685a0
test eax, eax
jne 0x954e92
mov ecx, dword [ebp + 8]
push ecx
xor ebx, ebx
mov ecx, esi
call fcn.00954a80
add esp, 4
jmp 0x954ef6
push 0x10c
lea edx, [esp + 0x30]
push ebx
push edx
call fcn.00a7ffb0
mov eax, dword [ebp + 8]
add esp, 0xc
push esi
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x24]
push edx
push ebx
lea eax, [esp + 0x30]
push eax
push 0x954b80
push ebx
push ebx
mov dword [esp + 0x14c], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x954ef6
push ebx
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
lea ecx, [esp + 0x20]
push ecx
call fcn.00985290
mov ecx, dword [esp + 0x45c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 2
call fcn.00a78f21
mov esp, ebp
pop ebp
ret