joyce8/EMBER2024-capa huggingface dataset:
Function at 0x512eb0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0
mov ebx, ecx
push 0
push 0xfffffffffffffff1
push dword [ebx + 0x58]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
je 0x51301f
cmp word [ebx + 0x4c], 2
mov ecx, 0x10
mov esi, dword [ebp + 0xc]
mov eax, 0x1c
cmove eax, ecx
add eax, ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
push eax
mov eax, dword [ebx + 0x44]
push 0
push dword [esi + 0x20]
call eax
mov eax, dword [ebx]
mov ecx, ebx
mov edi, dword [esi + 0x34]
mov dword [ebp - 4], 0
mov dword [ebp - 8], edi
call dword [eax + 0x28]
test eax, eax
je 0x512fe9
lea eax, [ebp - 4]
push eax
push ecx
lea ecx, [ebx + 0x164]
call fcn.00514400
test eax, eax
je 0x512fe9
mov esi, dword [ebp - 4]
mov ecx, ebx
push edi
push esi
call fcn.00511d70
mov dword [ebp - 4], eax
lea edi, [eax + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 0xc]
mov ecx, ebx
push dword [ebp - 4]
push esi
call fcn.00511f30
mov eax, dword [ebp + 8]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x700b
push 0xffff
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, dword [ebp - 4]
push 0
push esi
push dword [ebx + 0x58]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebx]
mov ecx, ebx
push esi
call dword [eax + 0xe8]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, ebx
cmp esi, 2
je 0x512fc8
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.00513490
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0
push 0
push dword [ebp - 4]
call fcn.00511e40
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.005120d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push esi
lea ecx, [ebx + 0x9c]
call fcn.00510420
test eax, eax
jne 0x513016
push esi
push eax
mov eax, dword [esi + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004e16e0
int3
Function at 0x5131f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c018
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x615720]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x10], edx
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x18], edi
jmp 0x513230
cmp dword [esi + 0x50], 0
jne 0x513332
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x51324c
cmp eax, 1
jne 0x513332
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
lea ebx, [ecx + 0x1c]
cmp dword [ebx], eax
jne 0x513328
xor edi, edi
mov dword [ebx], eax
push edi
push edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push 1
push ebx
push dword [ecx + 0x34]
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x51328c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x51329c
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x513297
mov dword [ebx], eax
jmp 0x5132a4
mov edi, 0x2775
test edi, edi
jne 0x51332c
cmp dword [esi + 0x30], 0
mov eax, 0xff
mov dword [ebp - 0x14], eax
je 0x51330b
add esi, 0x58
push esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [eax + 0x30], 0
je 0x5132f2
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebx]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ecx]
push dword [ebx + 0x20]
push dword [ebp + 8]
call dword [eax + 0xf4]
mov dword [ebp - 0x14], eax
jmp 0x5132f5
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
jmp 0x51330e
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, 0x1e
jl 0x513230
jmp 0x513332
mov ebx, ecx
jmp 0x513332
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x513340
cmp eax, 1
jne 0x513399
test edi, edi
je 0x5133af
cmp edi, 0x2733
je 0x5133af
cmp edi, 0x2775
jne 0x51335c
push 0
push 0
push 1
jmp 0x513371
cmp edi, 0x2736
je 0x513379
cmp edi, 0x3e3
je 0x513379
push edi
push 4
push 2
push esi
mov ecx, edx
call fcn.00511e40
mov ecx, dword [ebp - 0x10]
push ebx
add ecx, 0x9c
call fcn.00510420
test eax, eax
jne 0x513399
push ebx
push eax
mov eax, dword [ebx + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
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 0xc
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 0xc
Function at 0x513800
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
test eax, eax
jle 0x51397f
push ebx
lea ebx, [ecx + 0x80]
push esi
mov dword [ebp - 0xc], ebx
push edi
mov esi, dword [ecx + 0x1c]
cmp eax, esi
lea ecx, [ebx + 0x1c]
mov dword [ebp - 4], 0
cmovl esi, eax
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x10], esi
call fcn.0050f180
test eax, eax
je 0x51385c
mov ebx, dword [ebp - 4]
xorps xmm0, xmm0
movdqu xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x1c], 0
jmp 0x51388e
mov edi, dword [ebx + 0x10]
lea eax, [edi + 0x38]
push eax
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x38
mov ebx, eax
push 0
push ebx
call fcn.0055ea20
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [ebx + 0x14], eax
lea eax, [ebx + 0x38]
mov dword [ebx + 0x24], edi
mov dword [ebx + 0x20], eax
mov dword [ebp - 4], ebx
test esi, esi
jns 0x51389a
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
jmp 0x51389d
mov eax, dword [ebp - 0x10]
push esi
push dword [ebp + 0xc]
lea edi, [ebx + 0x1c]
mov dword [edi], eax
push dword [ebx + 0x20]
call fcn.0055d610
mov edx, dword [ebp + 8]
add esp, 0xc
mov eax, esi
lea ecx, [edx + 0x44]
lock xadd dword [ecx], eax
mov eax, dword [edx + 0x8c]
push 0
push ebx
mov dword [ebx + 0x34], eax
lea eax, [ebp - 0x10]
push 0
push eax
push 1
push edi
push dword [ebx + 0x34]
mov dword [ebp - 0x10], 0
mov dword [ebx + 0x18], 3
mov dword [ebx + 0x28], 2
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x5138ff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x513901
xor edi, edi
xor eax, eax
lea ecx, [ebx + 0x28]
cmp edi, 0x3e5
cmove edi, eax
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
je 0x51391d
test edi, edi
je 0x513941
mov ecx, dword [ebp - 8]
push ebx
lea ecx, [ecx + 0x9c]
call fcn.00510420
test eax, eax
jne 0x51393d
push ebx
push eax
mov eax, dword [ebx + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
jne 0x513968
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
sub eax, esi
add dword [ebp + 0xc], esi
mov dword [ebp + 0x10], eax
lea ebx, [ecx + 0x80]
test eax, eax
jg 0x513820
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
neg esi
add eax, 0x44
lock xadd dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x513c00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp dword [edi + 0x94], 0
jle 0x513d11
push ebx
lea edx, [edi + 0x48]
push esi
nop
mov esi, dword [edi + 0x98]
cmp esi, dword [edi + 0x9c]
je 0x513c40
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x98], eax
mov dword [eax + 0x30], 0
jmp 0x513c58
test esi, esi
je 0x513c70
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
test esi, esi
je 0x513c70
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
dec dword [edi + 0x94]
mov eax, dword [esi + 0x1c]
lea ecx, [esi + 0x1c]
sub dword [edi + 0x44], eax
lock xadd dword [edx], eax
mov eax, dword [edi + 0x8c]
xor ebx, ebx
push ebx
push esi
mov dword [esi + 0x34], eax
lea eax, [ebp + 8]
push ebx
push eax
push 1
push ecx
push dword [esi + 0x34]
mov dword [ebp + 8], ebx
mov dword [esi + 0x18], 3
mov dword [esi + 0x28], 2
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x513cb9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
or eax, 0xffffffff
lea ecx, [esi + 0x28]
lock xadd dword [ecx], eax
dec eax
je 0x513cd2
test ebx, ebx
je 0x513cf6
cmp ebx, 0x3e5
je 0x513cf2
mov ecx, dword [ebp - 4]
push esi
lea ecx, [ecx + 0x9c]
call fcn.00510420
test eax, eax
jne 0x513cf2
push esi
push eax
mov eax, dword [esi + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x513d06
cmp dword [edi + 0x94], 0
lea edx, [edi + 0x48]
jg 0x513c20
pop esi
mov eax, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x514ae0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push eax
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push eax
push dword [ebp - 4]
mov dword [ebp - 8], eax
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, eax
mov dword [edi + 8], ecx
test ecx, ecx
jne 0x514b22
call fcn.0050fba0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp - 8]
push 0
push eax
mov dword [edi + 0x10], 0
push dword [edi + 0x10]
mov dword [edi + 0x14], 0
push dword [edi + 0x14]
mov dword [edi + 4], eax
push 4
push ecx
mov dword [edi + 0x18], 4
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [edi], eax
test eax, eax
jne 0x514b76
call fcn.0050fba0
push dword [edi + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], 0
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x514ee0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, edx
mov eax, dword [esi + 4]
test eax, eax
je 0x514efd
sub esp, 0x18
push ecx
mov ecx, eax
call fcn.005151d0
jmp 0x514f16
push 0
push 0x80
push 3
push 0
push 1
push bind
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x514f29
call fcn.0050fba0
test eax, eax
jns 0x514f2b
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x514f4b
call fcn.0050fba0
test eax, eax
js 0x514f81
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x514f58
test eax, eax
je 0x514f73
test ecx, ecx
ja 0x514f73
jb 0x514f61
cmp eax, dword [ebp + 0xc]
ja 0x514f73
mov ecx, dword [ebp + 8]
sub esp, 0x14
push dword [esi]
call fcn.00514ae0
pop esi
mov esp, ebp
pop ebp
ret
or eax, ecx
mov eax, 0x800703ee
je 0x514f81
mov eax, 0x800700df
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x515030
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ecx + 0x8c]
push esi
xor esi, esi
mov dword [edx + 0x34], eax
push esi
push edx
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 1
lea eax, [edx + 0x1c]
mov dword [edx + 0x18], 4
push eax
push dword [edx + 0x34]
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x515075
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
xor eax, eax
cmp esi, 0x3e5
cmove esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5189f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov cl, byte [eax + 0x39]
shr cl, 2
and cl, 1
movzx edx, cl
test edx, edx
je 0x518a51
mov eax, dword [ebp - 8]
mov cl, byte [eax + 0x39]
shr cl, 3
and cl, 1
movzx edx, cl
test edx, edx
jne 0x518a25
mov byte [ebp - 1], 1
jmp 0x518a29
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
and al, 1
shl al, 3
mov ecx, dword [ebp - 8]
mov dl, byte [ecx + 0x39]
and dl, 0xf7
or dl, al
mov eax, dword [ebp - 8]
mov byte [eax + 0x39], dl
push 1
mov ecx, dword [ebp - 8]
add ecx, 4
call fcn.0051a0a0
jmp 0x518a80
mov ecx, dword [ebp - 8]
add ecx, 0x58
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x518a80
push 3
push 0
push 0
mov edx, dword [ebp - 8]
add edx, 0x58
push edx
push 0x5a4b84
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
jmp 0x518a82
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x51a110
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], 0x114
push 0x110
push 0
lea eax, [ebp - 0x114]
push eax
call fcn.0055ea20
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x51a174
cmp dword [ebp - 0x114], 6
jb 0x51a174
mov dword [ebp - 0x11c], 1
jmp 0x51a17e
mov dword [ebp - 0x11c], 0
mov al, byte [ebp - 0x11c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055e34d
mov esp, ebp
pop ebp
ret

Function at 0x51aad0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x51aaf4
xor eax, eax
jmp 0x51ab74
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x51ab0b
xor eax, eax
jmp 0x51ab74
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x51ab57
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x51ab57
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x51ab2e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x51ab63
xor eax, eax
jmp 0x51ab74
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x51ab71
xor eax, eax
jmp 0x51ab74
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x51e1d0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x83c], ecx
mov dword [ebp - 0x840], 0
movzx eax, byte [ebp + 8]
push eax
mov ecx, dword [ebp - 0x83c]
call fcn.005229d0
mov dword [ebp - 0x848], eax
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0x51e41c
mov ecx, dword [ebp - 0x83c]
call fcn.00521aa0
test eax, eax
je 0x51e41c
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x844], eax
mov dword [ebp - 0x838], 0
cmp dword [ebp - 0x844], 0
jne 0x51e25d
call fcn.0050fba0
mov dword [ebp - 0x840], eax
jmp 0x51e40f
push 0xf01ff
mov edx, dword [ebp - 0x83c]
add edx, 0x2c
push edx
mov eax, dword [ebp - 0x844]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x838], eax
cmp dword [ebp - 0x838], 0
je 0x51e404
mov ecx, dword [ebp - 0x83c]
add ecx, 0x2c
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 2
push 0x110
mov edx, dword [ebp - 0x838]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 0x400
push 0
lea eax, [ebp - 0x804]
push eax
call fcn.0055ea20
add esp, 0xc
push 4
push 0
lea ecx, [ebp - 0x820]
push ecx
call fcn.0055ea20
add esp, 0xc
push 0x5a5360
lea edx, [ebp - 0x804]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x804]
mov dword [ebp - 0x820], eax
lea ecx, [ebp - 0x820]
push ecx
push 1
mov edx, dword [ebp - 0x838]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push 0x14
push 0
lea eax, [ebp - 0x834]
push eax
call fcn.0055ea20
add esp, 0xc
push 8
push 0
lea ecx, [ebp - 0x81c]
push ecx
call fcn.0055ea20
add esp, 0xc
mov edx, 8
imul eax, edx, 0
mov dword [ebp + eax - 0x818], 0
mov ecx, 8
imul edx, ecx, 0
mov dword [ebp + edx - 0x81c], 1
mov eax, 8
shl eax, 0
mov dword [ebp + eax - 0x818], 0xea60
mov ecx, 8
shl ecx, 0
mov dword [ebp + ecx - 0x81c], 1
mov edx, 8
shl edx, 1
mov dword [ebp + edx - 0x818], 0
mov eax, 8
shl eax, 1
mov dword [ebp + eax - 0x81c], 0
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x834], 0x15180
mov dword [ebp - 0x828], 3
lea ecx, [ebp - 0x81c]
mov dword [ebp - 0x824], ecx
mov dword [ebp - 0x82c], 0
lea edx, [ebp - 0x834]
push edx
push 2
mov eax, dword [ebp - 0x838]
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov ecx, dword [ebp - 0x838]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x51e40f
call fcn.0050fba0
mov dword [ebp - 0x840], eax
mov edx, dword [ebp - 0x844]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x840]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055e34d
mov esp, ebp
pop ebp
ret 4
Function at 0x51e960
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c990
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x615720]
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 + 0x278]
test ecx, ecx
je 0x51ea0a
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x78]
push eax
call fcn.004e3410
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.004e9c70
push eax
push str.__s____s
lea edx, [ebp - 0x28]
push edx
call fcn.004e2580
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x78]
call fcn.004e99d0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5c], esp
lea eax, [ebp - 0x28]
push eax
call fcn.004e9870
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x4c]
call fcn.0051ee60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004e99d0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x51ea24
jmp 0x51ea95
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 0x51ea4f
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x51ea95
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x51ea63
jmp 0x51ea95
cmp dword [ebp - 0x40], 1
jne 0x51ea81
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.00523dc0
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.0055e34d
mov esp, ebp
pop ebp
ret 4
Function at 0x51eab0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x615720]
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 0x51eae0
jmp 0x51eb64
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 0x51eb0b
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x51eb64
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x51eb33
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 0x51eb64
cmp dword [ebp - 0x1c], 1
jne 0x51eb50
mov dword [ebp - 0x24], 0x5a5154
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.0055e34d
mov esp, ebp
pop ebp
ret

Function at 0x51eb80
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x615720]
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 0x51ebb0
jmp 0x51ec4a
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 0x51ebdb
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x51ec4a
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x51ebef
jmp 0x51ec4a
cmp dword [ebp - 0x1c], 4
jne 0x51ec40
push 0x20
mov ecx, dword [ebp - 0x24]
call fcn.00523dc0
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x26c], 0
je 0x51ec36
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x26c]
cmp dword [ecx + 4], 0
je 0x51ec36
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.0055e34d
mov esp, ebp
pop ebp
ret