joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4332bb
Capabilities:
Delete file
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
push edi
mov edi, eax
and eax, 0x100
xor ebx, ebx
and edi, 0xfffffcff
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0xf023f
test byte [esi + 0x1c], 1
mov dword [ebp - 0xc], eax
jne 0x433385
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
lea eax, [esi + 0x24]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x433369
push dword [ebp - 4]
call fcn.004334b3
mov ebx, eax
test ebx, ebx
jne 0x433369
push eax
push 0x80
push 2
push eax
push 1
push 0x40000000
lea eax, [esi + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x433365
push dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 8]
lea ebx, [ecx + edx + 4]
push eax
call fcn.00432439
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x43335c
or dword [esi + 0x1c], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x433376
lea eax, [esi + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 4], 0
je 0x433385
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [esi + 0x1c], 2
jne 0x4333d1
test ebx, ebx
jne 0x4333d1
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
lea eax, [esi + 0x24]
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4333cc
push dword [esi + 4]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x4333bc
or dword [esi + 0x1c], 2
jmp 0x4333c1
mov ebx, 0x15e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4333d1
mov ebx, 0x15e
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x4333da
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
test al, 1
je 0x43348a
test al, 2
je 0x43348a
mov eax, dword [esi + 0x20]
mov ecx, eax
push ebx
and eax, 0x100
xor ebx, ebx
and ecx, 0xfffffcff
neg eax
push edi
sbb eax, eax
and eax, 0xffffff00
lea edx, [ebp - 4]
push edx
add eax, 0xf023f
push eax
push ebx
lea eax, [esi + 0x24]
push eax
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x433476
cmp byte [ebp + 8], bl
je 0x433458
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [esi + 4]
mov dword [ebp + 8], ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x433458
push 0x50
pop edi
jmp 0x433476
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 0x14]
push ebx
push dword [esi + 4]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp edi, ebx
jne 0x433476
xor edi, edi
cmp dword [ebp - 4], ebx
je 0x433484
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
jmp 0x43348c
xor eax, eax
pop esi
leave
ret 0xc
Function at 0x433491
Capabilities:
Delete file

Disassembly:
add ecx, 0x22c
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
ret

Function at 0x4334b3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [esi + 4]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x433591
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [ecx + eax + 4]
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x43350c
mov dword [ebp - 8], 0xe
jmp 0x433580
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 8]
lea eax, [edi + eax + 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [esi + 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x433580
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 8]
mov dword [esi + 0x14], eax
mov dword [edi + ecx], eax
push dword [esi + 8]
push dword [esi + 4]
push edi
call fcn.00578180
mov eax, dword [ebp - 4]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
lea eax, [edi + eax + 4]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
add esp, 0xc
test eax, eax
je 0x43356f
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 4], edi
mov eax, dword [esi + 4]
xor edi, edi
mov dword [esi + 0x434], eax
mov dword [ebp - 8], edi
test edi, edi
je 0x433590
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
mov eax, dword [ebp - 8]
pop edi
leave
ret 4
Function at 0x433599
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
lea eax, [edi + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4335d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x433669
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4335f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x43365f
cmp ebx, esi
jne 0x4335fd
mov dword [ebp - 4], 0x54f
jmp 0x43365f
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [ebp - 8]
mov esi, ebx
mov dword [edi + 4], eax
mov dword [edi + 0x434], eax
call fcn.004323f7
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x43365f
push dword [edi + 4]
lea esi, [ebp - 0xc]
mov eax, ebx
call fcn.004322fc
test eax, eax
jl 0x43365f
mov ecx, dword [ebp - 0xc]
inc ecx
inc ecx
lea eax, [ecx + 4]
cmp eax, ebx
ja 0x43365f
mov eax, dword [edi + 4]
add eax, ecx
mov edx, dword [eax]
add eax, 4
sub ebx, ecx
sub ebx, 4
mov dword [edi + 0x14], edx
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x43381c
Capabilities:
Check if file exists
Create directory
Get file attributes
Link many functions at runtime

Disassembly:
push esi
push 0x67e5b8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlNtStatusToDosError
push eax
mov dword [0x6d6174], eax
call esi
push str.ZwQueryInformationFile
push dword [0x6d6174]
mov dword [0x6d6380], eax
call esi
push str.ZwCreateFile
push dword [0x6d6174]
mov dword [0x6d6390], eax
call esi
push 0x67e60c
push dword [0x6d6174]
mov dword [0x6d6388], eax
call esi
push str.ZwSetInformationFile
push dword [0x6d6174]
mov dword [0x6d6384], eax
call esi
push dword [esp + 8]
mov dword [0x6d638c], eax
mov esi, 0x6d6178
mov eax, 0x208
mov edx, esi
call fcn.0043229d
test eax, eax
jge 0x4338ae
xor eax, eax
push 0x57
mov word [0x6d6178], ax
pop eax
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4338ce
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4338ce
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop esi
ret
Function at 0x433a1b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x6bd6f8]
xor eax, ebp
mov dword [ebp + 0x190], eax
and dword [ebp - 0x7c], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x433ab8
push esi
push edi
mov edi, 0x208
push ebx
lea esi, [ebp - 0x80]
mov eax, edi
mov dword [ebp - 0x7c], 3
call fcn.004322fc
test eax, eax
jne 0x433ab6
mov eax, dword [ebp - 0x80]
shr eax, 1
je 0x433ab6
cmp word [ebx + eax*2], 0x5c
je 0x433a76
dec eax
jne 0x433a6a
jmp 0x433ab6
lea esi, [ebx + eax*2]
test esi, esi
je 0x433ab6
push 0x6d6178
mov eax, edi
lea edx, [ebp - 0x78]
call fcn.0043229d
push esi
lea edi, [ebp - 0x78]
call fcn.004322c8
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x433ab6
mov eax, edi
push eax
mov eax, 0x208
mov edx, ebx
call fcn.0043229d
and dword [ebp - 0x7c], 0
pop edi
pop esi
mov ecx, dword [ebp + 0x190]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
call fcn.0057340c
add ebp, 0x194
leave
ret
Function at 0x434447
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
mov eax, dword [0x6bd6f8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x684], eax
push 0x6d6178
mov eax, 0x208
lea edx, [ebp - 0x41c]
call fcn.0043229d
push str..Q
lea edi, [ebp - 0x41c]
call fcn.004322c8
lea eax, [ebp - 0x67c]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x434542
lea eax, [ebp - 0x650]
push eax
lea esi, [ebp - 0x680]
mov eax, 0x208
call fcn.004322fc
test eax, eax
jl 0x434525
mov eax, dword [ebp - 0x680]
shr eax, 1
sub eax, 4
lea esi, [eax + eax]
mov dword [ebp - 0x680], eax
push esi
lea eax, [ebp - 0x64e]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00578180
xor eax, eax
mov word [ebp + esi - 0x214], ax
add esp, 0xc
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
jne 0x434525
push dword [ebp - 0x684]
lea eax, [ebp - 0x42c]
push eax
call fcn.004532c2
pop ecx
pop ecx
test al, al
je 0x434542
lea eax, [ebp - 0x67c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4344a5
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0057340c
leave
ret

Function at 0x438728
Capabilities:
Initialize winsock library

Disassembly:
push 0x198
mov eax, 0x5add49
call fcn.00580bb4
mov edi, 0x6d7800
push 0x6d7804
mov dword [ebp - 0x1a4], edi
mov dword [0x6d7800], 0x68ae84
call fcn.0044e552
xor esi, esi
mov dword [ebp - 4], esi
push esi
push esi
push 1
push esi
mov dword [0x6d781c], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x6d7820], eax
mov dword [ebp - 4], 1
push 0x6d7824
mov dword [0x6d7800], 0x68b5ac
call fcn.004084d7
mov byte [ebp - 4], 2
push 0x6d7830
mov dword [0x6d782c], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x190
lea eax, [ebp - 0x1a0]
push esi
push eax
mov dword [0x6d7828], esi
call fcn.005780d0
add esp, 0xc
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.00580c37
ret
Function at 0x4387da
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0xc
mov eax, 0x5b43bf
call fcn.00580b4b
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
push dword [ebp + 8]
call fcn.004084d7
mov dword [ebp - 4], edi
mov esi, 0x100000
push esi
mov dword [ebp - 0x10], 1
call fcn.00573b6f
pop ecx
push esi
mov ebx, eax
push edi
push ebx
call fcn.005780d0
add esp, 0xc
push 0
mov eax, esi
sub eax, edi
push eax
lea eax, [edi + ebx]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x438835
add edi, eax
jmp 0x438819
push ebx
lea eax, [ebp + 0xc]
push eax
mov byte [edi + ebx], 0
call fcn.004083ec
mov dword [ebp - 4], 1
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041bb62
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov edi, dword [ebp + 8]
call fcn.00408591
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0040856e
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0040842d
push ebx
call fcn.00573a92
pop ecx
mov eax, edi
call fcn.00580c23
ret 8

Function at 0x43888e
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0x64
mov eax, 0x5add0b
call fcn.00580b4b
mov edi, ecx
xor esi, esi
inc esi
mov dword [ebp - 4], esi
push edi
call fcn.0041ce9d
xor ebx, ebx
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x4388b5
mov dword [ebp - 0x14], edi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.005780d0
mov dword [ebp - 0x70], edi
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
mov word [ebp - 0x40], si
call fcn.004084d7
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str._s__s
call fcn.004175e6
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea esi, [ebp - 0x10]
call fcn.004087a8
push eax
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x43896f
cmp dword [0x6bc38c], 3
jl 0x438942
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcessAsUser____i
push str.RunProcessWaitR
push 3
call fcn.00532652
add esp, 0x10
xor esi, esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0040856e
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.0040856e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040856e
mov eax, esi
call fcn.00580c23
ret
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x20]
call esi
xor esi, esi
inc esi
jmp 0x438944
Function at 0x43c028
Capabilities:
Get session user name

Disassembly:
push ebp
sub esp, 0xc8
lea ebp, [esp - 4]
mov eax, dword [0x6bd6f8]
xor eax, ebp
mov dword [ebp + 0xc8], eax
push 0x10
mov eax, 0x5b0e20
call fcn.00580b4b
xor esi, esi
mov dword [ebp - 4], esi
push 0x67e444
push edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
call fcn.0040852d
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], 1
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [ebp - 0x10], esi
cmp eax, 0xffffffff
je 0x43c0ed
lea ecx, [ebp - 0x10]
push ecx
push eax
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x43c0ed
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x43c0e4
xor eax, eax
push 0xc6
mov word [ebp], ax
lea eax, [ebp + 2]
push esi
push eax
call fcn.005780d0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
mov dword [ebp - 0x14], 0x64
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x43c0de
mov eax, dword [ebp - 0x14]
cmp eax, esi
jbe 0x43c0de
xor ecx, ecx
mov word [ebp + eax*2], cx
lea eax, [ebp]
push eax
push edi
call fcn.004085d2
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
call fcn.0057340c
add ebp, 0xcc
leave
ret
Function at 0x43dc5e
Capabilities:
Create thread
Delete file
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5be28b
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x6bd6f8]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, ebx
jl 0x43de52
call fcn.0041d0fe
call fcn.0043db84
lea eax, [esp + 0x10]
push str._journal
push eax
mov esi, 0x6d68d0
call fcn.004135e5
pop ecx
pop ecx
mov dword [esp + 0x48], ebx
push dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call edi
or dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0040842d
lea eax, [esp + 0x10]
push str._shm
push eax
call fcn.004135e5
pop ecx
pop ecx
mov dword [esp + 0x48], 1
push dword [eax]
call edi
or dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0040842d
lea eax, [esp + 0x10]
push str._wal
push eax
call fcn.004135e5
pop ecx
pop ecx
mov dword [esp + 0x48], 2
push dword [eax]
call edi
or dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0040842d
lea eax, [esp + 0x10]
push eax
call fcn.00420d7e
pop ecx
push 3
pop esi
mov dword [esp + 0x48], esi
mov edi, 0x6d68d8
call fcn.00408591
or dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0040856e
cmp dword [0x6bc38c], 1
jl 0x43ddb6
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push edi
push eax
call fcn.004084fe
mov dword [esp + 0x4c], 4
lea eax, [esp + 0x14]
push eax
or dword [esp + 0x50], 0xffffffff
call fcn.004040c2
mov dword [esp + 0x50], 5
push dword [eax]
push str.HddId:__s
push str.AVSuiteService::Process
push 1
call fcn.00532652
add esp, 0x18
or dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0040842d
push ebx
push ebx
push ebx
push esi
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [esp + 0x24]
push eax
call fcn.0041eb4b
pop ecx
mov dword [esp + 0x48], 6
mov esi, eax
call fcn.0043de65
or dword [esp + 0x48], 0xffffffff
lea eax, [esp + 0x24]
push eax
call fcn.0041ee40
call fcn.0046c141
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x28]
push ebx
push ebx
push eax
push 0x43dc11
push ebx
push ebx
mov dword [esp + 0x34], ecx
call fcn.005752ab
add esp, 0x18
push 0xffffffffffffffff
mov dword [esp + 0x24], eax
push ebx
lea eax, [esp + 0x24]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x43de52
call fcn.00455f7a
cmp dword [esp + 0x20], ebx
je 0x43de52
push ebx
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x43de52
push 1
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43ed78
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
sub esp, 0x22c
lea ebp, [esp - 4]
mov eax, dword [0x6bd6f8]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push 8
mov eax, 0x5b0d68
call fcn.00580b4b
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp + 0x238]
call fcn.0040877f
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
je 0x43ee5c
lea eax, [ebp]
push eax
push esi
mov dword [ebp], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x43ede0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43ee5c
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040852d
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
call fcn.0040877f
push dword [ebp + 0x238]
xor ecx, ecx
lea esi, [ebp - 0x10]
call fcn.00426092
cmp eax, 0xffffffff
je 0x43ee3c
push dword [ebp + 8]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x43ee3c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call edi
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.0040856e
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x43ede6
push dword [ebp - 0x14]
call edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x238]
call fcn.0040856e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.0057340c
add ebp, 0x230
leave
ret

Function at 0x43ee8e
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push 0
push 4
or esi, 0xffffffff
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, esi
jne 0x43eeae
pop edi
mov eax, esi
pop esi
leave
ret
lea eax, [ebp - 0x1c]
push eax
push edi
mov dword [ebp - 0x1c], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x43eecc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43eea8
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
je 0x43eee0
lea eax, [ebp - 0x1c]
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
jmp 0x43eebf
mov esi, dword [ebp - 0x10]
jmp 0x43eec3
Function at 0x43fcee
Capabilities:
Shutdown system

Disassembly:
push 0x18
mov eax, 0x5a58cb
call fcn.00580b7e
xor esi, esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x14]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x43fd1d
mov eax, 0x80004005
jmp 0x43fd69
lea eax, [ebp - 0x20]
push eax
push 0x67b71c
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 2
push esi
push esi
push esi
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43fd67
push 0x80020013
push 5
call dword [sym.imp.USER32.dll_ExitWindowsEx]
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.00580c23
ret 4

Function at 0x4405e9
Capabilities:
Get session user name

Disassembly:
push ebp
sub esp, 0xc8
lea ebp, [esp - 4]
mov eax, dword [0x6bd6f8]
xor eax, ebp
mov dword [ebp + 0xc8], eax
push 0x14
mov eax, 0x5adb16
call fcn.00580b7e
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ole32.dll_CoGetCallerTID]
cmp eax, ebx
jl 0x4406f0
cmp dword [ebp - 0x18], ebx
je 0x4406f0
push dword [ebp - 0x18]
call fcn.0043ee8e
pop ecx
cmp eax, ebx
je 0x4406f0
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [ebp - 0x1c]
push ecx
push 0xf
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4406f0
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x1c]
mov dword [0x6d6628], eax
cmp dword [ebp + 0xe0], ebx
jne 0x44068d
push eax
call fcn.0041ce9d
pop ecx
cmp eax, ebx
je 0x44068d
mov dword [0x6d6628], eax
push dword [0x6d6628]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x4406f0
xor eax, eax
mov word [ebp], ax
push 0xc6
push ebx
lea eax, [ebp + 2]
push eax
call fcn.005780d0
add esp, 0xc
mov dword [ebp - 0x20], 0x64
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x4406ea
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jbe 0x4406ea
xor ecx, ecx
mov word [ebp + eax*2], cx
lea eax, [ebp]
push eax
push 0x6d6e30
call fcn.004085d2
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
call fcn.0057340c
add ebp, 0xcc
leave
ret 0x14