Function at 0x10048c60
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
cmp dword [ebx + 0x4c], 0
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x44], eax
jne 0x10048c9f
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0xc
cmp byte [ebx + 0xd0], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
je 0x10048cd8
push 8
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x10048ccd
mov ecx, eax
call fcn.10120260
jmp 0x10048ccf
xor eax, eax
push eax
lea ecx, [ebp - 0x50]
call fcn.10032660
movzx eax, byte [ebx + 0xd1]
neg eax
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x34], 0
sbb eax, eax
xor edi, edi
and eax, 0xffffff00
mov dword [ebp - 0x30], edi
add eax, 0xf023f
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x10048d0e
test al, 1
je 0x10048d78
mov eax, dword [ebx + 0xf8]
test eax, eax
jne 0x10048d1d
mov eax, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push eax
push 0
call fcn.1002e670
cmp dword [ebx + 0xf8], edi
mov edi, dword [ebp - 0x30]
jne 0x10048d78
mov dword [ebp - 0x28], VariantInit
mov dword [ebp - 0x24], str.SOFTWAREMicrosoftWindowsCurrentVersionRun
cmp dword [ebp - 0x2c], edi
je 0x10048d68
mov dword [edi], SysReAllocString
mov dword [edi + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionRun
add edi, 8
mov dword [ebp - 0x30], edi
jmp 0x10048d78
lea eax, [ebp - 0x28]
push eax
push edi
lea ecx, [ebp - 0x34]
call fcn.1002e670
mov edi, dword [ebp - 0x30]
test byte [ebx + 0x38], 2
je 0x10048db6
mov dword [ebp - 0x28], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x24], str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnceEx
cmp dword [ebp - 0x2c], edi
je 0x10048da6
mov dword [edi], reloc.OLEAUT32.dll_SysReAllocString
mov dword [edi + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnceEx
add edi, 8
mov dword [ebp - 0x30], edi
jmp 0x10048db6
lea eax, [ebp - 0x28]
push eax
push edi
lea ecx, [ebp - 0x34]
call fcn.1002e670
mov edi, dword [ebp - 0x30]
test byte [ebx + 0x38], 8
je 0x10048df4
mov dword [ebp - 0x28], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x24], str.SOFTWAREMicrosoftWindowsCurrentVersionRunServices
cmp dword [ebp - 0x2c], edi
je 0x10048de4
mov dword [edi], reloc.OLEAUT32.dll_SysReAllocString
mov dword [edi + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionRunServices
add edi, 8
mov dword [ebp - 0x30], edi
jmp 0x10048df4
lea eax, [ebp - 0x28]
push eax
push edi
lea ecx, [ebp - 0x34]
call fcn.1002e670
mov edi, dword [ebp - 0x30]
test byte [ebx + 0x38], 4
je 0x10048e7e
mov eax, dword [ebx + 0xf8]
test eax, eax
jne 0x10048e0d
mov eax, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], str.SOFTWAREMicrosoftWindowsCurrentVersionpoliciesExplorerRun
cmp dword [ebp - 0x2c], edi
je 0x10048e2d
mov dword [edi], eax
mov dword [edi + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionpoliciesExplorerRun
add edi, 8
mov dword [ebp - 0x30], edi
jmp 0x10048e3d
lea eax, [ebp - 0x28]
push eax
push edi
lea ecx, [ebp - 0x34]
call fcn.1002e670
mov edi, dword [ebp - 0x30]
cmp dword [ebx + 0xf8], 0
jne 0x10048e7e
mov dword [ebp - 0x28], VariantInit
mov dword [ebp - 0x24], str.SOFTWAREMicrosoftWindowsCurrentVersionpoliciesExplorerRun
cmp dword [ebp - 0x2c], edi
je 0x10048e6e
mov dword [edi], SysReAllocString
mov dword [edi + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionpoliciesExplorerRun
add edi, 8
mov dword [ebp - 0x30], edi
jmp 0x10048e7e
lea eax, [ebp - 0x28]
push eax
push edi
lea ecx, [ebp - 0x34]
call fcn.1002e670
mov edi, dword [ebp - 0x30]
test byte [ebx + 0x38], 0x10
je 0x10048f01
mov eax, dword [ebx + 0xf8]
test eax, eax
jne 0x10048e93
mov eax, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
cmp dword [ebp - 0x2c], edi
je 0x10048eb3
mov dword [edi], eax
mov dword [edi + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
add edi, 8
mov dword [ebp - 0x30], edi
jmp 0x10048ec3
lea eax, [ebp - 0x28]
push eax
push edi
lea ecx, [ebp - 0x34]
call fcn.1002e670
mov edi, dword [ebp - 0x30]
cmp dword [ebx + 0xf8], 0
jne 0x10048f01
mov dword [ebp - 0x28], VariantInit
mov dword [ebp - 0x24], str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
cmp dword [ebp - 0x2c], edi
je 0x10048ef1
mov dword [edi], SysReAllocString
mov dword [edi + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
add edi, 8
jmp 0x10048f01
lea eax, [ebp - 0x28]
push eax
push edi
lea ecx, [ebp - 0x34]
call fcn.1002e670
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
cmp esi, edi
je 0x1004901d
mov cl, byte [ebp - 0x1d]
nop
cmp byte [ebp + 0xc], 0
je 0x10049048
add ebx, 0x3c
mov ecx, ebx
cmp dword [ebx + 0x14], 8
jb 0x10048f27
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax + 0xd1]
push eax
push ecx
push dword [esi + 4]
push dword [esi]
call fcn.101791f0
add esp, 0x10
mov byte [ebp - 0x35], al
test al, al
je 0x10049007
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x10048f55
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x3c]
push ecx
push dword [esi + 4]
push dword [esi]
movzx eax, byte [eax + 0xd1]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10044b40
add esp, 0x14
lea eax, [ebp - 0x1c]
cmp dword [ebp - 0xc], 0
je 0x10048fce
push dword [ebp - 0x44]
push dword [ebp - 0x40]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10005170
call fcn.10042ae0
add esp, 0x20
test eax, eax
jne 0x10048fe0
cmp dword [ebp - 8], 8
lea edx, [ebp - 0x1c]
mov ecx, dword [ebp - 0x3c]
jb 0x10048fa7
mov edx, dword [ebp - 0x1c]
movzx eax, byte [ecx + 0xa]
push eax
push dword [ecx]
movzx eax, byte [ecx + 0xd4]
push eax
movzx eax, byte [ecx + 0xd0]
push eax
push 1
push edx
push dword [ebp - 0x40]
call fcn.1003e330
add esp, 0x1c
jmp 0x10048fe0
cmp dword [ebp - 8], 8
jb 0x10048fd7
mov eax, dword [ebp - 0x1c]
push eax
call fcn.100d9640
add esp, 4
cmp dword [ebx + 0x14], 8
jb 0x10048fe8
mov ebx, dword [ebx]
push dword [ebp - 0x48]
push ebx
push dword [esi + 4]
push dword [esi]
push dword [ebp - 0x40]
call fcn.1003ece0
add esp, 0x14
lea ecx, [ebp - 0x1c]
call fcn.10005250
mov al, byte [ebp - 0x35]
mov cl, byte [ebp - 0x1d]
mov ebx, dword [ebp - 0x3c]
or cl, al
add esi, 8
mov byte [ebp - 0x1d], cl
cmp esi, edi
jne 0x10048f10
mov edx, dword [ebp - 0x34]
test edx, edx
je 0x10049056
mov ecx, dword [ebp - 0x2c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x1004904c
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10049094
jmp 0x1004904c
xor al, al
jmp 0x1004900d
push ecx
push edx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x1004907e
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x1004907e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], esi
dec esi
jne 0x1004907e
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x1d]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0xc
call fcn.101e6c40
int3