joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ffa80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fa928
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
mov eax, dword [0x68c484]
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [ebp - 0x10], esp
jne 0x4ffc6b
push 1
push 0x68c490
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push esi
push esi
push 1
push 0x68c490
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea ecx, [ebp - 0x34]
mov dword [0x68c4a8], 0xc
mov dword [0x68c4b0], esi
mov dword [0x68c4ac], 0x68c490
call fcn.0046df60
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], esi
call fcn.005df886
mov eax, dword [0x68c4e4]
mov byte [ebp - 4], 1
cmp eax, esi
mov dword [ebp - 0x24], str.S_1_1_0
mov dword [ebp - 0x20], str.S_1_15_2_1
mov dword [ebp - 0x1c], str.S_1_15_2_2
mov ebx, 3
jne 0x4ffb81
mov ecx, 0x24
xor eax, eax
lea edi, [ebp - 0xd8]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xdc], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xcc]
mov ecx, 2
cmp eax, ecx
jne 0x4ffb77
mov eax, dword [ebp - 0xd8]
cmp eax, 6
ja 0x4ffb6d
jne 0x4ffb77
cmp dword [ebp - 0xd4], ecx
jb 0x4ffb77
mov dword [0x68c4e8], 1
mov dword [0x68c4e4], 1
cmp dword [0x68c4e8], esi
jne 0x4ffb8e
mov ebx, 1
cmp ebx, esi
jle 0x4ffbd5
lea esi, [ebp - 0x24]
mov edi, ebx
mov ecx, dword [esi]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004669e0
mov edx, dword [ebp - 0x30]
push eax
push edx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.0046e6c0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00467250
mov eax, dword [ebp - 0x40]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x48]
call fcn.005dfaaa
add esi, 4
dec edi
jne 0x4ffb97
xor esi, esi
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x34]
push ecx
push edx
push 0x68c4c8
mov byte [ebp - 4], 3
call fcn.004ff640
add esp, 0xc
cmp eax, esi
jne 0x4ffc29
lea eax, [ebp - 0x18]
push 0x630ca0
push eax
mov dword [ebp - 0x18], esi
call fcn.0044f7dc
push 1
push 0x68c4c8
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
push 0x68c4c8
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov eax, 0x4ffc27
ret
mov eax, 1
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], eax
mov dword [0x68c4b8], 0xc
mov dword [0x68c4c0], esi
mov dword [0x68c4bc], 0x68c4c8
mov dword [0x68c484], eax
mov byte [ebp - 4], 0
call fcn.005df8b9
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.0046df70
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5028d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5fab1b
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
mov ebx, dword [esp + 0xb4]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
je 0x502a74
push ebx
call fcn.0044cf30
add esp, 4
test eax, eax
je 0x502a74
push ebx
lea ecx, [esp + 0x18]
call fcn.005e0fa7
mov esi, dword [esp + 0xc4]
mov dword [esp + 0xb8], ebp
cmp esi, ebp
je 0x502941
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x502a60
neg esi
sbb esi, esi
mov dword [esp + 0x18], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
and esi, 0xc0000000
add esi, 0xc0000000
or edi, 0xffffffff
cmp edi, 0xffffffff
jne 0x502a14
mov eax, dword [esp + 0x18]
test eax, eax
je 0x502977
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x677ea0]
cmp eax, 0xffffffff
jne 0x5029b2
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, 2
sete al
mov dword [0x677ea0], eax
test eax, eax
je 0x5029cb
push 0
push 0x80
push 4
push 0
push 1
push esi
push ebx
call ebp
mov edi, eax
jmp 0x5029f9
push ebx
lea ecx, [esp + 0x14]
call fcn.004610d0
mov edx, dword [esp + 0x10]
push 0
push 0x80
push 4
push 0
push 1
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.004618e0
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 3
mov dword [esp + 0x18], eax
jl 0x50295e
cmp edi, 0xffffffff
je 0x502aaa
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push edi
call esi
cmp eax, 0xffffffff
jne 0x502a2c
or ebp, eax
jmp 0x502a2e
mov ebp, eax
push 2
push 0
push 0
push edi
call esi
cmp eax, 0xffffffff
jne 0x502a40
or ebx, eax
jmp 0x502a42
mov ebx, eax
push 0
push 0
push ebp
push edi
call esi
test ebx, ebx
jne 0x502aaa
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x502a90
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov dword [esp + 0xb8], 0xffffffff
call fcn.005e0ee7
or eax, 0xffffffff
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xac
ret
lea eax, [esp + 0x10]
push 2
push eax
push 0
push edi
mov dword [esp + 0x20], 0xfeff
call fcn.005025b0
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0xb8], 0xffffffff
call fcn.005e0ee7
mov eax, edi
jmp 0x502a77
Function at 0x503a20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5facef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x60c46c]
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 8], eax
mov dword [esp + 0x28], 1
mov dword [esp + 0xc], eax
mov eax, dword [esi + 8]
mov byte [esp + 0x28], 2
cmp eax, edi
jle 0x503b40
push ebx
push ebp
mov bl, 4
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi*8]
mov edx, dword [eax + edi*8 + 4]
lea eax, [eax + edi*8]
cmp ecx, edx
ja 0x503b32
jne 0x503aaa
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.005bcb40
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 3
call fcn.00467400
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x18]
jmp 0x503b06
mov eax, dword [eax + 4]
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.005bcb40
mov ebp, eax
mov edx, dword [esi + 4]
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], bl
mov eax, dword [edx + edi*8]
push eax
push ecx
call fcn.005bcb40
add esp, 0x10
mov edx, dword [ebp]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x1c]
push str._s__s
push ecx
mov byte [esp + 0x40], 5
call fcn.0046a260
add esp, 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], bl
call fcn.00467250
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x20]
call fcn.00467250
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
je 0x503b24
push 0x677ee4
lea ecx, [esp + 0x14]
call fcn.00467e90
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call fcn.00467ef0
mov eax, dword [esi + 8]
inc edi
cmp edi, eax
jl 0x503a6b
pop ebp
pop ebx
mov esi, dword [esp + 0x30]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.004667d0
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 1
call fcn.00467250
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.00467250
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x570940
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x6049a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov edx, dword [esp + 0x18]
push ebx
push esi
mov esi, dword [esp + 0x1c]
lea eax, [edx + edx*2]
push edi
mov edi, esi
lea ecx, [eax + eax*4]
xor eax, eax
shl ecx, 3
mov ebx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec edx
test eax, eax
je 0x570a34
inc edx
push ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], esi
test esi, esi
mov dword [esp + 0x1c], 0
je 0x570a15
mov ecx, dword [0x60c46c]
mov dword [esi], ecx
mov edx, dword [0x60c46c]
lea edi, [esi + 4]
mov dword [edi], edx
lea ebp, [esi + 8]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call fcn.00502dc0
lea ebx, [esi + 0x3c]
mov byte [esp + 0x1c], 3
mov ecx, ebx
call fcn.00502dc0
mov eax, dword [0x60c46c]
mov dword [esi + 0x74], eax
push 0x68711c
mov ecx, esi
mov byte [esp + 0x20], 5
call fcn.00467530
push 0x68711c
mov ecx, edi
call fcn.00467530
mov ecx, ebp
call fcn.00503060
mov ecx, ebx
call fcn.00503060
push 0x68711c
lea ecx, [esi + 0x74]
mov dword [esi + 0x70], 0
call fcn.00467530
mov eax, dword [esp + 0x28]
add esi, 0x78
dec eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
jne 0x57098d
pop ebp
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x570a50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x6049f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov edx, dword [esp + 0x18]
push ebx
mov ecx, edx
push esi
mov esi, dword [esp + 0x1c]
push edi
shl ecx, 4
add ecx, edx
xor eax, eax
shl ecx, 3
mov ebx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec edx
test eax, eax
je 0x570b56
inc edx
push ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], esi
test esi, esi
mov dword [esp + 0x1c], 0
je 0x570b34
mov ecx, dword [0x60c46c]
mov dword [esi], ecx
mov edx, dword [0x60c46c]
lea edi, [esi + 4]
mov dword [edi], edx
lea ebp, [esi + 8]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call fcn.00502dc0
lea ebx, [esi + 0x3c]
mov byte [esp + 0x1c], 3
mov ecx, ebx
call fcn.00502dc0
mov eax, dword [0x60c46c]
mov dword [esi + 0x80], eax
push 0x68711c
mov ecx, esi
mov byte [esp + 0x20], 5
call fcn.00467530
push 0x68711c
mov ecx, edi
call fcn.00467530
mov ecx, ebp
call fcn.00503060
mov ecx, ebx
call fcn.00503060
xor eax, eax
push 0x68711c
mov dword [esi + 0x78], eax
lea ecx, [esi + 0x80]
mov dword [esi + 0x70], eax
mov dword [esi + 0x7c], eax
call fcn.00467530
mov eax, dword [esp + 0x28]
add esi, 0x88
dec eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
jne 0x570a9e
pop ebp
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x572d70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x604eb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov esi, ecx
push str.___:_:
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0
call fcn.005e0f55
push 0x687118
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
call fcn.005e0f55
push 0x67c558
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.005e0f55
push 0x687118
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 3
call fcn.005e0f55
lea edi, [esi + 0x144]
push 0x687118
mov ecx, edi
mov byte [esp + 0x2c], 4
call fcn.005e1070
mov eax, dword [esp + 0x30]
xor esi, esi
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x572e7e
mov al, byte [esi + eax]
mov byte [esp + 0x1c], al
movsx eax, al
push eax
call fcn.0044f4ba
add esp, 4
test eax, eax
je 0x572e66
push 0x687118
lea ecx, [esp + 0x14]
call fcn.005e0f55
push esi
lea ecx, [esp + 0x14]
push 0x6539c8
push ecx
mov byte [esp + 0x34], 5
call fcn.005de7af
add esp, 0xc
lea edx, [esp + 0x10]
lea ecx, [esp + 8]
push edx
call fcn.005e12ff
mov eax, dword [esp + 0x1c]
mov ecx, edi
push eax
call fcn.005e12ea
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.005e0ee7
jmp 0x572e74
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x10]
call fcn.005e12ea
mov eax, dword [esp + 0x30]
inc esi
cmp esi, dword [eax - 8]
jl 0x572dff
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.0044ea3a
add esp, 8
test eax, eax
pop edi
pop esi
je 0x572f08
mov ecx, dword [esp]
mov edx, dword [esp + 0xc]
push ecx
push edx
call fcn.0044ea3a
add esp, 8
test eax, eax
je 0x572f08
lea ecx, [esp]
mov byte [esp + 0x20], 3
call fcn.005e0ee7
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 2
call fcn.005e0ee7
lea ecx, [esp + 4]
mov byte [esp + 0x20], 1
call fcn.005e0ee7
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.005e0ee7
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.005e0ee7
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
lea ecx, [esp]
mov byte [esp + 0x20], 3
call fcn.005e0ee7
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 2
call fcn.005e0ee7
lea ecx, [esp + 4]
mov byte [esp + 0x20], 1
call fcn.005e0ee7
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 0
call fcn.005e0ee7
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.005e0ee7
mov ecx, dword [esp + 0x18]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x576bf0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x605363
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x667c48]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea edi, [esi + 0x18]
mov dword [edi], eax
mov ecx, dword [0x667c48]
mov dword [esp + 0x14], 0
mov dword [esi + 0x1c], ecx
mov edx, dword [0x667c48]
mov dword [esi + 0x20], edx
mov eax, dword [0x667c48]
mov dword [esi + 0x24], eax
mov ecx, dword [0x667c48]
mov dword [esi + 0x28], ecx
mov edx, dword [0x667c48]
mov dword [esi + 0x2c], edx
mov eax, dword [0x667c48]
mov dword [esi + 0x30], eax
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 6
call fcn.005df311
lea ecx, [esi + 0x48]
mov byte [esp + 0x14], 7
call fcn.005df311
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x14], 8
push ecx
mov ecx, edi
mov dword [esi], 0x6180f0
mov dword [esi + 4], 0
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], 0x10
mov dword [esi + 0x10], 2
mov dword [esi + 0x14], 1
call fcn.005e1070
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x576e80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6054b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x667c48]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 0x18]
mov dword [edi], eax
mov ecx, dword [0x667c48]
mov dword [esp + 0x1c], 0
mov dword [esi + 0x1c], ecx
mov edx, dword [0x667c48]
mov dword [esi + 0x20], edx
mov eax, dword [0x667c48]
lea ebp, [esi + 0x24]
mov dword [ebp], eax
mov ecx, dword [0x667c48]
lea ebx, [esi + 0x28]
mov dword [ebx], ecx
mov edx, dword [0x667c48]
mov dword [esi + 0x2c], edx
mov eax, dword [0x667c48]
mov dword [esi + 0x30], eax
lea ecx, [esi + 0x34]
mov byte [esp + 0x1c], 6
call fcn.005df311
lea ecx, [esi + 0x48]
mov byte [esp + 0x1c], 7
call fcn.005df311
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [esi + 0xc], ecx
push eax
mov ecx, edi
mov byte [esp + 0x20], 8
mov dword [esi], 0x6180f0
mov dword [esi + 4], 0
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 1
call fcn.005e1070
mov eax, dword [esp + 0x30]
test eax, eax
je 0x576f4f
push eax
mov ecx, ebx
call fcn.005e1070
mov eax, dword [esp + 0x34]
test eax, eax
je 0x576f5f
push eax
mov ecx, ebp
call fcn.005e1070
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x5788e0
Capabilities:
Start service

Disassembly:
sub esp, 0x20
push edi
call fcn.00484370
test eax, eax
je 0x5788fe
mov dword [0x68cae0], 0x32
xor eax, eax
pop edi
add esp, 0x20
ret
mov eax, dword [esp + 0x28]
xor edi, edi
cmp eax, edi
jne 0x578919
mov dword [0x68cae0], 0x57
xor eax, eax
pop edi
add esp, 0x20
ret
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push esi
push 2
push edi
push edi
mov dword [0x68cae0], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call ebp
mov esi, eax
cmp esi, edi
jne 0x578948
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
cmp esi, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
je 0x57896a
mov eax, dword [esp + 0x34]
push 0x10
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x5789a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
test edi, edi
je 0x5789df
jne 0x5789a8
test esi, esi
jne 0x57898e
push 2
push esi
push esi
call ebp
mov esi, eax
test esi, esi
jne 0x57898e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov dword [esp + 0x14], eax
je 0x5789a8
mov ecx, dword [esp + 0x34]
push 0x10
push ecx
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x5789a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push edx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ebp, eax
test ebp, ebp
jne 0x5789ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
mov dword [0x68cae0], eax
jne 0x5789e8
mov dword [esp + 0x10], 1
mov ebp, dword [esp + 0x10]
jmp 0x5789ff
mov eax, dword [0x68cae0]
mov ebp, dword [esp + 0x10]
test eax, eax
jne 0x5789ff
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x5789fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x68cae0], eax
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x578a0c
push edi
call ebx
test esi, esi
je 0x578a13
push esi
call ebx
mov eax, ebp
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x20
ret
Function at 0x578c20
Capabilities:
Query service status

Disassembly:
sub esp, 0x20
call fcn.00484370
test eax, eax
je 0x578c3c
mov dword [0x68cae0], 0x32
xor eax, eax
add esp, 0x20
ret
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], ebp
push 1
rep stosd dword es:[edi], eax
push ebp
push ebp
mov dword [0x68cae0], ebp
mov dword [esp + 0x1c], ebp
xor ebx, ebx
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
cmp esi, ebp
jne 0x578c7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp esi, ebp
mov ebp, dword [esp + 0x34]
je 0x578c99
push 4
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x578cd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test edi, edi
je 0x578cef
jne 0x578cd3
test esi, esi
jne 0x578cbd
push 1
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x578cbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x578cd3
push 4
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x578cd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ebp, eax
test ebp, ebp
jne 0x578d0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x578cf3
mov ebp, dword [esp + 0x10]
test ebx, ebx
je 0x578cff
mov dword [0x68cae0], ebx
jmp 0x578d16
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x68cae0], eax
jmp 0x578d16
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x578d23
push edi
call ebx
test esi, esi
je 0x578d2a
push esi
call ebx
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x5795f0
Capabilities:
Modify service

Disassembly:
push 0xffffffffffffffff
push 0x6056db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x624
push esi
push edi
lea ecx, [esp + 0x10]
xor esi, esi
call fcn.005df311
mov eax, dword [esp + 0x65c]
mov dword [esp + 0x634], esi
test eax, eax
je 0x579634
push eax
lea ecx, [esp + 0x14]
call fcn.005df4ed
mov eax, dword [esp + 0x660]
test eax, eax
je 0x579649
push eax
lea ecx, [esp + 0x14]
call fcn.005df4ed
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x22d]
mov byte [esp + 0x22c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
mov dword [esp + 8], 0x400
test eax, eax
jle 0x5796c8
lea eax, [esp + 8]
lea ecx, [esp + 0x22c]
push eax
push ecx
lea edx, [esp + 0x18]
push 0
push edx
call fcn.004a2650
add esp, 0x10
test eax, eax
jne 0x5796c1
lea ecx, [esp + 0x10]
mov dword [esp + 0x634], 0xffffffff
call fcn.005df344
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x624]
mov dword fs:[0], ecx
add esp, 0x630
ret
lea esi, [esp + 0x22c]
mov eax, dword [esp + 0x64c]
mov ecx, dword [esp + 0x668]
mov edx, dword [esp + 0x664]
push ebx
push ebp
push eax
mov eax, dword [esp + 0x664]
push ecx
mov ecx, dword [esp + 0x664]
push edx
mov edx, dword [esp + 0x65c]
push esi
mov esi, dword [esp + 0x654]
push 0
push eax
mov eax, dword [esp + 0x664]
push ecx
mov ecx, dword [esp + 0x664]
push edx
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov ebp, eax
test ebp, ebp
je 0x579781
mov ebx, dword [esp + 0x658]
test ebx, ebx
je 0x579781
test esi, esi
je 0x579781
call fcn.004483b0
mov eax, dword [0x6890fc]
test eax, eax
je 0x579781
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], 0
rep stosd dword es:[edi], eax
push 0
lea edx, [esp + 0x30]
push 0x104
push edx
push 0xffffffffffffffff
push ebx
stosw word es:[edi], ax
call fcn.0049fc50
add esp, 0x14
lea ecx, [esp + 0x14]
lea eax, [esp + 0x2c]
push ecx
push 1
push esi
mov dword [esp + 0x20], eax
call dword [0x6890fc]
lea ecx, [esp + 0x18]
mov dword [esp + 0x63c], 0xffffffff
call fcn.005df344
mov ecx, dword [esp + 0x634]
mov eax, ebp
pop ebp
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x630
ret
Function at 0x579fd0
Capabilities:
Set registry value

Disassembly:
push edi
mov edi, dword [esp + 0x10]
cmp edi, 0xffffffff
je 0x579fed
cmp edi, 4
jbe 0x579fed
mov dword [0x68cae4], 0x57
xor eax, eax
pop edi
ret
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
cmp eax, 0xffffffff
mov ebx, dword [esi]
je 0x57a00c
push eax
mov eax, dword [str.Type]
push eax
mov ecx, esi
call fcn.00477020
cmp edi, 0xffffffff
je 0x57a020
mov ecx, dword [str.Start]
push edi
push ecx
mov ecx, esi
call fcn.00477020
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x57a038
mov edx, dword [str.ErrorControl]
push eax
push edx
mov ecx, esi
call fcn.00477020
mov eax, dword [esp + 0x20]
test eax, eax
je 0x57a04e
push eax
mov eax, dword [0x67c7ac]
push eax
mov ecx, esi
call fcn.004771d0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x57a065
mov ecx, dword [0x67c7b0]
push eax
push ecx
mov ecx, esi
call fcn.004771d0
mov edx, dword [esp + 0x28]
test edx, edx
je 0x57a08b
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [str.ImagePath]
push 2
push eax
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x57a0a1
push eax
mov eax, dword [str.Group]
push eax
mov ecx, esi
call fcn.004771d0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x57a0b8
mov ecx, dword [str.DependOnGroup]
push eax
push ecx
mov ecx, esi
call fcn.00477660
mov eax, dword [esp + 0x34]
test eax, eax
je 0x57a0cf
mov edx, dword [str.DependOnService]
push eax
push edx
mov ecx, esi
call fcn.00477660
pop esi
pop ebx
mov eax, 1
pop edi
ret