joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42393f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0x90
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x18]
mov esi, ecx
jne 0x4239c1
mov eax, dword [ebx + 0x8c]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x423971
push eax
push edi
call fcn.0042367e
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov ecx, dword [ebx + 0x90]
mov edx, dword [ecx]
add ebx, 0x90
push eax
push ebx
call edx
test eax, eax
je 0x4239c1
mov edx, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
push ecx
mov dword [edi + 0x14], 3
mov dword [ebp + 8], 0
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push edx
push ebx
call ecx
mov edx, dword [esi]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4239d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4239d4
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push 0
push edi
mov ecx, esi
call fcn.0042302f
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x424256
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51237e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
jne 0x4242aa
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x1c]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00405b75
xor edi, edi
add esp, 4
mov dword [esi + 0x24], eax
cmp dword [esi + 0x1c], edi
jle 0x424304
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x423fa9
push 0
push 0
mov dword [ebp - 0x14], 0
call ebx
mov ecx, dword [esi + 0x24]
mov dword [ecx + edi*4], eax
mov edx, dword [esi + 0x24]
cmp dword [edx + edi*4], 0
je 0x424296
inc edi
cmp edi, dword [esi + 0x1c]
jl 0x4242d6
mov edi, dword [esi + 0x1c]
xor ecx, ecx
mov eax, edi
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00405b75
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x424358
push 0x423020
push 0x423010
push edi
lea ebx, [eax + 4]
push 8
push ebx
mov dword [eax], edi
call fcn.004541fa
mov eax, ebx
jmp 0x42435a
xor eax, eax
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x1c]
xor ecx, ecx
mov edx, 0x1c
mul edx
seto cl
mov dword [ebp - 4], 0xffffffff
neg ecx
or ecx, eax
push ecx
call fcn.00405b75
xor ebx, ebx
add esp, 4
mov dword [esi + 0x28], eax
cmp dword [esi + 0x1c], ebx
jle 0x424434
mov dword [ebp - 0x10], ebx
jmp 0x424396
push 0xa0
call fcn.00403b92
mov edi, eax
add esp, 4
test edi, edi
je 0x4243f1
push pe_nt_image_headers32
push 0
push edi
call fcn.00402e70
add esp, 0xc
mov dword [edi + 0x88], 0xbadbeef
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [edi + 0x84], eax
xor eax, eax
mov dword [edi + 0x94], eax
mov dword [edi + 0x98], eax
mov dword [edi + 0x9c], eax
mov dword [edi + 0x90], vtable.wh::MemBuffer.0
mov eax, edi
jmp 0x4243f3
xor eax, eax
mov ecx, dword [esi + 0x28]
mov edi, dword [ebp - 0x10]
xor edx, edx
test ebx, ebx
sete dl
mov dword [ecx + edi + 0x18], eax
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x20]
add eax, edi
push edx
mov edx, dword [esi + 0x2c]
push eax
push ecx
push esi
push esi
lea ecx, [edx + ebx*8]
call fcn.0042326e
test eax, eax
je 0x424296
inc ebx
add edi, 0x1c
mov dword [ebp - 0x10], edi
cmp ebx, dword [esi + 0x1c]
jl 0x424396
mov eax, 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 0x424a0b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x14
push esi
test ecx, ecx
je 0x424ad6
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x424ad6
mov edx, dword [ebp + 0x10]
xor eax, eax
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 0
push edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x424a60
call edi
cmp eax, 0x3e5
jne 0x424ab4
mov eax, dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x424a9f
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
test eax, eax
je 0x424a92
push 1
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
push esi
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, 0x800705b4
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x18]
push 0
push eax
lea ecx, [ebp - 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x424acc
call edi
test eax, eax
jle 0x424a97
and eax, 0xffff
pop edi
or eax, 0x80070000
pop esi
mov esp, ebp
pop ebp
ret 0x14
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, 0x80070057
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x424ae2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push edi
test ebx, ebx
je 0x424bd1
cmp byte [ebx], 0
je 0x424bd1
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x424bd1
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp + 0xc], 0
test esi, esi
je 0x424bc5
jmp 0x424b22
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x424b53
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x424bae
mov ecx, dword [ebp + 0x14]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x424b8e
push eax
lea edx, [ebp + 8]
mov dword [ebp + 8], eax
push edx
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x424bae
mov eax, dword [ebp + 8]
add ebx, eax
sub esi, eax
jne 0x424b22
mov eax, dword [ebp + 0xc]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x14]
push ecx
push edi
mov dword [ebp + 0xc], 0x800705b4
call fcn.004249db
mov eax, dword [ebp + 0xc]
add esp, 8
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x424bc2
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
mov eax, 0x80070057
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42527a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512515
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [section..data]
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 ecx, dword [ecx + 4]
lea eax, [ebp - 0x40]
push eax
call fcn.0041d5e4
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
mov dword [ebp - 0x30], eax
mov edx, 4
mul edx
seto cl
mov dword [ebp - 4], 0
neg ecx
or ecx, eax
push ecx
call fcn.00405b75
mov ebx, eax
mov eax, dword [ebp - 0x40]
mov edi, dword [eax]
add esp, 4
mov dword [ebp - 0x44], ebx
cmp edi, eax
je 0x4253ab
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp - 0x34]
lea ecx, [edi + 8]
mov dword [eax], 0
call fcn.0041c8c6
test eax, eax
jne 0x42539c
lea ecx, [edi + 8]
call fcn.0041e6c8
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x425399
lea ecx, [edi + 8]
call fcn.0041c8ca
test eax, eax
jne 0x42538b
lea ecx, [edi + 8]
call fcn.0041e6d0
test eax, eax
je 0x42538b
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [edi + 8]
call fcn.0041cb8e
mov esi, 8
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], esi
jb 0x425355
mov eax, dword [eax]
push 0
push 0
push 0
push str._NOTIFY_EXIT_
push eax
call fcn.00406b32
mov ecx, eax
call fcn.0041ad93
mov ecx, eax
call fcn.00426a9b
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], esi
jb 0x425394
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00404f7d
add esp, 4
jmp 0x425394
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x34]
mov dword [eax], ebx
mov ebx, dword [ebp - 0x44]
mov edi, dword [edi]
add dword [ebp - 0x34], 4
cmp edi, dword [ebp - 0x40]
jne 0x4252ec
mov ecx, dword [ebp - 0x30]
push 0x2710
push 1
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, dword [ebp - 0x30]
xor esi, esi
test edi, edi
jle 0x425407
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x425402
lea edx, [ebp - 0x30]
push edx
push eax
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4253f8
cmp dword [ebp - 0x30], 0x103
jne 0x4253f8
mov eax, dword [ebx + esi*4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebx + esi*4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, edi
jl 0x4253c6
push ebx
call fcn.00409a6f
add esp, 4
mov eax, dword [ebp - 0x40]
mov esi, dword [eax]
mov dword [eax], eax
mov eax, dword [ebp - 0x40]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 4], 2
mov dword [ebp - 0x3c], 0
cmp esi, eax
je 0x425456
jmp 0x42543a
mov edi, dword [esi]
lea ecx, [esi + 8]
call fcn.0041c9fa
push esi
call fcn.00404f7d
mov eax, dword [ebp - 0x40]
add esp, 4
mov esi, edi
cmp edi, eax
jne 0x42543a
push eax
call fcn.00404f7d
add esp, 4
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.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x4275bc
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.00402e70
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jae 0x42761e
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x11c]
push edx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42768f
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x120]
push ecx
push 0
push 0
push str.EnableLUA
push edx
mov dword [ebp - 0x124], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x120], eax
setne al
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret

Function at 0x427861
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x4278eb
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.00402e70
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jb 0x4278eb
mov ecx, dword [esi]
lea edx, [ebp - 0x120]
push edx
push 4
lea eax, [ebp - 0x11c]
push eax
push 0x12
push ecx
mov dword [ebp - 0x11c], 1
mov dword [ebp - 0x120], 0
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
mov eax, dword [ebp - 0x11c]
jne 0x4278f0
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x427947
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov eax, dword [edi]
test eax, eax
jne 0x42796f
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push esi
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 1
push eax
mov dword [ebp - 0x10], 0
call ebx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00405b75
mov ecx, dword [ebp - 0x10]
mov edx, dword [edi]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push ecx
push esi
push 1
push edx
call ebx
test eax, eax
je 0x427a29
mov edi, dword [esi]
test edi, edi
je 0x427a29
push edi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x427a29
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0x500
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x427a29
mov edx, dword [ebp - 0x14]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov edi, eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.00409a6f
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
push esi
call fcn.00409a6f
mov ecx, dword [ebp - 4]
add esp, 4
pop esi
pop ebx
xor ecx, ebp
xor eax, eax
pop edi
call fcn.0040330b
mov esp, ebp
pop ebp
ret

Function at 0x427ba2
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x118], 0x114
call fcn.00402e70
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jae 0x427c08
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00427861
cmp eax, 2
je 0x427c2d
cmp eax, 3
je 0x427c2d
call fcn.004275bc
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x428243
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512a52
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [section..data]
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 0x4283a7
cmp word [eax], bx
je 0x4283a7
push 0x228
lea eax, [ebp - 0x238]
push ebx
push eax
mov dword [ebp - 0x23c], 0x22c
call fcn.00402e70
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 0x42830d
lea ecx, [ebp - 0x24c]
push ecx
mov ecx, esi
call fcn.00428207
mov eax, dword [ebp - 0x24c]
cmp eax, ebx
je 0x4283c1
push eax
call fcn.00404f7d
add esp, 4
jmp 0x4283c1
lea edx, [ebp - 0x23c]
push edx
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x428344
lea eax, [ebp - 0x24c]
push eax
mov ecx, esi
call fcn.00428207
cmp edi, ebx
je 0x428337
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x24c]
call fcn.00429553
jmp 0x4283c1
mov ecx, dword [ebp - 0x254]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.0040786d
add esp, 8
test eax, eax
jne 0x428370
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00409767
lea ecx, [ebp - 0x23c]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x428344
lea edx, [ebp - 0x24c]
push edx
mov ecx, esi
call fcn.00428207
cmp edi, ebx
je 0x42839a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x24c]
call fcn.00429553
jmp 0x4283c1
lea eax, [ebp - 0x24c]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
cmp esi, eax
je 0x4283c1
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.0040330b
mov esp, ebp
pop ebp
ret
Function at 0x428f23
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
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 0x428f91
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x1c], 1
je 0x428f90
cmp esi, dword [ebp + 0xc]
ja 0x428f90
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 0x428f69
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.0040330b
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
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 0x429055
test edi, edi
jle 0x429055
mov eax, dword [ebp - 0x1c]
dec eax
cmp eax, 6
ja case.0x429014.3
movzx eax, byte [eax + 0x429098]
jmp dword [eax*4 + 0x42908c]
lea ecx, [ebp - 0x20]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp case.0x429014.3
mov edx, dword [ebp + 0x10]
push ebx
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x429074
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 0x429000
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.0040330b
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.0040330b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42909f
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
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 0x429113
test esi, esi
jle 0x429113
cmp dword [ebp - 0x1c], 1
je 0x42912b
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 0x4290f2
pop edi
pop esi
mov eax, 0x16
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040330b
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.0040330b
mov esp, ebp
pop ebp
ret 8

Function at 0x429272
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.00402e70
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 0x4292b9
mov edx, dword [eax]
mov dword [ebp - 0x2c], edx
jmp 0x4292bc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ecx
jb 0x4292c6
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 0x42932f
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 0x429316
call dword [sym.imp.KERNEL32.dll_GetLastError]
shl eax, 0x10
or eax, 6
mov dword [ebp + 8], eax
jmp 0x429319
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
cmp ecx, esi
je 0x42933b
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 0x429340
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 0x42935f
cmp edi, 0xffffffff
jne 0x429383
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl esi, 0x10
or esi, 5
test edi, edi
je 0x42937d
cmp edi, 0xffffffff
je 0x42937d
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 0x42939f
cmp esi, 0xffffffff
jne 0x4293ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 5
test esi, esi
je 0x4293bd
cmp esi, 0xffffffff
je 0x4293bd
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.00428f23
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4293f4
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