joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180082f9
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push esi
push edi
push str.Global_MSIExecute
xor edi, edi
push edi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
test esi, esi
jne 0x1800832e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1800836f
test eax, eax
jle 0x1800835d
movzx edi, ax
or edi, 0x80070000
jmp 0x1800836f
push 0x493e0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18008368
cmp eax, 0x80
je 0x18008368
cmp eax, 0x102
je 0x18008361
cmp eax, 0xffffffff
je 0x18008358
mov edi, 0x80004005
jmp 0x1800836f
call fcn.18011478
mov edi, eax
jmp 0x1800836f
mov edi, 0x800705b4
jmp 0x1800836f
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
je 0x1800837a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x180085bb
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov esi, ecx
mov edi, edx
mov dword [ebp - 8], edi
cmp esi, 0x40
ja 0x180085e1
push dword [ebp + 8]
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
jmp 0x18008675
push ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
mov dword [ebp - 0xc], eax
mov byte [ebp - 1], bl
mov ecx, ebx
lea eax, [ecx + 0x40]
mov dword [ebp - 0x10], eax
cmp eax, esi
ja 0x18008601
push 0x40
pop edi
jmp 0x18008605
mov edi, esi
sub edi, ecx
mov eax, dword [ebp + 8]
sub eax, ebx
push eax
push 1
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, eax
cmp ecx, 0x102
je 0x18008672
cmp ecx, 0xffffffff
je 0x18008672
cmp ecx, 0x80
jb 0x1800863c
lea eax, [edi + 0x80]
cmp ecx, eax
jae 0x1800863c
mov byte [ebp - 1], 1
cmp dword [ebp + 8], 0xffffffff
je 0x18008655
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
sub ebx, dword [ebp - 0xc]
cmp ebx, dword [ebp + 8]
jbe 0x18008655
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 8], 0x100
cmp ecx, esi
jb 0x180085f2
movzx eax, byte [ebp - 1]
neg eax
sbb eax, eax
and eax, 0x80
jmp 0x18008674
mov eax, ecx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x18009408
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 4]
call fcn.180058cd
mov bl, byte [ebp + 0xc]
push 0
push 0x10000000
movzx eax, bl
add eax, 3
push eax
xor eax, eax
test bl, bl
push 0
push dword [ebp + 0x14]
sete al
dec eax
and eax, 0x102
inc eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x18009456
call fcn.18011478
jmp 0x18009478
test bl, bl
je 0x1800946c
push 0x2000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1800944f
and dword [esi + 0xc], 0
xor bl, 1
mov byte [esi + 8], bl
xor eax, eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x18009507
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x1819f008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, ebx
push edi
mov edi, edx
call fcn.180087b2
push ecx
push ecx
mov edx, esi
lea ecx, [ebp - 0x260]
call fcn.1800b6e3
push 0x250
lea eax, [ebp - 0x25c]
push 0
push eax
call fcn.1812b9b0
push edi
lea edx, [ebp - 0x260]
lea ecx, [ebp - 0x268]
call fcn.180057dc
add esp, 0x18
lea ecx, [ebp - 0x25c]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x268]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.18003476
cmp esi, 0xffffffff
jne 0x1800958f
call fcn.18011478
mov edi, eax
jmp 0x180095fc
cmp dword [ebp - 0x25c], 0x80
je 0x180095a4
test byte [ebp - 0x25c], 0x10
jne 0x180095d9
lea eax, [ebp - 0x230]
push eax
lea edx, [ebp - 0x260]
lea ecx, [ebp - 0x264]
call fcn.180057dc
pop ecx
lea eax, [ebp - 0x264]
mov ecx, ebx
push eax
call fcn.180087da
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.18003476
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800958f
call fcn.18011478
mov edi, eax
cmp edi, 0x80070012
jne 0x180095fc
xor edi, edi
cmp esi, 0xffffffff
je 0x18009608
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x260]
add ecx, 0xfffffff0
call fcn.18003476
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18128eaf
leave
ret

Function at 0x18009b66
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push 0
push eax
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18009b90
call fcn.18011478
jmp 0x18009bab
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
test ecx, ecx
je 0x18009b9c
mov dword [ecx], eax
add dword [esi + 0xc], eax
sub eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0x80004005
pop esi
leave
ret 0xc

Function at 0x1800a12e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x1819f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x802
lea eax, [ebp - 0x808]
mov edi, edx
push 0
push eax
mov ebx, ecx
call fcn.1812b9b0
mov esi, dword [0x181a76bc]
lea ecx, [ebp - 0x80c]
xor edx, edx
call fcn.1800d16b
push edi
push str.baselogging.cc
push 0
push esi
push dword [ebp - 0x80c]
lea eax, [ebp - 0x808]
push ebx
push str.Exception__x_in__s__s__u_r_n_r_n_hs:_d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x80c]
add esp, 0x2c
lea ecx, [ecx - 0x10]
call fcn.18003476
lea ecx, [ebp - 0x808]
call fcn.180114b6
push 0x250012
push str.Exception
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebx
sub eax, 3
je 0x1800a1e2
sub eax, 1
jne 0x1800a1d3
int3
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.18128eaf
leave
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1800b84a
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
test edi, edi
jle 0x1800b966
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
cmp edi, 2
jle 0x1800b8c9
sub edx, 4
js 0x1800b966
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + ecx]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
add ecx, dword [ebp + 0x10]
mov al, byte [eax + ecx]
mov byte [esi + 1], al
movzx eax, byte [ebx + 2]
movzx ecx, byte [ebx + 1]
shr eax, 6
and ecx, 0xf
add eax, dword [ebp + 0x10]
mov al, byte [eax + ecx*4]
mov ecx, dword [ebp + 0x10]
mov byte [esi + 2], al
movzx eax, byte [ebx + 2]
add ebx, 3
and eax, 0x3f
mov al, byte [eax + ecx]
mov byte [esi + 3], al
add esi, 4
sub edi, 3
jmp 0x1800b865
sub edi, 1
je 0x1800b929
sub edi, 1
jne 0x1800b95f
sub edx, 3
js 0x1800b966
movzx eax, byte [ebx]
mov edi, dword [ebp + 0x10]
shr eax, 2
mov al, byte [eax + ecx]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
add ecx, edi
mov al, byte [eax + ecx]
mov byte [esi + 1], al
movzx eax, byte [ebx + 1]
and eax, 0xf
mov al, byte [edi + eax*4]
mov byte [esi + 2], al
add esi, 3
cmp byte [ebp + 0x14], 0
je 0x1800b95f
lea eax, [edx - 1]
test eax, eax
js 0x1800b966
mov byte [esi], 0x3d
inc esi
jmp 0x1800b95f
sub edx, 2
js 0x1800b966
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + ecx]
mov byte [esi], al
movzx eax, byte [ebx]
and eax, 3
add eax, eax
mov al, byte [ecx + eax*8]
mov byte [esi + 1], al
add esi, 2
cmp byte [ebp + 0x14], 0
je 0x1800b95f
lea eax, [edx - 2]
test eax, eax
js 0x1800b966
mov word [esi], 0x3d3d
add esi, 2
sub esi, dword [ebp + 8]
mov eax, esi
jmp 0x1800b968
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1800d642
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea esi, [ecx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x1800d683
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x1800d683
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x1800d65e
xor al, al
jmp 0x1800d685
mov al, 1
pop esi
leave
ret 4
Function at 0x1800d6de
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x1819f008]
xor eax, esp
mov dword [esp + 0x260], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
push edi
mov ecx, eax
mov edi, edx
call fcn.180087b2
mov ecx, dword [esi]
call fcn.1800947e
test al, al
jne 0x1800d722
mov eax, 0x80070003
jmp 0x1800d7c3
push edi
mov edx, esi
lea ecx, [esp + 0x18]
call fcn.1800d7d8
mov dword [esp], 0x250
lea eax, [esp + 0x1c]
xor ebx, ebx
push ebx
push eax
call fcn.1812b9b0
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x24]
add esp, 0xc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1800d765
call fcn.18011478
mov ebx, eax
jmp 0x1800d7b9
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.180064ee
pop ecx
test al, al
je 0x1800d79e
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x14]
call fcn.1800589b
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.180087da
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.18003476
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800d769
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [esp + 0x14]
lea ecx, [edi - 0x10]
call fcn.18003476
mov eax, ebx
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18128eaf
mov esp, ebp
pop ebp
ret

Function at 0x1800e1f6
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1819f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x234], ecx
push edi
push 2
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x1800e292
push 0x22c
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.1812b9b0
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1800e292
mov ecx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x228]
cmp eax, dword [ecx + 0x1c]
jne 0x1800e275
mov eax, dword [ebp - 0x218]
test eax, eax
jne 0x1800e28e
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1800e25a
mov edi, 0x80004005
jmp 0x1800e299
mov dword [ebx], eax
jmp 0x1800e299
call fcn.18011478
mov edi, eax
cmp esi, 0xffffffff
je 0x1800e2a5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18128eaf
leave
ret 4
Function at 0x1800e7a7
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1220
call fcn.1814ba20
mov eax, dword [0x1819f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
xor ebx, ebx
mov edi, edx
push ebx
push 0x410
mov dword [ebp - 0x1210], edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1800e937
push 0x5c
pop edx
mov ecx, edi
call fcn.1800c05c
mov edi, eax
cmp edi, 0xffffffff
setne byte [ebp - 0x1220]
call fcn.18002e11
push eax
lea ecx, [ebp - 0x1218]
call fcn.18005bd3
cmp edi, 0xffffffff
je 0x1800e835
mov ecx, dword [ebp - 0x1210]
lea edx, [ebp - 0x1218]
call fcn.1800e948
test eax, eax
js 0x1800e922
mov edi, dword [ebp - 0x1218]
mov dword [ebp - 0x1210], edi
jmp 0x1800e83b
mov edi, dword [ebp - 0x1210]
push 0x1000
lea eax, [ebp - 0x120c]
push ebx
push eax
call fcn.1812b9b0
add esp, 0xc
mov dword [ebp - 0x121c], ebx
lea eax, [ebp - 0x121c]
push eax
push 4
lea eax, [ebp - 0x120c]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
jne 0x1800e89d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.1800edd6
test al, al
je 0x1800e922
push dword [ebp - 0x1220]
mov edx, edi
mov ecx, esi
call fcn.1800e700
pop ecx
mov bl, al
jmp 0x1800e922
mov edi, dword [ebp - 0x121c]
shr edi, 2
cmp edi, 1
jbe 0x1800e8ae
xor edi, edi
inc edi
mov dword [ebp - 0x1214], ebx
test edi, edi
je 0x1800e922
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.1812b9b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov eax, dword [ebp - 0x1214]
push dword [ebp + eax*4 - 0x120c]
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x1800e90d
push dword [ebp - 0x1220]
mov edx, dword [ebp - 0x1210]
lea ecx, [ebp - 0x20c]
call fcn.1800e669
pop ecx
test al, al
jne 0x1800e920
mov eax, dword [ebp - 0x1214]
inc eax
mov dword [ebp - 0x1214], eax
cmp eax, edi
jl 0x1800e8b8
jmp 0x1800e922
mov bl, 1
mov ecx, dword [ebp - 0x1218]
add ecx, 0xfffffff0
call fcn.18003476
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18128eaf
leave
ret

Function at 0x1800ef4f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x40
xor edi, edi
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x50]
mov esi, edx
push edi
push eax
call fcn.1812b9b0
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x54]
add esp, 0xc
mov dword [ebp - 0x28], 0x80
push ebx
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1800ef9c
call fcn.18011478
mov edi, eax
jmp 0x1800efdc
movzx ecx, byte [0x181a7c1c]
neg ecx
sbb ecx, ecx
and ecx, 0x181a75e0
je 0x1800efdc
push 7
pop edx
xor eax, eax
mov dword [ebp - 0x10], ecx
inc eax
mov dword [ebp - 0xc], edx
push eax
push edx
mov dword [ebp - 8], eax
call fcn.180049c7
push dword [ebx + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push str._Started_process___u_
push eax
call fcn.18002fb3
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1800efe3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x50]
mov edi, edx
push ebx
push eax
call fcn.1812b9b0
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x54]
add esp, 0xc
mov dword [ebp - 0x28], 0x80
push esi
push eax
push ebx
cmp dword [ebp + 8], ebx
jne 0x1800f01f
push ebx
push ebx
jmp 0x1800f027
push dword [ebp + 8]
push 0x400
push ebx
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1800f03d
call fcn.18011478
jmp 0x1800f07f
movzx ecx, byte [0x181a7c1c]
neg ecx
sbb ecx, ecx
and ecx, 0x181a75e0
je 0x1800f07d
push 7
pop edx
xor eax, eax
mov dword [ebp - 0x10], ecx
inc eax
mov dword [ebp - 0xc], edx
push eax
push edx
mov dword [ebp - 8], eax
call fcn.180049c7
push dword [esi + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push str._Started_process___u_
push eax
call fcn.18002fb3
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1800f189
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edx]
sub ecx, 0x10
call fcn.18005c50
add eax, 0x10
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.1800d9fc
push 0x20
lea ecx, [ebp - 4]
call fcn.1800597a
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.180059a7
push 0x40
xor ebx, ebx
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.1812b9b0
mov esi, dword [ebp - 4]
xor ecx, ecx
mov dword [ebp - 0x40], str.WinSta0Default
inc ecx
mov edx, 0x104
add esp, 0xc
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x1800f209
push edx
lea ecx, [ebp - 4]
call fcn.18005ca9
mov esi, dword [ebp - 4]
push dword [ebp + 0x14]
lea eax, [ebp - 0x48]
push eax
push ebx
push dword [ebp + 0x10]
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
mov edi, eax
call fcn.180058f6
test edi, edi
jne 0x1800f23c
call fcn.18011478
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.18003476
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x1800f3bf
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1819f008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x18]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1800f435
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], esi
push eax
push str.SeDebugPrivilege
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1800f435
mov eax, dword [ebp - 0x20]
push esi
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1800f43c
call fcn.18011478
mov esi, eax
cmp dword [ebp - 0x18], 0
je 0x1800f44b
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.18128eaf
leave
ret

Function at 0x1800f4d2
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
call fcn.1800f45a
mov ebx, eax
or edi, 0xffffffff
xor ecx, ecx
cmp ebx, edi
je 0x1800f529
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ecx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], ecx
push eax
push 8
push ebx
push ecx
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x1800f51d
mov eax, dword [ebp - 8]
push esi
push eax
mov esi, dword [eax]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
test esi, esi
pop esi
sete al
xor ecx, ecx
jmp 0x1800f521
xor ecx, ecx
mov al, cl
test al, al
je 0x1800f529
mov eax, ebx
jmp 0x1800f571
lea eax, [ebp - 4]
mov dword [ebp - 0xc], ecx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 4], ecx
push eax
push 1
push ecx
push ecx
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
je 0x1800f56f
mov ecx, dword [ebp - 0xc]
xor eax, eax
cmp dword [ebp - 4], eax
jbe 0x1800f568
lea edx, [ecx + 8]
cmp dword [edx], 0
je 0x1800f562
inc eax
add edx, 0xc
cmp eax, dword [ebp - 4]
jb 0x1800f552
jmp 0x1800f568
imul eax, eax, 0xc
mov edi, dword [eax + ecx]
push ecx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x1800f575
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1819f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0xe8], 0x1817c904
mov edi, ecx
mov dword [ebp - 0xcc], esi
push ecx
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0xd0], esi
mov ebx, edx
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0xdc], esi
call fcn.1800ef1b
test al, al
jne 0x1800f5d3
mov esi, 0x80004005
jmp 0x1800f75d
lea ecx, [ebp - 0xc8]
call fcn.18005fde
push ecx
push ecx
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0xe8]
call fcn.18008f0d
test al, al
jne 0x1800f600
mov esi, 0x80004005
jmp 0x1800f752
lea ecx, [ebp - 0x114]
mov dword [ebp - 0xd8], 0x1817c5ec
mov dword [ebp - 0xd4], esi
call fcn.180038a6
push 0x12
push 1
lea eax, [ebp - 0x68]
push 0x1817bd14
push eax
call fcn.180034ed
add esp, 0x10
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x114]
push esi
push 0xc0100000
push eax
call fcn.18003923
lea ecx, [ebp - 0x68]
call fcn.180035d6
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x68]
push 0x1817bd14
push eax
call fcn.180034ed
add esp, 0x14
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x114]
push esi
push 0xc0100000
push eax
call fcn.18003923
lea ecx, [ebp - 0x68]
call fcn.180035d6
push esi
push 0xc0100000
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x114]
call fcn.18003923
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0xd8]
call fcn.180066a9
lea ecx, [ebp - 0xd8]
call fcn.1800678a
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0xf4]
push esi
push eax
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xf4], 0xc
push eax
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xec], 1
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1800f72b
push esi
push 1
push dword [ebp - 0xcc]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1800f72b
mov eax, dword [ebp - 0xcc]
mov dword [edi], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xd0], esi
mov dword [ebx], eax
jmp 0x1800f732
call fcn.18011478
mov esi, eax
lea ecx, [ebp - 0x114]
call fcn.180038ec
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xd8], 0x1817c5ec
call fcn.18003cbb
lea ecx, [ebp - 0xc8]
call fcn.180035d6
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0xe8], 0x1817c904
call fcn.180069c9
cmp dword [ebp - 0xd0], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1800f789
push dword [ebp - 0xd0]
call edi
cmp dword [ebp - 0xcc], 0
je 0x1800f79a
push dword [ebp - 0xcc]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18128eaf
leave
ret