joyce8/EMBER2024-capa huggingface dataset:
Function at 0x577a12
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push 8
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x577a3c
call fcn.005778ec
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 2
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call edi
push dword [ebp - 4]
call fcn.005e2268
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x577a66
call fcn.005778ec
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
jne 0x577a7e
call fcn.005778ec
call fcn.00577970
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
lea ebx, [esi + eax*8 + 4]
lea edi, [esi + 4]
jmp 0x577aa3
push dword [ebp - 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x577aa7
add edi, 8
cmp ebx, edi
jne 0x577a91
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.005dc555
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp ebx, edi
pop edi
pop esi
setne al
pop ebx
leave
ret

Function at 0x577e5e
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x6c4e10]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x64474c
call fcn.00577c7d
pop ecx
test eax, eax
jne 0x577e83
inc eax
jmp 0x577ee7
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x40c]
push eax
push dword [0x6ceeb8]
call fcn.005e285c
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [0x6cada4]
lea eax, [ebp - 0x308]
push str._sADMIN_System32_s_s
push eax
call fcn.005dc5c2
add esp, 0x28
push 0
lea eax, [ebp - 0x308]
push eax
push dword [0x6ceeb8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dbf5a
leave
ret
Function at 0x577ef3
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.ProcComs
mov esi, eax
push 0x66
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x577f33
xor eax, eax
jmp 0x577f9e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, 0x6ceda8
push esi
push 0x104
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.ProcComs.bin
push esi
push 0x644750
push esi
call fcn.005dc5c2
add esp, 0x10
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x577f2f
push edi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 4], ebx
sete al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x577fa3
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x6c4e10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 0x10c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.RemComSVC
mov edi, eax
push 0x65
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x110], eax
cmp eax, esi
jne 0x577ff7
xor eax, eax
jmp 0x57806b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push str.RemComSvc.exe
push dword [0x6cada4]
mov edi, eax
lea eax, [ebp - 0x108]
push str._sADMIN_System32_s
push eax
call fcn.005dc5c2
add esp, 0x10
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x577ff3
push esi
lea eax, [ebp - 0x10c]
push eax
push edi
push dword [ebp - 0x110]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x10c], edi
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005dbf5a
leave
ret
Function at 0x57807a
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x6c4e10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 0x10c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.RemComSVC
mov edi, eax
push 0x65
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x110], eax
cmp eax, esi
jne 0x5780ce
xor eax, eax
jmp 0x578142
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push str.RemComSvc.exe
push dword [0x6cada4]
mov edi, eax
lea eax, [ebp - 0x108]
push str._sADMIN_SysWOW64_s
push eax
call fcn.005dc5c2
add esp, 0x10
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5780ca
push esi
lea eax, [ebp - 0x10c]
push eax
push edi
push dword [ebp - 0x110]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x10c], edi
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005dbf5a
leave
ret

Function at 0x5782f8
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
mov eax, dword [0x6c4e10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64485c
call fcn.00577cc8
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 0x1108], eax
mov eax, 0x6cada8
lea ecx, [esi + 0x110c]
sub ecx, eax
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x578336
push 0x64474c
call fcn.00577c7d
pop ecx
test eax, eax
jne 0x57836a
push 0x6ccda8
push dword [0x6ceeb8]
push 0x644854
push esi
call fcn.005dc5c2
add esp, 0x10
jmp 0x5783b2
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x308]
push eax
push dword [0x6ceeb8]
call fcn.005e285c
push 0x6ccda8
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
push str._s_s__s
push esi
call fcn.005dc5c2
add esp, 0x28
push str.realtime
call fcn.00577c7d
pop ecx
test eax, eax
je 0x5783cd
mov dword [esi + 0x1104], 0x100
jmp 0x578403
push str.high
call fcn.00577c7d
pop ecx
test eax, eax
je 0x5783e8
mov dword [esi + 0x1104], 0x80
jmp 0x578403
push str.idle
call fcn.00577c7d
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
pop ecx
mov dword [esi + 0x1104], eax
push str.nowait
call fcn.00577c7d
pop ecx
mov dword [esi + 0x1210], eax
test edi, edi
je 0x57842c
lea edx, [esi + 0x1000]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x578422
push esi
push dword [0x6cada4]
mov esi, 0x6cdda8
push str._s_:__s
push esi
call fcn.005dc5c2
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.005dbf5a
leave
ret
Function at 0x5786d7
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
push esi
push esi
push 0x57845e
call fcn.005e29a2
push esi
push esi
push 0x578582
call fcn.005e29a2
push esi
push esi
push 0x57862b
call fcn.005e29a2
add esp, 0x24
pop esi
ret

Function at 0x57892e
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1224
call fcn.005e28b0
mov eax, dword [0x6c4e10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x1214
xor ebx, ebx
push esi
lea eax, [ebp - 0x1218]
push ebx
push eax
mov dword [ebp - 0x1224], ebx
call fcn.005dc9c0
xor eax, eax
lea edi, [ebp - 0x1220]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1218]
push eax
call fcn.005782f8
add esp, 0x10
push ebx
lea eax, [ebp - 0x1224]
push eax
push esi
lea eax, [ebp - 0x1218]
push eax
push dword [0x6c4474]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x3e8
push 5
call fcn.00578703
pop ecx
pop ecx
test eax, eax
je 0x5789f2
push str.Ok_n_n
push 0x6a9520
call fcn.005e0fae
add eax, 0x20
push eax
call fcn.005e2093
call fcn.005e0fae
add eax, 0x20
push eax
call fcn.005e12ed
add esp, 0x10
push ebx
lea eax, [ebp - 0x1224]
push eax
push 8
lea eax, [ebp - 0x1220]
push eax
push dword [0x6c4474]
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x578a1b
push str.Failed_n_n
push 0x6a9520
call fcn.005e0fae
add eax, 0x20
push eax
call fcn.005e2093
call fcn.005e0fae
add eax, 0x20
push eax
call fcn.005e12ed
add esp, 0x10
cmp dword [ebp - 0x1220], ebx
pop edi
pop esi
pop ebx
jne 0x578a44
push dword [ebp - 0x121c]
push dword [ebp - 0x121c]
push str._nRemote_command_returned__d_0x_X__n
call fcn.005dbd3f
mov eax, dword [ebp - 0x121c]
jmp 0x578a60
push dword [ebp - 0x1220]
push dword [ebp - 0x1220]
push str._nRemote_command_failed_to_start._Returned_error_code_is__d_0x_X__n
call fcn.005dbd3f
mov eax, dword [ebp - 0x1220]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0xc
call fcn.005dbf5a
leave
ret

Function at 0x579772
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.005dc9c0
xor eax, eax
mov dword [ebp - 0x54], edi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x6c447c]
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [0x6c4478]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x5797d1
call fcn.005778ec
xor eax, eax
jmp 0x5797ef
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x579b90
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
push accept
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
je 0x579bd2
cmp eax, 2
je 0x579bd2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x579cea
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status

Disassembly:
push 0x70
push 0x6ba080
call fcn.005e2a50
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], 0x7530
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
xor edi, edi
push edi
push edi
xor ebx, ebx
inc ebx
push ebx
push dword [0x6cad9c]
mov esi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
call esi
test eax, eax
jne 0x579e3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x579d40
xor eax, eax
jmp 0x579e41
push dword [ebp - 0x44]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x50], eax
cmp eax, edi
je 0x579d39
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push dword [ebp - 0x44]
push eax
push ebx
push dword [0x6cad9c]
call esi
test eax, eax
jne 0x579d8a
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x6c4e10
call fcn.005e2e00
add esp, 0xc
jmp 0x579d39
mov dword [ebp - 0x48], edi
mov esi, dword [ebp - 0x48]
cmp esi, dword [ebp - 0x4c]
jae 0x579e33
imul esi, esi, 0x24
add esi, dword [ebp - 0x50]
push 9
pop ecx
lea edi, [ebp - 0x80]
rep movsd dword es:[edi], dword [esi]
push 0x24
push dword [ebp - 0x80]
push dword [0x6cada0]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x5c], esi
test esi, esi
je 0x579d75
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x40]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x579d75
cmp dword [ebp - 0x3c], ebx
je 0x579e15
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x44]
push eax
push 0x24
lea eax, [ebp - 0x40]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x579d75
cmp dword [ebp - 0x3c], ebx
je 0x579e15
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x58]
jbe 0x579dd4
jmp 0x579d75
and dword [ebp - 4], 0
call fcn.00579e29
inc dword [ebp - 0x48]
jmp 0x579d8d
mov dword [ebp - 4], 0xfffffffe
call fcn.00579e4a
mov eax, ebx
call fcn.005e2a98
ret
Function at 0x579e5d
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x6c4e10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
push 0xf003f
push 0
push dword [0x6cada4]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [0x6cada0], eax
test eax, eax
jne 0x579ead
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed___d__n
call fcn.005dbd3f
pop ecx
pop ecx
jmp 0x57a034
push 0x2c
push 0x6447f4
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [0x6cad9c], eax
test eax, eax
jne 0x579ee8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed___d__n
call fcn.005dbd3f
pop ecx
pop ecx
push dword [0x6cada0]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x57a034
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea ecx, [ebp - 0x30]
push ecx
push 0x24
lea ecx, [ebp - 0x28]
push ecx
push 0
push eax
call esi
test eax, eax
jne 0x579f16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_failed___d__n
call fcn.005dbd3f
pop ecx
jmp 0x579f26
cmp dword [ebp - 0x24], 1
jne 0x579f2c
push str.Service_is_already_stopped._n
call fcn.005dbd3f
pop ecx
jmp 0x57a01d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x579f8b
push str.Service_stop_pending..._n
call fcn.005dbd3f
mov eax, dword [ebp - 0x10]
pop ecx
push 0xa
xor edx, edx
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jb 0x579f5c
mov ecx, 0x2710
cmp eax, ecx
jbe 0x579f5e
mov eax, ecx
push eax
call edi
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push dword [0x6cad9c]
call esi
test eax, eax
je 0x579fba
cmp dword [ebp - 0x24], 1
je 0x579fce
call ebx
sub eax, dword [ebp - 0x2c]
cmp eax, 0x7530
ja 0x579fd5
cmp dword [ebp - 0x24], 3
je 0x579f35
call fcn.00579cea
lea eax, [ebp - 0x28]
push eax
push 1
push dword [0x6cad9c]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x57a00b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ControlService_failed___d__n
jmp 0x579fc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_failed___d__n
call fcn.005dbd3f
pop ecx
jmp 0x57a01b
push str.Service_stopped_successfully._n
jmp 0x57a016
push str.Service_stop_timed_out._n
jmp 0x57a016
push dword [ebp - 0x10]
call edi
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push dword [0x6cad9c]
call esi
test eax, eax
je 0x579fba
cmp dword [ebp - 0x24], 1
je 0x57a011
call ebx
sub eax, dword [ebp - 0x2c]
cmp eax, 0x7530
ja 0x57a041
cmp dword [ebp - 0x24], 1
jne 0x579fdc
push str.Service_stopped_successfully_n
call fcn.005dbd3f
pop ecx
pop edi
push dword [0x6cad9c]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [0x6cada0]
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005dbf5a
leave
ret
push str.Wait_timed_out_n
jmp 0x57a016
Function at 0x57a28e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6c4e10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, str.RemComSvc.exe
push ebx
push dword [0x6cada4]
lea eax, [ebp - 0x108]
push str._sADMIN_System32_s
push eax
call fcn.005dc5c2
lea eax, [ebp - 0x108]
push eax
mov edi, str.Going_to_delete_the_service_:__s_n
push edi
call fcn.0057a1d9
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call esi
test eax, eax
jne 0x57a32c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_cleanup_:_:__d_n
mov dword [ebp - 0x210], eax
call fcn.0057a1d9
cmp dword [ebp - 0x210], 5
pop ecx
pop ecx
jne 0x57a337
call fcn.00579e5d
lea eax, [ebp - 0x108]
push eax
call esi
test eax, eax
je 0x57a337
push str.Service_stoped_and_delted_n
jmp 0x57a331
push str.Successfully_deleted........._n
call fcn.0057a1d9
pop ecx
push ebx
push dword [0x6cada4]
lea eax, [ebp - 0x20c]
push str._sADMIN_SysWOW64_s
push eax
call fcn.005dc5c2
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.0057a1d9
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
jne 0x57a39f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.Failed_to_cleanup_:_:__d_n
call fcn.0057a1d9
pop ecx
pop ecx
cmp edi, 5
jne 0x57a3aa
call fcn.00579e5d
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x57a3aa
push str.Service_stoped_and_delted_n
jmp 0x57a3a4
push str.Successfully_deleted........._n
call fcn.0057a1d9
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.005dbf5a
leave
ret
Function at 0x57ad88
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x6c4e10]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
push ecx
push eax
lea eax, [ebp - 0x108]
push 0x644750
push eax
call fcn.005dc5c2
xor ebx, ebx
add esp, 0x10
lea eax, [ebp - 0x108]
cmp dword [ebp + 0x10], ebx
je 0x57aee9
mov dword [ebp - 0x114], eax
mov eax, dword [0x6ceeac]
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x10c], ebx
cmp eax, ebx
jne 0x57adfe
push str.Password_is_NULL_hence_the_conection_establishment_skipped_n
call fcn.0057a1d9
pop ecx
push 0x56
pop eax
jmp 0x57af00
push ebx
push dword [0x6ceeb0]
push eax
lea eax, [ebp - 0x128]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov esi, eax
cmp esi, ebx
je 0x57ae2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.EstablishConnection__:_WNetAddConnection2_is_Failed:__d_n
call fcn.0057a1d9
pop ecx
pop ecx
mov eax, esi
sub eax, 5
je 0x57ae47
sub eax, 0x51
je 0x57ae47
sub eax, 0x46d
je 0x57ae47
sub eax, 0x6b
jne 0x57aef3
cmp dword [0x6ceeb0], ebx
je 0x57aef3
cmp dword [0x6ceeac], ebx
jne 0x57aef3
push str.Invalid_password_n_n
mov esi, 0x6a9520
push esi
call fcn.005e0fae
add eax, 0x20
push eax
call fcn.005e2093
call fcn.005e0fae
add eax, 0x20
push eax
call fcn.005e12ed
push 1
call fcn.0057a51f
add esp, 0x14
push str.Connecting_to_remote_service_...
push esi
call fcn.005e0fae
add eax, 0x20
push eax
call fcn.005e2093
call fcn.005e0fae
add eax, 0x20
push eax
call fcn.005e12ed
add esp, 0x10
push ebx
push dword [0x6ceeb0]
lea eax, [ebp - 0x128]
push dword [0x6ceeac]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov esi, eax
cmp esi, ebx
je 0x57aefe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.EstablishConnection__:_WNetAddConnection2_is_Failed:__d_n
call fcn.0057a1d9
pop ecx
pop ecx
jmp 0x57aef3
push ebx
push ebx
push eax
call sub.MPR.dll_WNetCancelConnection2A
mov esi, eax
cmp esi, ebx
je 0x57aefe
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005dbf5a
leave
ret
Function at 0x5821f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x63e4a8
push eax
mov dword fs:[0], esp
sub esp, 0x54
push esi
mov esi, ecx
cmp dword [esi + 0x58], 0
jne 0x582225
xor eax, eax
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0xc
mov eax, dword [esi + 0x64]
push ebx
push ebp
shr eax, 1
xor ebp, ebp
push edi
mov dword [esp + 0x10], eax
cmp dword [esp + 0x7c], ebp
jl 0x5822ab
jg 0x582241
cmp dword [esp + 0x78], ebp
jbe 0x5822ab
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x10]
sub edi, ebp
cmp edi, eax
jbe 0x582251
mov edi, eax
mov eax, dword [esi + 0x64]
mov edx, dword [esi + 0x68]
mov ecx, dword [esi + 0x50]
push 0
push eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
push edx
mov edx, dword [esp + 0x80]
xor ebx, ebx
push ebx
push edi
add edx, ebp
push edx
call eax
add ebp, edi
cmp edx, ebx
jl 0x58229b
jg 0x58227f
cmp eax, ebx
jbe 0x58229b
mov ecx, dword [esi + 0x68]
push edx
push eax
push ecx
mov ecx, dword [esi + 0x58]
call fcn.00581f00
mov eax, dword [esi + 0x58]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
cmp dword [edx + eax + 0xc], ebx
jne 0x5822c2
xor eax, eax
cmp eax, dword [esp + 0x7c]
jl 0x582241
jg 0x5822ab
cmp ebp, dword [esp + 0x78]
jb 0x582241
mov ecx, dword [esp + 0x64]
pop edi
mov eax, ebp
pop ebp
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0xc
push 0x15
push str.Output_stream_failure
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.005739ad
push ebx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x74], ebx
call fcn.00607140
push 0x6ba900
lea ecx, [esp + 0x38]
push ecx
call fcn.005dbab3
int3
Function at 0x582720
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x63e5ea
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
cmp dword [esp + 0x30], 0
mov dword [esp + 0xc], edi
mov esi, 1
je 0x582777
mov dword [edi], 0x6462b0
mov dword [edi + 0x78], 0x6462a8
mov dword [edi + 0x80], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 0x18], 0
mov dword [esp + 8], esi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push 0
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
mov ecx, edi
call fcn.00582470
mov ecx, dword [edi + 0x78]
mov edx, dword [ecx + 4]
lea eax, [edi + 0x78]
mov dword [eax + edx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov ecx, dword [eax]
mov dword [esp + 0x18], esi
mov esi, dword [ecx + 4]
add esi, eax
mov ecx, esi
mov dword [esp + 0x30], eax
call fcn.00572457
lea edx, [edi + 8]
push 0x20
mov ecx, esi
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], 0
call fcn.00573686
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x5827e9
mov eax, dword [esi + 0xc]
or eax, 4
push 0
push eax
mov ecx, esi
call fcn.0057237b
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], vtable.Poco::Crypto::CryptoOutputStream.0
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 0x14

Function at 0x586d50
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
xor eax, eax
xor edx, edx
cmp ecx, 0
je 0x586d83
mov dl, byte [esi]
lea esi, [esi + 1]
xor dl, byte [edi]
lea edi, [edi + 1]
or al, dl
dec ecx
jne 0x586d6b
neg eax
shr eax, 0x1f
pop edi
pop esi
ret