Function at 0x481290
Capabilities:
Create process on windows
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4eb8ae
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x670f1c]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0xcc]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
push 0xffffffffffffffff
lea eax, [ebx + 0x19324]
push edi
mov esi, 7
push eax
lea ecx, [esp + 0x9c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], edi
mov word [esp + 0xa0], di
call fcn.00401640
push str.::Enabled:_xpsp2res.dll__22019
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0xb4]
push ecx
mov dword [esp + 0xe0], edi
call fcn.00416bf0
add esp, 0xc
cmp dword [ebx + 0x19364], 6
mov byte [esp + 0xd4], 1
jae 0x48178e
call fcn.004b978a
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x481357
push 0x80004005
call fcn.004069a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0xd4], 2
call fcn.004b978a
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x481389
push 0x80004005
call fcn.004069a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0xd4], 3
call fcn.004b978a
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4813bb
push 0x80004005
call fcn.004069a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0xb4]
push ecx
lea ecx, [esp + 0x80]
mov byte [esp + 0xe0], 4
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], edi
mov word [esp + 0x84], di
call fcn.00401640
lea edx, [esp + 0x18]
push 0x5034f0
push edx
mov byte [esp + 0xdc], 5
call fcn.00406da0
mov edx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
add esp, 8
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push ecx
push edi
push 0xf003f
push edi
push edi
push edi
push edx
push 0x80000002
call ebp
mov ecx, dword [esp + 0x78]
mov ebx, 8
cmp dword [esp + 0x8c], ebx
jae 0x481455
lea ecx, [esp + 0x78]
cmp dword [esp + 0xa8], ebx
mov eax, dword [esp + 0x94]
jae 0x48146c
lea eax, [esp + 0x94]
mov edx, dword [esp + 0x88]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add edx, edx
push edx
push ecx
push 1
push edi
push eax
mov eax, dword [esp + 0x28]
push eax
call esi
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
lea edx, [esp + 0x18]
push 0x5035e0
push edx
call fcn.00406da0
mov edx, dword [esp + 0x20]
add esp, 8
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push 0x80000002
call ebp
cmp dword [esp + 0x8c], ebx
mov ecx, dword [esp + 0x78]
jae 0x4814db
lea ecx, [esp + 0x78]
cmp dword [esp + 0xa8], ebx
mov eax, dword [esp + 0x94]
jae 0x4814f2
lea eax, [esp + 0x94]
mov edx, dword [esp + 0x88]
add edx, edx
push edx
push ecx
push 1
push 0
push eax
mov eax, dword [esp + 0x28]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call edi
lea edx, [esp + 0x18]
push 0x5036c8
push edx
call fcn.00406da0
add esp, 8
push ebx
push 0x5037a8
lea ecx, [esp + 0x24]
call fcn.00406c90
push 0x31
push 0x5037c0
lea ecx, [esp + 0x30]
call fcn.00406c90
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push 0x80000002
call ebp
mov eax, dword [esp + 0x28]
mov ecx, dword [eax - 0xc]
mov edx, dword [esp + 0x1c]
add ecx, ecx
push ecx
push eax
mov eax, dword [esp + 0x1c]
push 1
push 0
push edx
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call edi
lea edx, [esp + 0x18]
push 0x503838
push edx
call fcn.00406da0
add esp, 8
push ebx
push 0x503824
lea ecx, [esp + 0x24]
call fcn.00406c90
push 0x31
push 0x503918
lea ecx, [esp + 0x30]
call fcn.00406c90
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push 0x80000002
call ebp
mov ebp, dword [esp + 0x28]
mov eax, dword [ebp - 0xc]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add eax, eax
push eax
push ebp
push 1
push 0
push ebx
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call edi
mov esi, 8
cmp dword [esp + 0x8c], esi
jb 0x481617
mov eax, dword [esp + 0x78]
push eax
call fcn.004aef39
add esp, 4
xor eax, eax
add ebp, 0xfffffff0
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], eax
mov word [esp + 0x78], ax
mov byte [esp + 0xd4], 3
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481655
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
add ebx, 0xfffffff0
mov byte [esp + 0xd4], 2
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x481679
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xd4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4816a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x20]
xor ebp, ebp
push ebp
push 0x5035da
lea ecx, [esp + 0x7c]
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], ebp
mov byte [esp + 0x80], 0
call fcn.004017d0
push ebp
push 0x49
push ebp
lea ecx, [esp + 0x80]
push ecx
mov ecx, ebx
mov byte [esp + 0xe4], 0xb
call fcn.004734a0
cmp dword [esp + 0x8c], 0x10
mov byte [esp + 0xd4], 1
jb 0x48170a
mov edx, dword [esp + 0x78]
push edx
call fcn.004aef39
add esp, 4
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
lea ecx, [ebx + 0x1a2c0]
push ecx
mov ecx, ebx
call edx
cmp dword [esp + 0xc4], esi
jb 0x481733
mov eax, dword [esp + 0xb0]
push eax
call fcn.004aef39
add esp, 4
cmp dword [esp + 0xa8], esi
mov dword [esp + 0xc4], 7
mov dword [esp + 0xc0], ebp
mov word [esp + 0xb0], bp
jb 0x481766
mov ecx, dword [esp + 0x94]
push ecx
call fcn.004aef39
add esp, 4
mov ecx, dword [esp + 0xcc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.004bfdfd
add esp, 0xc4
ret
lea ecx, [esp + 0x28]
call fcn.004aca30
lea eax, [ebx + 0x192ac]
push 0x5039b8
push eax
mov byte [esp + 0xdc], 6
call fcn.00418e60
mov eax, dword [esp + 0x9c]
add esp, 8
cmp dword [esp + 0xa8], 8
jae 0x4817cb
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x18]
call fcn.00406e40
mov ecx, dword [esp + 0x14]
push 0x5c
push ecx
mov byte [esp + 0xdc], 7
call fcn.004c67c5
add esp, 8
cmp eax, edi
je 0x48184d
mov ecx, dword [esp + 0x14]
sub eax, ecx
sar eax, 1
mov edx, eax
js 0x481851
mov eax, dword [ecx - 0xc]
sub eax, edx
sub eax, 1
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
call fcn.004109d0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xd8], 8
call fcn.00407450
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0xd4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48184d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 4], 1
jle 0x481868
mov ecx, dword [ecx - 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.00406b50
mov ecx, dword [esp + 0x14]
sub esp, 0x1c
mov esi, ecx
mov ecx, esp
mov ebp, 7
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x18], ebp
mov eax, esi
mov word [ecx + 4], di
mov dword [esp + 0x3c], esp
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x481887
sub eax, edi
sar eax, 1
push eax
push esi
call fcn.00401930
cmp dword [esp + 0xc4], 8
mov esi, dword [esp + 0xb0]
mov byte [esp + 0xf0], 9
jae 0x4818bd
lea esi, [esp + 0xb0]
sub esp, 0x1c
mov ecx, esp
mov dword [ecx + 0x18], ebp
xor ebp, ebp
mov eax, esi
mov dword [ecx + 0x14], ebp
mov dword [esp + 0x5c], esp
mov word [ecx + 4], bp
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bp
jne 0x4818d7
sub eax, edi
sar eax, 1
push eax
push esi
call fcn.00401930
lea ecx, [esp + 0x60]
mov byte [esp + 0x10c], 7
call fcn.004acd20
test al, al
lea eax, [ebx + 0x192ac]
je 0x48191b
push 0x503a38
push eax
call fcn.00418e60
add esp, 8
jmp 0x481a22
push 0x503a98
push eax
call fcn.00418e60
add esp, 8
call fcn.004b978a
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x481943
push 0x80004005
call fcn.004069a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov edi, 1
cmp dword [eax - 4], edi
mov byte [esp + 0xd4], 0xa
jle 0x48197a
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.00406b50
mov eax, dword [esp + 0x14]
cmp dword [esp + 0xa8], 8
mov ecx, dword [esp + 0x94]
jae 0x481992
lea ecx, [esp + 0x94]
push eax
push ecx
lea edx, [esp + 0x24]
push 0x503af0
push edx
call fcn.00406da0
push 0x44
lea eax, [esp + 0x44]
push ebp
push eax
call fcn.004c16f0
mov esi, dword [esp + 0x38]
xor eax, eax
add esp, 0x1c
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
cmp dword [esi - 4], edi
jle 0x4819e2
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [esp + 0x20]
call fcn.00406b50
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x34]
push eax
push ebp
push ebp
push 0x8000000
push ebp
push ebp
push ebp
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea eax, [esi - 0x10]
mov byte [esp + 0xd4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481a22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xd4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x481a4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xd4], 1
call fcn.004aca90
mov esi, 8
jmp 0x4816a7