Function at 0x10004880
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100241c1
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x10031008]
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 - 0x50], 0
mov eax, dword [0x100317b8]
mov ecx, dword [0x100317bc]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x68], ecx
cmp eax, ecx
je 0x10004bb4
lea esi, [eax + 0x40]
mov dword [ebp - 0x54], esi
cmp dword [0x100317e0], 0
jne 0x100048de
xor ebx, ebx
jmp 0x10004903
push 0
mov ecx, 0x100317e0
call fcn.1001ed30
mov eax, dword [0x100317e0]
xor ebx, ebx
cmp byte [eax + 0x54], bl
je 0x10004903
cmp dword [eax + 0x58], 4
jb 0x10004903
cmp byte [eax + 0x5c], bl
setne bl
inc ebx
test ebx, ebx
je 0x100049d4
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
lea eax, [esi - 0x10]
cmp dword [esi + 4], 8
jb 0x1000493b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x40]
push 0x10028a78
push eax
call fcn.1001ffc0
add esp, 0xc
lea eax, [ebp - 0x40]
mov ecx, 0x100317e0
push 0x119
push 0x10028744
push 0x10028744
push eax
push 4
call fcn.1001fa50
cmp ebx, 1
jbe 0x1000497f
lea eax, [ebp - 0x40]
mov ecx, 0x100317e0
push eax
call fcn.1001fdf0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x100049c0
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100049b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004bd2
push edx
push ecx
call fcn.1002251a
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea ecx, [esi - 0x28]
call fcn.10010c60
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 1
xor eax, eax
mov ebx, dword [ebp - 0x50]
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
or ebx, 1
mov dword [ebp - 0x50], ebx
mov eax, dword [esi]
add eax, 0x22
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.10007a30
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
cmp eax, 0x22
jb 0x10004a60
cmp edx, 8
lea esi, [ebp - 0x28]
push 0x44
cmovae esi, dword [ebp - 0x28]
lea edi, [ecx + 0x22]
push str.SYSTEMCurrentControlSetServices_
mov dword [ebp - 0x18], edi
lea eax, [esi + ecx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov esi, dword [ebp - 0x54]
jmp 0x10004a78
push 0x22
push str.SYSTEMCurrentControlSetServices_
mov byte [ebp - 0x5c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x5c]
push 0x22
call fcn.10007810
cmp dword [esi + 4], 8
lea ecx, [esi - 0x10]
jb 0x10004a83
mov ecx, dword [ecx]
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov edx, dword [esi]
sub eax, edi
mov dword [ebp - 0x60], edi
cmp edx, eax
ja 0x10004ac3
add edi, edx
lea eax, [edx + edx]
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
push eax
cmovae esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x60]
push ecx
mov dword [ebp - 0x18], edi
lea eax, [esi + eax*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov esi, dword [ebp - 0x54]
jmp 0x10004ad5
push edx
push ecx
mov byte [ebp - 0x64], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x64]
push edx
call fcn.10007810
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x4c]
push ecx
push 0xf003f
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004b40
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x44]
push 4
push eax
push 4
push 0
push 0x100286f0
push dword [ebp - 0x4c]
mov dword [ebp - 0x44], 1
call edi
push 4
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 4
push eax
push 4
push 0
push 0x100286d8
push dword [ebp - 0x4c]
call edi
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and ebx, 0xfffffffe
mov dword [ebp - 0x50], ebx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10004b83
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10004b79
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004bd2
push edx
push ecx
call fcn.1002251a
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
add esi, 0xe4
mov eax, dword [ebp - 0x58]
add eax, 0xe4
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], esi
cmp eax, dword [ebp - 0x68]
jne 0x100048d1
mov al, 1
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.100224d9
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3