joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4125a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d126
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x58d038]
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x412704
cmp word [eax], bx
je 0x412704
push 0x228
lea eax, [ebp - 0x238]
push ebx
push eax
mov dword [ebp - 0x23c], 0x22c
call fcn.00480280
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x250], edi
mov byte [ebp - 4], 1
cmp edi, 0xffffffff
jne 0x41266a
lea ecx, [ebp - 0x24c]
push ecx
mov ecx, esi
call fcn.00412560
mov eax, dword [ebp - 0x24c]
cmp eax, ebx
je 0x41271e
push eax
call fcn.00480102
add esp, 4
jmp 0x41271e
lea edx, [ebp - 0x23c]
push edx
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4126a1
lea eax, [ebp - 0x24c]
push eax
mov ecx, esi
call fcn.00412560
cmp edi, ebx
je 0x412694
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x24c]
call fcn.0044a840
jmp 0x41271e
mov ecx, dword [ebp - 0x254]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.004811ac
add esp, 8
test eax, eax
jne 0x4126cd
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00408290
lea ecx, [ebp - 0x23c]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4126a1
lea edx, [ebp - 0x24c]
push edx
mov ecx, esi
call fcn.00412560
cmp edi, ebx
je 0x4126f7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x24c]
call fcn.0044a840
jmp 0x41271e
lea eax, [ebp - 0x24c]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
cmp esi, eax
je 0x41271e
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, esi
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.00480264
mov esp, ebp
pop ebp
ret
Function at 0x4132a0
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x58d038]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push 1
xor esi, esi
push edi
mov dword [ebp - 0x20], esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x41330e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x1c], 1
je 0x41330d
cmp esi, dword [ebp + 0xc]
ja 0x41330d
mov ecx, dword [ebp - 8]
push ecx
call ebx
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x20]
push eax
push edi
lea esi, [esi + edx + 0xa]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4132e6
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x1c], 1
pop edi
sete al
xor ecx, ebp
pop esi
call fcn.00480264
mov esp, ebp
pop ebp
ret 8

Function at 0x413330
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x58d038]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
xor eax, eax
imul ecx, ecx, 0x3e8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, 0x51eb851f
mul ecx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
lea edx, [ebp - 0x20]
push edx
push esi
shr edi, 6
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4133d9
test edi, edi
jle 0x4133d9
mov eax, dword [ebp - 0x1c]
dec eax
cmp eax, 6
ja case.0x413398.3
movzx eax, byte [eax + 0x41341c]
jmp dword [eax*4 + 0x413410]
lea ecx, [ebp - 0x20]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp case.0x413398.3
mov edx, dword [ebp + 0x10]
push ebx
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4133f8
push 0xc8
dec edi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x413384
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
shl eax, 0x10
pop esi
or eax, 6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00480264
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00480264
mov esp, ebp
pop ebp
ret 0x10
Function at 0x413430
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x58d038]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
xor eax, eax
imul ecx, ecx, 0x3e8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, 0x51eb851f
mul ecx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
lea edx, [ebp - 0x20]
push edx
push edi
shr esi, 6
call ebx
test eax, eax
je 0x4134a4
test esi, esi
jle 0x4134a4
cmp dword [ebp - 0x1c], 1
je 0x4134bc
push 0xc8
dec esi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push edi
call ebx
test eax, eax
jne 0x413483
pop edi
pop esi
mov eax, 0x16
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00480264
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00480264
mov esp, ebp
pop ebp
ret 8

Function at 0x413630
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x38
xor esi, esi
lea eax, [ebp - 0x38]
push esi
push eax
mov dword [ebp - 0x3c], 0x3c
call fcn.00480280
mov eax, dword [ebp + 8]
mov ecx, 8
add esp, 0xc
mov dword [ebp - 0x38], 0x540
mov dword [ebp - 4], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], str.runas
cmp dword [eax + 0x14], ecx
jb 0x413677
mov edx, dword [eax]
mov dword [ebp - 0x2c], edx
jmp 0x41367a
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ecx
jb 0x413684
mov eax, dword [eax]
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4136ed
mov edx, dword [ebp - 4]
push 0x1388
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
lea eax, [ebp + 8]
push eax
push ecx
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x4136d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
shl eax, 0x10
or eax, 6
mov dword [ebp + 8], eax
jmp 0x4136d7
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
cmp ecx, esi
je 0x4136f9
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
shl eax, 0x10
or eax, 6
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413700
Capabilities:
Delete service

Disassembly:
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x41371f
cmp edi, 0xffffffff
jne 0x413743
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl esi, 0x10
or esi, 5
test edi, edi
je 0x41373d
cmp edi, 0xffffffff
je 0x41373d
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
pop ebx
ret
push 0xf01ff
push str.wpscloudsvr
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x41375f
cmp esi, 0xffffffff
jne 0x41378a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 5
test esi, esi
je 0x41377d
cmp esi, 0xffffffff
je 0x41377d
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
ret
push 0x1388
push esi
mov ecx, ebx
call fcn.004132a0
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4137b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x430
sete cl
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0xfffafffb
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ebx, [eax + 0x50005]
call esi
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x413c90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5469d8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x58d038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x22
xor eax, eax
xor edi, edi
push str.SYSTEMCurrentControlSetServices_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
call fcn.00401b70
push 0xffffffffffffffff
push edi
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.004043e0
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
jae 0x413cff
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x30]
push ecx
push 0x20019
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413d66
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x34]
push eax
push edi
push edi
push str.Start
push ecx
mov dword [ebp - 0x38], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x413d66
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x413d50
cmp eax, 0xffffffff
je 0x413d50
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0x413d62
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00480102
add esp, 4
xor eax, eax
jmp 0x413d90
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
cmp eax, edi
je 0x413d7c
cmp eax, 0xffffffff
je 0x413d7c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0x413d8e
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00480102
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.00480264
mov esp, ebp
pop ebp
ret
Function at 0x413e60
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d2e0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x58d038]
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
mov dword [ebp - 0x4c], edi
call fcn.00413aa0
add esp, 8
mov dword [ebp - 4], edi
cmp dword [ebp - 0x1c], edi
jne 0x413ecd
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], cx
cmp dword [ebp - 0x18], 8
jb 0x413f9f
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x413f97
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x50], edi
jae 0x413edc
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x50]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor edx, edx
mov ebx, eax
cmp dword [ebp - 0x50], edi
jle 0x413f80
mov ecx, dword [ebx]
mov eax, ecx
mov word [ebp - 0x48], dx
lea edx, [eax + 2]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x4c], edx
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x413f10
sub eax, dword [ebp - 0x4c]
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x48]
call fcn.00401b70
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x48]
xor eax, eax
push ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov ecx, esi
mov word [esi], ax
call fcn.00402560
mov ebx, 8
cmp dword [ebp - 0x34], ebx
jb 0x413f65
mov edx, dword [ebp - 0x48]
push edx
call fcn.00480102
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x18], ebx
jb 0x413f9f
mov ecx, dword [ebp - 0x2c]
push ecx
jmp 0x413f97
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], dx
cmp dword [ebp - 0x18], 8
jb 0x413f9f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00480102
add esp, 4
mov eax, esi
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.00480264
mov esp, ebp
pop ebp
ret
Function at 0x413fc0
Capabilities:
Check if file exists
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d330
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x58d038]
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 dword [ebp - 0x68], ecx
push 5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x414038
cmp edi, 0xffffffff
je 0x414038
push 0x14
push str.wpscloudsvr
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x6c], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [ebp - 4], 1
test esi, esi
je 0x414035
cmp esi, 0xffffffff
jne 0x414042
push edi
call ebx
mov eax, 0xa
jmp 0x41412d
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x41407e
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, 0xa
jmp 0x41412d
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x68]
cmp ecx, dword [edx + 0x20]
jne 0x414068
push str.wpscloudsvr
lea ecx, [ebp - 0x48]
call fcn.00401fd0
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 2
call fcn.00413c90
add esp, 4
cmp eax, 4
lea ecx, [ebp - 0x48]
sete bl
mov byte [ebp - 4], 1
call fcn.0046e6d0
test bl, bl
je 0x4140cf
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, 0xb
jmp 0x41412d
push str.wpscloudsvr
lea ecx, [ebp - 0x48]
call fcn.00401fd0
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x64]
push edx
mov byte [ebp - 4], 3
call fcn.00413e60
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x4140f8
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea ecx, [ebp - 0x64]
sete bl
call fcn.0046e6d0
lea ecx, [ebp - 0x48]
call fcn.0046e6d0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
test bl, bl
je 0x41412b
mov eax, 0xd
jmp 0x41412d
xor eax, eax
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.00480264
mov esp, ebp
pop ebp
ret
Function at 0x4144d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d431
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x58d038]
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
push 0x206
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 0x216]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x218], ax
call fcn.00480280
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov word [ebp - 0x250], ax
mov edi, 7
lea eax, [ebp - 0x218]
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x240], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x414556
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x250]
call fcn.00401b70
xor edx, edx
mov dword [ebp - 4], esi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], dx
push 0xb
push esi
push str.wpscloudsvr
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 1
call fcn.00403e50
mov edi, 8
cmp eax, 0xffffffff
je 0x414688
lea eax, [ebp - 0x26c]
push eax
mov ecx, ebx
call fcn.00414150
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 2
call fcn.00402560
mov byte [ebp - 4], 1
cmp dword [ebp - 0x258], edi
jb 0x4145ee
mov ecx, dword [ebp - 0x26c]
push ecx
call fcn.00480102
add esp, 4
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], edi
jae 0x414602
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x414671
push esi
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x250]
push eax
call fcn.0041bd30
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 0x220], edi
jb 0x41463d
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.00480102
add esp, 4
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], dx
cmp dword [ebp - 0x23c], edi
jb 0x41466d
mov eax, dword [ebp - 0x250]
push eax
call fcn.00480102
add esp, 4
mov eax, ebx
jmp 0x4146bd
cmp dword [ebp - 0x220], edi
jb 0x414688
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.00480102
add esp, 4
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], dx
cmp dword [ebp - 0x23c], edi
jb 0x4146b8
mov eax, dword [ebp - 0x250]
push eax
call fcn.00480102
add esp, 4
mov eax, 1
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.00480264
mov esp, ebp
pop ebp
ret
Function at 0x414790
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d4b0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x58d038]
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
push 0xf003f
push 0
push 0
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x4147e1
cmp edi, 0xffffffff
jne 0x414806
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl esi, 0x10
or esi, 4
test edi, edi
je 0x4147ff
cmp edi, 0xffffffff
je 0x4147ff
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
jmp 0x4148ea
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
call fcn.00414410
cmp dword [eax + 0x14], 8
jb 0x414819
mov eax, dword [eax]
mov ecx, dword [ebx + 0x20]
push 0
push 0
push 0
push 0
push 0
push eax
push 1
push 3
push ecx
push 0xf01ff
push str.WPS_Office_Cloud_Service
push str.wpscloudsvr
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 1
jb 0x41485d
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00480102
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
test esi, esi
je 0x41487a
cmp esi, 0xffffffff
jne 0x4148aa
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 4
test esi, esi
je 0x41489f
cmp esi, 0xffffffff
je 0x41489f
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x4148ea
mov ecx, ebx
call fcn.004144d0
push esi
mov ecx, ebx
call fcn.00413240
cmp dword [ebx + 0x14], 8
jb 0x4148c6
mov ecx, dword [ebx]
mov dword [ebp - 0x30], ecx
jmp 0x4148c9
mov dword [ebp - 0x30], ebx
lea edx, [ebp - 0x30]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call ebx
push edi
call ebx
push esi
call ebx
push edi
call ebx
xor eax, eax
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.00480264
mov esp, ebp
pop ebp
ret
Function at 0x414d50
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
push ebx
mov ebx, dword [eax]
cmp ebx, 0x10
je 0x414d69
cmp ebx, 0x20
jne 0x414f5a
shr ebx, 2
mov dword [ebp - 8], ebx
mov edx, 4
cmp ebx, 4
jl 0x414d7b
mov edx, ebx
push edi
mov edi, dword [ebp + 8]
lea edx, [edx*4 + 0x1c]
mov dword [ebp - 4], edx
test edi, edi
je 0x414f59
mov dword [edi], 0x10
mov dword [edi + 4], edx
add edi, 8
xor edx, edx
push esi
test ebx, ebx
jle 0x414dd9
add eax, 5
jmp 0x414db0
movzx ecx, byte [eax - 1]
movzx esi, byte [eax]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 1]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 2]
shl ecx, 8
or ecx, esi
mov dword [edi + edx*4], ecx
inc edx
add eax, 4
cmp edx, ebx
jl 0x414db0
mov ecx, dword [edi + edx*4 - 4]
mov esi, ebx
cmp ebx, dword [ebp - 4]
jge 0x414ecd
mov dword [ebp + 8], 0
mov dword [ebp - 0xc], edi
mov eax, esi
cdq
idiv ebx
test edx, edx
jne 0x414e5c
mov eax, dword [ebp + 8]
mov edx, ecx
shr edx, 0x10
and edx, 0xff
movzx ebx, byte [edx + 0x54c080]
cdq
idiv dword [ebp - 8]
mov edx, ecx
shr edx, 8
and edx, 0xff
movzx eax, byte [eax + 0x54c060]
xor ebx, eax
movzx eax, byte [edx + 0x54c080]
shl ebx, 8
mov edx, ecx
xor ebx, eax
and edx, 0xff
movzx eax, byte [edx + 0x54c080]
shl ebx, 8
shr ecx, 0x18
movzx ecx, byte [ecx + 0x54c080]
xor ebx, eax
shl ebx, 8
xor ecx, ebx
mov ebx, dword [ebp - 8]
jmp 0x414eb2
cmp ebx, 6
jle 0x414eb2
cmp edx, 4
jne 0x414eb2
mov edx, ecx
shr edx, 0x10
and edx, 0xff
movzx eax, byte [edx + 0x54c080]
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + 0x54c080]
shl edx, 8
xor eax, edx
mov edx, ecx
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + 0x54c080]
shl eax, 8
and ecx, 0xff
movzx ecx, byte [ecx + 0x54c080]
xor eax, edx
shl eax, 8
xor ecx, eax
mov eax, dword [ebp - 0xc]
xor ecx, dword [eax]
inc dword [ebp + 8]
mov dword [edi + esi*4], ecx
inc esi
add eax, 4
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 4]
jl 0x414df2
xor edx, edx
dec esi
js 0x414f58
mov eax, dword [ebp - 4]
lea ecx, [edi + eax*4]
mov dword [ebp + 8], ecx
nop
mov ecx, dword [edi + esi*4]
cmp edx, 4
jl 0x414f47
cmp esi, 4
jl 0x414f47
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx eax, byte [eax + 0x54c080]
mov eax, dword [eax*4 + 0x54d680]
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x54c080]
xor eax, dword [ebx*4 + 0x54da80]
mov ebx, ecx
shr ebx, 0x18
movzx ebx, byte [ebx + 0x54c080]
xor eax, dword [ebx*4 + 0x54d280]
and ecx, 0xff
movzx ecx, byte [ecx + 0x54c080]
xor eax, dword [ecx*4 + 0x54de80]
jmp 0x414f49
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
add ecx, 4
inc edx
dec esi
mov dword [ebp + 8], ecx
jns 0x414ee0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4