Function at 0x4389f0
Capabilities:
Create service
Modify service

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x554301
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x130
mov eax, dword [0x5ec3c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 0x10]
mov edi, dword [ebx + 8]
add eax, 0x270f
mov dword [ebp - 0xfc], edi
cmp eax, 0x270f
ja 0x438a6c
push 0
push dword [edi]
call fcn.0049a030
inc dword [edi + 4]
push str.Table_argument_is_invalid
push dword [edi]
call fcn.0049a240
add esp, 0x10
inc dword [edi + 4]
jmp 0x439359
push str.name
push dword [ebx + 0xc]
call fcn.0049a240
push dword [ebx + 0x10]
push dword [ebx + 0xc]
call fcn.0049a330
push 0
push 0xffffffffffffffff
push dword [ebx + 0xc]
call fcn.0049a980
add esp, 0x1c
mov dword [ebp - 0x100], eax
test eax, eax
jne 0x438abf
push eax
push dword [edi]
call fcn.0049a030
inc dword [edi + 4]
push str.No_name
push dword [edi]
call fcn.0049a240
add esp, 0x10
inc dword [edi + 4]
jmp 0x439359
push str.binary
push dword [ebx + 0xc]
call fcn.0049a240
push dword [ebx + 0x10]
push dword [ebx + 0xc]
call fcn.0049a330
push 0
push 0xffffffffffffffff
push dword [ebx + 0xc]
call fcn.0049a980
add esp, 0x1c
mov dword [ebp - 0x118], eax
test eax, eax
jne 0x438b12
push eax
push dword [edi]
call fcn.0049a030
inc dword [edi + 4]
push str.No_binary_path
push dword [edi]
call fcn.0049a240
add esp, 0x10
inc dword [edi + 4]
jmp 0x439359
push 0x10
push 0x5f9790
lea edx, [ebx + 0xc]
mov ecx, str.type
call fcn.0043da20
push 3
push 0x5f9798
lea edx, [ebx + 0xc]
mov dword [ebp - 0x124], eax
mov ecx, str.start
call fcn.0043da20
mov ecx, eax
lea edx, [ebx + 0xc]
and ecx, 0xf0000000
mov dword [ebp - 0x10c], ecx
mov ecx, 2
cmovne eax, ecx
mov ecx, str.error
push 1
push 0x5f97a0
mov dword [ebp - 0x120], eax
call fcn.0043da20
push str.group
push dword [ebx + 0xc]
mov dword [ebp - 0x11c], eax
call fcn.0049a240
push dword [ebx + 0x10]
push dword [ebx + 0xc]
call fcn.0049a330
push 0
push 0xffffffffffffffff
push dword [ebx + 0xc]
call fcn.0049a980
add esp, 0x34
mov dword [ebp - 0x114], eax
push 0x5cb4c0
push dword [ebx + 0xc]
call fcn.0049a240
push dword [ebx + 0x10]
push dword [ebx + 0xc]
call fcn.0049a330
push 0
push 0xffffffffffffffff
push dword [ebx + 0xc]
call fcn.0049a980
xor esi, esi
mov dword [ebp - 0x20], 0
add esp, 0x1c
mov dword [ebp - 0x108], esi
test eax, eax
je 0x438c15
mov ecx, 0x5cb4c4
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x438c02
test dl, dl
je 0x438bfe
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x438c02
add eax, 2
add ecx, 2
test dl, dl
jne 0x438be2
xor ecx, ecx
jmp 0x438c07
sbb ecx, ecx
or ecx, 1
test ecx, ecx
lea eax, [ebp - 0x20]
cmovne eax, esi
mov dword [ebp - 0x108], eax
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
push str.depend
push dword [ebx + 0xc]
call fcn.0049a240
push dword [ebx + 0x10]
push dword [ebx + 0xc]
call fcn.0049a330
push esi
push 0xffffffffffffffff
push dword [ebx + 0xc]
call fcn.0049a980
add esp, 0x1c
mov dword [ebp - 0x18], eax
test eax, eax
je 0x438da2
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x438c53
sub ecx, edx
push 0x5b417e
mov dword [ebp - 0x104], ecx
lea eax, [ecx + 2]
push eax
mov dword [ebp - 0x1c], eax
call fcn.0050a503
mov esi, eax
add esp, 8
mov dword [ebp - 0x24], esi
test esi, esi
jne 0x438ca1
push eax
push dword [edi]
call fcn.0049a030
inc dword [edi + 4]
push str.Failed_to_allocate_memory_for_dependencies
push dword [edi]
call fcn.0049a240
add esp, 0x10
inc dword [edi + 4]
jmp 0x439359
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push esi
call fcn.005365c8
add esp, 0xc
mov dword [ebp - 0x18], eax
test eax, eax
je 0x438d7f
push 0xb0
lea eax, [ebp - 0xf8]
push 0
push eax
call fcn.0050cdd0
add esp, 8
lea ecx, [ebp - 0xf8]
call fcn.0043b0f0
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 1
push str.strcpy_s_failed._Error
push eax
call fcn.0043d770
add esp, 8
mov ecx, eax
push dword [ebp - 0x18]
call fcn.0043b500
push 0
push dword [edi]
call fcn.0049a030
inc dword [edi + 4]
lea eax, [ebp - 0x13c]
add esp, 8
lea ecx, [ebp - 0xf8]
push eax
call fcn.0043b000
cmp dword [eax + 0x14], 0x10
jb 0x438d27
mov eax, dword [eax]
push eax
push dword [edi]
call fcn.0049a240
inc dword [edi + 4]
add esp, 8
mov ecx, dword [ebp - 0x128]
cmp ecx, 0x10
jb 0x438d6f
mov edx, dword [ebp - 0x13c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x438d65
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x439379
push ecx
push edx
call fcn.0050a4c5
add esp, 8
lea ecx, [ebp - 0xf8]
call fcn.00438430
jmp 0x43934c
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 0x104]
test eax, eax
je 0x438da2
cmp byte [ecx + esi], 0x2f
jne 0x438d9d
mov byte [ecx + esi], 0
inc ecx
cmp ecx, eax
jb 0x438d93
push 0x5cb514
push dword [ebx + 0xc]
call fcn.0049a240
push dword [ebx + 0x10]
push dword [ebx + 0xc]
call fcn.0049a330
push 0
push 0xffffffffffffffff
push dword [ebx + 0xc]
call fcn.0049a980
add esp, 0x1c
mov dword [ebp - 0x104], eax
push 0x5cb518
push dword [ebx + 0xc]
call fcn.0049a240
push dword [ebx + 0x10]
push dword [ebx + 0xc]
call fcn.0049a330
push 0
push 0xffffffffffffffff
push dword [ebx + 0xc]
call fcn.0049a980
add esp, 0x1c
mov dword [ebp - 0x18], eax
push str.password
push dword [ebx + 0xc]
call fcn.0049a240
push dword [ebx + 0x10]
push dword [ebx + 0xc]
call fcn.0049a330
push 0
push 0xffffffffffffffff
push dword [ebx + 0xc]
call fcn.0049a980
add esp, 0x1c
mov dword [ebp - 0x110], eax
mov edx, edi
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
push 2
call fcn.004382e0
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x43934c
push 0xf01ff
push dword [ebp - 0x100]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 3
test edi, edi
je 0x4391ac
xorps xmm0, xmm0
mov dword [ebp - 0x12c], 0
movups xmmword [ebp - 0x13c], xmm0
mov byte [ebp - 0x13c], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x128], 0xf
movups xmm0, xmmword [ebp - 0x13c]
mov byte [ebp - 0x2c], 1
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [ebp - 0x12c]
movq qword [ebp - 0x34], xmm0
mov edx, dword [ebp - 0x100]
lea eax, [ebp - 0x44]
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00438860
add esp, 4
test eax, eax
je 0x438f23
mov eax, dword [ebp - 0xfc]
push 0
push dword [eax]
call fcn.0049a030
mov ecx, dword [ebp - 0xfc]
add esp, 8
inc dword [ecx + 4]
cmp byte [ebp - 0x2c], 0
je 0x438efe
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
jmp 0x438f03
push str.Unknown_error_while_stopping_service
push dword [ecx]
call fcn.0049a240
mov eax, dword [ebp - 0xfc]
lea ecx, [ebp - 0x44]
add esp, 8
inc dword [eax + 4]
call fcn.0041fd70
jmp 0x439338
push dword [ebp - 0x18]
push dword [ebp - 0x110]
push dword [ebp - 0x104]
push esi
push dword [ebp - 0x108]
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
push dword [ebp - 0x124]
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x439076
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xb0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xf8]
push 0
push eax
call fcn.0050cdd0
add esp, 8
lea ecx, [ebp - 0xf8]
call fcn.0043b0f0
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 5
push str.Failed_to_configure_service
push eax
call fcn.0043d770
push dword [ebp - 0x100]
lea eax, [ebp - 0xe8]
push eax
call fcn.0043d770
lea eax, [ebp - 0xe8]
push 0x5cb3d8
push eax
call fcn.0043d770
add esp, 0x18
mov ecx, eax
push dword [ebp - 0x18]
call fcn.0043b380
mov eax, dword [ebp - 0xfc]
push 0
push dword [eax]
call fcn.0049a030
mov ecx, dword [ebp - 0xfc]
lea eax, [ebp - 0x13c]
add esp, 8
inc dword [ecx + 4]
lea ecx, [ebp - 0xf8]
push eax
call fcn.0043b000
cmp dword [eax + 0x14], 0x10
jb 0x43900a
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xfc]
push dword [eax]
call fcn.0049a240
mov eax, dword [ebp - 0xfc]
add esp, 8
mov ecx, dword [ebp - 0x128]
inc dword [eax + 4]
cmp ecx, 0x10
jb 0x43905e
mov edx, dword [ebp - 0x13c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x439054
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43937e
push ecx
push edx
call fcn.0050a4c5
add esp, 8
lea ecx, [ebp - 0xf8]
call fcn.00438430
lea ecx, [ebp - 0x44]
call fcn.0041fd70
jmp 0x439338
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.0041fd70
cmp dword [ebp - 0x10c], 0
je 0x439308
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
test eax, eax
jne 0x439308
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xb0
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0xf8]
push 0
push eax
call fcn.0050cdd0
add esp, 8
lea ecx, [ebp - 0xf8]
call fcn.0043b0f0
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 7
push str.Failed_to_switch_service_to_delayed_auto_start
push eax
call fcn.0043d770
push dword [ebp - 0x100]
lea eax, [ebp - 0xe8]
push eax
call fcn.0043d770
lea eax, [ebp - 0xe8]
push 0x5cb3d8
push eax
call fcn.0043d770
add esp, 0x18
mov ecx, eax
push dword [ebp - 0x10c]
call fcn.0043b380
mov eax, dword [ebp - 0xfc]
push 0
push dword [eax]
call fcn.0049a030
mov ecx, dword [ebp - 0xfc]
lea eax, [ebp - 0x13c]
add esp, 8
inc dword [ecx + 4]
lea ecx, [ebp - 0xf8]
push eax
call fcn.0043b000
cmp dword [eax + 0x14], 0x10
jb 0x439155
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xfc]
push dword [eax]
call fcn.0049a240
mov eax, dword [ebp - 0xfc]
add esp, 8
mov ecx, dword [ebp - 0x128]
inc dword [eax + 4]
cmp ecx, 0x10
jb 0x4392fb
mov edx, dword [ebp - 0x13c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4392f1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x439383
jmp 0x4392f1
push dword [ebp - 0x110]
push dword [ebp - 0x104]
push esi
push dword [ebp - 0x108]
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
push dword [ebp - 0x124]
push 0xf01ff
push dword [ebp - 0x18]
push dword [ebp - 0x100]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
jne 0x439082
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xb0
mov edi, eax
lea eax, [ebp - 0xf8]
push 0
push eax
call fcn.0050cdd0
add esp, 8
lea ecx, [ebp - 0xf8]
call fcn.0043b0f0
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 6
push str.Failed_to_create_service
push eax
call fcn.0043d770
push dword [ebp - 0x100]
lea eax, [ebp - 0xe8]
push eax
call fcn.0043d770
lea eax, [ebp - 0xe8]
push 0x5cb3d8
push eax
call fcn.0043d770
add esp, 0x18
mov ecx, eax
push edi
call fcn.0043b380
mov edi, dword [ebp - 0xfc]
push 0
push dword [edi]
call fcn.0049a030
inc dword [edi + 4]
lea eax, [ebp - 0x13c]
add esp, 8
lea ecx, [ebp - 0xf8]
push eax
call fcn.0043b000
cmp dword [eax + 0x14], 0x10
jb 0x43929c
mov eax, dword [eax]
push eax
push dword [edi]
call fcn.0049a240
inc dword [edi + 4]
add esp, 8
mov ecx, dword [ebp - 0x128]
cmp ecx, 0x10
jb 0x4392e4
mov edx, dword [ebp - 0x13c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4392da
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x439388
push ecx
push edx
call fcn.0050a4c5
add esp, 8
lea ecx, [ebp - 0xf8]
call fcn.00438430
jmp 0x439343
push ecx
push edx
call fcn.0050a4c5
add esp, 8
lea ecx, [ebp - 0xf8]
call fcn.00438430
jmp 0x439338
mov eax, dword [ebp - 0xfc]
push 1
push dword [eax]
call fcn.0049a030
mov ecx, dword [ebp - 0xfc]
push 0x5c698b
push dword [ecx]
inc dword [ecx + 4]
call fcn.0049a240
mov eax, dword [ebp - 0xfc]
add esp, 0x10
inc dword [eax + 4]
test edi, edi
je 0x439343
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x439359
push esi
call fcn.0050aa90
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050a47b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
call fcn.00522dda
call fcn.00522dda
call fcn.00522dda
call fcn.00522dda
int3