joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002b624
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1002b6c1
push ebx
push esi
call fcn.1002b5ed
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1002b581
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002b66e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002b6c0
push edi
push eax
call fcn.10029f22
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002b68e
call fcn.10029f70
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002b6bf
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002b581
add esp, 0x20
test eax, eax
jne 0x1002b6ad
push edi
call fcn.10029f70
jmp 0x1002b6b5
push ebx
call fcn.10029f70
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1002b92e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034410
push 0x10034408
push str.FlsAlloc
push 0x1f
call fcn.1002b84a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002b962
push dword [ebp + 8]
mov ecx, esi
call dword [0x10032150]
call esi
jmp 0x1002b968
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002b9ac
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034420
push 0x10034418
push str.FlsGetValue
push 0x21
call fcn.1002b84a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002b9e3
push dword [ebp + 8]
mov ecx, esi
call dword [0x10032150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1002b9eb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10034428
push 0x10034420
push str.FlsSetValue
push 0x22
call fcn.1002b84a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002ba25
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10032150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10030f30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10030f5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10030f5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401c76
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x45e5cc]
push esi
lea ecx, [ebp - 0x2c]
push ecx
xor esi, esi
push esi
push 0x200
push eax
mov dword [ebp - 4], esi
call sub.pdh.dll_PdhGetFormattedCounterValue
cmp eax, dword [0x45e5d0]
jb 0x401d99
mov ecx, dword [0x45e5d4]
mov dword [ebp - 0xc], ecx
cmp eax, ecx
je 0x401cb9
mov eax, dword [0x45e5cc]
inc eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], esi
cmp dword [ebp + 0xc], esi
jle 0x401d99
push ebx
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 0xc]
imul esi, dword [ebp - 4]
mov eax, dword [ebp + 8]
imul esi, edi
add eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov al, byte [eax]
mov byte [ebp + 0x13], al
test ecx, ecx
je 0x401d24
push 0x105
call fcn.004033c0
mov dword [esp], 0x104
mov ebx, eax
push ebx
push dword [0x45e5c0]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov eax, ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401d13
sub eax, ecx
jne 0x401d24
and dword [0x45e5c0], eax
push 7
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
lea ebx, [esi + edi]
push dword [0x45e5d4]
imul ebx, dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
push 0
push 0x21
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov ecx, dword [ebp - 0x10]
mov al, bl
xor al, byte [ebp + 0x13]
test edi, edi
jne 0x401d59
mov al, byte [ebp + 8]
mov byte [ecx], al
mov ecx, dword [ebp - 0xc]
mov eax, ebx
imul ecx, esi
imul eax, dword [ebp - 4]
add eax, ecx
sub eax, dword [0x45e5cc]
mov ecx, dword [0x45e5d4]
imul eax, esi
imul eax, eax
add eax, 4
add ebx, edi
imul eax, ebx
add eax, ecx
sub dword [ebp - 4], eax
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jl 0x401cca
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x40e7f0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45dadc]
jne 0x40e7fa
repz ret
jmp fcn.004161b0
Function at 0x401c90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415538
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x423034]
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.00401600
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.004033b0
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 0x401d21
push dword [ebp - 0x38]
call edi
mov al, byte [ebp - 0xd]
add esp, 4
test al, al
jne 0x401d54
push str.WARN:temp_dir_not_exsit_so_not_need_replace_any_files_
push 1
push 0x12
push 0x418ee0
push str.CReplaceFileTask::Start
call fcn.00409c20
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
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.00401600
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.00401600
lea ecx, [ebp - 0x20]
call fcn.00405b60
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 0x401e2a
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.00401600
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00403550
cmp dword [ebp - 0x24], 8
lea edx, [ebp - 0x38]
push ecx
cmovae edx, dword [ebp - 0x38]
call fcn.00405c50
add esp, 4
cmp dword [ebp - 0x24], 8
jb 0x401e27
push dword [ebp - 0x38]
call edi
add esp, 4
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x401e42
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push esi
call fcn.00402560
push dword [ebp - 0x20]
call edi
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
Function at 0x402400
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415620
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x423034]
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 0x402494
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 0x402494
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 0x6e
push 0x419138
push 0x419198
jmp 0x4024ba
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 0x72
push str..._srcMonitorServiceReplaceFileTask.cpp
push str.CReplaceFileTask::ForceReplaceFile
call fcn.00409fb0
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 0x4024db
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 0x4024fd
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 0x405c50
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.00415460
mov eax, dword [0x423034]
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 0x405cb0
xor eax, eax
movzx ecx, word [eax + 0x41d0e0]
lea eax, [eax + 2]
mov word [ebp + eax - 0x1006], cx
test cx, cx
jne 0x405cc2
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.00414a82
mov esp, ebp
pop ebp
ret
Function at 0x406c30
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415ae0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x423034]
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 0x41a150
push 0x41a10c
call fcn.00409fb0
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 0x110
push 0xf01ff
push edx
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x406cf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERR:CreateService_fail_0x_x
push 1
push 0xbd
push 0x41a198
push 0x41a1bc
jmp 0x406df2
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 0x406d80
push str.ChangeConfig2:__SERVICE_CONFIG_FAILURE_ACTIONS__SUCCESS_
push 1
push 0xd8
push 0x41a20c
push 0x41a230
call fcn.00409c20
add esp, 0x14
jmp 0x406da1
call edi
push eax
push str.ERR:ChangeServiceConfig2_fail_0x_x
push 1
push 0xdc
push 0x41a268
push 0x41a28c
call fcn.00409c20
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 0x406dd9
push str.ChangeConfig2:__SERVICE_CONFIG_DELAYED_AUTO_START_INFO__SUCCESS_
push 1
push 0xe4
push 0x41a2e4
push 0x41a308
call fcn.00409c20
add esp, 0x14
jmp 0x406dfa
call edi
push eax
push str.ERR:ChangeServiceConfig2_Fail_set_delay_auto_start__0x_x
push 1
push 0xe8
push 0x41a358
push str.CServiceObj::Create
call fcn.00409c20
add esp, 0x18
cmp dword [ebp + 0x1c], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x406e0e
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 0x406e30
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.00414a82
mov esp, ebp
pop ebp
ret 0x30
Function at 0x406e50
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x423034]
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 0x406f2c
mov eax, dword [ebp - 0x24]
cmp eax, 1
jne 0x406ea8
mov ecx, str.SERVICE_STOPPED
jmp 0x406ef4
cmp eax, 2
jne 0x406eb4
mov ecx, str.SERVICE_START_PENDING
jmp 0x406ef4
cmp eax, 3
jne 0x406ec0
mov ecx, str.SERVICE_STOP_PENDING
jmp 0x406ef4
cmp eax, 4
jne 0x406ecc
mov ecx, str.SERVICE_RUNNING
jmp 0x406ef4
cmp eax, 5
jne 0x406ed8
mov ecx, str.SERVICE_CONTINUE_PENDING
jmp 0x406ef4
cmp eax, 6
jne 0x406ee4
mov ecx, str.SERVICE_PAUSE_PENDING
jmp 0x406ef4
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 0x41a3c8
push 0x41a410
call fcn.00409fb0
add esp, 0x1c
cmp dword [ebp - 0x24], 4
jne 0x406f51
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414a82
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 0x41a470
push str.CServiceObj::ServiceIsRunning
call fcn.00409c20
add esp, 0x18
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.00414a82
mov esp, ebp
pop ebp
ret 4
Function at 0x406f70
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415b28
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x423034]
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 0x41a4cc
push 0x41a4f0
mov dword [ebp - 4], 1
call fcn.00409c20
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 0x4070ae
call edi
cmp eax, 0x424
jne 0x407093
push 0x41a508
push 1
push 0x10d
push 0x41a534
push 0x41a558
call fcn.00409c20
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.00401600
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.00401600
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00406c30
mov dword [esi + 4], eax
test eax, eax
jne 0x4070ae
push 0x41a570
push 1
push 0x111
push 0x41a58c
push 0x41a5b0
call fcn.00409c20
add esp, 0x14
jmp 0x407130
call edi
push eax
push 0x41a5c8
push 1
push 0x117
push 0x41a610
push 0x41a634
jmp 0x407128
push dword [esi + 4]
call fcn.00406e50
test al, al
je 0x4070dc
push 0x41a64c
push 1
push 0x11f
push 0x41a66c
push 0x41a690
call fcn.00409c20
add esp, 0x14
mov bl, 1
jmp 0x407132
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x40710f
push 0x41a6a8
push 1
push 0x125
push 0x41a6c0
push 0x41a6e4
call fcn.00409c20
add esp, 0x14
mov bl, 1
jmp 0x407132
call edi
push eax
push 0x41a6fc
push 1
push 0x12a
push 0x41a714
push str.CServiceObj::DoInstall
call fcn.00409c20
add esp, 0x18
xor bl, bl
cmp dword [ebp + 0x1c], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x407146
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 0x407168
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 0x407180
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415b58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x423034]
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
push str.DoUninstall...
push 1
push 0x175
push 0x41ab98
push 0x41abbc
mov dword [ebp - 4], 0
call fcn.00409c20
add esp, 0x14
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push 0xf01ff
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [edi + 4], eax
test eax, eax
jne 0x407244
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x424
jne 0x407226
push str.WARN:The_specified_service_does_not_exist_as_an_installed_service.
push 1
push 0x17b
push 0x41ac1c
push 0x41ac40
call fcn.00409c20
add esp, 0x14
mov bl, 1
jmp 0x4072fa
call esi
push eax
push str.ERR:OpenService_fail_0x_x_n
push 1
push 0x17e
push 0x41ac78
push 0x41ac9c
jmp 0x4072f0
push eax
call fcn.00406e50
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
je 0x4072a8
lea eax, [ebp - 0x2c]
push eax
push 1
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x407287
push str.SERVICE_CONTROL_STOP_SUCCESS
push 1
push 0x188
push 0x41acd8
push 0x41acfc
call fcn.00409c20
add esp, 0x14
jmp 0x4072a8
call esi
push eax
push str.ERR:ControlService_fail_0x_x_n
push 1
push 0x18c
push 0x41ad38
push 0x41ad5c
call fcn.00409c20
add esp, 0x18
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x4072d7
push str.DeleteService__SUCCESS
push 1
push 0x191
push 0x41ad90
push 0x41adb4
call fcn.00409c20
add esp, 0x14
mov bl, 1
jmp 0x4072fa
call esi
push eax
push str.ERR:DeleteService_fail_0x_x
push 1
push 0x196
push 0x41adec
push str.CServiceObj::DoUninstall
call fcn.00409c20
add esp, 0x18
xor bl, bl
cmp dword [ebp + 0x1c], 8
jb 0x40730c
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
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.00414a82
mov esp, ebp
pop ebp
ret 0x18
Function at 0x407510
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 0x14], 8
jb 0x407521
mov eax, dword [ebx]
jmp 0x407523
mov eax, ebx
push 0x407720
push eax
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerW]
mov dword [ebx + 0x34], eax
test eax, eax
jne 0x40755d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SVC___ERR:RegisterServiceCtrlHandler_fail__0x_x_n
push 1
push 0x3d
push 0x41b510
push 0x41b538
call fcn.00409c20
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 0x41b590
lea edi, [ebx + 0x18]
mov dword [ebx + 0x28], 0
mov dword [edi], 0x10
push 0x41b5b8
call fcn.00409c20
mov eax, dword [0x42304c]
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 [0x42304c], eax
call esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push ebx
push 0x4076b0
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 0x41b604
push 0x41b62c
call fcn.00409c20
push str._SVC___initialization_is_complete__set_status_SERVICE_RUNNING
push 1
push 0x51
push 0x41b690
push 0x41b6b8
call fcn.00409c20
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 0x41b708
push 0x41b730
call fcn.00409c20
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 0x41b78c
push str.CServiceTemplate::OnMainCallback
call fcn.00409c20
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