Function at 0x10021158
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006abd5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push esi
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100211ed
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x9c], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
movzx eax, byte [eax]
test eax, eax
je 0x100211bb
push 0
push 0x1138
push 0x22bd
push 0xb5c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
jmp 0x100211e8
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx]
mov ecx, dword [ecx]
mov eax, dword [eax]
add eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx]
mov dword [ecx], eax
jmp 0x1002158c
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x98], eax
push 2
lea ecx, [ebp - 0x90]
call fcn.1000e440
and dword [ebp - 4], 0
push 1
lea ecx, [ebp - 0x28]
call fcn.1000e440
mov byte [ebp - 4], 1
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x7c], 0xb6f2ba10
mov dword [ebp - 0xa0], 1
mov dword [ebp - 0x10], 0
jmp 0x1002123d
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 4
jge 0x10021250
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x74], 0x5baf43b7
jmp 0x10021236
mov dword [ebp - 0x10], 0
jmp 0x10021260
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jge 0x1002127c
push dword [ebp - 0x10]
lea ecx, [ebp - 0x90]
call fcn.1000e49e
mov dword [eax], 0xb653
jmp 0x10021259
mov dword [ebp - 0x10], 0
jmp 0x1002128c
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jge 0x100212a2
push dword [ebp - 0x10]
lea ecx, [ebp - 0x28]
call fcn.1000e49e
and dword [eax], 0
jmp 0x10021285
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x74]
mov dword [ebp - 0x84], eax
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x84]
mov dword [ebp + eax - 0x74], ecx
cmp dword [ebp - 0x84], 0
je 0x10021301
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x100212fc
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x6c6
push 0xd6d
push 0x777
push 0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
jmp 0x100213ed
mov dword [ebp - 0x18], 0xf0aa6e6f
mov dword [ebp - 0x50], 0x912530a9
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0x18], 0x68108531
jl 0x10021339
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x74], 0
jne 0x10021339
xor eax, eax
inc eax
jne 0x10021339
and dword [ebp - 0x80], 0
jmp 0x10021340
mov dword [ebp - 0x80], 1
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x74]
cmp dword [ebp - 0x80], eax
je 0x10021358
mov dword [ebp - 0x34], 1
jmp 0x1002135c
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x1002137b
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x74], 0
jne 0x1002137b
and dword [ebp - 0x3c], 0
jmp 0x10021382
mov dword [ebp - 0x3c], 1
cmp dword [ebp - 0x3c], 0xffffffff
jg 0x10021391
mov dword [ebp - 0x54], 1
jmp 0x10021395
and dword [ebp - 0x54], 0
cmp dword [ebp - 0x54], 0x4039ee49
jl 0x100213a7
mov dword [ebp - 0x44], 1
jmp 0x100213ab
and dword [ebp - 0x44], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x74]
add eax, dword [ebp - 0x44]
cmp dword [ebp - 0x18], eax
jle 0x100213c8
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x74], 0
push 1
lea ecx, [ebp - 0x90]
call fcn.1000e49e
mov eax, dword [ebp - 0x18]
push 4
pop ecx
shl ecx, 0
imul eax, dword [ebp + ecx - 0x74]
push 4
pop ecx
imul ecx, ecx, 3
mov dword [ebp + ecx - 0x74], eax
push 0
lea ecx, [ebp - 0x28]
call fcn.1000e49e
cmp dword [eax], 0
jne 0x10021411
push 0
lea ecx, [ebp - 0x28]
call fcn.1000e49e
cmp dword [eax], 0
jne 0x10021411
and dword [ebp - 0x5c], 0
jmp 0x10021418
mov dword [ebp - 0x5c], 1
push 1
lea ecx, [ebp - 0x90]
call fcn.1000e49e
cmp dword [eax], 0xab391500
jne 0x10021436
mov dword [ebp - 0x4c], 1
jmp 0x1002143a
and dword [ebp - 0x4c], 0
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x5c]
mov dword [ebp + eax - 0x74], ecx
push 0
lea ecx, [ebp - 0x28]
call fcn.1000e49e
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xa8], eax
push 1
lea ecx, [ebp - 0x90]
call fcn.1000e49e
cmp dword [eax], 0
je 0x10021487
push 4
pop eax
imul eax, eax, 3
cmp dword [ebp + eax - 0x74], 0
je 0x10021487
mov dword [ebp - 0x78], 1
jmp 0x1002148b
and dword [ebp - 0x78], 0
push 0
lea ecx, [ebp - 0x90]
call fcn.1000e49e
mov ecx, dword [ebp - 0x78]
cmp ecx, dword [eax]
je 0x100214a8
mov dword [ebp - 0x58], 1
jmp 0x100214ac
and dword [ebp - 0x58], 0
push 0
lea ecx, [ebp - 0x28]
call fcn.1000e49e
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [eax]
jne 0x100214c6
mov dword [ebp - 0x2c], 1
jmp 0x100214ca
and dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0xfffffff9
jge 0x100214d9
mov dword [ebp - 0x60], 1
jmp 0x100214dd
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x7c], eax
mov esi, dword [ebp - 0x7c]
push 0
lea ecx, [ebp - 0x28]
call fcn.1000e49e
add esi, dword [eax]
jne 0x10021503
mov eax, 0x731d497c
test eax, eax
jne 0x10021503
and dword [ebp - 0x30], 0
jmp 0x1002150a
mov dword [ebp - 0x30], 1
push 0
lea ecx, [ebp - 0x28]
call fcn.1000e49e
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [eax]
jl 0x10021524
mov dword [ebp - 0x38], 1
jmp 0x10021528
and dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 1
jl 0x10021537
mov dword [ebp - 0x40], 1
jmp 0x1002153b
and dword [ebp - 0x40], 0
push 0
lea ecx, [ebp - 0x28]
call fcn.1000e49e
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [eax]
jge 0x10021555
mov dword [ebp - 0x48], 1
jmp 0x10021559
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xa0], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.1000e47c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.1000e47c
push dword [ebp - 0x98]
push 0
call fcn.1001e366
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret