Function at 0x10038b99
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006bafa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push esi
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1003916f
lea eax, [ebp + 0x1c]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xc8]
movzx eax, byte [eax]
test eax, eax
je 0x10038f4e
mov dword [ebp - 0x18], 0x85f70ad6
mov dword [ebp - 0x10], 1
push 3
lea ecx, [ebp - 0x100]
call fcn.1000dfce
and dword [ebp - 4], 0
mov dword [ebp - 0x5c], 0xfffffffd
mov dword [ebp - 0x104], 0xb53c
mov dword [ebp - 0x44], 0
jmp 0x10038c30
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 3
jge 0x10038c4c
push dword [ebp - 0x44]
lea ecx, [ebp - 0x100]
call fcn.1000e00f
mov dword [eax], 2
jmp 0x10038c29
mov dword [ebp - 0x18], 0
jmp 0x10038c5c
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xfffffffc
jle 0x10038df9
mov dword [ebp - 0x48], 0xfffd
mov dword [ebp - 0x3c], 0x7d6364d6
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
mov eax, 0xcde9
test eax, eax
je 0x10038ce6
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x10], 0x9646
jge 0x10038c9e
mov dword [ebp - 0x68], 1
jmp 0x10038ca2
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x68], eax
jle 0x10038cb6
mov dword [ebp - 0xb8], 1
jmp 0x10038cbd
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0xb8]
je 0x10038cd1
mov dword [ebp - 0x64], 1
jmp 0x10038cd5
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x64], eax
jne 0x10038ce6
mov dword [ebp - 0x60], 1
jmp 0x10038cea
and dword [ebp - 0x60], 0
cmp dword [ebp - 0x60], 0x1b40
jg 0x10038cff
mov dword [ebp - 0xa4], 1
jmp 0x10038d06
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0xa4]
jl 0x10038d1a
mov dword [ebp - 0x6c], 1
jmp 0x10038d1e
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x6c], eax
jle 0x10038d32
mov dword [ebp - 0x94], 1
jmp 0x10038d39
and dword [ebp - 0x94], 0
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x94]
jne 0x10038d50
cmp dword [ebp - 0x3c], 0
jne 0x10038d50
and dword [ebp - 0x74], 0
jmp 0x10038d57
mov dword [ebp - 0x74], 1
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x74], eax
jge 0x10038d6b
mov dword [ebp - 0xb4], 1
jmp 0x10038d72
and dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0xb4]
sub eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x10]
jne 0x10038db0
mov dword [ebp - 0x10], 2
jmp 0x10038d90
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x10038dae
mov byte [ebp - 0x23], 0
movzx eax, byte [ebp - 0x23]
test eax, eax
je 0x10038dac
push 0
push 0
call dword [sym.imp.GDI32.dll_RectInRegion]
jmp 0x10038d89
jmp 0x10038df4
mov dword [ebp - 0x34], 0
jmp 0x10038dc0
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 1
jge 0x10038dd3
mov eax, dword [ebp - 0x34]
mov dword [ebp + eax*4 - 0x7c], 0x9843334a
jmp 0x10038db9
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x7c], 0
je 0x10038de2
jmp 0x10038df9
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x7c], 0
je 0x10038df4
jmp 0x10038c55
jmp 0x10038c55
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x10], 0
je 0x10038e17
cmp dword [ebp - 0x18], 0
jne 0x10038e32
push 2
lea ecx, [ebp - 0x100]
call fcn.1000e00f
cmp dword [eax], 0
jne 0x10038e32
and dword [ebp - 0x9c], 0
jmp 0x10038e3c
mov dword [ebp - 0x9c], 1
mov eax, dword [ebp - 0x10]
neg eax
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x9c]
imul ecx, ecx, 0x9b8a
add ecx, 0x12ed4033
cmp eax, ecx
jl 0x10038e66
mov dword [ebp - 0x84], 1
jmp 0x10038e6d
and dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10038e8e
mov eax, 0x1dce
test eax, eax
jne 0x10038e8e
and dword [ebp - 0xac], 0
jmp 0x10038e98
mov dword [ebp - 0xac], 1
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xac], eax
je 0x10038eaf
mov dword [ebp - 0x8c], 1
jmp 0x10038eb6
and dword [ebp - 0x8c], 0
push 0
lea ecx, [ebp - 0x100]
call fcn.1000e00f
mov ecx, dword [ebp - 0x10]
imul ecx, dword [ebp - 0x8c]
mov eax, dword [eax]
sub eax, ecx
test eax, eax
jle 0x10038ee1
cmp dword [ebp - 0x5c], 0
jne 0x10038ee1
and dword [ebp - 0x54], 0
jmp 0x10038ee8
mov dword [ebp - 0x54], 1
push 0
lea ecx, [ebp - 0x100]
call fcn.1000e00f
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [eax]
jge 0x10038f05
mov dword [ebp - 0x70], 1
jmp 0x10038f09
and dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x104], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x100]
call fcn.1000e00a
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xec], eax
mov edx, 0x7243dc89
mov ecx, dword [ebp - 0xec]
call fcn.10038b39
jmp 0x1003916a
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x2c], 0x9a54e587
push 3
lea ecx, [ebp - 0x110]
call fcn.1000dfce
mov dword [ebp - 4], 1
mov dword [ebp - 0x40], 0
jmp 0x10038f8c
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 3
jge 0x10038fa8
push dword [ebp - 0x40]
lea ecx, [ebp - 0x110]
call fcn.1000e00f
mov dword [eax], 0xfff8
jmp 0x10038f85
mov dword [ebp - 0x14], 0xa
jmp 0x10038fb8
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xfffffff0
jne 0x100390cf
mov dword [ebp - 0x4c], 0x47d2038e
mov dword [ebp - 0x78], 0xfffffffb
mov dword [ebp - 0x98], 0xdfbc43cc
cmp dword [ebp - 0x78], 2
jl 0x10038ff2
cmp dword [ebp - 0x78], 0
je 0x10038ff2
mov dword [ebp - 0xf4], 1
jmp 0x10038ff9
and dword [ebp - 0xf4], 0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x14]
neg eax
je 0x10039022
xor eax, eax
je 0x10039022
mov dword [ebp - 0xe4], 1
jmp 0x10039029
and dword [ebp - 0xe4], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x14], 0x736d
jne 0x10039056
mov dword [ebp - 0x80], 1
jmp 0x1003905a
and dword [ebp - 0x80], 0
cmp dword [ebp - 0x80], 0xef7d2668
ja 0x1003906f
mov dword [ebp - 0x88], 1
jmp 0x10039076
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x88], eax
jg 0x1003908d
mov dword [ebp - 0x90], 1
jmp 0x10039094
and dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
cmp dword [ebp - 0x14], eax
jne 0x100390b7
mov dword [ebp - 0xa0], 1
jmp 0x100390be
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0xa0]
sub eax, 0xb
mov dword [ebp - 0x2c], eax
jmp 0x10038fb1
mov dword [ebp - 0x14], 0
jmp 0x100390df
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 9
jge 0x10039144
mov byte [ebp - 0x21], 0
movzx eax, byte [ebp - 0x21]
test eax, eax
je 0x10039116
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x8b8
push 0x228b
push 0x25fc
push 0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov dword [ebp - 0x2c], 0
jmp 0x10039126
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 3
jge 0x10039142
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x110]
call fcn.1000e00f
mov dword [eax], 0x9209
jmp 0x1003911f
jmp 0x100390d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.1000e00a
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax]
and dword [eax], 0
jmp 0x10039376
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xe8], eax
push 3
lea ecx, [ebp - 0xc4]
call fcn.1000dfce
mov dword [ebp - 4], 2
mov dword [ebp - 0x28], 0x96960f57
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x38], 0
jmp 0x100391b3
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 3
jge 0x100391cf
push dword [ebp - 0x38]
lea ecx, [ebp - 0xc4]
call fcn.1000e00f
mov dword [eax], 0xfffa
jmp 0x100391ac
mov dword [ebp - 0x28], 0
jmp 0x100391df
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 2
jg 0x1003934c
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x30], 0x56df
push dword [ebp - 0x28]
lea ecx, [ebp - 0xc4]
call fcn.1000e00f
mov esi, eax
push 0
lea ecx, [ebp - 0xc4]
call fcn.1000e00f
mov ecx, dword [esi]
cmp ecx, dword [eax]
jle 0x10039226
mov dword [ebp - 0xa8], 1
jmp 0x1003922d
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xa8]
neg eax
imul eax, eax, 0xb666
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x1c], 0
jmp 0x10039254
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 2
jg 0x10039347
mov dword [ebp - 0x50], 0x4c8f0d07
mov dword [ebp - 0xd8], 0xfffffff8
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x1c], 0
je 0x10039296
cmp dword [ebp - 0x50], 0
je 0x10039296
cmp dword [ebp - 0x1c], 0
je 0x10039296
mov dword [ebp - 0xb0], 1
jmp 0x1003929d
and dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0xb0], eax
jne 0x100392b4
cmp dword [ebp - 0x30], 0
jne 0x100392b4
and dword [ebp - 0x58], 0
jmp 0x100392bb
mov dword [ebp - 0x58], 1
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xd8]
add ecx, dword [ebp - 0x58]
add ecx, dword [ebp - 0x1c]
imul eax, ecx
cmp eax, 0xb64d
jge 0x1003932e
mov dword [ebp - 0x20], 2
jmp 0x100392ea
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x1003932c
mov dword [ebp - 0x30], 2
jmp 0x10039300
mov eax, dword [ebp - 0x30]
dec eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jl 0x1003932a
push dword [ebp - 0x30]
lea ecx, [ebp - 0xc4]
call fcn.1000e00f
mov esi, eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0xc4]
call fcn.1000e00f
mov ecx, dword [esi]
mov dword [eax], ecx
jmp 0x100392f9
jmp 0x100392e3
jmp 0x10039342
mov byte [ebp - 0x22], 0
movzx eax, byte [ebp - 0x22]
test eax, eax
je 0x10039342
push 0
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
jmp 0x1003924d
jmp 0x100391d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call fcn.1000e00a
push 0x2480
push 0
push dword [ebp - 0xe0]
push dword [ebp - 0xe8]
call fcn.1003a00a
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret