joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5120d0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56afe0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5d86f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax + 0x274]
test ecx, ecx
je 0x51217a
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x78]
push eax
call fcn.004e2d20
add esp, 4
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x54]
call fcn.004e8b40
push eax
push str.__s____s
lea edx, [ebp - 0x28]
push edx
call fcn.004e1e90
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x78]
call fcn.004e8880
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5c], esp
lea eax, [ebp - 0x28]
push eax
call fcn.004e8720
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x4c]
call fcn.005125d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004e8880
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x512194
jmp 0x512205
push 0xf01ff
mov ecx, dword [ebp - 0x4c]
add ecx, 0x2c
push ecx
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x5121bf
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x512205
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x5121d3
jmp 0x512205
cmp dword [ebp - 0x40], 1
jne 0x5121f1
push 0
push 0
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push 4
mov ecx, dword [ebp - 0x4c]
call fcn.005176e0
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054546b
mov esp, ebp
pop ebp
ret 4
Function at 0x512220
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5d86f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x512250
jmp 0x5122d4
push 0xf01ff
mov eax, dword [ebp - 0x30]
add eax, 0x2c
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x51227b
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x5122d4
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x5122a3
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x5122d4
cmp dword [ebp - 0x1c], 1
jne 0x5122c0
mov dword [ebp - 0x24], 0x571ac0
lea ecx, [ebp - 0x24]
push ecx
push 1
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054546b
mov esp, ebp
pop ebp
ret

Function at 0x5122f0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5d86f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x512320
jmp 0x5123ba
push 0xf01ff
mov eax, dword [ebp - 0x24]
add eax, 0x2c
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x51234b
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x5123ba
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x51235f
jmp 0x5123ba
cmp dword [ebp - 0x1c], 4
jne 0x5123b0
push 0x20
mov ecx, dword [ebp - 0x24]
call fcn.005176e0
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x26c], 0
je 0x5123a6
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x26c]
cmp dword [ecx + 4], 0
je 0x5123a6
push 0
push 0
push 0x4ca
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x26c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054546b
mov esp, ebp
pop ebp
ret
Function at 0x5123d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b036
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x5d86f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x74], ecx
lea eax, [ebp - 0xa4]
push eax
call fcn.004e2ae0
add esp, 4
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x64]
call fcn.004e8b40
push eax
push str._sadsconfig.ini
lea edx, [ebp - 0x28]
push edx
call fcn.004e1e90
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa4]
call fcn.004e8880
lea eax, [ebp - 0x8c]
push eax
call fcn.004e2ec0
add esp, 4
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x70], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x70]
call fcn.004e8b40
push eax
push 0x571ae8
lea edx, [ebp - 0x40]
push edx
call fcn.004e1e90
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8c]
call fcn.004e8880
lea eax, [ebp - 0xbc]
push eax
call fcn.004e30a0
add esp, 4
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x6c]
call fcn.004e8b40
push eax
push 0x571b40
lea edx, [ebp - 0x58]
push edx
call fcn.004e1e90
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xbc]
call fcn.004e8880
lea ecx, [ebp - 0x28]
call fcn.004e8b40
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x40]
call fcn.004e8b40
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x58]
call fcn.004e8b40
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x58]
call fcn.004e8880
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004e8880
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004e8880
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054546b
mov esp, ebp
pop ebp
ret

Function at 0x5125d0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5d86f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], str.SYSTEMCurrentControlSet_servicesFlash_Helper_Service
lea eax, [ebp - 8]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp - 0x10]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x512647
lea ecx, [ebp + 8]
call fcn.004e8170
shl eax, 1
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp + 8]
call fcn.004e8b40
push eax
push 1
push 0
push str.ImagePath
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call fcn.004e8880
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054546b
mov esp, ebp
pop ebp
ret 0x18
Function at 0x515070
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1224
call fcn.005458d0
mov eax, dword [0x5d86f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1214], ecx
mov ecx, dword [ebp - 0x1214]
call fcn.005153c0
test eax, eax
je 0x5150a6
mov eax, 1
jmp 0x51527d
push 0x104
lea eax, [ebp - 0x20e]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x121c], eax
cmp dword [ebp - 0x121c], 0
je 0x5150d5
cmp dword [ebp - 0x121c], 0x104
jne 0x5150dc
xor eax, eax
jmp 0x51527d
mov ecx, 2
imul edx, ecx, 0
mov eax, 0x22
mov word [ebp + edx - 0x210], ax
mov ecx, 0x22
mov edx, dword [ebp - 0x121c]
mov word [ebp + edx*2 - 0x20e], cx
mov eax, dword [ebp - 0x121c]
lea ecx, [eax + eax + 4]
mov dword [ebp - 0x1220], ecx
cmp dword [ebp - 0x1220], 0x20c
jae 0x515122
jmp 0x515127
call fcn.00542367
xor edx, edx
mov eax, dword [ebp - 0x1220]
mov word [ebp + eax - 0x210], dx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x1218], eax
cmp dword [ebp - 0x1218], 0
jne 0x5151ad
push 0x400
lea ecx, [ebp - 0x1210]
push ecx
push 0xd80a
call fcn.00514350
add esp, 0xc
test eax, eax
jne 0x51518b
push str.Could_not_open_Service_Manager
push 0x400
lea edx, [ebp - 0x1210]
push edx
call fcn.005188f0
add esp, 0xc
push 0
mov eax, dword [ebp - 0x1214]
add eax, 0x2c
push eax
lea ecx, [ebp - 0x1210]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x51527d
push 0
push 0
push str.RPCSS
push 0
push 0
lea edx, [ebp - 0x210]
push edx
push 1
push 3
push 0x10
push 0xf01ff
mov eax, dword [ebp - 0x1214]
add eax, 0x2c
push eax
mov ecx, dword [ebp - 0x1214]
add ecx, 0x2c
push ecx
mov edx, dword [ebp - 0x1218]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x1224], eax
cmp dword [ebp - 0x1224], 0
jne 0x51525e
mov eax, dword [ebp - 0x1218]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea ecx, [ebp - 0xa10]
push ecx
push 0xd80b
call fcn.00514350
add esp, 0xc
test eax, eax
jne 0x51523f
push str.Could_not_start_service
push 0x400
lea edx, [ebp - 0xa10]
push edx
call fcn.005188f0
add esp, 0xc
push 0
mov eax, dword [ebp - 0x1214]
add eax, 0x2c
push eax
lea ecx, [ebp - 0xa10]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x51527d
mov edx, dword [ebp - 0x1224]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x1218]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054546b
mov esp, ebp
pop ebp
ret
Function at 0x5154d0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5d86f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], 0x100
lea eax, [ebp + 0x10]
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0xff
push 0x100
lea eax, [ebp - 0x204]
push eax
call fcn.005451d7
add esp, 0x14
mov dword [ebp - 0x214], 0
mov ecx, 2
imul edx, ecx, 0xff
mov dword [ebp - 0x210], edx
cmp dword [ebp - 0x210], 0x200
jae 0x515543
jmp 0x515548
call fcn.00542367
xor eax, eax
mov ecx, dword [ebp - 0x210]
mov word [ebp + ecx - 0x204], ax
mov edx, 4
imul eax, edx, 0
lea ecx, [ebp - 0x204]
mov dword [ebp + eax - 0x208], ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x24c], 0
jne 0x515588
lea eax, [ebp - 0x204]
push eax
call fcn.005450f0
add esp, 4
mov ecx, dword [ebp + 8]
add ecx, 0x2c
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x5155de
push 0
mov edx, 4
imul eax, edx, 0
lea ecx, [ebp + eax - 0x208]
push ecx
push 0
push 1
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x20c]
push edx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov eax, dword [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054546b
mov esp, ebp
pop ebp
ret

Function at 0x516040
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5d86f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x224], ecx
push 0xc
lea ecx, [ebp - 0x21c]
call fcn.004e1100
push 0
lea ecx, [ebp - 0x21c]
call fcn.004e1260
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.004e12d0
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x5160cc
mov edx, dword [ebp - 0x220]
mov dword [ebp - 0x230], edx
lea ecx, [ebp - 0x21c]
call fcn.004e1280
mov eax, dword [ebp - 0x230]
jmp 0x516181
mov dword [ebp - 0x208], 0x100
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x204]
push edx
push 0
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x516150
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00516040
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x516144
mov edx, dword [ebp - 0x220]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x21c]
call fcn.004e1280
mov eax, dword [ebp - 0x228]
jmp 0x516181
mov dword [ebp - 0x208], 0x100
jmp 0x5160d6
lea ecx, [ebp - 0x21c]
call fcn.004e12a0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x224]
call fcn.005148f0
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x21c]
call fcn.004e1280
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054546b
mov esp, ebp
pop ebp
ret 4
Function at 0x516260
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x5162bf
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x51628c
mov eax, 1
jmp 0x5162dd
push str.RegDeleteKeyTransactedW
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5162bd
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0xc]
jmp 0x5162dd
jmp 0x5162d8
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x5162d8
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x5162dd
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x517640
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
xor eax, eax
jne 0x517649
cmp dword [ebp + 0xc], 0
je 0x51765c
mov dword [ebp - 0x10], 1
jmp 0x517663
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jne 0x517676
mov eax, 0xd
jmp 0x5176d3
xor edx, edx
jne 0x51764d
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00544b90
add esp, 4
add eax, 1
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx*2]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
lea ecx, [eax + edx*2]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 8], 1
jne 0x517687
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 7
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x517720
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
xor eax, eax
jne 0x517729
cmp dword [ebp + 0xc], 0
je 0x51773c
mov dword [ebp - 4], 1
jmp 0x517743
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x517756
mov eax, 0xd
jmp 0x517785
xor edx, edx
jne 0x51772d
mov eax, dword [ebp + 0xc]
push eax
call fcn.00544b90
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x517cc0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.005458d0
mov eax, dword [0x5d86f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2024], ecx
mov ecx, dword [ebp - 0x2024]
call fcn.005153c0
test eax, eax
jne 0x517cf6
mov eax, 1
jmp 0x517f2f
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x202c], eax
cmp dword [ebp - 0x202c], 0
jne 0x517d6c
push 0x400
lea eax, [ebp - 0x2004]
push eax
push 0xd80a
call fcn.00514350
add esp, 0xc
test eax, eax
jne 0x517d4a
push str.Could_not_open_Service_Manager
push 0x400
lea ecx, [ebp - 0x2004]
push ecx
call fcn.005188f0
add esp, 0xc
push 0
mov edx, dword [ebp - 0x2024]
add edx, 0x2c
push edx
lea eax, [ebp - 0x2004]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x517f2f
push 0x10020
mov ecx, dword [ebp - 0x2024]
add ecx, 0x2c
push ecx
mov edx, dword [ebp - 0x202c]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x2028], eax
cmp dword [ebp - 0x2028], 0
jne 0x517dfc
mov eax, dword [ebp - 0x202c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea ecx, [ebp - 0x1804]
push ecx
push 0xd80c
call fcn.00514350
add esp, 0xc
test eax, eax
jne 0x517dda
push str.Could_not_open_service
push 0x400
lea edx, [ebp - 0x1804]
push edx
call fcn.005188f0
add esp, 0xc
push 0
mov eax, dword [ebp - 0x2024]
add eax, 0x2c
push eax
lea ecx, [ebp - 0x1804]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x517f2f
lea edx, [ebp - 0x2020]
push edx
push 1
mov eax, dword [ebp - 0x2028]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0x2038], eax
cmp dword [ebp - 0x2038], 0
jne 0x517e9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2030], eax
cmp dword [ebp - 0x2030], 0x426
je 0x517e9f
cmp dword [ebp - 0x2030], 0x425
jne 0x517e4e
cmp dword [ebp - 0x201c], 3
je 0x517e9f
push 0x400
lea ecx, [ebp - 0x1004]
push ecx
push 0xd80e
call fcn.00514350
add esp, 0xc
test eax, eax
jne 0x517e84
push str.Could_not_stop_service
push 0x400
lea edx, [ebp - 0x1004]
push edx
call fcn.005188f0
add esp, 0xc
push 0
mov eax, dword [ebp - 0x2024]
add eax, 0x2c
push eax
lea ecx, [ebp - 0x1004]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0x2028]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 0x2034], eax
mov eax, dword [ebp - 0x2028]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x202c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x2034], 0
je 0x517edc
mov eax, 1
jmp 0x517f2f
push 0x400
lea edx, [ebp - 0x804]
push edx
push 0xd80d
call fcn.00514350
add esp, 0xc
test eax, eax
jne 0x517f12
push str.Could_not_delete_service
push 0x400
lea eax, [ebp - 0x804]
push eax
call fcn.005188f0
add esp, 0xc
push 0
mov ecx, dword [ebp - 0x2024]
add ecx, 0x2c
push ecx
lea edx, [ebp - 0x804]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054546b
mov esp, ebp
pop ebp
ret
Function at 0x51a2a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc], esp
push str.OnCheckUpdate
call fcn.004e7e60
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
call fcn.0051f5a0
mov ecx, dword [ebp - 4]
call fcn.0051cfc0
movzx eax, al
test eax, eax
je 0x51a313
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.first_install
call fcn.004e7e60
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 4]
call fcn.0051f5a0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x5766c8
call fcn.004e8770
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
call fcn.0051ed20
xor eax, eax
jmp 0x51a386
mov ecx, dword [ebp - 4]
call fcn.0051cee0
movzx ecx, al
test ecx, ecx
je 0x51a343
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.already_updated
call fcn.004e7e60
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 4]
call fcn.0051f5a0
xor eax, eax
jmp 0x51a386
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.active
call fcn.004e8770
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 4]
call fcn.0051ed20
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0x524360
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x51b7f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56bb19
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x5d86f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x2c]
call fcn.0051d5f0
lea ecx, [ebp - 0x80]
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.0051e8b0
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x2c]
add ecx, 0x328
call fcn.004e7f30
lea ecx, [ebp - 0x80]
call fcn.004e7f70
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0xa4], 0
je 0x51b879
push 0x572948
mov ecx, dword [ebp - 0x2c]
add ecx, 0x328
call fcn.004e8240
test eax, eax
jne 0x51b92c
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0
je 0x51b89a
push 1
mov ecx, dword [ebp - 0x38]
call fcn.00539aa0
mov dword [ebp - 0x44], eax
jmp 0x51b8a1
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
push str._type_:_ueip___value_:_0_
lea ecx, [ebp - 0x28]
call fcn.004e8770
mov dword [ebp - 4], 0
push 0x18
call fcn.0054209e
add esp, 4
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x40], 0
je 0x51b8e4
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x40]
call fcn.004e8720
mov dword [ebp - 0x3c], eax
jmp 0x51b8eb
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x58], edx
push 0
mov eax, dword [ebp - 0x58]
push eax
push 0x534
mov ecx, dword [ebp - 0x2c]
add ecx, 4
call fcn.00539d30
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004e8880
mov eax, dword [ebp - 0x60]
jmp 0x51b9a4
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x64], esp
push str.OnCountTelemertyData
call fcn.004e8770
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x2c]
call fcn.0051f4c0
push 8
call fcn.0054209e
add esp, 4
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x30], ecx
push 8
push 0
mov edx, dword [ebp - 0x30]
push edx
call fcn.005443d0
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov dword [eax], 2
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov dword [ecx + 4], edx
push 0
push 0
mov eax, dword [ebp - 0x30]
push eax
push 0x535200
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054546b
mov esp, ebp
pop ebp
ret 0x10