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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x454
mov eax, dword [0x1017455c]
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.10116880
add esp, 0xc
push esi
lea ecx, [esp + 0x144]
push str.SYSTEMCurrentControlSetServices_s
push ecx
mov dword [esp + 0x1c], 8
call fcn.1010d6a8
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 1
push ebx
lea eax, [esp + 0x14c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, ebx
jne 0x1003a9aa
call fcn.1003a590
push 0x104
lea ecx, [esp + 0x144]
push ebx
push ecx
mov dword [esp + 0x1c], 0x104
call fcn.10116880
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 0x1003a9c1
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.1010d699
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 0x1003aa24
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.1010d699
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]
cmp byte [esp + 0x138], 2
je 0x1003ab78
push 0x103
lea edx, [esp + 0x24d]
push ebx
push edx
mov byte [esp + 0x254], bl
call fcn.10116880
add esp, 0xc
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x248]
mov dword [esp + 0x1c], 0x104
call fcn.10037780
test eax, eax
je 0x1003ab78
push 0x103
lea eax, [esp + 0x355]
push ebx
push eax
mov byte [esp + 0x35c], bl
call fcn.10116880
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea edi, [esp + 0x350]
mov byte [esp + ecx + 0x248], bl
call fcn.10069ef0
mov edx, edi
push edx
lea eax, [esp + 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1003ab03
call fcn.1004f920
test eax, eax
jne 0x1003ab13
push 1
xor ebx, ebx
mov ecx, esi
call fcn.1003a730
add esp, 4
jmp 0x1003ab78
push 0x10c
lea ecx, [esp + 0x30]
push ebx
push ecx
call fcn.10116880
add esp, 0xc
push esi
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x30], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x24]
push eax
push ebx
lea ecx, [esp + 0x30]
push ecx
push 0x1003a830
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 0x1003ab78
push ebx
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
lea edx, [esp + 0x20]
push edx
call fcn.100673f0
mov ecx, dword [esp + 0x45c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 2
call fcn.1010d699
mov esp, ebp
pop ebp
ret