joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100056f0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x114
mov eax, dword [0x10035400]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x118]
push ebp
push esi
push edi
mov edi, ecx
push str._Reply__Result_True__Result__Msg___Msg___Reply_
push eax
mov ecx, str.CloseAllIsaHelp
call fcn.10001420
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
cmp dword [0x1006bee0], 0
je 0x100057db
cmp dword [0x1006bee4], 0
je 0x100057db
push 0x103
lea ecx, [esp + 0x15]
push 0
push ecx
mov byte [esp + 0x1c], 0
call fcn.1001f410
mov edx, dword [0x1006bee8]
add esp, 0xc
push edx
lea eax, [esp + 0x14]
push str.GlobalIsaHelpExit__u
push eax
call fcn.100182ad
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov esi, eax
test esi, esi
je 0x100057c4
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call ebp
mov edx, dword [0x1006bee4]
push 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100057db
mov eax, dword [0x1006bee4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [0x1006bee4]
push ecx
jmp 0x100057d9
mov edx, dword [0x1006bee4]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [0x1006bee4]
push eax
call ebp
xor esi, esi
lea ecx, [ecx]
cmp dword [esi + 0x10057ee0], 0
je 0x10005894
cmp dword [esi + 0x10057ee4], 0
je 0x10005894
push 0x103
lea ecx, [esp + 0x15]
push 0
push ecx
mov byte [esp + 0x1c], 0
call fcn.1001f410
mov edx, dword [esi + 0x10057ee8]
add esp, 0xc
push edx
lea eax, [esp + 0x14]
push str.GlobalIsaHelpExit__u
push eax
call fcn.100182ad
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov edi, eax
test edi, edi
je 0x1000587c
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
call ebp
mov edx, dword [esi + 0x10057ee4]
push 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10005894
mov eax, dword [esi + 0x10057ee4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esi + 0x10057ee4]
push ecx
jmp 0x10005892
mov edx, dword [esi + 0x10057ee4]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi + 0x10057ee4]
push eax
call ebp
add esi, 0x14
cmp esi, 0x14000
jb 0x100057e0
push str._SessionMgr__Reset_NotRestartCount
push 0x50a
push str..SessionMgr.c
push 2
mov ecx, str.CloseAllIsaHelp
call fcn.1000be40
push str._SessionMgr__Reset_NotRestartCount
push 0x50a
push str..SessionMgr.c
push 2
mov ecx, str.CloseAllIsaHelp
call fcn.1000bb50
add esp, 0x20
push 0
push 0x1006d158
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push str._SessionMgr__Close_all_IsaHelp.exe
push 0x50d
push str..SessionMgr.c
push 3
mov ecx, str.CloseAllIsaHelp
call fcn.1000be40
push str._SessionMgr__Close_all_IsaHelp.exe
push 0x50d
push str..SessionMgr.c
push 3
mov ecx, str.CloseAllIsaHelp
call fcn.1000bb50
mov ecx, dword [esp + 0x13c]
add esp, 0x20
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1001829e
add esp, 0x114
ret
Function at 0x10005c20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
mov eax, dword [0x10035400]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
push edi
mov esi, ecx
call fcn.10005df0
mov edi, eax
test edi, edi
jne 0x10005cf1
mov ecx, str.ListenAtLocalIp
mov eax, str.SoftwareISA
call fcn.1000b7c0
cmp eax, 1
mov ecx, str.GetSocketSession
jne 0x10005caf
push 0x1002d314
push 0x87
push str..SocketToSession.c
push eax
call fcn.1000be40
push 0x1002d314
push 0x87
push str..SocketToSession.c
push 1
mov ecx, str.GetSocketSession
call fcn.1000bb50
add esp, 0x20
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.1001829e
mov esp, ebp
pop ebp
ret
push str.GetSocketProcessId
push 0x8b
push str..SocketToSession.c
push 1
call fcn.1000be40
push str.GetSocketProcessId
push 0x8b
push str..SocketToSession.c
push 1
mov ecx, str.GetSocketSession
call fcn.1000bb50
add esp, 0x20
mov edi, 0x1002d3b8
call fcn.1000d060
mov edi, eax
jmp 0x10005d63
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.1001f410
add esp, 0xc
lea edx, [esp + 8]
mov ecx, edi
call fcn.1000ccd0
test eax, eax
je 0x10005d63
lea ecx, [esp + 8]
push ecx
push edi
push esi
push 0x1002d3c8
push 0x95
push str..SocketToSession.c
push 2
mov ecx, str.GetSocketSession
call fcn.1000be40
add esp, 0x1c
lea edx, [esp + 8]
push edx
push edi
push esi
push 0x1002d3c8
push 0x95
push str..SocketToSession.c
push 2
mov ecx, str.GetSocketSession
call fcn.1000bb50
add esp, 0x1c
test edi, edi
jne 0x10005dd0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 6
sbb eax, eax
add eax, 1
mov ecx, eax
push ecx
push str.explorer.exe
push 0xa0
push str..SocketToSession.c
push 1
mov ecx, str.GetSocketSession
mov dword [ebx], eax
call fcn.1000be40
mov edx, dword [ebx]
add esp, 0x14
push edx
push str.explorer.exe
push 0xa0
push str..SocketToSession.c
push 1
mov ecx, str.GetSocketSession
call fcn.1000bb50
add esp, 0x14
lea eax, [edi + 1]
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.1001829e
mov esp, ebp
pop ebp
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov ecx, dword [esp + 0x114]
pop edi
pop esi
xor ecx, esp
call fcn.1001829e
mov esp, ebp
pop ebp
ret
Function at 0x10005df0
Capabilities:
Check os version

Disassembly:
sub esp, 0x18
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, eax
xor eax, eax
mov edx, esi
movzx edi, bl
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], 5
call fcn.10012060
push eax
call sub.WS2_32.dll_ntohl
mov edx, esi
mov dword [esp + 0x14], eax
call fcn.100120d0
push eax
call sub.WS2_32.dll_ntohs
movzx ebp, ax
mov edx, esi
mov dword [esp + 0x18], ebp
call fcn.10012140
push eax
call sub.WS2_32.dll_ntohl
mov edx, esi
mov dword [esp + 0x1c], eax
call fcn.100121b0
push eax
call sub.WS2_32.dll_ntohs
cmp edi, 5
movzx eax, ax
mov dword [esp + 0x20], eax
jb 0x10005e70
jne 0x10005e80
test bh, bh
jne 0x10005e85
push ebp
call fcn.10006090
add esp, 4
pop edi
pop ebp
pop ebx
add esp, 0x18
ret
cmp edi, 6
jae 0x10005e95
lea edi, [esp + 0x10]
call fcn.10005eb0
pop edi
pop ebp
pop ebx
add esp, 0x18
ret
lea ecx, [esp + 0x10]
push ecx
call fcn.10005f80
add esp, 4
pop edi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x10006550
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov edx, dword [ebp + 8]
mov eax, edx
shr eax, 0x16
mov eax, dword [ecx + eax*4]
mov ecx, eax
and ecx, 0xff
cmp ecx, 1
jae 0x10006571
xor eax, eax
pop ebp
ret
cmp ecx, 0x80
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
jae 0x100065b1
push 0x1000
and eax, 0xfffff000
push eax
push 0
push 4
push ebx
call edi
mov edx, dword [ebp + 8]
shr edx, 0xc
and edx, 0x3ff
mov esi, dword [eax + edx*4]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
and esi, 0xfffff000
jmp 0x100065c0
and eax, 0xfffff000
and edx, 0x3ff000
add eax, edx
mov esi, eax
push 0x1000
push esi
push 0
push 4
push ebx
call edi
mov edi, eax
test edi, edi
je 0x100065ed
mov esi, dword [ebp + 8]
and esi, 0xfff
lea eax, [esi + 0x70]
cmp eax, 0x1000
jbe 0x100065f3
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov ecx, dword [esp + 0x14]
push 0x70
add esi, edi
push esi
push ecx
call fcn.10022400
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x10006860
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x64]
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x20], 0
call fcn.1000a5d0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1000693e
mov edx, dword [esp + 0x18]
push edx
push esi
call fcn.1000aab0
push 0x95
push str.StartSvrConnect
lea ebp, [esi + 1]
push 1
push ebp
mov ecx, str..SvrConn.c
call fcn.1000c550
add esp, 0x18
push str.Request_IP
push esi
call fcn.1000a480
push str.Request_Port
mov ebx, eax
call fcn.1000a520
movzx edi, ax
add esp, 0xc
cmp di, 0xffff
jbe 0x1000697f
movzx edi, di
push edi
push ebx
push str._SvrConn__Svr_Connect_IP:__s__or_Port:__u__fail
push 0xa0
push str..SvrConn.c
push 1
mov ecx, str.StartSvrConnect
call fcn.1000be40
push edi
push ebx
push str._SvrConn__Svr_Connect_IP:__s__or_Port:__u__fail
push 0xa0
push str..SvrConn.c
push 1
mov ecx, str.StartSvrConnect
call fcn.1000bb50
push esi
call fcn.1000a140
add esp, 0x34
push ebp
call fcn.1000c930
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push str._SvrConn__Get_Svr_Connect_Config_fail
push 0x98
push str..SvrConn.c
push 1
mov ecx, str.StartSvrConnect
call fcn.1000be40
push str._SvrConn__Get_Svr_Connect_Config_fail
push 0x98
push str..SvrConn.c
push 1
mov ecx, str.StartSvrConnect
call fcn.1000bb50
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x1006bf10
push ebx
call fcn.10019a8f
add esp, 8
test eax, eax
jne 0x1000699a
cmp word [0x1006bf0c], di
je 0x100069b2
mov eax, ebx
mov ecx, 0x40
mov ebx, 0x1006bf10
call fcn.1000f9f0
mov word [0x1006bf0c], di
push esi
call fcn.1000a140
add esp, 4
push ebp
call fcn.1000c930
add esp, 4
push 0x100519a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x100489f4]
cmp eax, 0xffffffff
je 0x100069df
push eax
call sub.WS2_32.dll_closesocket
mov dword [0x100489f4], 0xffffffff
call fcn.10007920
push 0x100519a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10006c40
mov edi, eax
call sub.WS2_32.dll_WSAGetLastError
cmp dword [0x1006bf50], 0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
jne 0x10006a34
push 0
push 0
push 0
push 0x10006e90
push 0
push 0
call ebx
mov dword [0x1006bf50], eax
cmp dword [0x1006bf54], 0
jne 0x10006a53
push 0
push 0
push 0
push 0x10006f10
push 0
push 0
call ebx
mov dword [0x1006bf54], eax
test edi, edi
je 0x10006a7a
mov edi, dword [esp + 0x24]
push str._Reply__Result_True__Result__Msg___Msg___Reply_
push 0x1000
mov ecx, str.StartSvrConnect
call fcn.10001420
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0
push 0x400
push 0x100519d8
push 0x400
push esi
push 0
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edi, dword [esp + 0x24]
push 0x100519d8
push str._Reply__Result_False__Result__Msg__s__Msg___Reply_
push 0x1000
mov ecx, str.StartSvrConnect
call fcn.10001420
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x100081d0
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
mov edi, eax
mov eax, dword [edi + 0x64]
push edx
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x1c], 0
call fcn.1000a5d0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1000824c
mov edx, dword [esp + 0x14]
push edx
push esi
call fcn.1000aab0
push 0x151
push str.StartWebSocketAccept
lea ebx, [esi + 1]
push 1
push ebx
mov ecx, str..WebConn.c
call fcn.1000c550
add esp, 0x18
cmp dword [0x1006bf5c], 0
jne 0x100082a5
push 0
push 0
push esi
push 0x1000a020
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1006bf5c], eax
jmp 0x100082b7
push str._WebConn__Get_WebSocket_Accept_Head_fail
push 0x154
push str..WebConn.c
push 1
mov ecx, str.StartWebSocketAccept
call fcn.1000be40
push str._WebConn__Get_WebSocket_Accept_Head_fail
push 0x154
push str..WebConn.c
push 1
mov ecx, str.StartWebSocketAccept
call fcn.1000bb50
add esp, 0x20
push 0
push str._Reply__Result_False__Result__Msg__s__Msg___Reply_
push 0x1000
mov ecx, str.StartWebSocketAccept
call fcn.10001420
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x10
ret
push esi
call fcn.1000a140
add esp, 4
push ebx
call fcn.1000c930
add esp, 4
push str._Reply__Result_True__Result__Msg___Msg___Reply_
push 0x1000
mov ecx, str.StartWebSocketAccept
call fcn.10001420
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x1000b7c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
test esi, esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0xffffffff
je 0x1000b858
test eax, eax
je 0x1000b82f
lea ecx, [esp + 4]
push ecx
push 0x20019
push 0
push eax
push reloc.WS2_32.dll_bind
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000b84f
mov ecx, dword [esp + 4]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
push 0
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 4]
test eax, eax
je 0x1000b84b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000b84b
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
push 0
push 0
push esi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x1000b858
mov eax, dword [esp + 8]
pop esi
add esp, 0xc
ret
or eax, 0xffffffff
pop esi
add esp, 0xc
ret

Function at 0x1000b860
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
test esi, esi
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 8], reloc.WS2_32.dll_bind
mov dword [esp + 4], 0
jne 0x1000b883
xor eax, eax
pop ebp
add esp, 8
ret
test ebp, ebp
je 0x1000b8a3
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push ebp
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000b87c
mov edx, dword [esp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
push esi
push edx
call edi
test eax, eax
jne 0x1000b918
test ebx, ebx
je 0x1000b918
mov eax, dword [esp + 0x18]
cmp dword [esp + 8], eax
jbe 0x1000b8d3
mov dword [esp + 8], eax
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
push eax
push ebx
push 0
push 0
push esi
push ecx
call edi
cmp eax, 0xea
jne 0x1000b90c
test ebp, ebp
je 0x1000b8ff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1000b8ff
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
pop edi
add eax, 0xffffffff
pop ebp
add esp, 8
ret
test eax, eax
je 0x1000b918
mov dword [esp + 8], 0
test ebp, ebp
je 0x1000b92b
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1000b92b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
pop edi
pop ebp
add esp, 8
ret
Function at 0x1000ca80
Capabilities:
Get common file path

Disassembly:
push ecx
push esi
push edi
push str.IsWow64Process
push str.kernel32
mov esi, eax
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1000cab8
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [esp + 8], 0
push 0x104
push esi
jne 0x1000cacf
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
pop edi
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
add esi, 0xffffffff
mov ecx, esi
lea ebx, [ebx]
mov dl, byte [ecx + 1]
add ecx, 1
test dl, dl
jne 0x1000cae0
mov edx, dword [str.SysWOW64]
mov dword [ecx], edx
mov edx, dword [0x1002ed14]
mov dword [ecx + 4], edx
mov dx, word [0x1002ed18]
pop edi
mov word [ecx + 8], dx
add eax, 9
pop esi
pop ecx
ret

Function at 0x1000cc10
Capabilities:
Get disk information

Disassembly:
sub esp, 0x208
mov eax, dword [0x10035400]
xor eax, esp
mov dword [esp + 0x204], eax
mov ax, word [0x1002ed1c]
mov cl, byte [0x1002ed1e]
push ebx
mov bl, 0x41
push esi
mov esi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov word [esp + 8], ax
mov byte [esp + 0xa], cl
mov byte [esp + 8], bl
jmp 0x1000cc50
push 0x1ff
lea edx, [esp + 0x11]
push 0
push edx
mov byte [esp + 0x18], 0
call fcn.1001f410
add esp, 0xc
push 0x200
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
call esi
test eax, eax
je 0x1000cc90
lea edx, [esp + 0xc]
push edx
push edi
call fcn.10019a8f
add esp, 8
test eax, eax
je 0x1000ccb5
add bl, 1
cmp bl, 0x5a
mov byte [esp + 8], bl
jle 0x1000cc50
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.1001829e
add esp, 0x208
ret
mov ecx, dword [esp + 0x20c]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.1001829e
add esp, 0x208
ret
Function at 0x1000ccd0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x414
mov eax, dword [0x10035400]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebx
push ebp
push esi
mov esi, ecx
cmp esi, 0xa
mov ebx, edx
push edi
mov dword [esp + 0x14], ebx
jae 0x1000cd22
mov eax, dword [str._SYSTEM_PATH_]
mov dword [ebx], eax
mov ecx, dword [0x1002ed24]
mov dword [ebx + 4], ecx
mov edx, dword [0x1002ed28]
mov dword [ebx + 8], edx
mov ax, word [0x1002ed2c]
mov word [ebx + 0xc], ax
mov eax, 1
jmp 0x1000ce80
push str.SeDebugPrivilege
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
mov eax, 1
call fcn.1000cb10
add esp, 4
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
je 0x1000ce80
push 0x104
push ebx
push 0
push edi
call sub.PSAPI.DLL_GetModuleFileNameExA
mov ebp, eax
test ebp, ebp
jne 0x1000ce60
push str.GetProcessImageFileNameA
push 0x1002ed4c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1000ce60
push 0x3ff
lea ecx, [esp + 0x1d]
push ebp
push ecx
mov byte [esp + 0x24], 0
call fcn.1001f410
add esp, 0xc
push 0x400
lea edx, [esp + 0x1c]
push edx
push edi
call esi
test eax, eax
jbe 0x1000ce60
push 8
lea eax, [esp + 0x1c]
push str.Device_
push eax
call fcn.10025beb
add esp, 0xc
test eax, eax
jne 0x1000ce60
lea esi, [esp + 0x20]
mov edi, edi
mov bl, byte [esi]
lea edi, [esp + 0x18]
mov byte [esi], 0
call fcn.1000cc10
test al, al
mov byte [esi], bl
jg 0x1000ce0a
push 0x5c
add esi, 2
push esi
call fcn.10018930
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000cde0
jmp 0x1000ce5c
mov edx, dword [esp + 0x14]
mov byte [edx], al
mov eax, esi
mov byte [edx + 1], 0x3a
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1000ce20
sub eax, edi
cmp eax, 0x103
jae 0x1000ce44
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1000ce37
sub eax, edi
jmp 0x1000ce49
mov eax, 0x103
push eax
add edx, 2
push esi
push edx
call fcn.10018dc0
add esp, 0xc
mov ebp, 1
mov edi, dword [esp + 0x10]
push str.SeDebugPrivilege
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
xor eax, eax
call fcn.1000cb10
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001829e
add esp, 0x414
ret
Function at 0x1000cea0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x334
mov eax, dword [0x10035400]
xor eax, esp
mov dword [esp + 0x32c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x344]
push esi
push edi
xor ebx, ebx
push 0xff
lea eax, [esp + 0x2d]
push ebx
push eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0x34], bl
call fcn.1001f410
add esp, 0xc
push 0x103
lea ecx, [esp + 0x235]
push ebx
push ecx
mov byte [esp + 0x23c], bl
call fcn.1001f410
add esp, 0xc
push 0x103
lea edx, [esp + 0x12d]
push ebx
push edx
mov byte [esp + 0x134], bl
call fcn.1001f410
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add esp, 0xc
mov eax, 0x104
push str.SeDebugPrivilege
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ebx
call edi
mov ecx, eax
lea eax, [ebx + 1]
call fcn.1000cb10
mov eax, dword [esp + 0x34c]
add esp, 4
push eax
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x1000cf74
lea ecx, [esp + 0x14]
push ecx
push 8
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1000cf7b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1000d043
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push 0x100
lea eax, [esp + 0x30]
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1000cfb2
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
push esi
call edi
xor eax, eax
jmp 0x1000d043
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x238]
push edx
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x138]
push ecx
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
test eax, eax
jne 0x1000cff5
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push esi
call edi
xor eax, eax
jmp 0x1000d043
push str.SeDebugPrivilege
call edi
mov ecx, eax
xor eax, eax
call fcn.1000cb10
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push ecx
call edi
push esi
call edi
cmp ebp, ebx
je 0x1000d03e
mov eax, dword [esp + 0x18]
cmp eax, 0xff
jb 0x1000d02c
mov eax, 0xff
push eax
lea edx, [esp + 0x12c]
push edx
push ebp
call fcn.10022400
add esp, 0xc
mov eax, 1
mov ecx, dword [esp + 0x33c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001829e
add esp, 0x334
ret
Function at 0x1000d060
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x138
mov eax, dword [0x10035400]
xor eax, esp
mov dword [esp + 0x130], eax
push esi
push 0x128
lea eax, [esp + 0xc]
push 0
push eax
call fcn.1001f410
add esp, 0xc
push 0
push 2
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 8]
mov esi, eax
push ecx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000d0d1
jmp 0x1000d0b0
lea edx, [esp + 0x2c]
push edx
push edi
call fcn.10019a8f
add esp, 8
test eax, eax
je 0x1000d0f1
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1000d0b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.1001829e
add esp, 0x138
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
mov eax, dword [esp + 0x10]
pop esi
xor ecx, esp
call fcn.1001829e
add esp, 0x138
ret

Function at 0x1000d120
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x134
mov eax, dword [0x10035400]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
mov ebp, dword [esp + 0x140]
push esi
push 0x128
lea eax, [esp + 0x14]
push 0
push eax
mov dword [esp + 0x18], 0
call fcn.1001f410
add esp, 0xc
push 0
push 2
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000d1b9
mov ebx, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
lea edx, [esp + 0x34]
push edx
push edi
call fcn.10019a8f
add esp, 8
test eax, eax
jne 0x1000d1aa
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push ecx
call ebx
test eax, eax
je 0x1000d1aa
cmp ebp, dword [esp + 0xc]
je 0x1000d1da
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1000d182
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.1001829e
add esp, 0x134
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 0x18]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001829e
add esp, 0x134
ret