joyce8/EMBER2024-capa huggingface dataset:
Function at 0x111611c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e8683
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x11279148]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
push 0x1127ef5c
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call esi
mov edi, eax
sub eax, ebx
cmp eax, 0x64
jb 0x11161216
push eax
push str.Warning._took__d_ms_to_get_simap_lock_n
call fcn.111bd7b0
add esp, 8
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov ecx, 0x1127f1d8
call fcn.110446a0
mov eax, dword [eax]
cmp eax, dword [0x1127f1dc]
je 0x1116128a
mov ebx, dword [eax + 0x10]
test ebx, ebx
jne 0x11161250
push 0x3793
push str.e:_nsmsrc_nsm14101410fclient32platnt.cpp
push 0x11231a88
call fcn.11067750
add esp, 0xc
call esi
push 0x1127ef5c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
sub eax, edi
cmp eax, 0x64
jb 0x11161276
push eax
push str.Warning._simap_lock_held_for__d_ms_n
call fcn.111bd7b0
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call esi
push 0x1127ef5c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
sub eax, edi
cmp eax, 0x64
jb 0x111612b0
push eax
push str.Warning._simap_lock_held_for__d_ms_n
call fcn.111bd7b0
add esp, 8
push 0x1127ef5c
mov dword [ebp - 0x10], 0x1127ef5c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov ecx, 0x1127f1d8
mov dword [ebp - 4], ebx
call fcn.110446a0
mov eax, dword [eax]
cmp eax, dword [0x1127f1dc]
je 0x11161304
mov esi, dword [eax + 0x10]
cmp esi, ebx
jne 0x1116137e
push 0x379d
push str.e:_nsmsrc_nsm14101410fclient32platnt.cpp
push 0x11231a88
call fcn.11067750
jmp 0x1116137b
push 0x518
call fcn.111709c0
add esp, 4
mov dword [ebp - 0x14], eax
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x1116132b
push edi
mov ecx, eax
call fcn.11147cd0
mov esi, eax
jmp 0x1116132d
xor esi, esi
mov byte [ebp - 4], bl
cmp esi, ebx
jne 0x1116134b
push 0x37a2
push str.e:_nsmsrc_nsm14101410fclient32platnt.cpp
push 0x11231a88
call fcn.11067750
add esp, 0xc
push ebx
lea ecx, [ebp - 0x18]
push ecx
mov ecx, 0x1127f1d8
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
call fcn.11170ee0
push eax
lea edx, [ebp - 0x18]
push edx
mov ecx, 0x1127f1d8
call fcn.1105c5a0
push esi
push edi
push str.info._new_psi__d____x_n
call fcn.111bd7b0
add esp, 0xc
push 0x1127ef5c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x11161870
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e86f6
mov eax, dword fs:[0]
push eax
mov eax, 0x4368
call fcn.111d92c0
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4368], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x1127aa68]
push 0
push 0
push str.UsePsapi
push 0x11218928
mov dword [ebp - 0x4364], eax
call fcn.110bbc00
push eax
lea ecx, [ebp - 0x4354]
call fcn.110fb700
lea ecx, [ebp - 0x4360]
push ecx
lea ecx, [ebp - 0x4354]
mov dword [ebp - 4], 0
call fcn.110fbd80
mov edi, dword [ebp - 0x4360]
mov byte [ebp - 4], 1
nop
lea edx, [ebp - 0x4374]
push edx
lea ecx, [ebp - 0x4354]
call fcn.110fbda0
mov esi, dword [ebp - 0x435c]
cmp esi, dword [eax + 4]
jne 0x11161925
cmp edi, dword [eax]
jne 0x11161925
xor bl, bl
jmp 0x11161927
mov bl, 1
mov eax, dword [ebp - 0x436c]
test eax, eax
je 0x11161942
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x436c], 0
test bl, bl
je 0x111619e8
cmp byte [esi + 0x4060], 0
je 0x11161963
mov ecx, dword [esi + 0x4058]
mov eax, edi
add eax, eax
mov eax, dword [ecx + eax*8 + 4]
jmp 0x11161967
mov eax, dword [esi + edi*4 + 0x24]
test eax, eax
je 0x111619c1
push edi
mov ecx, esi
call fcn.110fba20
test eax, eax
jle 0x111619c1
push eax
call fcn.111611c0
mov esi, eax
add esp, 4
test esi, esi
je 0x111619c1
mov ecx, esi
call fcn.1114d080
test eax, eax
je 0x111619c1
push 0x104
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x4360]
call fcn.110fc150
test eax, eax
je 0x111619bb
mov ecx, dword [ebp + 0xc]
push ecx
push esi
push eax
call dword [ebp - 0x4368]
add esp, 0xc
mov edi, dword [ebp - 0x4360]
mov eax, dword [ebp - 0x4358]
test eax, eax
je 0x111619dc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x4358], 0
inc edi
mov dword [ebp - 0x4360], edi
jmp 0x11161900
mov eax, dword [ebp - 0x4358]
test eax, eax
je 0x111619f9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x4364]
cmp eax, 0x64
jb 0x11161a18
push eax
push str.EnumProcessesInSessionsWithClients_took__d_ms_n
call fcn.111bd7b0
add esp, 8
lea ecx, [ebp - 0x4354]
mov dword [ebp - 4], 0xffffffff
call fcn.110fb930
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret 8
Function at 0x11161a50
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e8728
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x11279148]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], 1
call ebx
mov esi, eax
push 0x1127ef5c
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], 0x1127ef5c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call ebx
mov dword [ebp - 0x18], eax
sub eax, esi
cmp eax, 0x64
jb 0x11161ab8
push eax
push str.Warning._took__d_ms_to_get_simap_lock_n
call fcn.111bd7b0
add esp, 8
mov ecx, dword [0x1127f1dc]
mov esi, dword [ecx]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
cmp esi, ecx
je 0x11161b46
mov eax, dword [esi + 0x10]
cmp dword [eax + 0x60], 0
je 0x11161afc
mov edx, dword [ebp + 8]
cmp edx, dword [eax]
je 0x11161afc
add eax, 0x468
push edi
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x11161bb5
mov ecx, dword [0x1127f1dc]
cmp byte [esi + 0x15], 0
jne 0x11161b42
mov eax, dword [esi + 8]
cmp byte [eax + 0x15], 0
jne 0x11161b21
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x15], 0
jne 0x11161b42
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x15], 0
je 0x11161b15
jmp 0x11161b42
mov eax, dword [esi + 4]
cmp byte [eax + 0x15], 0
jne 0x11161b40
lea ebx, [ebx]
cmp esi, dword [eax + 8]
jne 0x11161b40
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x11161b30
mov esi, eax
cmp esi, ecx
jne 0x11161ace
mov eax, dword [ebp + 8]
push eax
call fcn.111611c0
push 0xf
add eax, 0x468
push edi
push eax
call dword [sym.imp.MSVCR100.dll_wcsncpy]
add esp, 0x10
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
push ecx
push edi
push edx
push str.SetTSModeClientName__d___s__ret__d_n
call fcn.111bd7b0
add esp, 0x10
call ebx
push 0x1127ef5c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
sub eax, dword [ebp - 0x18]
cmp eax, 0x64
jb 0x11161b9e
push eax
push str.Warning._simap_lock_held_for__d_ms_n
call fcn.111bd7b0
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x10], 0
jmp 0x11161b61
Function at 0x11161ee0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e87d6
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov edx, 7
xor eax, eax
xor edi, edi
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x14], eax
mov dword [ebp - 0x38], ebx
mov word [ebx + 4], di
mov dword [ebx + 0x34], edx
xor edx, edx
mov dword [ebx + 0x30], eax
mov dword [ebp - 4], eax
mov word [ebx + 0x20], dx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
mov eax, ecx
mov dword [ebx], edx
lea edx, [eax + 2]
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x34], edx
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x11161f60
sub eax, dword [ebp - 0x34]
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.11004e40
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebx + 4]
mov byte [ebp - 4], 2
call fcn.11004cc0
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 1
jb 0x11161fa0
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [ebp - 0x30]
xor edx, edx
mov eax, esi
mov word [ebp - 0x2c], dx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x11161fc0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.11004e40
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebx + 0x20]
mov byte [ebp - 4], 3
call fcn.11004cc0
cmp dword [ebp - 0x18], 8
jb 0x11162003
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov edx, dword [ebp + 0x14]
add esp, 4
mov dword [ebx + 0x3c], edx
jmp 0x11162009
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x3c], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret 0x10
Function at 0x11163440
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x2c], 0
jne 0x11163497
mov eax, dword [ebp + 0x14]
push eax
push str.Warning._SendToVistaPipe_no_pipe__from_s_n
call fcn.111bd7b0
add esp, 8
mov ecx, esi
call fcn.1114d080
test eax, eax
jne 0x11163492
cmp dword [0x1127ad00], eax
je 0x11163492
cmp dword [esi + 0x54], eax
jne 0x11163492
mov ecx, dword [esi]
push eax
push 1
push ecx
mov ecx, dword [0x1127b21c]
call fcn.11162e10
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
pop esi
pop ebp
ret
push ebx
push edi
lea edi, [esi + 0x38]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x2c]
push 0
lea edx, [ebp + 0x10]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp + 0x10], ebx
push edi
sete bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov al, bl
pop ebx
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x10], 0xffffffff
jne 0x111634e2
mov eax, dword [0x1127ad0c]
mov dword [ebp + 0x10], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
push 0x1127ef5c
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call esi
mov edi, eax
sub eax, ebx
cmp eax, 0x64
jb 0x11163513
push eax
push str.Warning._took__d_ms_to_get_simap_lock_n
call fcn.111bd7b0
add esp, 8
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp - 4]
push edx
mov ecx, 0x1127f1d8
call fcn.110446a0
mov eax, dword [eax]
cmp eax, dword [0x1127f1dc]
jne 0x1116355e
call esi
push 0x1127ef5c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
sub eax, edi
cmp eax, 0x64
jb 0x11163555
push eax
push str.Warning._simap_lock_held_for__d_ms_n
call fcn.111bd7b0
add esp, 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x10]
call esi
push 0x1127ef5c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
sub eax, edi
cmp eax, 0x64
jb 0x11163587
push eax
push str.Warning._simap_lock_held_for__d_ms_n
call fcn.111bd7b0
add esp, 8
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ebx
push ecx
push edx
call fcn.11163440
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x11163600
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e89c0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x11279148]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, eax
push 0x1127ef5c
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], 0x1127ef5c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call edi
mov ebx, eax
sub eax, esi
mov dword [ebp - 0x1c], ebx
cmp eax, 0x64
jb 0x11163663
push eax
push str.Warning._took__d_ms_to_get_simap_lock_n
call fcn.111bd7b0
add esp, 8
mov edx, dword [0x1127f1dc]
mov esi, dword [edx]
mov dword [ebp - 4], 0
cmp esi, edx
je 0x11163793
mov edi, dword [esi + 0x10]
cmp dword [edi + 0x1c], 0
jne 0x11163741
lea ecx, [ebp - 0x3c]
call fcn.110e31b0
push 6
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0
call fcn.110e3e70
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [edx + 0xc]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], 2
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call edx
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0xa4]
lea ecx, [ebp - 0x3c]
call edx
test al, al
jne 0x111636f0
push 0x13a
push str.e:_nsmsrc_nsm14101410fctl32DataStream.h
push str.IsA__
call fcn.11067750
add esp, 0xc
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0xa4]
mov ebx, dword [ebp - 0x30]
lea ecx, [ebp - 0x3c]
call edx
test al, al
jne 0x1116371c
push 0x135
push str.e:_nsmsrc_nsm14101410fctl32DataStream.h
push str.IsA__
call fcn.11067750
add esp, 0xc
mov eax, dword [ebp - 0x28]
push str.TerminateVistaUI
push edi
push ebx
push eax
call fcn.11163440
add esp, 0x10
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.110e4090
mov edx, dword [0x1127f1dc]
cmp byte [esi + 0x15], 0
jne 0x11163782
mov ecx, dword [esi + 8]
cmp byte [ecx + 0x15], 0
jne 0x11163766
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
jne 0x11163762
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
je 0x11163758
mov esi, ecx
jmp 0x11163782
mov eax, dword [esi + 4]
cmp byte [eax + 0x15], 0
jne 0x11163780
nop
cmp esi, dword [eax + 8]
jne 0x11163780
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x11163770
mov esi, eax
cmp esi, edx
jne 0x1116367a
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [ebp - 0x1c]
call edi
push 0x1127ef5c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
sub eax, ebx
cmp eax, 0x64
jb 0x111637b9
push eax
push str.Warning._simap_lock_held_for__d_ms_n
call fcn.111bd7b0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x11169d30
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1127b21c]
mov ecx, dword [0x1128075c]
mov edx, dword fs:[0x2c]
push ebx
mov ebx, dword [eax + 0x24]
push esi
push edi
mov edi, dword [edx + ecx*4]
mov eax, dword [edi + 8]
push 0
mov esi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
call fcn.111556d0
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0xc]
push 0
push edx
mov edx, dword [ebp + 0x18]
mov dword [edi + 8], 0
call fcn.11169480
add esp, 0x10
cmp dword [ebp + 0x10], 1
je 0x11169dab
mov ecx, dword [0x1127aa68]
push 0
push 0
push str.LogToEvent
push str.Client
call fcn.110bbc00
test eax, eax
je 0x11169e12
push str.PCIapp
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x11169e12
mov edx, dword [ebp + 0x1c]
xor eax, eax
test edx, edx
jle 0x11169de2
mov ecx, dword [ebp + 0x20]
add ecx, 0xfffffffc
lea ecx, [ecx]
mov ebx, dword [ecx + 4]
add ecx, 4
mov dword [ebp + eax*4 - 0x18], ebx
inc eax
cmp eax, edx
jl 0x11169dd0
mov ebx, dword [ebp - 4]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 0xc]
and eax, 4
push eax
mov eax, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0x14]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
cmp dword [edi + 8], 0
je 0x11169e32
push 0x577
push str.e:_nsmsrc_nsm14101410fclient32platnt.cpp
push str.hImpersonateUser__NULL
call fcn.11067750
add esp, 0xc
mov ecx, dword [ebp - 8]
push 0
mov esi, ebx
mov dword [edi + 8], ecx
call fcn.11155710
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x1116b770
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x250
lea eax, [ebp - 0x664]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
test esi, esi
je 0x1116b880
push esi
lea ecx, [ebp - 0x414]
push 0x112112dc
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp word [esi], 0
je 0x1116b880
push ebx
lea edx, [ebp - 0x664]
push edx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
sete al
xor ecx, ecx
mov dword [ebp - 0x668], ebx
mov word [ebp - 0x20c], cx
test eax, eax
jne 0x1116b87f
push edi
mov edi, dword [sym.imp.MSVCR100.dll__wremove]
cmp word [ebp - 0x638], 0x2e
je 0x1116b832
lea edx, [ebp - 0x638]
push edx
push esi
lea eax, [ebp - 0x20c]
push 0x11207c1c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x20c]
push ecx
call edi
add esp, 0x14
lea edx, [ebp - 0x664]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1116b802
push esi
call dword [sym.imp.MSVCR100.dll__wrmdir]
add esp, 4
mov edi, eax
call dword [sym.imp.MSVCR100.dll__errno]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebx]
push eax
push edi
push esi
push str.rmdir__s__ret__d__errno_d__lasterr_d_n
call fcn.111bd7b0
mov ecx, dword [ebp - 0x668]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.111d9022
mov esp, ebp
pop ebp
ret
Function at 0x1116e810
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push 0x114
mov esi, ecx
lea eax, [ebp - 0x118]
push edi
push eax
mov dword [esi], vtable.CPrinterInfo.0
mov dword [esi + 8], edi
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ebx, 2
cmp dword [ebp - 0x108], ebx
jne 0x1116e86f
lea ebx, [edi + 6]
mov dword [ebp - 0x11c], edi
lea edi, [esi + 4]
mov dword [edi], 0
mov dword [ebp - 0x120], 0
jmp 0x1116e890
mov eax, dword [ebp - 0x11c]
mov ecx, dword [esi + 8]
push edi
lea edx, [ebp - 0x11c]
push edx
push eax
push ecx
push 2
push 0
push ebx
call sub.WINSPOOL.DRV_EnumPrintersW
test eax, eax
jne 0x1116e8e8
mov dword [edi], eax
cmp dword [ebp - 0x11c], eax
je 0x1116e8d6
mov edx, dword [esi + 8]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0x11c]
push eax
call fcn.111709c0
add esp, 8
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x120]
inc eax
mov dword [ebp - 0x120], eax
cmp eax, 0xa
jl 0x1116e890
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.111d9022
mov esp, ebp
pop ebp
ret

Function at 0x1116f190
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push 0x28
mov dword [ebp - 0x2c], 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1116f1ce
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x34]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1116f1be
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x20], edx
lea edx, [ebp - 0x14]
push edx
push 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push 0
push ecx
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 0
call esi
test eax, eax
je 0x1116f24d
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
or dword [ebp - 8], 2
push 0
push 0
push ecx
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
push 0
push eax
mov dword [ebp - 0x14], 1
call esi
test eax, eax
jne 0x1116f25e
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.111d9022
mov esp, ebp
pop ebp
ret
Function at 0x1116f561
Capabilities:
Resume thread

Disassembly:
cmp dword [ebp - 0x2f4], 0
jne 0x1116f592
mov eax, dword [ebp - 0x2f0]
test eax, eax
je 0x1116f588
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x2f0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2ec], 0
ret

Function at 0x1116f5a0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push 4
lea ecx, [ebp + 0xc]
push ecx
add edx, 0xfffffffc
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov esi, eax
test esi, esi
je 0x1116f5e3
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x1116f5d7
xor esi, esi
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1116f6b0
Capabilities:
Delete file
Move file

Disassembly:
mov dword [ecx], vtable.NSMRecordConnection.0
jmp fcn.110d83f0