joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e0f0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47a988
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42e129
inc eax
mov dword [esi + 0x10], eax
jmp 0x42e23c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42e13d
mov eax, 0xffffffc7
jmp 0x42e23e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42e14e
cmp dword [esi + 8], eax
jne 0x42e13d
cmp dword [esi + 8], eax
jne 0x42e167
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42e167
mov eax, 0xffffffc7
jmp 0x42e23e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42e17b
push eax
mov ecx, ebx
call fcn.0042d920
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401a70
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42e1ac
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401a90
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042d090
test eax, eax
mov dword [esp + 0x38], eax
je 0x42e1df
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x55ef78
call fcn.00401c70
mov eax, dword [esp + 0x38]
jmp 0x42e23e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042df50
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42e223
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042df70
mov esi, eax
test esi, esi
jne 0x42e253
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042df50
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42e1f5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x55ef78
call fcn.00401c70
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x55ef78
call fcn.00401c70
mov eax, esi
jmp 0x42e23e

Function at 0x432bf0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x432c50
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x432c50
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x432c50
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x432c50
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x432c90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43e780
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47b278
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004740d8
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043e0e0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00474006
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004708ca
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004708ca
push 1
push 0
push 0
mov ecx, esi
call fcn.00470872
push 1
push 0
push 1
mov ecx, esi
call fcn.00470872
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047414a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43e900
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47b298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004740d8
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043e0e0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00474006
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43e9c4
cmp dword [esp + 0x40], 1
jne 0x43e9c2
cmp ecx, eax
jge 0x43e9c4
mov eax, ecx
cmp eax, 0xc8
jge 0x43e9d0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043e780
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047414a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43f1d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47b343
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046ece7
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00474380
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047589c
test eax, eax
je 0x43f2ec
mov ecx, dword [esp + 0x3c]
call fcn.004743ad
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43f2b0
push edi
mov ecx, esi
call fcn.00471a15
mov ecx, esi
call fcn.0043f490
cmp dword [esp + 0x38], 1
jne 0x43f2e5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00471b50
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4414e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x441513
push esi
call fcn.0044f880
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44150c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x441599
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x441582
mov eax, dword [esi + 8]
test eax, eax
je 0x441537
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44157e
cmp eax, 2
je 0x441582
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44152a
cmp eax, 3
je 0x44155d
cmp eax, 1
jne 0x44152a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44152a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44152a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004415c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4415a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004415c0
add esp, 4
pop esi
ret

Function at 0x441e30
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x441e51
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x441e51
mov eax, dword [eax + 0x44]
test eax, eax
je 0x441e51
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x46fadd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46fb15
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046db94
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046db6c
jmp 0x46fb21
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4711d2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x471214
call fcn.00476c82
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x471214
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47120b
xor eax, eax
jmp 0x47121c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00471222
pop edi
pop esi
pop ebx
ret 4
Function at 0x4771b2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4771e0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4771fe
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00477118
jmp 0x4771fe
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4771fe
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00477118
test edi, edi
mov eax, edi
jne 0x4771e8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10007c1f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x10007c2e
pop dword [ebp - 0x14]
mov eax, 0x10007c2e
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x4fcb280d
sub dword [ebp - 0x24], 0x178e2c2
mov dword [ebp - 0x20], 0xe030fa06
add dword [ebp - 0x20], 0x5202523f
mov dword [ebp - 0x1c], 0xbea70a16
add dword [ebp - 0x1c], 0x8da53a18
mov dword [ebp - 0x18], 0x3e27bd8
add dword [ebp - 0x18], 0xfc1d8428
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xb7189cce
sub dword [ebp - 0x24], 0x42a63378
mov dword [ebp - 0x20], 0x18c17cab
add dword [ebp - 0x20], 0x28aae4ca
mov dword [ebp - 0x1c], 0xb3d971f8
add dword [ebp - 0x1c], 0xaf95fa74
mov dword [ebp - 0x18], 0xb3d475
sub dword [ebp - 0x18], 0xb3d475
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x5f2e1871
add eax, 0xb0d267df
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x358a2
push 0
call eax
mov ecx, 0x43bcee8b
sub ecx, 0x43bcab0e
xor esi, esi
add esi, eax
mov edx, 0x6c95f4e0
sub edx, 0x5c94fae0
add edx, dword [ebp - 0x14]
mov ebx, 0x65eeef0f
add ebx, 0xaa8ae1f9
mov dword [ebp - 4], 0x441723a6
mov edi, dword [edx]
add dword [ebp - 4], edi
sub edi, ebx
mov dword [esi], edi
xor dword [ebp - 8], 0xc209f336
add esi, 0xbaff6c6c
add esi, 0x45009398
add edx, 0x24788a35
add edx, 0xdb8775cf
loop 0x10007d48
add eax, 0xe75fd329
add eax, 0x18a12d9e
xor ebx, ebx
add ebx, eax
add eax, 0x106bca7b
sub eax, 0x106bca76
mov ecx, 0x33c920a3
add ecx, 0xdc36df5d
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x4bad51
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c5398
cmp edx, dword [eax]
je 0x4bad73
add eax, 8
inc ecx
cmp eax, 0x4c5428
jl 0x4bad64
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c5398]
jne 0x4baea1
mov eax, dword [0x4c9d24]
cmp eax, 1
je 0x4bae7b
test eax, eax
jne 0x4bada4
cmp dword [0x4c52c0], 1
je 0x4bae7b
cmp edx, 0xfc
je 0x4baea1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4baddb
lea eax, [ebp - 0x1a4]
push 0x4c0d58
push eax
call fcn.004bb730
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bbbc0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bae1e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bbbc0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c0d54
push edi
call fcn.004bda90
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c0d38
push eax
call fcn.004bb730
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bb740
lea eax, [ebp - 0xa0]
push 0x4c0d34
push eax
call fcn.004bb740
push dword [esi + 0x4c539c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bb740
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c0d0c
push eax
call fcn.004bda04
add esp, 0x2c
pop edi
jmp 0x4baea1
lea eax, [ebp + 8]
lea esi, [esi + 0x4c539c]
push 0
push eax
push dword [esi]
call fcn.004bbbc0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x11661174
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x117c3dc8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
test eax, eax
jne 0x116611b4
mov esi, str.Wtsapi32.dll
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x1166119f
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.WTSQueryUserToken
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x117c3dc8], eax
je 0x11661202
push ebx
push dword [ebp + 8]
call eax
mov edi, eax
test edi, edi
jne 0x11661202
call fcn.116cafa0
cmp eax, dword [ebp + 8]
je 0x11661202
push 1
push str.SeDebugPrivilege
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.116b7890
call fcn.11661dd4
push eax
call fcn.116b84e0
add esp, 0x10
mov esi, eax
push ebx
push dword [ebp + 8]
call dword [0x117c3dc8]
test esi, esi
mov edi, eax
je 0x11661202
call fcn.116b87f0
xor eax, eax
cmp dword [0x117d15f0], eax
je 0x11661230
cmp ebx, eax
je 0x11661212
mov eax, dword [ebx]
push eax
push dword [ebp + 8]
push edi
push str.CAdminTokenMgr::UseWTSQueryUserToken__Ret___d__dwSessionId__d__hToken__08x_
push str.AdminToken
push 0xffffffffffffffff
push 0x117d0d5c
call fcn.116ce860
add esp, 0x1c
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x11661346
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
je 0x11661429
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 8]
push eax
push 2
push dword [ebp + 8]
call fcn.116610b2
add esp, 0x10
test eax, eax
je 0x11661418
cmp dword [ebp - 8], ebx
je 0x11661418
lea eax, [ebp - 4]
mov byte [ebp - 0x1c], bl
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x1c]
push 2
push eax
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x11661418
push esi
push edi
mov edi, dword [ebp - 8]
xor esi, esi
cmp dword [edi], ebx
jbe 0x11661416
lea eax, [edi + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x116613f6
add dword [ebp - 0xc], 8
inc esi
cmp esi, dword [edi]
jb 0x116613d9
jmp 0x11661416
test byte [edi + esi*8 + 8], 8
push 1
lea eax, [edi + esi*8 + 8]
pop ecx
mov dword [ebp - 0x10], ecx
je 0x1166140c
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
test byte [eax], 4
je 0x11661416
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
pop edi
pop esi
cmp dword [ebp - 4], ebx
je 0x11661429
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call fcn.116610a0
cmp dword [0x117d15f0], ebx
pop ecx
pop ebx
je 0x11661464
mov eax, dword [ebp + 0x10]
push dword [eax]
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
push dword [ebp - 0x10]
push str.CAdminTokenMgr::IsInAdminGroup__bIsAdmin___d__hToken__08x__bOwner___d___bEnabled__d_
push str.AdminToken
push 0xffffffffffffffff
push 0x117d0d5c
call fcn.116ce860
add esp, 0x20
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x116616f2
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
je 0x11661784
cmp dword [ebp + 0x18], edi
je 0x11661784
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1166164d
mov ebx, eax
pop ecx
cmp ebx, edi
pop ecx
je 0x11661784
mov esi, dword [ebp + 0x14]
cmp esi, 0xffffffff
je 0x11661742
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push ebx
call fcn.116b5e70
pop ecx
test eax, eax
pop ecx
je 0x1166177b
cmp dword [ebp - 8], esi
jne 0x1166177b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 1
push ebx
call fcn.116610b2
add esp, 0x10
test eax, eax
je 0x1166177b
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x1166177b
push dword [eax]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1166177b
push ebx
call fcn.116612db
cmp dword [ebp + 0x18], eax
pop ecx
jbe 0x11661784
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
push dword [ebp - 4]
call fcn.116610a0
cmp dword [0x117d15f0], 0
pop ecx
mov edi, str.CAdminTokenMgr::IsMatchProcessToken__Match___d___hNewToken__08x___dwTargetProcessId___d____hTargetHandle__08x____dwSessionId__d_
mov esi, 0x117d0d5c
je 0x116617c3
push dword [ebp + 0x14]
xor eax, eax
test ebx, ebx
push dword [ebp + 0xc]
setne al
push dword [ebp + 8]
push ebx
push eax
push edi
push str.AdminTokenAll
push 0xffffffffffffffff
push esi
call fcn.116ce860
add esp, 0x24
test ebx, ebx
je 0x116617ed
cmp dword [0x117d15f0], 0
je 0x116617ed
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push 1
push edi
push str.AdminToken
push 0xffffffffffffffff
push esi
call fcn.116ce860
add esp, 0x24
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x11666a5c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1177bc54
call fcn.116d0630
sub esp, 0x434
cmp dword [0x117ceec4], 0
je 0x11666a7f
mov eax, dword [0x117ceec0]
jmp 0x11666c2d
push ebx
push esi
push edi
push 1
pop eax
mov esi, 0x20019
mov dword [0x117ceec4], eax
mov dword [0x117ceec0], eax
call fcn.116e3820
test eax, eax
je 0x11666aa2
mov esi, 0x20219
lea ecx, [ebp - 0x18]
call fcn.116a4fc0
and dword [ebp - 4], 0
push esi
push str.softwareTECOcular.3Agent
push SysStringLen
lea ecx, [ebp - 0x18]
call fcn.116a5130
push 4
test eax, eax
pop ebx
je 0x11666b23
mov esi, str.RunAs
push ebx
push esi
lea ecx, [ebp - 0x18]
call fcn.116a7600
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x18]
mov edi, eax
call fcn.116a52d0
movzx eax, al
test eax, eax
jne 0x11666af3
and dword [0x117ceec0], eax
jmp 0x11666b13
push 2
pop ecx
cmp eax, ecx
jne 0x11666b02
mov dword [0x117ceec0], ecx
jmp 0x11666b13
push 3
pop ecx
cmp eax, ecx
je 0x11666afa
cmp eax, ebx
jne 0x11666b13
mov dword [0x117ceec0], ebx
lea ecx, [ebp - 0x18]
call fcn.116a5180
test edi, edi
jne 0x11666c16
and word [ebp - 0x238], 0
mov edx, 0x81
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x236]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x43e]
mov word [ebp - 0x440], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
lea eax, [ebp - 0x440]
push 0x104
push eax
call fcn.116bbab0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], esi
add esp, 0xc
mov dword [ebp - 0x24], str.ingress_sdm.exe
mov dword [ebp - 0x20], str.ist.exe
mov dword [ebp - 0x1c], str.OGuard.exe
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x2c], 3
lea esi, [ebp - 0x24]
mov ebx, 0x103
push dword [esi]
lea eax, [ebp - 0x440]
push eax
push 0x117a01ec
lea eax, [ebp - 0x238]
push ebx
push eax
call fcn.116d0db0
add esp, 0x14
lea eax, [ebp - 0x238]
push eax
call edi
cmp eax, 0xffffffff
je 0x11666bfc
lea eax, [ebp - 0x440]
push str.winrdlv3.exe
push eax
push 0x117a01ec
lea eax, [ebp - 0x238]
push ebx
push eax
call fcn.116d0db0
add esp, 0x14
lea eax, [ebp - 0x238]
push eax
call edi
cmp eax, 0xffffffff
je 0x11666c0a
inc dword [ebp - 0x10]
add esi, 4
cmp dword [ebp - 0x10], 3
jb 0x11666ba1
jmp 0x11666c16
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x30]
mov dword [0x117ceec0], eax
mov esi, dword [0x117ceec0]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.116a50b0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret