joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ca0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e588
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x42f034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x24], 7
push 0xffffffffffffffff
push eax
push ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
call fcn.00401640
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.00404600
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov dword [ebp - 4], 0xffffffff
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
setne al
cmp dword [ebp - 0x24], 8
mov byte [ebp - 0xd], al
jb 0x401d31
push dword [ebp - 0x38]
call edi
mov al, byte [ebp - 0xd]
add esp, 4
test al, al
jne 0x401d52
push str.WARN:temp_dir_not_exsit_so_not_need_replace_any_files_
push 1
push 0x12
push 0x421d88
push str.CReplaceFileTask::Start
call fcn.00412b20
jmp 0x401e41
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push ebx
mov word [ecx], ax
call fcn.00401640
mov ecx, ebx
call fcn.00401e60
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
sub esp, 0x18
mov dword [ebp - 4], 1
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push ebx
mov word [ecx], ax
call fcn.00401640
lea ecx, [ebp - 0x20]
call fcn.00406b80
mov ecx, dword [ebp - 0x1c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x20]
add esp, 0x18
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x401e28
push 0xffffffffffffffff
push eax
push ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], eax
mov word [ebp - 0x38], ax
call fcn.00401640
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.004047a0
cmp dword [ebp - 0x24], 8
lea edx, [ebp - 0x38]
push ecx
cmovae edx, dword [ebp - 0x38]
call fcn.00406dd0
add esp, 4
cmp dword [ebp - 0x24], 8
jb 0x401e25
push dword [ebp - 0x38]
call edi
add esp, 4
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x401e44
push dword [ebp - 0x14]
lea eax, [ebp - 0xd]
push eax
push dword [ebp - 0x1c]
push esi
call fcn.00402540
push dword [ebp - 0x20]
call edi
add esp, 0x14
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4023d0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e670
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x42f034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 8
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmovae eax, dword [ebp + 0x20]
push 4
push 0
push eax
call esi
mov edi, eax
test edi, edi
je 0x402464
cmp dword [ebp + 0x34], 8
lea ecx, [ebp + 0x20]
push 4
cmovae ecx, dword [ebp + 0x20]
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
push ecx
cmovae eax, dword [ebp + 8]
push eax
call esi
mov edi, eax
test edi, edi
je 0x402464
cmp dword [ebp + 0x1c], 8
lea esi, [ebp + 8]
cmovae esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.ForceReplaceFile__s_SUCCESS_
push 1
push 0x6f
push 0x421ff0
push 0x422058
jmp 0x40248a
cmp dword [ebp + 0x1c], 8
lea esi, [ebp + 8]
cmovae esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.ForceReplaceFile__s_fail__0x_x
push 1
push 0x73
push str..._srcAutoUpdateServiceReplaceFileTask.cpp
push str.CReplaceFileTask::ForceReplaceFile
call fcn.00412eb0
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 0x1c
test edi, edi
setne bl
cmp dword [ebp + 0x1c], 8
jb 0x4024ab
push dword [ebp + 8]
call esi
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x4024cd
push dword [ebp + 0x20]
call esi
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 esp, ebp
pop ebp
ret 0x30
Function at 0x403c90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e808
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push edi
mov eax, dword [0x42f034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov dword [ebp - 0x1c], 7
push 0xffffffffffffffff
push ecx
lea edi, [eax + 0x18]
mov word [ebp - 0x30], cx
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
call fcn.00401640
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.00404600
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov dword [ebp - 4], 0xffffffff
setne bl
cmp dword [ebp - 0x1c], 8
jb 0x403d1e
push dword [ebp - 0x30]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
test bl, bl
je 0x403d7e
xor eax, eax
mov dword [ebp - 0x1c], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
call fcn.00401640
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 1
call fcn.004047a0
cmp dword [ebp - 0x1c], 8
lea edx, [ebp - 0x30]
push ecx
cmovae edx, dword [ebp - 0x30]
call fcn.00406dd0
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 8
jb 0x403d7e
push dword [ebp - 0x30]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push edi
mov word [ecx], ax
call fcn.00401640
call fcn.004065d0
mov ecx, esp
mov dword [ebp - 0x14], esp
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push edi
mov word [ecx], ax
call fcn.00401640
sub esp, 0x18
mov dword [ebp - 4], 2
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
push eax
push dword [ebp - 0x10]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
call fcn.00401640
mov dword [ebp - 4], 0xffffffff
call fcn.00403330
add esp, 0x30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406c70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ec70
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x42f034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x28], ecx
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.00404600
push 2
xor eax, eax
mov dword [ebp - 0x2c], 7
push 0x428878
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.004019d0
mov byte [ebp - 4], 1
lea edx, [ebp + 8]
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x10], 7
cmovae edx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
cmp word [edx], ax
jne 0x406cfb
xor ecx, ecx
jmp 0x406d0f
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406d00
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x24]
call fcn.004019d0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x24]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x10], 8
push ecx
cmovae eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVCR120.dll__wfopen]
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 8
cmp dword [ebp - 0x10], 8
mov edi, eax
jb 0x406d50
push dword [ebp - 0x24]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x10], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
jb 0x406d72
push dword [ebp - 0x40]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
test edi, edi
je 0x406da5
push edi
push 1
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR120.dll_fwrite]
push edi
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 0x14
mov bl, 1
jmp 0x406da7
xor bl, bl
cmp dword [ebp + 0x1c], 8
jb 0x406db5
push dword [ebp + 8]
call esi
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 esp, ebp
pop ebp
ret
Function at 0x406dd0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.0041e470
mov eax, dword [0x42f034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov esi, edx
push 0x7fe
push eax
mov word [ebp - 0x804], ax
xor bl, bl
lea eax, [ebp - 0x802]
push eax
call sub.MSVCR120.dll_memset
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push eax
call sub.MSVCR120.dll_memset
lea ecx, [ebp - 0x804]
add esp, 0x18
sub ecx, esi
mov edi, edi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x406e30
xor eax, eax
movzx ecx, word [eax + 0x428880]
lea eax, [eax + 2]
mov word [ebp + eax - 0x1006], cx
test cx, cx
jne 0x406e42
xorps xmm0, xmm0
mov dword [ebp - 0x1024], 0
movdqu xmmword [ebp - 0x1020], xmm0
mov eax, 0x14
mov word [ebp - 0x1008], cx
movq qword [ebp - 0x1010], xmm0
mov word [ebp - 0x1014], ax
lea eax, [ebp - 0x804]
mov dword [ebp - 0x101c], eax
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x1018], eax
lea eax, [ebp - 0x1024]
push eax
mov dword [ebp - 0x1020], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
movzx ecx, bl
mov edx, 1
cmove ecx, edx
mov al, cl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d982
mov esp, ebp
pop ebp
ret
Function at 0x407010
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ecc8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x42f034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.00401640
mov ecx, ebx
call fcn.00406f10
mov edi, eax
test edi, edi
jne 0x407090
push 0x422a34
push str.WARN:__s__GetServiceConfig_FAIL_
push 1
push 0x55
push 0x422a7c
push 0x422aa0
call fcn.00412b20
add esp, 0x18
xor esi, esi
test edi, edi
je 0x4070a0
cmp dword [edi + 4], 2
je 0x40714b
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 2
cmovae eax, dword [ebp + 8]
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4070e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x422ac4
push str.WARN:__s__OpenService_FAIL__0x_x
push 1
push 0x65
push 0x422b0c
push 0x422b30
call fcn.00412b20
add esp, 0x1c
jmp 0x4071b3
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x40712b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERR:ChangeServiceConfig_failed___d__n
push 1
push 0x77
push 0x422b7c
push 0x422ba0
call fcn.00412b20
add esp, 0x18
jmp 0x4071a8
push 2
push dword [edi + 4]
push str.Success_set_start_type_from__d_to__s
push 1
push 0x7a
push 0x422bec
push 0x422c10
call fcn.00412b20
add esp, 0x1c
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push eax
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
test eax, eax
jne 0x40718a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERR:Fail_set_delay_auto_start__err0x_x
push 1
push 0x89
push 0x422c5c
push 0x422c80
call fcn.00412b20
add esp, 0x18
jmp 0x4071a8
push str.SUCCESS_set_delay_auto_start_
push 1
push 0x8d
push 0x422cc4
push str.CServiceObj::SetServiceAutoStart
call fcn.00412b20
add esp, 0x14
test esi, esi
je 0x4071b3
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
cmp dword [ebp + 0x1c], 8
jb 0x4071cf
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4071f0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ed00
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x42f034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 1
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
push str.Create_Service_:__s...
push 1
push 0x9c
push 0x422d80
push 0x422d3c
call fcn.00412eb0
add esp, 0x18
lea esi, [ebp + 8]
cmp dword [ebp + 0x1c], 8
lea edx, [ebp + 8]
lea eax, [ebp + 0x20]
cmovae esi, dword [ebp + 8]
cmovae edx, dword [ebp + 8]
cmp dword [ebp + 0x34], 8
push 0
cmovae eax, dword [ebp + 0x20]
push 0
push 0
push 0
push 0
push eax
push 2
push 2
push pe_nt_image_headers32
push 0xf01ff
push edx
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x4072b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERR:CreateService_fail_0x_x
push 1
push 0xbd
push 0x422dc8
push 0x422dec
jmp 0x4073b2
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0x15180
movdqu xmmword [ebp - 0x3c], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
push eax
push 2
push esi
mov dword [ebp - 0x24], 0xea60
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0xea60
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 0xea60
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x38], 0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x407340
push str.ChangeConfig2:__SERVICE_CONFIG_FAILURE_ACTIONS__SUCCESS_
push 1
push 0xd8
push 0x422e3c
push 0x422e60
call fcn.00412b20
add esp, 0x14
jmp 0x407361
call edi
push eax
push str.ERR:ChangeServiceConfig2_fail_0x_x
push 1
push 0xdc
push 0x422e98
push 0x422ebc
call fcn.00412b20
add esp, 0x18
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 1
push eax
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
je 0x407399
push str.ChangeConfig2:__SERVICE_CONFIG_DELAYED_AUTO_START_INFO__SUCCESS_
push 1
push 0xe4
push 0x422f14
push 0x422f38
call fcn.00412b20
add esp, 0x14
jmp 0x4073ba
call edi
push eax
push str.ERR:ChangeServiceConfig2_Fail_set_delay_auto_start__0x_x
push 1
push 0xe8
push 0x422f88
push str.CServiceObj::Create
call fcn.00412b20
add esp, 0x18
cmp dword [ebp + 0x1c], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x4073ce
push dword [ebp + 8]
call edi
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x4073f0
push dword [ebp + 0x20]
call edi
add esp, 4
mov eax, esi
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.0041d982
mov esp, ebp
pop ebp
ret 0x30
Function at 0x407410
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x42f034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push ecx
push 0x24
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
push 0
push eax
movdqu xmmword [ebp - 0x24], xmm0
movdqu xmmword [ebp - 0x14], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4074ec
mov eax, dword [ebp - 0x24]
cmp eax, 1
jne 0x407468
mov ecx, str.SERVICE_STOPPED
jmp 0x4074b4
cmp eax, 2
jne 0x407474
mov ecx, str.SERVICE_START_PENDING
jmp 0x4074b4
cmp eax, 3
jne 0x407480
mov ecx, str.SERVICE_STOP_PENDING
jmp 0x4074b4
cmp eax, 4
jne 0x40748c
mov ecx, str.SERVICE_RUNNING
jmp 0x4074b4
cmp eax, 5
jne 0x407498
mov ecx, str.SERVICE_CONTINUE_PENDING
jmp 0x4074b4
cmp eax, 6
jne 0x4074a4
mov ecx, str.SERVICE_PAUSE_PENDING
jmp 0x4074b4
cmp eax, 7
mov ecx, str.SERVICE_PAUSED
mov edx, str.UNKNOWN_SERVICE_STATE
cmovne ecx, edx
push ecx
push eax
push str.QueryServiceStatus:0x_x__s_
push 1
push 0xf8
push 0x422ff8
push 0x423040
call fcn.00412eb0
add esp, 0x1c
cmp dword [ebp - 0x24], 4
jne 0x407511
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d982
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERR:QueryServiceStatusEx_fail_0x_x
push 1
push 0x100
push 0x4230a0
push str.CServiceObj::ServiceIsRunning
call fcn.00412b20
add esp, 0x18
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.0041d982
mov esp, ebp
pop ebp
ret 4
Function at 0x407530
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ed48
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x42f034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str._DoInstall__begin...
push 1
push 0x107
push 0x4230fc
push 0x423120
mov dword [ebp - 4], 1
call fcn.00412b20
add esp, 0x14
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push 0xf01ff
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
test eax, eax
jne 0x40766e
call edi
cmp eax, 0x424
jne 0x407653
push 0x423138
push 1
push 0x10d
push 0x423164
push 0x423188
call fcn.00412b20
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
lea eax, [ebp + 0x20]
push eax
call fcn.00401640
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.00401640
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004071f0
mov dword [esi + 4], eax
test eax, eax
jne 0x40766e
push 0x4231a0
push 1
push 0x111
push 0x4231bc
push 0x4231e0
call fcn.00412b20
add esp, 0x14
jmp 0x4076f0
call edi
push eax
push 0x4231f8
push 1
push 0x117
push 0x423240
push 0x423264
jmp 0x4076e8
push dword [esi + 4]
call fcn.00407410
test al, al
je 0x40769c
push 0x42327c
push 1
push 0x11f
push 0x42329c
push 0x4232c0
call fcn.00412b20
add esp, 0x14
mov bl, 1
jmp 0x4076f2
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x4076cf
push 0x4232d8
push 1
push 0x125
push 0x4232f0
push 0x423314
call fcn.00412b20
add esp, 0x14
mov bl, 1
jmp 0x4076f2
call edi
push eax
push 0x42332c
push 1
push 0x12a
push 0x423344
push str.CServiceObj::DoInstall
call fcn.00412b20
add esp, 0x18
xor bl, bl
cmp dword [ebp + 0x1c], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x407706
push dword [ebp + 8]
call esi
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x407728
push dword [ebp + 0x20]
call esi
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 esp, ebp
pop ebp
ret 0x30
Function at 0x407f50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 0x14], 8
jb 0x407f61
mov eax, dword [ebx]
jmp 0x407f63
mov eax, ebx
push 0x408160
push eax
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerW]
mov dword [ebx + 0x34], eax
test eax, eax
jne 0x407f9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SVC___ERR:RegisterServiceCtrlHandler_fail__0x_x_n
push 1
push 0x3d
push 0x424b1c
push 0x424b44
call fcn.00412b20
add esp, 0x18
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
push str._SVC___initial_status_to_SERVICE_START_PENDING...
push 1
push 0x46
push 0x424b9c
lea edi, [ebx + 0x18]
mov dword [ebx + 0x28], 0
mov dword [edi], 0x10
push 0x424bc4
call fcn.00412b20
mov eax, dword [0x42f04c]
add esp, 0x14
mov esi, dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov dword [ebx + 0x2c], eax
inc eax
mov dword [ebx + 0x1c], 2
push edi
push dword [ebx + 0x34]
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x30], 0xbb8
mov dword [ebx + 0x20], 0
mov dword [0x42f04c], eax
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push ebx
push 0x4080f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [ebp - 4]
mov dword [ebx + 0x38], eax
push str._SVC___Success_create_work_thread_:__d
push 1
push 0x4e
push 0x424c10
push 0x424c38
call fcn.00412b20
push str._SVC___initialization_is_complete__set_status_SERVICE_RUNNING
push 1
push 0x51
push 0x424c9c
push 0x424cc4
call fcn.00412b20
add esp, 0x2c
mov dword [ebx + 0x1c], 4
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x20], 1
push edi
push dword [ebx + 0x34]
mov dword [ebx + 0x2c], 0
call esi
push str._SVC___Perform_work_until_service_stops...
push 1
push 0x55
push 0x424d14
push 0x424d3c
call fcn.00412b20
add esp, 0x14
push 0xffffffffffffffff
push dword [ebx + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str._SVC___Work_thread_has_exit__set_status_SERVICE_STOPPED
push 1
push 0x58
push 0x424d98
push str.CServiceTemplate::OnMainCallback
call fcn.00412b20
add esp, 0x14
mov dword [ebx + 0x1c], 1
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x20], 1
push edi
push dword [ebx + 0x34]
mov dword [ebx + 0x2c], 0
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4081a0
Capabilities:
Terminate thread

Disassembly:
push esi
push str._SVC__handle_SERVICE_CONTROL_STOP...
push 1
push 0x81
push 0x424fb8
push 0x424fe0
mov esi, ecx
call fcn.00412b20
add esp, 0x14
call fcn.00407d60
mov ecx, dword [0x42f04c]
mov dword [eax + 0x2c], ecx
inc ecx
mov dword [0x42f04c], ecx
lea ecx, [eax + 0x18]
push ecx
push dword [eax + 0x34]
mov dword [eax + 0x1c], 3
mov dword [eax + 0x24], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x408208
call eax
cmp dword [esi + 0x38], 0
je 0x40823e
push str.kill_work_thread...
push 1
push 0x8d
push str..._srcServiceUtilServiceTemplate.cpp
push str.CServiceTemplate::OnHandleServiceStop
call fcn.00412b20
add esp, 0x14
push 0xfffffffffffffffe
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x38], 0
push 0
push ecx
push dword [esi + 0x1c]
call fcn.00407d60
mov ecx, eax
call fcn.00408260
pop esi
ret

Function at 0x408430
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40844c
mov dword [ebp - 4], 1
jmp 0x408453
mov dword [ebp - 4], 0
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret