joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d750
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb4f8
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push esi
mov eax, dword [0x554008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x24]
test eax, eax
je 0x41d790
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0x28]
test eax, eax
je 0x41d7a5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x28], 0
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call fcn.0041d6a0
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.0041d8b0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x98]
push eax
movzx eax, byte [esi + 0x3c]
push 0
push 0
push 0
push eax
push 0
push 0
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41d819
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x18]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x24], eax
mov dword [ebp - 0x1c], vtable.StringStorage.0
call fcn.004039c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x54]
call fcn.0041cf20
push 0x551b6c
lea eax, [ebp - 0x54]
push eax
call fcn.0049cc58
int3

Function at 0x41dde0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x68
xorps xmm0, xmm0
mov dword [esp + 0x44], 0
lea eax, [esp + 0x2c]
movlpd qword [esp + 0x4c], xmm0
push eax
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x60], xmm0
mov dword [esp + 0x68], 0
mov dword [esp + 0x30], 0x3c
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0x440
mov dword [esp + 0x3c], str.runas
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x41de67
push 0xffffffffffffffff
push dword [esp + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 4]
call fcn.0041cf20
push 0x551b6c
lea eax, [esp + 8]
push eax
call fcn.0049cc58
int3
Function at 0x41e450
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb6e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
mov eax, dword [0x554008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x20]
xor edx, edx
test ecx, ecx
je 0x41e48a
cmp byte [ecx + 0x10], dl
lea eax, [ecx + 4]
cmove edx, eax
mov eax, dword [esi + 0x28]
push edx
push 0
push eax
push eax
push 0xff
push 0
push 0x40000003
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x24], eax
cmp eax, 0xffffffff
je 0x41e4bf
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1c]
call fcn.00402fa0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1c]
push str.CreateNamedPipe_failed__error_code___d
push eax
call fcn.004038c0
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00403150
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00403f20
add esp, 8
lea eax, [ebp - 0x30]
push 0x551a40
push eax
call fcn.0049cc58
int3
Function at 0x41e510
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb73a
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push esi
push edi
mov eax, dword [0x554008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x24]
cmp ecx, 0xffffffff
jne 0x41e54b
mov ecx, esi
call fcn.0041e450
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x18]
xorps xmm0, xmm0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
push ecx
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x41e624
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x217
je 0x41e5e6
cmp edi, 0x3e5
jne 0x41e670
mov eax, dword [esi + 0x18]
test eax, eax
je 0x41e59e
push dword [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x41e5e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00402fa0
push esi
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 1
push str.GetOverlappedResult___failed_after_the_ConnectNamedPipe___call__error_code___d
push eax
call fcn.004038c0
add esp, 0xc
lea ecx, [ebp - 0x20]
jmp 0x41e694
push 0xa0
call fcn.0049b504
add esp, 4
mov dword [ebp - 0x10], eax
push 1
mov dword [ebp - 4], 3
mov ecx, eax
push dword [esi + 0x28]
push dword [esi + 0x24]
call fcn.004214e0
mov dword [esi + 0x24], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00402fa0
push esi
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push str.ConnectNamedPipe_failed__error_code___d
push eax
call fcn.004038c0
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.00403150
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00403f20
add esp, 8
lea eax, [ebp - 0x34]
push 0x551a40
push eax
call fcn.0049cc58
lea ecx, [ebp - 0x30]
call fcn.00402fa0
push edi
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 2
push str.ConnectNamedPipe_failed__error_code___d
push eax
call fcn.004038c0
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.00403150
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00403f20
add esp, 8
lea eax, [ebp - 0x5c]
push 0x551a40
push eax
call fcn.0049cc58
int3
Function at 0x41ee40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb88e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x554008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
push 8
mov dword [ebp - 4], 0
call fcn.0049b504
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
mov ecx, esi
push str.Kernel32.dll
mov dword [esi], vtable.DynamicLibrary.0
mov dword [esi + 4], 0
call fcn.004200e0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTSGetActiveConsoleSessionId
push dword [esi + 4]
mov dword [0x558f88], esi
call edi
mov dword [0x558f8c], eax
jmp 0x41eee0
push 8
mov dword [ebp - 4], 3
call fcn.0049b504
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 4
mov ecx, esi
push str.Wtsapi32.dll
mov dword [esi], vtable.DynamicLibrary.0
mov dword [esi + 4], 0
call fcn.004200e0
push str.WTSQueryUserToken
push dword [esi + 4]
mov dword [0x558f78], esi
call edi
mov dword [0x558f7c], eax
mov eax, dword [0x558f78]
push str.WTSQuerySessionInformationW
push dword [eax + 4]
call edi
mov dword [0x558f74], eax
mov eax, dword [0x558f78]
push str.WTSEnumerateSessionsW
push dword [eax + 4]
call edi
mov dword [0x558f84], eax
mov eax, dword [0x558f78]
push str.WTSFreeMemory
push dword [eax + 4]
call edi
mov dword [0x558f80], eax
mov byte [0x558e55], 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 0x41efa0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb8cb
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x554008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
lea esi, [ebx + 4]
mov dword [ebx], vtable.StringStorage.0
mov dword [ebp - 0x20], ebx
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00403af0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x525db4
push ecx
call fcn.0049e720
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 1
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x41f16b
push ecx
push edi
lea ecx, [ebp - 0x2c]
call fcn.0041f1e0
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x2c]
push esi
push edi
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x41f16b
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x529a20
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41f16b
mov eax, dword [ebp - 0x14]
mov dword [ebp + 8], 0x529a24
movzx edx, word [eax + 0x16]
movzx edi, word [eax + 0x12]
movzx ecx, word [eax + 0x10]
movzx eax, word [eax + 0x14]
cmp edx, 0x64
jbe 0x41f0c4
inc ecx
mov dword [ebp + 8], 0x529a28
add edx, 0xff9c
cmp cx, 0x64
jb 0x41f0c4
xor ecx, ecx
inc edi
test dx, dx
jne 0x41f0e6
test ax, ax
jne 0x41f10a
movzx eax, cx
push eax
movzx eax, di
push eax
push str._d._d
push ebx
call fcn.004038c0
add esp, 0x10
jmp 0x41f128
test ax, ax
jne 0x41f10a
movzx eax, dx
push eax
push dword [ebp + 8]
movzx eax, cx
push eax
movzx eax, di
push eax
push str._d._d_s_d
push ebx
call fcn.004038c0
add esp, 0x18
jmp 0x41f128
push eax
movzx eax, dx
push eax
push dword [ebp + 8]
movzx eax, cx
push eax
movzx eax, di
push eax
push str._d._d_s_d._d
push ebx
call fcn.004038c0
add esp, 0x1c
test esi, esi
je 0x41f155
mov ecx, dword [ebp - 0x24]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x41f14b
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f181
push ecx
push esi
call fcn.0049b534
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x54]
call fcn.0041cf20
push 0x551b6c
lea eax, [ebp - 0x54]
push eax
call fcn.0049cc58
call fcn.004a25eb
int3
Function at 0x41f4d0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb940
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x554008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
cmp dword [edi + 4], 0
jne 0x41f519
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ecx
push 1
push dword [ebp + 8]
lea ecx, [ebp - 0x3c]
mov bl, 1
push edi
call fcn.0041f3d0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], 0
call fcn.0041f740
test al, al
je 0x41f59b
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x41f59b
push ecx
push esi
lea ecx, [ebp - 0x20]
call fcn.0041fa10
push 0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x20]
call fcn.0041f740
test esi, esi
je 0x41f591
xor edi, edi
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x3c]
push dword [edi + eax + 4]
call fcn.0041f4d0
neg al
lea edi, [edi + 0x10]
sbb al, al
and bl, al
sub esi, 1
jne 0x41f571
mov edi, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
call fcn.00404470
jmp 0x41f59d
xor bl, bl
mov eax, dword [edi + 4]
test eax, eax
jne 0x41f5a8
xor dl, dl
jmp 0x41f5b7
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete dl
xor ecx, ecx
movzx eax, bl
test dl, dl
mov dword [ebp - 0x3c], vtable.RegistryKey.0
cmovne ecx, eax
mov eax, dword [ebp - 0x38]
mov dword [ebp + 8], ecx
test eax, eax
je 0x41f5e5
cmp eax, dword [ebp - 0x34]
je 0x41f5de
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], vtable.StringStorage.0
call fcn.004039c0
mov al, byte [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41f610
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx + 4]
test edx, edx
jne 0x41f620
xor al, al
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
push edi
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f627
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop edi
sete al
pop ebp
ret 8
Function at 0x41f740
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb9a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x554008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [esi + 4], 0
jne 0x41f789
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], vtable.StringStorage.0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
push 1
mov ecx, eax
call fcn.00403af0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x525db4
push ecx
call fcn.0049e720
add esp, 0xc
mov dword [ebp - 4], 1
mov edi, 0x400
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
push 0x401
mov ecx, eax
call fcn.00403af0
push edi
push dword [ebp - 0x20]
push ebx
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
je 0x41f85a
cmp esi, 0xea
jne 0x41f866
add edi, 0x400
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x20]
lea eax, [edi + 1]
push eax
call fcn.00403af0
mov eax, dword [ebp - 0x14]
push edi
push dword [ebp - 0x20]
push ebx
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jne 0x41f825
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
push dword [ebp - 0x20]
call dword [eax + 4]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004039c0
test esi, esi
jne 0x41f8a7
cmp dword [ebp + 8], 0
mov esi, dword [ebp - 0x10]
je 0x41f889
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x2c]
call dword [eax + 4]
add esi, 0x10
mov dword [ebp - 0x30], vtable.StringStorage.0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], esi
inc ebx
call fcn.004039c0
mov esi, dword [ebp - 0x14]
jmp 0x41f791
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], vtable.StringStorage.0
call fcn.004039c0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41f8bf
mov dword [eax], ebx
cmp esi, 0x103
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41ffa0
Capabilities:
Migrate process to active window station

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bba78
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
push edi
mov eax, dword [0x554008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
lea ecx, [edi + 0xc]
push str.TvnWindowsApplicationClass
mov dword [edi], vtable.WindowsApplication.0
mov dword [edi + 4], eax
mov dword [edi + 8], 0
call fcn.00403030
push 0x10000000
push 1
mov dword [ebp - 4], 0
push 0x529eb4
mov dword [edi], vtable.LocalWindowsApplication.0
call dword [sym.imp.USER32.dll_OpenWindowStationW]
mov esi, eax
test esi, esi
je 0x42005f
push esi
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
push esi
test eax, eax
jne 0x420025
call dword [sym.imp.USER32.dll_CloseWindowStation]
jmp 0x42005f
call dword [sym.imp.USER32.dll_CloseWindowStation]
push 0x400001cf
push 1
push 0
call dword [sym.imp.USER32.dll_OpenInputDesktop]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_SetThreadDesktop]
push esi
call dword [sym.imp.USER32.dll_CloseDesktop]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x38]
call fcn.0041cf20
push 0x551b6c
lea eax, [ebp - 0x38]
push eax
call fcn.0049cc58
int3

Function at 0x4202b0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbaa0
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push esi
push edi
mov eax, dword [0x554008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
push 0
push ecx
mov dword [ebp - 4], 0
call fcn.004205f0
jmp 0x4202fd
push 0xf01ff
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push 0x4ca458
push dword [esi + 4]
call ebx
mov edi, eax
test edi, edi
je 0x4203b2
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
test eax, eax
je 0x4203c8
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0xf01ff
push 0x4ca458
push dword [esi + 4]
xor edi, edi
call ebx
test eax, eax
je 0x42037d
nop
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
inc edi
cmp eax, 0xa
jg 0x420391
push 0xf01ff
push 0x4ca458
push dword [esi + 4]
call ebx
test eax, eax
jne 0x420350
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x42e
lea ecx, [ebp - 0x90]
call fcn.0041cfe0
push 0x551b6c
lea eax, [ebp - 0x90]
push eax
call fcn.0049cc58
lea ecx, [ebp - 0x40]
call fcn.0041cf20
push 0x551b6c
lea eax, [ebp - 0x40]
push eax
call fcn.0049cc58
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp - 0x68]
call fcn.0041cf20
push 0x551b6c
lea eax, [ebp - 0x68]
push eax
call fcn.0049cc58
int3
Function at 0x4203f0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbac0
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push ebx
push esi
push edi
mov eax, dword [0x554008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x14
push 0x4ca458
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x4204b6
push edi
mov dword [ebp - 4], 0
call fcn.00420740
cmp eax, 4
je 0x420500
cmp eax, 2
je 0x420500
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x4204cc
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0xa
push edi
call fcn.00420740
cmp eax, 4
je 0x420489
dec esi
test esi, esi
jle 0x4204e2
push 0x3e8
call ebx
jmp 0x420470
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x3c]
call fcn.0041cf20
push 0x551b6c
lea eax, [ebp - 0x3c]
push eax
call fcn.0049cc58
lea ecx, [ebp - 0x64]
call fcn.0041cf20
push 0x551b6c
lea eax, [ebp - 0x64]
push eax
call fcn.0049cc58
push 3
lea ecx, [ebp - 0x90]
call fcn.00420180
push 0x551bc0
lea eax, [ebp - 0x90]
push eax
call fcn.0049cc58
push 2
lea ecx, [ebp - 0xbc]
call fcn.00420180
push 0x551bc0
lea eax, [ebp - 0xbc]
push eax
call fcn.0049cc58
int3

Function at 0x4205f0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbae0
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x554008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x24
push 0x4ca458
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x34], edi
test edi, edi
je 0x4206d0
push edi
mov dword [ebp - 4], 0
call fcn.00420740
cmp eax, 1
je 0x420720
cmp eax, 3
je 0x420720
lea eax, [ebp - 0x30]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4206e6
cmp byte [ebp + 0xc], 0
je 0x420699
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0xa
nop
push edi
call fcn.00420740
cmp eax, 1
je 0x420699
dec esi
test esi, esi
jle 0x420702
push 0x3e8
call ebx
jmp 0x420680
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049afeb
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x5c]
call fcn.0041cf20
push 0x551b6c
lea eax, [ebp - 0x5c]
push eax
call fcn.0049cc58
lea ecx, [ebp - 0x84]
call fcn.0041cf20
push 0x551b6c
lea eax, [ebp - 0x84]
push eax
call fcn.0049cc58
push 1
lea ecx, [ebp - 0xb0]
call fcn.00420180
push 0x551bc0
lea eax, [ebp - 0xb0]
push eax
call fcn.0049cc58
push 0
lea ecx, [ebp - 0xdc]
call fcn.00420180
push 0x551bc0
lea eax, [ebp - 0xdc]
push eax
call fcn.0049cc58
int3
Function at 0x420740
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
mov eax, dword [0x554008]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 4]
push ecx
push 0x24
lea ecx, [esp + 0x38]
push ecx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x420785
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x34]
xor ecx, esp
call fcn.0049afeb
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 8]
call fcn.0041cf20
push 0x551b6c
lea eax, [esp + 0xc]
push eax
call fcn.0049cc58
int3

Function at 0x4211f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ac
mov eax, dword [0x554008]
xor eax, esp
mov dword [esp + 0x1a8], eax
push esi
mov esi, ecx
lea eax, [esp + 0x18]
push eax
push 0x102
mov dword [esi], vtable.WsaStartup.0
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x42123e
mov ecx, dword [esp + 0x1ac]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0049afeb
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 4]
push 0x52a4f0
push eax
call fcn.00403f20
add esp, 8
lea eax, [esp + 4]
push 0x551a40
push eax
call fcn.0049cc58
int3

Function at 0x4213f0
Capabilities:
Simulate ctrl alt del

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b88b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x554008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], vtable.StringStorage.0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push 9
mov ecx, eax
call fcn.00403af0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
sub eax, ecx
and eax, 0xfffffffe
push eax
push 0x52a5b4
push ecx
call fcn.0049e720
add esp, 0xc
push 0x400001cf
push 1
push 0
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_SetThreadDesktop]
push esi
mov edi, eax
call dword [sym.imp.USER32.dll_CloseDesktop]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], vtable.StringStorage.0
call fcn.004039c0
test edi, edi
je 0x4214c5
push str.SAS_window
push str.SAS_window_class
call dword [sym.imp.USER32.dll_FindWindowW]
push 0x2e0003
test eax, eax
mov ecx, 0xffff
push 0
cmove eax, ecx
push 0x312
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret