joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427cc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e038
mov eax, dword fs:[0]
push eax
mov eax, 0x13b4
call fcn.00489c40
mov eax, dword [0x4c2618]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push 0x7fff
lea ecx, [ebp - 0x24]
movq qword [ebp - 0x24], xmm0
call fcn.0041ff20
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
sub eax, esi
push esi
sar eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x427e6c
cmp word [esi], 0
jne 0x427d3b
xor ecx, ecx
jmp 0x427d4f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427d40
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.0040d860
sub esp, 8
mov dword [ebp - 0x2c], 0xffffffff
lea ecx, [ebp - 0x13b0]
call fcn.00427ea0
lea eax, [ebp - 0x13b0]
mov dword [ebp - 0x13b8], 0x20
push 0x1a
lea ecx, [ebp - 0x13bc]
mov dword [ebp - 0x13bc], eax
mov dword [ebp - 0x13b4], 0xffffffff
call fcn.00427f30
movzx eax, ax
lea ecx, [ebp - 0x13bc]
add eax, 0x61
mov dword [ebp - 0x13b8], 0x20
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x13b0]
push 0x1a
mov dword [ebp - 0x13bc], eax
mov dword [ebp - 0x13b4], 0xffffffff
call fcn.00427f30
movzx eax, ax
lea ecx, [ebp - 0x13bc]
add eax, 0x61
mov dword [ebp - 0x13b8], 0x20
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x13b0]
push 0x1a
mov dword [ebp - 0x13bc], eax
mov dword [ebp - 0x13b4], 0xffffffff
call fcn.00427f30
movzx eax, ax
add eax, 0x61
mov word [ebp - 0x14], ax
xor eax, eax
cmp dword [edi + 0x14], 8
mov word [ebp - 0x12], ax
jb 0x427e22
mov eax, dword [edi]
jmp 0x427e24
mov eax, edi
push esi
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x427e6c
cmp word [esi], 0
jne 0x427e4b
xor eax, eax
mov ecx, edi
push eax
push esi
call fcn.0040d860
mov bl, 1
jmp 0x427e6e
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x427e50
sub eax, edx
mov ecx, edi
sar eax, 1
push eax
push esi
call fcn.0040d860
mov bl, 1
jmp 0x427e6e
xor bl, bl
test esi, esi
je 0x427e7b
push esi
call fcn.00466e37
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00466e3c
mov esp, ebp
pop ebp
ret
Function at 0x427f30
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
movzx eax, ax
mov ebx, ecx
push esi
push edi
mov dword [ebp + 8], eax
lea ecx, [eax - 1]
xor eax, eax
xor esi, esi
mov dword [ebp - 4], eax
test ecx, ecx
je 0x42801d
mov ecx, dword [ebx + 4]
dec ecx
shl esi, cl
add esi, esi
mov dword [ebp - 8], esi
mov edi, dword [ebx]
mov eax, dword [edi]
cmp eax, 0x270
jne 0x427fad
lea eax, [edi + 8]
mov esi, 0x270
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
dec esi
jne 0x427f74
jmp 0x427fbb
cmp eax, 0x4e0
jb 0x427fbb
mov ecx, edi
call fcn.00428050
mov eax, dword [edi]
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
cmp eax, dword [ebx + 8]
ja 0x427f61
mov esi, dword [ebp - 8]
mov ecx, dword [ebx + 4]
or esi, eax
mov eax, dword [ebp - 4]
dec ecx
shl eax, cl
mov ecx, dword [ebp + 8]
add eax, eax
or eax, dword [ebx + 8]
dec ecx
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x427f56
xor edx, edx
div dword [ebp + 8]
mov ecx, eax
mov edi, edx
xor edx, edx
mov eax, esi
div dword [ebp + 8]
cmp eax, ecx
jb 0x42803d
mov ecx, dword [ebp + 8]
dec ecx
cmp edi, ecx
jne 0x427f47
mov eax, esi
xor edx, edx
div dword [ebp + 8]
pop edi
pop esi
mov ax, dx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x428050
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, ecx
mov ecx, 0xe3
push esi
push edi
lea edi, [ebx + 0x9c4]
mov edx, dword [edi + 4]
lea edi, [edi + 4]
xor edx, dword [edi - 4]
and edx, 0x7fffffff
xor edx, dword [edi - 4]
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, edx
mov dword [edi - 0x9c4], eax
dec ecx
jne 0x428060
lea esi, [ebx + 0xd50]
mov edi, 0x18c
mov ecx, dword [esi]
lea esi, [esi + 4]
xor ecx, dword [esi]
and ecx, 0x7fffffff
xor ecx, dword [esi - 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi - 0xd50]
xor eax, ecx
mov dword [esi - 0x9c4], eax
dec edi
jne 0x4280a0
mov ecx, dword [ebx + 0x1380]
xor ecx, dword [ebx + 4]
and ecx, 0x7fffffff
xor ecx, dword [ebx + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx + 0x9c0], eax
mov dword [ebx], edi
pop edi
pop esi
pop ebx
ret
Function at 0x428360
Capabilities:
Get number of processors
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49e0cb
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push ebx
push esi
push edi
mov eax, dword [0x4c2618]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4283c3
mov eax, 0x9d
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push dword [esi + 0x20]
mov edi, dword [ebp + 0xc]
push edi
push 1
push ebx
call fcn.00468d7d
mov ecx, eax
xor edx, edx
mov eax, dword [ebp + 0x10]
add esp, 0x10
cmp edx, eax
ja 0x428475
jb 0x4283ee
cmp ecx, edi
jae 0x428475
sub esp, 8
lea ecx, [esp + 0x24]
call fcn.00403750
mov dword [esp + 0xcc], 4
mov dword [esp + 0xd0], str.FileDownloadImpl::OnDataAvailable
mov edx, str.failed_write_to_file
mov dword [esp + 0xe0], 0
lea ecx, [esp + 0x2c]
call fcn.00408070
push dword [ebp + 0x10]
lea ecx, [esp + 0x30]
push edi
call fcn.00426530
mov edx, str._bytes
lea ecx, [esp + 0x2c]
call fcn.00408070
lea ecx, [esp + 0x1c]
mov dword [esp + 0xe0], 0xffffffff
call fcn.00402230
mov eax, 0x1d
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x4284da
add dword [esi + 0x18], edi
mov ecx, dword [esi + 0x18]
adc dword [esi + 0x1c], eax
mov edx, dword [esi + 0x1c]
call fcn.0049ad2e
mulsd xmm0, qword [0x4b2958]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
movsd qword [esp + 0x14], xmm0
call fcn.0049ad2e
movsd xmm1, qword [esp + 0x14]
mov edx, 0x64
divsd xmm1, xmm0
cvttsd2si eax, xmm1
cmp al, dl
movzx ecx, al
cmovae ecx, edx
cmp cl, byte [esi + 0x24]
je 0x4284da
mov byte [esi + 0x24], cl
mov eax, edx
cmp cl, dl
jae 0x4284d2
movzx eax, cl
push eax
mov ecx, ebx
call fcn.00429350
xor eax, eax
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4294e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e336
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x4c2618]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x280], edx
mov dword [ebp - 0x27c], ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x278]
mov esi, dword [ebp + 0xc]
push 0x44
push 0
push eax
mov dword [ebp - 0x284], 0
call fcn.0046d1b0
mov eax, dword [esi + 4]
xorps xmm0, xmm0
or dword [ebp - 0x24c], 0x100
xor esi, esi
mov dword [ebp - 0x238], eax
add esp, 0xc
mov dword [ebp - 0x23c], eax
mov eax, dword [edi]
movdqu xmmword [ebp - 0x22c], xmm0
mov dword [ebp - 0x278], 0x44
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x21c], esi
push 1
push dword [ebp - 0x280]
lea eax, [ebp - 0x230]
mov dword [ebp - 4], esi
push eax
mov edi, 0x8000020
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x4295ac
mov esi, dword [ebp - 0x230]
mov edi, 0x8000420
mov dword [ebp - 0x21c], esi
push str.ProductAgentUI.exe_show_progress
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00467847
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x4af3f0
push 0x104
push eax
call fcn.00467790
add esp, 4
lea ecx, [ebp - 0x350]
call fcn.00403750
mov dword [ebp - 0x2a0], 0x10
mov dword [ebp - 0x29c], str.ui_file_downloader::make_uiprocess
lea edx, [ebp - 0x218]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x340]
call fcn.00408070
lea ecx, [ebp - 0x350]
mov byte [ebp - 4], 0
call fcn.00402230
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x278]
push eax
push 0
push esi
push edi
push 1
push 0
push 0
lea eax, [ebp - 0x218]
push eax
push 0
push dword [ebp - 0x280]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x429673
mov edx, str.CreateProcessAsUser_failed
lea ecx, [ebp - 0x298]
call fcn.0044f2b0
push 0x4c0834
lea eax, [ebp - 0x298]
push eax
call fcn.0046b2bb
mov eax, dword [ebp - 0x22c]
mov edi, dword [ebp - 0x27c]
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ecx, edi
call fcn.00428e50
mov eax, dword [ebp - 0x228]
mov ecx, esp
mov dword [ecx], eax
lea ecx, [edi + 4]
call fcn.00428e50
mov eax, dword [ebp - 0x224]
add esp, 4
mov ecx, dword [ebp - 0x220]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
test esi, esi
je 0x4296bd
push esi
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00466e3c
mov esp, ebp
pop ebp
ret
Function at 0x42a330
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4c2618]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push 0x24
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
push ecx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x42a386
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_failed___d__n
call fcn.00469ff0
add esp, 8
mov eax, 0x42a
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466e3c
mov esp, ebp
pop ebp
ret 8
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
cmp dword [ebp - 0x28], 2
mov ebx, eax
mov edi, dword [ebp - 0x18]
jne 0x42a420
mov ecx, 0x2710
mov eax, 0xcccccccd
mul dword [ebp - 0x14]
shr edx, 3
cmp edx, 0x3e8
jae 0x42a3bf
mov edx, 0x3e8
jmp 0x42a3c8
cmp edx, 0x2710
cmova edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x42a40c
cmp dword [ebp - 0x18], edi
jbe 0x42a3f6
call esi
mov edi, dword [ebp - 0x18]
mov ebx, eax
jmp 0x42a3ff
call esi
sub eax, ebx
cmp eax, dword [ebp - 0x14]
ja 0x42a420
cmp dword [ebp - 0x28], 2
mov ecx, 0x2710
je 0x42a3a5
jmp 0x42a420
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_failed___d__n
call fcn.00469ff0
add esp, 8
cmp dword [ebp - 0x28], 4
mov esi, 0x42a
jne 0x42a42f
xor esi, esi
jmp 0x42a470
push str.Service_not_started.__n
call fcn.00469ff0
push dword [ebp - 0x28]
push str.__Current_State:__d_n
call fcn.00469ff0
push dword [ebp - 0x20]
push str.__Exit_Code:__d_n
call fcn.00469ff0
push dword [ebp - 0x18]
push str.__Check_Point:__d_n
call fcn.00469ff0
push dword [ebp - 0x14]
push str.__Wait_Hint:__d_n
call fcn.00469ff0
add esp, 0x24
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00466e3c
mov esp, ebp
pop ebp
ret 8
Function at 0x42a490
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4c2618]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push 0x24
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
push ecx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x42a4e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_failed___d__n
call fcn.00469ff0
add esp, 8
mov eax, 0x42a
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466e3c
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x42a515
cmp eax, 3
je 0x42a515
push str.Cannot_start_the_service_because_it_is_already_running_n
call fcn.00469ff0
add esp, 4
mov eax, 0x420
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466e3c
mov esp, ebp
pop ebp
ret 8
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
cmp dword [ebp - 0x28], 3
mov ebx, eax
mov edi, dword [ebp - 0x18]
jne 0x42a595
mov ecx, 0x2710
mov eax, 0xcccccccd
mul dword [ebp - 0x14]
shr edx, 3
cmp edx, 0x3e8
jae 0x42a54a
mov edx, 0x3e8
jmp 0x42a553
cmp edx, 0x2710
cmova edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x42a5cf
cmp dword [ebp - 0x18], edi
jbe 0x42a581
call esi
mov edi, dword [ebp - 0x18]
mov ebx, eax
jmp 0x42a58a
call esi
sub eax, ebx
cmp eax, dword [ebp - 0x14]
ja 0x42a5aa
cmp dword [ebp - 0x28], 3
mov ecx, 0x2710
je 0x42a530
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466e3c
mov esp, ebp
pop ebp
ret 8
push str.Timeout_waiting_for_service_to_stop_n
call fcn.00469ff0
add esp, 4
mov eax, 0x42a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466e3c
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_failed___d__n
call fcn.00469ff0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x42a
pop edi
pop esi
pop ebx
call fcn.00466e3c
mov esp, ebp
pop ebp
ret 8
Function at 0x42a610
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, ecx
test eax, eax
jne 0x42a630
mov edi, 0x57
jmp 0x42a6c9
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x42a64a
lea edi, [eax + 0x6e]
jmp 0x42a6c9
lea eax, [ebp - 8]
test eax, eax
je 0x42a626
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xf01ff
lea eax, [edi + 4]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x42a67b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x42a6c9
push ecx
push esi
call fcn.0042a490
mov edi, eax
test edi, edi
jne 0x42a6c9
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x42a6b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartService_failed___d__n
call fcn.00469ff0
add esp, 8
jmp 0x42a6c9
push str.Service_start_pending..._n
call fcn.00469ff0
push esi
call fcn.0042a330
mov edi, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42ace0
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4ba558
push 0x4740e0
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4c2618]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x54], edx
push 0x2c
lea eax, [ecx + 4]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0x7530
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 1
push esi
mov edi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
call edi
test eax, eax
jne 0x42ae82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x42ae4c
push dword [ebp - 0x48]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x42ae4c
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x48]
push eax
push 1
push esi
call edi
test eax, eax
je 0x42ae39
xor edi, edi
mov dword [ebp - 0x50], edi
cmp edi, dword [ebp - 0x20]
jae 0x42ae76
lea eax, [edi + edi*8]
mov ecx, dword [ebp - 0x4c]
movdqu xmm1, xmmword [ecx + eax*4]
movdqu xmm0, xmmword [ecx + eax*4 + 0x10]
movdqu xmmword [ebp - 0x74], xmm0
mov eax, dword [ecx + eax*4 + 0x20]
mov dword [ebp - 0x64], eax
push 0x24
movd eax, xmm1
push eax
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x60], esi
test esi, esi
je 0x42ae39
mov dword [ebp - 4], 1
lea eax, [ebp - 0x44]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x42ae39
cmp dword [ebp - 0x40], 1
je 0x42ae50
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x48]
push eax
push 0x24
lea eax, [ebp - 0x44]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x42ae39
cmp dword [ebp - 0x40], 1
je 0x42ae50
call ebx
sub eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x58]
jbe 0x42ae03
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x4c2618
call fcn.0047a710
add esp, 0xc
xor eax, eax
jmp 0x42ae87
mov dword [ebp - 4], 0
call fcn.0042ae6e
inc edi
jmp 0x42ada9
mov dword [ebp - 4], 0xfffffffe
call fcn.0042aea5
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00466e3c
mov esp, ebp
pop ebp
ret 4
Function at 0x42aec0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4c2618]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x214], eax
xor ebx, ebx
lea eax, [ebp - 0x218]
xor esi, esi
push edi
mov edi, ecx
test eax, eax
jne 0x42aef9
mov edi, 0x57
jmp 0x42afa6
push 0x40000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x42af16
lea edi, [eax + 0x6e]
jmp 0x42afa6
lea eax, [ebp - 0x21c]
test eax, eax
je 0x42aeef
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 2
lea eax, [edi + 4]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x42af49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x42afa6
jmp 0x42af4b
xor edi, edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046d1b0
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00467847
add esp, 0x18
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
mov ecx, 0x42a
cmove edi, ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00466e3c
mov esp, ebp
pop ebp
ret 4

Function at 0x42afd0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, ecx
test eax, eax
jne 0x42afed
mov edi, 0x57
jmp 0x42b05e
push 0x40000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x42b007
lea edi, [eax + 0x6e]
jmp 0x42b05e
lea eax, [ebp - 8]
test eax, eax
je 0x42afe6
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 2
lea eax, [edi + 4]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x42b037
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x42b05e
jmp 0x42b039
xor edi, edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
mov ecx, 0x42a
cmove edi, ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b080
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, ecx
test eax, eax
jne 0x42b0a0
mov edi, 0x57
jmp 0x42b125
push 0x40000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x42b0ba
lea edi, [eax + 0x6e]
jmp 0x42b125
lea eax, [ebp - 8]
test eax, eax
je 0x42b096
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 2
lea eax, [edi + 4]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x42b0ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x42b125
jmp 0x42b0ec
xor edi, edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp + 8]
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x42b125
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ChangeServiceConfig_failed___d__n
call fcn.00469ff0
add esp, 8
mov edi, 0x42a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42b170
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4c2618]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x210], eax
xor ebx, ebx
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x214], eax
mov esi, ecx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046d1b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x42b1fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_install_service___d__n
call fcn.00469ff0
add esp, 8
mov eax, 0x10d8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466e3c
mov esp, ebp
pop ebp
ret 8
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x42b23b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed___d__n
call fcn.00469ff0
add esp, 8
lea eax, [edi + 0x6e]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466e3c
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 1
push dword [ebp - 0x214]
lea eax, [esi + 4]
push 0x10
push 0xf01ff
push dword [ebp - 0x210]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x42b289
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService_failed___d__n
call fcn.00469ff0
add esp, 8
lea ebx, [esi + 0x6e]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00466e3c
mov esp, ebp
pop ebp
ret 8