joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10028570
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10045018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push 1
push esi
mov ebx, ecx
push esi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x10028693
push edi
push 0x94
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x1002860d
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10028608
mov eax, dword [ebp - 0x1c]
cmp eax, 4
jne 0x100285da
push edi
lea esi, [eax - 3]
call ebx
jmp 0x10028613
cmp eax, 2
jne 0x100285eb
push edi
mov dword [ebp - 0x40], 1
call ebx
jmp 0x10028613
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x10028606
push edi
mov dword [ebp - 0x40], 1
call ebx
jmp 0x10028613
xor esi, esi
push edi
call ebx
jmp 0x10028613
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x48]
call ebx
cmp dword [ebp - 0x40], 0
je 0x10028680
push 1
push 0
push 0
mov dword [ebp - 0x40], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x10028680
push 0x84
push dword [ebp - 0x44]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x1002866b
push ecx
lea eax, [ebp - 0x3c]
push eax
mov edx, 4
mov ecx, ebx
call fcn.10028320
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x40], eax
call ebx
jmp 0x10028671
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call ebx
cmp dword [ebp - 0x40], 0
mov eax, 1
cmovne esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d28e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002d28e
mov esp, ebp
pop ebp
ret
Function at 0x100286b0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x10045018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push 1
push esi
mov ebx, ecx
push esi
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x248], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x250], eax
test eax, eax
je 0x1002886c
push edi
push 0x94
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x10028765
lea eax, [ebp - 0x228]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10028760
mov eax, dword [ebp - 0x224]
cmp eax, 4
jne 0x1002872c
push edi
lea esi, [eax - 3]
call ebx
jmp 0x10028777
cmp eax, 2
jne 0x10028740
push edi
mov dword [ebp - 0x248], 1
call ebx
jmp 0x10028777
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1002875e
push edi
mov dword [ebp - 0x248], 1
call ebx
jmp 0x10028777
xor esi, esi
push edi
call ebx
jmp 0x10028777
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, str.rs.os
call fcn.10028a20
push dword [ebp - 0x250]
call ebx
cmp dword [ebp - 0x248], 0
je 0x10028859
push 1
push 0
push 0
mov dword [ebp - 0x248], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x1002880d
push 0x84
push dword [ebp - 0x24c]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x100287e5
push ecx
lea eax, [ebp - 0x244]
push eax
mov edx, 4
mov ecx, ebx
call fcn.10028320
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x248], eax
call ebx
jmp 0x100287eb
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call ebx
cmp dword [ebp - 0x248], 0
je 0x1002880d
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d28e
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR110.dll_memset
push str.rs.to
push str.install.step.svcinit
push str._s._s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_swprintf_s]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.isaferpt.dll_SendString]
add esp, 0x24
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d28e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, str.rs.oscm
call fcn.10028a20
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002d28e
mov esp, ebp
pop ebp
ret
Function at 0x10028900
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10045018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x30], edx
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x100289c4
push 4
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x10028964
lea ecx, [ebp - 8]
push ecx
push 0x24
lea ecx, [ebp - 0x2c]
push ecx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
push dword [ebp - 0x34]
test eax, eax
mov eax, 1
cmovne ebx, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x100289c4
cmp dword [ebp - 0x28], 1
je 0x100289c4
mov ecx, dword [ebp - 0x30]
call fcn.10025030
test eax, eax
je 0x100289b3
push eax
push str.IU_ServiceExit_return__08X
push 0x800000
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLog]
add esp, 0xc
mov ecx, esi
call fcn.10028890
test eax, eax
jne 0x100289b3
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d28e
mov esp, ebp
pop ebp
ret
push ecx
mov edx, 1
mov ecx, esi
call fcn.10028450
test eax, eax
je 0x100289a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.1002d28e
mov esp, ebp
pop ebp
ret

Function at 0x10029280
Capabilities:
Terminate process

Disassembly:
push edi
mov edi, ecx
test edi, edi
jne 0x1002928e
mov eax, 0xe0001002
pop edi
ret
test byte [edi], 1
je 0x10029361
cmp dword [edi + 4], 0
je 0x1002935e
push ebx
mov ebx, dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLog]
push esi
push dword [edi + 0x14]
push str.Wait__08X_auto_exit
push 0x400000
call ebx
mov ecx, dword [edi + 4]
mov edx, 0x7d0
call fcn.10002a60
add esp, 8
xor edx, edx
xor ecx, ecx
mov esi, eax
call fcn.10027d90
add esp, 4
push dword [edi + 0x14]
test esi, esi
je 0x1002933d
push str.kill__08X
push 0x400000
call ebx
lea esi, [edi + 0x24]
push esi
xor edx, edx
mov ecx, str.error.svc.procexit.commu
call fcn.100048b0
add esp, 0x10
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [edi + 4]
mov edx, 0x7d0
call fcn.10002a60
cmp eax, 0x102
jne 0x1002932e
push esi
mov edx, 1
mov ecx, str.error.svc.procexit.commu
call fcn.100048b0
add esp, 4
push ecx
xor edx, edx
xor ecx, ecx
call fcn.10027d90
add esp, 4
jmp 0x1002934c
push str._08X_normal_exit
push 0x400000
call ebx
add esp, 0xc
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov dword [edi + 4], 0
pop ebx
and dword [edi], 0xfffffffe
xor eax, eax
pop edi
ret
Function at 0x1002ae30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10045018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edx, esi
mov ecx, 1
call fcn.1002b8c0
mov edi, eax
push edi
push esi
push str.RunAllStartupProcessBySessionStart_dwSession_u_dwExplorerID_u
push 0x400000
call dword [sym.imp.isafepxy.dll_ISAFE_WriteProgramLog]
add esp, 0x10
test edi, edi
je 0x1002aedc
mov ecx, dword [0x10049bf8]
mov eax, dword [0x10049bfc]
or ecx, eax
je 0x1002ae8e
mov ecx, dword [0x10049bf8]
mov eax, dword [0x10049bfc]
and ecx, 1
xor eax, eax
or ecx, eax
je 0x1002ae97
mov edx, edi
mov ecx, esi
call fcn.1002a780
test byte [0x100498a4], 1
je 0x1002af07
mov ecx, dword [0x10049bf8]
mov eax, dword [0x10049bfc]
or ecx, eax
je 0x1002af07
mov ecx, dword [0x10049bf8]
mov eax, dword [0x10049bfc]
and ecx, 0xfffffffe
or ecx, eax
je 0x1002af07
mov edx, edi
mov ecx, esi
call fcn.1002a830
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d28e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x1002ad20
push 0
push 0
mov dword [ebp - 8], 0
call dword [sym.imp.MSVCR110.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x1002af07
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.1002d28e
mov esp, ebp
pop ebp
ret
Function at 0x1002af80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10045018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov edi, edx
mov ebx, ecx
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x103
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1002b0ca
push esi
lea esi, [ebp - 0x20c]
mov edx, 0x3a
mov ecx, dword [edi]
mov ax, word [esi]
imul ecx, ecx, 0x210
mov word [ecx + ebx], ax
mov eax, dword [edi]
imul eax, eax, 0x210
xor ecx, ecx
mov word [eax + ebx + 2], dx
mov eax, dword [edi]
imul eax, eax, 0x210
push 0x104
mov word [eax + ebx + 4], cx
mov ecx, dword [edi]
imul ecx, ecx, 0x210
add ecx, ebx
lea eax, [ecx + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1002b0b0
mov eax, dword [edi]
imul eax, eax, 0x210
mov ecx, 0x5c
mov word [eax + ebx + 4], cx
mov eax, dword [edi]
imul eax, eax, 0x210
xor ecx, ecx
mov word [eax + ebx + 6], cx
mov edx, dword [edi]
mov eax, edx
imul eax, eax, 0x210
add eax, 8
add eax, ebx
mov ecx, eax
mov dword [ebp - 0x210], eax
lea eax, [ecx + 2]
mov dword [ebp - 0x214], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002b071
sub ecx, dword [ebp - 0x214]
imul edx, edx, 0x108
sar ecx, 1
add edx, ecx
cmp word [ebx + edx*2 + 6], 0x5c
je 0x1002b0ad
push 0x10035d40
push 0x104
push dword [ebp - 0x210]
call dword [sym.imp.MSVCR110.dll_wcscat_s]
add esp, 0xc
inc dword [edi]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1002b0b0
mov edx, 0x3a
cmp word [esi], ax
jne 0x1002afe3
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.1002d28e
mov esp, ebp
pop ebp
ret
Function at 0x1002b730
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x47cc
call fcn.10030f10
mov eax, dword [0x10045018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x47b8], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x47c4], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, edx
mov dword [ebp - 0x47c8], ecx
mov dword [ebp - 0x47cc], ebx
mov dword [ebp - 0x47bc], eax
test ecx, ecx
jne 0x1002b78d
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d28e
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x47b0]
push eax
push 0x1000
lea eax, [ebp - 0x47ac]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x1002b779
push edi
mov edi, dword [ebp - 0x47b0]
shr edi, 2
test esi, esi
je 0x1002b7d6
push dword [ebp - 0x47bc]
push dword [ebp - 0x47c4]
push dword [ebp - 0x47b8]
push ebx
push edi
call esi
test eax, eax
je 0x1002b8a6
xor eax, eax
push 0x3598
push eax
mov word [ebp - 0x37ac], ax
mov dword [ebp - 0x37aa], eax
mov word [ebp - 0x37a6], ax
lea eax, [ebp - 0x37a4]
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
xor ebx, ebx
add esp, 0xc
test dword [0x10049ed0], 0x80000
mov dword [ebp - 0x47b4], eax
mov dword [ebp - 0x47c0], ebx
je 0x1002b842
lea eax, [ebp - 0x37ac]
lea edx, [ebp - 0x47c0]
mov ecx, eax
mov dword [ebp - 0x47b4], eax
call fcn.1002af80
mov ebx, dword [ebp - 0x47c0]
lea eax, [ebp - 0x37ac]
xor esi, esi
test edi, edi
je 0x1002b8a6
jmp 0x1002b850
mov ecx, dword [ebp + esi*4 - 0x47ac]
push ebx
push eax
lea edx, [ebp - 0x20c]
call fcn.1002b650
add esp, 8
test eax, eax
je 0x1002b89b
push dword [ebp - 0x47bc]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x47c4]
push dword [ebp - 0x47b8]
push dword [ebp - 0x47cc]
push eax
push dword [ebp + esi*4 - 0x47ac]
call dword [ebp - 0x47c8]
test eax, eax
je 0x1002b8a6
mov eax, dword [ebp - 0x47b4]
inc esi
cmp esi, edi
jb 0x1002b850
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.1002d28e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1002b8c0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x49cc
call fcn.10030f10
mov eax, dword [0x10045018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x49cc], edx
lea eax, [ebx - 1]
test ebx, eax
je 0x1002b8f8
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d28e
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002b931
sub ecx, edx
sar ecx, 1
push esi
cmp word [ebp + ecx*2 - 0x20e], 0x5c
mov esi, dword [sym.imp.MSVCR110.dll_wcscat_s]
je 0x1002b968
push 0x10035d40
lea eax, [ebp - 0x20c]
push 0x104
push eax
call esi
add esp, 0xc
push str.Explorer.exe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x49bc]
push eax
push 0x1000
lea eax, [ebp - 0x1414]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x1002b9b0
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d28e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x49bc]
shr eax, 2
push edi
mov dword [ebp - 0x49c8], eax
xor eax, eax
push 0x3598
push eax
mov word [ebp - 0x49b4], ax
mov dword [ebp - 0x49b2], eax
mov word [ebp - 0x49ae], ax
lea eax, [ebp - 0x49ac]
push eax
or edi, 0xffffffff
mov dword [ebp - 0x49c0], 0
call sub.MSVCR110.dll_memset
add esp, 0xc
lea edx, [ebp - 0x49c4]
lea ecx, [ebp - 0x49b4]
mov dword [ebp - 0x49c4], 0
call fcn.1002af80
xor esi, esi
cmp dword [ebp - 0x49c8], esi
jbe 0x1002bad1
push dword [ebp - 0x49c4]
mov ecx, dword [ebp + esi*4 - 0x1414]
lea eax, [ebp - 0x49b4]
push eax
lea edx, [ebp - 0x414]
call fcn.1002b650
lea eax, [ebp - 0x20c]
add esp, 8
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002ba50
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR110.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x1002bac4
test bl, 2
jne 0x1002baf1
mov dword [ebp - 0x49b8], eax
lea eax, [ebp - 0x49b8]
push eax
push dword [ebp + esi*4 - 0x1414]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x1002bac4
mov eax, dword [ebp - 0x49b8]
cmp eax, dword [ebp - 0x49cc]
je 0x1002baf1
test bl, 4
je 0x1002bac4
cmp eax, edi
jae 0x1002bac4
mov edi, eax
mov eax, dword [ebp + esi*4 - 0x1414]
mov dword [ebp - 0x49c0], eax
inc esi
cmp esi, dword [ebp - 0x49c8]
jb 0x1002ba21
pop edi
test bl, 4
mov eax, 0
cmovne eax, dword [ebp - 0x49c0]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d28e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + esi*4 - 0x1414]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002d28e
mov esp, ebp
pop ebp
ret
Function at 0x1002bc60
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x10045018]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
xor esi, esi
push edi
mov dword [esp + 8], esi
call fcn.1002bb10
test eax, eax
jne 0x1002bc96
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1002d28e
mov esp, ebp
pop ebp
ret
lea eax, [esp + 8]
push eax
push 0x1ab
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x1004980c]
test eax, eax
je 0x1002bd67
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push str.SeDebugPrivilege
push 0
call dword [0x10049804]
test eax, eax
je 0x1002bd67
lea edx, [esp + 0xc]
mov ecx, edi
call fcn.1002bba0
test eax, eax
je 0x1002bd67
mov edi, dword [esp + 8]
lea eax, [esp + 0x14]
push eax
push str.SeTcbPrivilege
push 0
call dword [0x10049804]
test eax, eax
je 0x1002bd67
lea edx, [esp + 0x14]
mov ecx, edi
call fcn.1002bba0
test eax, eax
je 0x1002bd67
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push str.SeAssignPrimaryTokenPrivilege
push 0
call dword [0x10049804]
test eax, eax
je 0x1002bd67
lea edx, [esp + 0xc]
mov ecx, edi
call fcn.1002bba0
test eax, eax
je 0x1002bd67
mov edi, dword [esp + 8]
lea eax, [esp + 0x14]
push eax
push str.SeIncreaseQuotaPrivilege
push 0
call dword [0x10049804]
test eax, eax
je 0x1002bd67
lea edx, [esp + 0x14]
mov ecx, edi
call fcn.1002bba0
mov ecx, 1
test eax, eax
cmovne esi, ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x1002bd76
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.1002d28e
mov esp, ebp
pop ebp
ret
Function at 0x1002bf80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x10045018]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x10]
xor edi, edi
push 0x44
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x64]
push edi
push eax
mov dword [ebp - 0x68], edx
mov esi, ecx
mov dword [ebp - 0xc], edi
call sub.MSVCR110.dll_memset
xorps xmm0, xmm0
add esp, 0xc
movq qword [ebp - 0x1c], xmm0
movq qword [ebp - 0x14], xmm0
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x5c], str.winsta0default
test esi, esi
jns 0x1002bfe5
mov dword [ebp - 0x38], 1
xor eax, eax
jmp 0x1002bfea
mov eax, 1
mov esi, dword [ebp - 0x6c]
push 0
mov word [ebp - 0x34], ax
push esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
lea ecx, [ebp - 0x1c]
push ecx
neg eax
lea ecx, [ebp - 0x64]
push ecx
push 0
sbb eax, eax
and eax, dword [ebp - 0xc]
push eax
push 0x420
push 0
push 0
push 0
push dword [ebp - 0x68]
mov dword [ebp - 0xc], eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
test esi, esi
jne 0x1002c038
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x1002c04d
push ecx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov dword [ebp - 0xc], 0
test esi, esi
je 0x1002c07f
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
test ebx, ebx
je 0x1002c062
mov dword [ebx], eax
jmp 0x1002c069
test eax, eax
je 0x1002c069
push eax
call esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1002c073
push eax
call esi
mov ecx, dword [ebp - 0x70]
test ecx, ecx
je 0x1002c07f
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002d28e
mov esp, ebp
pop ebp
ret

Function at 0x1002c110
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x10045018]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x40
lea eax, [ebp - 0x50]
xorps xmm0, xmm0
push 0
push eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x64], 0
movq qword [ebp - 0x60], xmm0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0x44
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1002c18f
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1002d28e
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
test ebx, ebx
je 0x1002c1a5
mov eax, dword [ebp - 0x64]
mov dword [ebx], eax
jmp 0x1002c1aa
push dword [ebp - 0x64]
call esi
test edi, edi
je 0x1002c1b3
mov eax, dword [ebp - 0x5c]
mov dword [edi], eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1002d28e
mov esp, ebp
pop ebp
ret
Function at 0x1002c1d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x10045018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x54]
push eax
push 0xf01ff
mov dword [ebp - 8], edx
mov esi, ecx
mov dword [ebp - 0x54], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1002c22b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0xe000100a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d28e
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 8]
push eax
push 0xc
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x1002c265
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xe000100a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002d28e
mov esp, ebp
pop ebp
ret
push 0x40
lea eax, [ebp - 0x4c]
xorps xmm0, xmm0
push 0
push eax
mov dword [ebp - 0x64], 0
movq qword [ebp - 0x60], xmm0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x50], 0x44
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1002c240
push dword [ebp - 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
test ebx, ebx
je 0x1002c2d8
mov eax, dword [ebp - 0x64]
push 0x8000
push eax
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
jmp 0x1002c2dd
push dword [ebp - 0x64]
call esi
test edi, edi
je 0x1002c2e6
mov eax, dword [ebp - 0x5c]
mov dword [edi], eax
push dword [ebp - 0x54]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1002d28e
mov esp, ebp
pop ebp
ret
Function at 0x1002caf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
mov edi, ecx
mov dword [ebp - 0xc], edx
test edi, edi
je 0x1002cb96
test edx, edx
je 0x1002cb96
push ebx
mov ebx, dword [edi + 0x3c]
add ebx, edi
je 0x1002cb1b
lea eax, [ebx + 0x78]
test eax, eax
jne 0x1002cb23
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [eax]
add eax, edi
push esi
mov ecx, dword [eax + 0x1c]
mov esi, dword [eax + 0x20]
add ecx, edi
add esi, edi
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
add ecx, edi
mov dword [ebp - 4], esi
xor esi, esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x1002cb7a
lea esp, [esp]
movsx eax, word [ecx + esi*2]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push edx
mov eax, dword [eax + esi*4]
add eax, edi
push eax
call dword [sym.imp.MSVCR110.dll__stricmp]
add esp, 8
test eax, eax
je 0x1002cb83
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
inc esi
cmp esi, dword [ebp - 8]
jb 0x1002cb50
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
pop esi
mov eax, dword [ecx + eax*4]
add eax, dword [ebx + 0x34]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret