joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002c445
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x100563f5
call fcn.10055488
sub esp, 0x18
push ebx
push esi
push edi
mov byte [ebp - 0x14], cl
mov edi, edx
mov dword [ebp - 0x20], 0x4a53
cmp dword [ebp - 0x20], 0x4e0f
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], edi
jle 0x1002c4be
xor esi, esi
mov dword [ebp - 0x1c], esi
mov edi, esi
mov dword [ebp - 0x18], 0x181
xor ebx, ebx
xor esi, esi
lea eax, [esi + ebx]
mov ecx, 0x1006e038
xor eax, edi
cdq
push edx
push eax
call fcn.10001e16
inc esi
cmp esi, 0x6a59
jl 0x1002c482
inc ebx
cmp ebx, 0x2a9
jl 0x1002c480
dec edi
dec dword [ebp - 0x18]
jne 0x1002c47e
mov esi, dword [ebp - 0x1c]
inc esi
mov dword [ebp - 0x1c], esi
cmp esi, 0x53b8
jl 0x1002c475
mov edi, dword [ebp - 0x24]
and dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0x48dc
jge 0x1002c4f9
mov edx, str.rrfjr_owo_byxoeyzt_tkh_sylyeveof_dcc_jdzyv_ihpa_ngfqnclm_poljht_dxnnnebf_rjlfat_njoixous_xmcsuecp
mov ecx, 0x1006e038
call fcn.100037d1
jmp 0x1002c4f9
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x14], 0
je 0x1002c52f
mov eax, dword [ebp + 8]
cmp byte [eax], 0
je 0x1002c532
push 0x1a25
push 1
push 1
push 0x3f86
push 0x7943
mov dl, 1
mov ecx, 0x6dd9
call fcn.10029bc4
add esp, 0x14
jmp 0x1002c532
and dword [edi], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10031759
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10056524
call fcn.10055488
sub esp, 0x4c
push ebx
push esi
mov dword [ebp - 0x20], 0x6036
mov esi, edx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
cmp dword [ebp - 0x20], 0x6051
mov dword [ebp - 0x28], esi
jle 0x100317ea
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetCommState]
mov edi, ebx
mov esi, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], 0x78c7
mov ecx, esi
mov eax, edi
sar eax, cl
lea ecx, [ebp - 0x40]
cdq
push edx
push eax
call fcn.10001ac1
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x100317b7
mov eax, dword [eax]
push eax
call fcn.1003d266
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.1000217e
dec esi
dec dword [ebp - 0x18]
jne 0x1003179c
mov esi, dword [ebp - 0x1c]
inc esi
mov dword [ebp - 0x1c], esi
cmp esi, 0x47a2
jl 0x10031792
inc edi
cmp edi, 0x5a7e
jl 0x1003178d
mov esi, dword [ebp - 0x28]
cmp dword [ebp - 0x20], 0x5c57
jge 0x100317fe
push str.ftj_hjxezr_ajhwn_nhtnq_jhtwqpl_wccjqvo_rtqxfqh_mzvq_kgblcmon_hvhuwlb_vghxsf_jzcfynh
call fcn.1003d266
pop ecx
or dword [ebp - 4], 0xffffffff
cmp byte [ebp + 0xc], 0
je 0x1003181b
mov dword [esi], ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x1c], 0x4bc2
cmp dword [ebp - 0x1c], 0x4c9a
jle 0x10031862
mov esi, ebx
mov edi, ebx
mov dword [ebp - 0x28], ebx
lea eax, [edi + esi]
mov ecx, 0x1006e038
xor eax, ebx
cdq
push edx
push eax
call fcn.10001e16
inc ebx
cmp ebx, 0x4df8
jl 0x10031832
inc edi
push 0
pop ebx
cmp edi, 0x7f32
jl 0x1003182f
inc esi
cmp esi, 0x6abb
jl 0x1003182d
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x20], 0x47d
cmp dword [ebp - 0x20], 0x857
jle 0x100318b6
mov esi, ebx
mov edi, ebx
mov eax, edi
lea ecx, [ebp - 0x58]
or eax, esi
cdq
push edx
push eax
call fcn.10001ac1
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10031892
mov eax, dword [eax]
push eax
call fcn.1003d266
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.1000217e
inc edi
cmp edi, 0x272f
jl 0x10031879
inc esi
cmp esi, 0x61cb
jl 0x10031877
cmp byte [ebp - 0x11], 0
je 0x100318ce
push 0x4804
xor dl, dl
mov ecx, 0x637c
call fcn.10033915
pop ecx
cmp dword [ebp - 0x20], 0x398
jge 0x100318e2
push str.flb_ipni_rzru_flb_mgbyx_swqnlr_lfigkoi_keqaeqe_obwprno_iatdbq_krakqbp_cvouadmtt
call fcn.1003d266
pop ecx
mov dword [ebp - 4], 4
cmp dword [ebp - 0x1c], 0x4b73
jge 0x1003180a
mov edx, str.zqj_esw_ckcis_anktawsi_rzq_vguafmge_afxpscyg_rbxudiq_upbdok_gmn
mov ecx, 0x1006e038
call fcn.100037d1
jmp 0x1003180a
Function at 0x10031fa8
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x100565ea
call fcn.10055488
sub esp, 0xc
cmp byte [ebp + 0x10], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
je 0x10031fd8
mov eax, dword [ebp + 0x14]
or dword [eax], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x10031fe6
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x18], 0x67ee
cmp dword [ebp - 0x18], 0x6aa6
jle 0x10032034
xor esi, esi
mov dword [ebp - 0x14], esi
xor edi, edi
mov eax, esi
mov esi, 0x2ea0
cdq
idiv edi
mov ebx, edx
mov eax, ebx
mov ecx, 0x1006e038
cdq
push edx
push eax
call fcn.10001e16
dec ebx
dec esi
jne 0x10032009
mov esi, dword [ebp - 0x14]
inc edi
cmp edi, 0x193c
jl 0x10031ffd
inc esi
mov dword [ebp - 0x14], esi
cmp esi, 0x16fa
jl 0x10031ffb
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0x6628
jge 0x10031fc7
mov edx, str.jirzn_atsmwxgsc_vwg
mov ecx, 0x1006e038
call fcn.100037d1
jmp 0x10031fc7

Function at 0x10032709
Capabilities:
Terminate process

Disassembly:
mov eax, 0x10056620
call fcn.10055488
sub esp, 0x1c
cmp byte [ebp + 8], 0
je 0x10032766
test cl, cl
je 0x10032731
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
push eax
push ecx
mov ecx, edx
call fcn.100251c6
jmp 0x10032773
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
sub eax, ecx
push eax
push ecx
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x28]
push eax
call fcn.100345fb
mov ecx, dword [ebp + 0x18]
and dword [ebp - 4], 0
push eax
call fcn.100346a9
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.1000f361
jmp 0x10032773
push 0x1ade
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x401c90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415548
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 0x418ef0
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 0x415630
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 0x419140
push 0x4191a0
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.00415470
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 + 0x41d13c]
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 0x415af0
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 0x41a158
push 0x41a114
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 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 0x406cf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERR:CreateService_fail_0x_x
push 1
push 0xbd
push 0x41a1a0
push 0x41a1c4
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 0x41a214
push 0x41a238
call fcn.00409c20
add esp, 0x14
jmp 0x406da1
call edi
push eax
push str.ERR:ChangeServiceConfig2_fail_0x_x
push 1
push 0xdc
push 0x41a270
push 0x41a294
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 0x41a2ec
push 0x41a310
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 0x41a360
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 0x41a3d0
push 0x41a418
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 0x41a478
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 0x415b38
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 0x41a4d4
push 0x41a4f8
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 0x41a510
push 1
push 0x10d
push 0x41a53c
push 0x41a560
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 0x41a578
push 1
push 0x111
push 0x41a594
push 0x41a5b8
call fcn.00409c20
add esp, 0x14
jmp 0x407130
call edi
push eax
push 0x41a5d0
push 1
push 0x117
push 0x41a618
push 0x41a63c
jmp 0x407128
push dword [esi + 4]
call fcn.00406e50
test al, al
je 0x4070dc
push 0x41a654
push 1
push 0x11f
push 0x41a674
push 0x41a698
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 0x41a6b0
push 1
push 0x125
push 0x41a6c8
push 0x41a6ec
call fcn.00409c20
add esp, 0x14
mov bl, 1
jmp 0x407132
call edi
push eax
push 0x41a704
push 1
push 0x12a
push 0x41a71c
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 0x415b68
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 0x41aba0
push 0x41abc4
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 0x41ac24
push 0x41ac48
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 0x41ac80
push 0x41aca4
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 0x41ace0
push 0x41ad04
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 0x41ad40
push 0x41ad64
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 0x41ad98
push 0x41adbc
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 0x41adf4
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 0x41b518
push 0x41b540
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 0x41b598
lea edi, [ebx + 0x18]
mov dword [ebx + 0x28], 0
mov dword [edi], 0x10
push 0x41b5c0
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 0x41b60c
push 0x41b634
call fcn.00409c20
push str._SVC___initialization_is_complete__set_status_SERVICE_RUNNING
push 1
push 0x51
push 0x41b698
push 0x41b6c0
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 0x41b710
push 0x41b738
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 0x41b794
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