joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c7870
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c
call fcn.005e38a0
mov eax, dword [0x6c6e10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
push ebx
movzx ebx, byte [edi + 5]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
movzx edx, byte [edi + 1]
mov dword [ebp - 0x28], ecx
movzx ecx, byte [edi]
shl edx, 8
or ecx, edx
movzx edx, byte [edi + 2]
push esi
mov esi, dword [eax]
lea eax, [edi + 1]
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax + 2]
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax + 3]
shl ebx, 8
or edx, ebx
movzx ebx, byte [eax + 6]
mov dword [ebp - 0x2c], eax
movzx eax, byte [eax + 5]
shl ebx, 8
or ebx, eax
mov eax, ecx
shr eax, 8
shl ebx, 0x10
or edx, ebx
mov byte [ebp - 0xb], al
mov eax, ecx
mov ebx, ecx
mov byte [ebp - 0xc], cl
shr eax, 0x10
shr ecx, 0x18
mov byte [ebp - 0xa], al
mov byte [ebp - 9], cl
mov ecx, edx
mov eax, edx
mov dword [ebp - 0x20], edx
mov byte [ebp - 8], dl
shr ecx, 8
shr eax, 0x10
shr edx, 0x18
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], ebx
mov byte [ebp - 7], cl
mov byte [ebp - 6], al
mov byte [ebp - 5], dl
je 0x4c7a19
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
sub ecx, eax
mov dword [ebp - 0x10], ecx
lea esp, [esp]
dec dword [ebp - 0x14]
test esi, esi
jne 0x4c799c
mov ecx, dword [ebp - 0x28]
push 1
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.00588c40
mov ebx, dword [ebp - 0x24]
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xb], al
mov eax, dword [ebp - 0x20]
mov ecx, ebx
shr ecx, 0x10
mov edx, ebx
shr edx, 0x18
mov byte [ebp - 0xa], cl
mov ecx, eax
mov byte [ebp - 9], dl
mov edx, eax
mov byte [ebp - 8], al
shr ecx, 8
shr eax, 0x18
shr edx, 0x10
add esp, 0xc
inc dword [ebp - 0x1c]
mov byte [ebp - 7], cl
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 5], al
mov eax, dword [ebp + 8]
mov byte [ebp - 0xc], bl
mov byte [ebp - 6], dl
mov dl, byte [ebp + esi - 0xc]
xor dl, byte [eax]
inc esi
mov byte [ecx + eax], dl
inc eax
and esi, 7
cmp dword [ebp - 0x14], 0
mov dword [ebp + 8], eax
jne 0x4c7940
cmp dword [ebp - 0x1c], 0
je 0x4c7a04
mov eax, dword [ebp - 0x2c]
mov byte [edi], bl
mov ecx, ebx
shr ecx, 8
mov byte [eax], cl
mov ecx, dword [ebp - 0x20]
mov edx, ebx
shr edx, 0x10
mov byte [eax + 1], dl
shr ebx, 0x18
mov byte [eax + 2], bl
mov byte [eax + 3], cl
mov edx, ecx
shr edx, 8
mov byte [eax + 4], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 5], dl
shr ecx, 0x18
mov byte [eax + 6], cl
mov eax, dword [ebp - 0x18]
mov dword [eax], esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dcf8a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x18]
mov dword [ecx], esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dcf8a
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov dword [edx], esi
pop esi
xor ecx, ebp
pop ebx
call fcn.005dcf8a
mov esp, ebp
pop ebp
ret
Function at 0x57098a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x6c6e10]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x9c
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.005dd9b0
add esp, 0xc
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x5709e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetOsFamily_:_Unable_to_find_the_OSVersion___Errorcode__d__n
call fcn.005dcd3f
xor eax, eax
pop ecx
inc eax
jmp 0x570a3b
push 2
pop eax
cmp dword [ebp - 0x90], eax
jne 0x570a2e
cmp dword [ebp - 0x9c], 4
jbe 0x570a2e
cmp dword [ebp - 0x9c], 6
jne 0x570a10
cmp dword [ebp - 0x98], 0
je 0x570a3c
push 3
pop eax
jmp 0x570a3c
cmp dword [ebp - 0x9c], 5
jne 0x570a0b
xor eax, eax
cmp dword [ebp - 0x98], eax
je 0x570a3c
inc eax
cmp dword [ebp - 0x98], eax
jae 0x570a3c
jmp 0x570a0b
push str.GetOsFamily_:The_windows_is_unable_to_found_.__n
call fcn.005dcd3f
or eax, 0xffffffff
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dcf8a
leave
ret
Function at 0x571ca1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [ebp + 0x14]
xor eax, eax
lea ecx, [ebp + 8]
push ecx
inc eax
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x571d23
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push dword [edi]
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
mov dword [ebp + 0x14], eax
cmp eax, ebx
jne 0x571d16
mov eax, dword [ebp - 4]
add eax, 5
push eax
push 1
call fcn.005dccff
pop ecx
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
mov dword [ebp + 0x14], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x571dbf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea eax, [ebp + 8]
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x571dec
cmp eax, 2
jne 0x571e14
leave
ret
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x578692
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, 0x104
push esi
push 1
mov dword [ebp - 0xc], 1
call fcn.005dccff
pop ecx
pop ecx
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x57870a
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5786fa
cmp dword [ebp - 8], esi
ja 0x5786fa
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x57870c
push ebx
call fcn.005dcea1
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x578836
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 0x578860
call fcn.00578710
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.005e325a
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x57888a
call fcn.00578710
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
jne 0x5788a2
call fcn.00578710
call fcn.00578794
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
lea ebx, [esi + eax*8 + 4]
lea edi, [esi + 4]
jmp 0x5788c7
push dword [ebp - 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x5788cb
add edi, 8
cmp ebx, edi
jne 0x5788b5
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.005dcea1
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 0x578c82
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x6c6e10]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x6457a4
call fcn.00578aa1
pop ecx
test eax, eax
jne 0x578ca7
inc eax
jmp 0x578d0b
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 [0x6d0eb8]
call fcn.005e384e
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [0x6ccda4]
lea eax, [ebp - 0x308]
push str._sADMIN_System32_s_s
push eax
call fcn.005dd5b8
add esp, 0x28
push 0
lea eax, [ebp - 0x308]
push eax
push dword [0x6d0eb8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dcf8a
leave
ret
Function at 0x578d17
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 0x578d57
xor eax, eax
jmp 0x578dc2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, 0x6d0da8
push esi
push 0x104
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.ProcComs.bin
push esi
push 0x6457a8
push esi
call fcn.005dd5b8
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 0x578d53
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 0x578dc7
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x6c6e10]
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 0x578e1b
xor eax, eax
jmp 0x578e8f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push str.RemComSvc.exe
push dword [0x6ccda4]
mov edi, eax
lea eax, [ebp - 0x108]
push str._sADMIN_System32_s
push eax
call fcn.005dd5b8
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 0x578e17
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.005dcf8a
leave
ret
Function at 0x578e9e
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x6c6e10]
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 0x578ef2
xor eax, eax
jmp 0x578f66
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push str.RemComSvc.exe
push dword [0x6ccda4]
mov edi, eax
lea eax, [ebp - 0x108]
push str._sADMIN_SysWOW64_s
push eax
call fcn.005dd5b8
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 0x578eee
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.005dcf8a
leave
ret

Function at 0x57911c
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
mov eax, dword [0x6c6e10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x6458b4
call fcn.00578aec
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 0x1108], eax
mov eax, 0x6ccda8
lea ecx, [esi + 0x110c]
sub ecx, eax
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x57915a
push 0x6457a4
call fcn.00578aa1
pop ecx
test eax, eax
jne 0x57918e
push 0x6ceda8
push dword [0x6d0eb8]
push 0x6458ac
push esi
call fcn.005dd5b8
add esp, 0x10
jmp 0x5791d6
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 [0x6d0eb8]
call fcn.005e384e
push 0x6ceda8
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
push str._s_s__s
push esi
call fcn.005dd5b8
add esp, 0x28
push str.realtime
call fcn.00578aa1
pop ecx
test eax, eax
je 0x5791f1
mov dword [esi + 0x1104], 0x100
jmp 0x579227
push str.high
call fcn.00578aa1
pop ecx
test eax, eax
je 0x57920c
mov dword [esi + 0x1104], 0x80
jmp 0x579227
push str.idle
call fcn.00578aa1
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
pop ecx
mov dword [esi + 0x1104], eax
push str.nowait
call fcn.00578aa1
pop ecx
mov dword [esi + 0x1210], eax
test edi, edi
je 0x579250
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 0x579246
push esi
push dword [0x6ccda4]
mov esi, 0x6cfda8
push str._s_:__s
push esi
call fcn.005dd5b8
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.005dcf8a
leave
ret
Function at 0x5794fb
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
push esi
push esi
push 0x579282
call fcn.005e3992
push esi
push esi
push 0x5793a6
call fcn.005e3992
push esi
push esi
push 0x57944f
call fcn.005e3992
add esp, 0x24
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1224
call fcn.005e38a0
mov eax, dword [0x6c6e10]
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.005dd9b0
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.0057911c
add esp, 0x10
push ebx
lea eax, [ebp - 0x1224]
push eax
push esi
lea eax, [ebp - 0x1218]
push eax
push dword [0x6c6474]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x3e8
push 5
call fcn.00579527
pop ecx
pop ecx
test eax, eax
je 0x579816
push str.Ok_n_n
push 0x6aa570
call fcn.005e1f9e
add eax, 0x20
push eax
call fcn.005e3085
call fcn.005e1f9e
add eax, 0x20
push eax
call fcn.005e22df
add esp, 0x10
push ebx
lea eax, [ebp - 0x1224]
push eax
push 8
lea eax, [ebp - 0x1220]
push eax
push dword [0x6c6474]
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x57983f
push str.Failed_n_n
push 0x6aa570
call fcn.005e1f9e
add eax, 0x20
push eax
call fcn.005e3085
call fcn.005e1f9e
add eax, 0x20
push eax
call fcn.005e22df
add esp, 0x10
cmp dword [ebp - 0x1220], ebx
pop edi
pop esi
pop ebx
jne 0x579868
push dword [ebp - 0x121c]
push dword [ebp - 0x121c]
push str._nRemote_command_returned__d_0x_X__n
call fcn.005dcd3f
mov eax, dword [ebp - 0x121c]
jmp 0x579884
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.005dcd3f
mov eax, dword [ebp - 0x1220]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0xc
call fcn.005dcf8a
leave
ret

Function at 0x57a596
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.005dd9b0
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 [0x6c647c]
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [0x6c6478]
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 0x57a5f5
call fcn.00578710
xor eax, eax
jmp 0x57a613
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 0x57a9b4
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 0x57a9f6
cmp eax, 2
je 0x57a9f6
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 0x57ab0e
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status

Disassembly:
push 0x70
push 0x6bb168
call fcn.005e3a40
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 [0x6ccd9c]
mov esi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
call esi
test eax, eax
jne 0x57ac63
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x57ab64
xor eax, eax
jmp 0x57ac65
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 0x57ab5d
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 [0x6ccd9c]
call esi
test eax, eax
jne 0x57abae
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x6c6e10
call fcn.005e3df0
add esp, 0xc
jmp 0x57ab5d
mov dword [ebp - 0x48], edi
mov esi, dword [ebp - 0x48]
cmp esi, dword [ebp - 0x4c]
jae 0x57ac57
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 [0x6ccda0]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x5c], esi
test esi, esi
je 0x57ab99
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 0x57ab99
cmp dword [ebp - 0x3c], ebx
je 0x57ac39
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 0x57ab99
cmp dword [ebp - 0x3c], ebx
je 0x57ac39
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x58]
jbe 0x57abf8
jmp 0x57ab99
and dword [ebp - 4], 0
call fcn.0057ac4d
inc dword [ebp - 0x48]
jmp 0x57abb1
mov dword [ebp - 4], 0xfffffffe
call fcn.0057ac6e
mov eax, ebx
call fcn.005e3a88
ret
Function at 0x57ac81
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x6c6e10]
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 [0x6ccda4]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [0x6ccda0], eax
test eax, eax
jne 0x57acd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed___d__n
call fcn.005dcd3f
pop ecx
pop ecx
jmp 0x57ae58
push 0x2c
push 0x64584c
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [0x6ccd9c], eax
test eax, eax
jne 0x57ad0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_failed___d__n
call fcn.005dcd3f
pop ecx
pop ecx
push dword [0x6ccda0]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x57ae58
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 0x57ad3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_failed___d__n
call fcn.005dcd3f
pop ecx
jmp 0x57ad4a
cmp dword [ebp - 0x24], 1
jne 0x57ad50
push str.Service_is_already_stopped._n
call fcn.005dcd3f
pop ecx
jmp 0x57ae41
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x57adaf
push str.Service_stop_pending..._n
call fcn.005dcd3f
mov eax, dword [ebp - 0x10]
pop ecx
push 0xa
xor edx, edx
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jb 0x57ad80
mov ecx, 0x2710
cmp eax, ecx
jbe 0x57ad82
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 [0x6ccd9c]
call esi
test eax, eax
je 0x57adde
cmp dword [ebp - 0x24], 1
je 0x57adf2
call ebx
sub eax, dword [ebp - 0x2c]
cmp eax, 0x7530
ja 0x57adf9
cmp dword [ebp - 0x24], 3
je 0x57ad59
call fcn.0057ab0e
lea eax, [ebp - 0x28]
push eax
push 1
push dword [0x6ccd9c]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x57ae2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ControlService_failed___d__n
jmp 0x57adea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatusEx_failed___d__n
call fcn.005dcd3f
pop ecx
jmp 0x57ae3f
push str.Service_stopped_successfully._n
jmp 0x57ae3a
push str.Service_stop_timed_out._n
jmp 0x57ae3a
push dword [ebp - 0x10]
call edi
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push dword [0x6ccd9c]
call esi
test eax, eax
je 0x57adde
cmp dword [ebp - 0x24], 1
je 0x57ae35
call ebx
sub eax, dword [ebp - 0x2c]
cmp eax, 0x7530
ja 0x57ae65
cmp dword [ebp - 0x24], 1
jne 0x57ae00
push str.Service_stopped_successfully_n
call fcn.005dcd3f
pop ecx
pop edi
push dword [0x6ccd9c]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [0x6ccda0]
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005dcf8a
leave
ret
push str.Wait_timed_out_n
jmp 0x57ae3a