joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4439fa
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x6c56f8]
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 0x443a97
push esi
push edi
mov edi, 0x208
push ebx
lea esi, [ebp - 0x80]
mov eax, edi
mov dword [ebp - 0x7c], 3
call fcn.004422de
test eax, eax
jne 0x443a95
mov eax, dword [ebp - 0x80]
shr eax, 1
je 0x443a95
cmp word [ebx + eax*2], 0x5c
je 0x443a55
dec eax
jne 0x443a49
jmp 0x443a95
lea esi, [ebx + eax*2]
test esi, esi
je 0x443a95
push 0x6dd7e8
mov eax, edi
lea edx, [ebp - 0x78]
call fcn.0044227f
push esi
lea edi, [ebp - 0x78]
call fcn.004422aa
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x443a95
mov eax, edi
push eax
mov eax, 0x208
mov edx, ebx
call fcn.0044227f
and dword [ebp - 0x7c], 0
pop edi
pop esi
mov ecx, dword [ebp + 0x190]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
call fcn.00581268
add ebp, 0x194
leave
ret
Function at 0x444426
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
mov eax, dword [0x6c56f8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x684], eax
push 0x6dd7e8
mov eax, 0x208
lea edx, [ebp - 0x41c]
call fcn.0044227f
push str..Q
lea edi, [ebp - 0x41c]
call fcn.004422aa
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 0x444521
lea eax, [ebp - 0x650]
push eax
lea esi, [ebp - 0x680]
mov eax, 0x208
call fcn.004422de
test eax, eax
jl 0x444504
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.00586840
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 0x444504
push dword [ebp - 0x684]
lea eax, [ebp - 0x42c]
push eax
call fcn.004672d0
pop ecx
pop ecx
test al, al
je 0x444521
lea eax, [ebp - 0x67c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x444484
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.00581268
leave
ret

Function at 0x448828
Capabilities:
Initialize winsock library

Disassembly:
push 0x198
mov eax, 0x5c84bb
call fcn.0058ec94
mov edi, 0x6df1d8
push 0x6df1dc
mov dword [ebp - 0x1a4], edi
mov dword [0x6df1d8], 0x687988
call fcn.0042c700
xor esi, esi
mov dword [ebp - 4], esi
push esi
push esi
push 1
push esi
mov dword [0x6df1f4], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x6df1f8], eax
mov dword [ebp - 4], 1
push 0x6df208
mov dword [0x6df1d8], 0x68b6c0
call fcn.0040855f
mov byte [ebp - 4], 2
push 0x6df214
mov dword [0x6df210], esi
mov dword [0x6df200], esi
mov dword [0x6df204], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x190
lea eax, [ebp - 0x1a0]
push esi
push eax
mov dword [0x6df20c], esi
call fcn.00586790
add esp, 0xc
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.0041d784
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.0058ed17
ret
Function at 0x4488eb
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0xc
mov eax, 0x5c03ee
call fcn.0058ec2b
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
push dword [ebp + 8]
call fcn.0040855f
mov dword [ebp - 4], edi
mov esi, 0x100000
push esi
mov dword [ebp - 0x10], 1
call fcn.005819cb
pop ecx
push esi
mov ebx, eax
push edi
push ebx
call fcn.00586790
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]
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x448949
add edi, eax
jmp 0x448972
cmp eax, 0xffffffff
jne 0x448972
cmp dword [0x6c438c], 1
jl 0x448978
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recv_error____i
push str.Reporter::ReadReply
push 1
call fcn.00540a02
add esp, 0x10
cmp dword [ebp - 0x14], 0
jg 0x44892a
push ebx
lea eax, [ebp + 0xc]
push eax
mov byte [edi + ebx], 0
call fcn.00408474
mov dword [ebp - 4], 1
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00420afa
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov edi, dword [ebp + 8]
call fcn.00408619
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004085f6
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004084b5
push ebx
call fcn.005818ee
pop ecx
mov eax, edi
call fcn.0058ed03
ret 8

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

Disassembly:
push 0x64
mov eax, 0x5b9eab
call fcn.0058ec2b
mov edi, ecx
xor esi, esi
inc esi
mov dword [ebp - 4], esi
push edi
call fcn.00421f49
xor ebx, ebx
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x4489f8
mov dword [ebp - 0x14], edi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.00586790
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.0040855f
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str._s__s
call fcn.004310f7
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.00408830
push eax
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x448ab2
cmp dword [0x6c438c], 3
jl 0x448a85
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcessAsUser____i
push str.RunProcessWaitR
push 3
call fcn.00540a02
add esp, 0x10
xor esi, esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.004085f6
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.004085f6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004085f6
mov eax, esi
call fcn.0058ed03
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 0x448a87
Function at 0x44ced6
Capabilities:
Get session user name

Disassembly:
push ebp
sub esp, 0xc8
lea ebp, [esp - 4]
mov eax, dword [0x6c56f8]
xor eax, ebp
mov dword [ebp + 0xc8], eax
push 0x10
mov eax, 0x5bc8f9
call fcn.0058ec2b
xor esi, esi
mov dword [ebp - 4], esi
push str.SYSTEM
push edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
call fcn.004085b5
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 0x44cf9b
lea ecx, [ebp - 0x10]
push ecx
push eax
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x44cf9b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x44cf92
xor eax, eax
push 0xc6
mov word [ebp], ax
lea eax, [ebp + 2]
push esi
push eax
call fcn.00586790
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 0x44cf8c
mov eax, dword [ebp - 0x14]
cmp eax, esi
jbe 0x44cf8c
xor ecx, ecx
mov word [ebp + eax*2], cx
lea eax, [ebp]
push eax
push edi
call fcn.0040865a
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.00581268
add ebp, 0xcc
leave
ret
Function at 0x44fb04
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Send data
Send data on socket

Disassembly:
push 0x28
mov eax, 0x5b9e29
call fcn.0058ec94
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x2c]
push eax
mov esi, ecx
mov byte [ebp - 0x21], 0
call fcn.0040855f
and dword [ebp - 4], 0
lea ebx, [esi + 0x3c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0x30]
lea edi, [ebp - 0x2c]
call fcn.00408619
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
or ebx, 0xffffffff
mov dword [ebp - 0x30], edi
cmp edi, ebx
jne 0x44fb96
cmp dword [0x6c438c], 3
jl 0x44fb81
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.socket_error____i
push str.Reporter::SendReport3
push 3
call fcn.00540a02
add esp, 0x10
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2c]
call fcn.004085f6
xor al, al
call fcn.0058ed17
ret 4
push 2
pop eax
push 0xfa4
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp - 0x2c]
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x28]
push eax
call fcn.00488a10
pop ecx
pop ecx
mov byte [ebp - 4], 1
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004084b5
cmp dword [ebp - 0x1c], ebx
jne 0x44fc41
push dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
call fcn.00488a10
pop ecx
pop ecx
mov byte [ebp - 4], 2
push dword [eax]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004084b5
test esi, esi
jne 0x44fc2b
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [0x6c438c], 3
jl 0x44fb81
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.gethostbyname_error____i
jmp 0x44fb72
movsx eax, word [esi + 0xa]
push eax
mov eax, dword [esi + 0xc]
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call fcn.00586840
add esp, 0xc
push 0x10
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, ebx
jne 0x44fc70
xor bl, bl
push dword [ebp - 0x30]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004085f6
mov al, bl
jmp 0x44fb8e
mov edi, dword [ebp - 0x34]
mov eax, dword [edi]
mov ebx, dword [eax + 4]
xor esi, esi
and dword [ebp - 0x28], esi
mov eax, dword [edi]
mov eax, dword [eax]
push 0
push ebx
add eax, esi
push eax
push dword [ebp - 0x30]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
je 0x44fcae
mov byte [ebp - 0x21], 1
cmp eax, 0xffffffff
je 0x44fcae
cmp eax, ebx
je 0x44fcae
add esi, eax
sub ebx, eax
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0xa
jl 0x44fc7d
mov bl, byte [ebp - 0x21]
jmp 0x44fc54
Function at 0x45208b
Capabilities:
Create thread
Delete file
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ceaa6
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x6c56f8]
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 0x45227f
call fcn.004221aa
call fcn.00451fb1
lea eax, [esp + 0x10]
push str._journal
push eax
mov esi, 0x6de174
call fcn.0041683c
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.004084b5
lea eax, [esp + 0x10]
push str._shm
push eax
call fcn.0041683c
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.004084b5
lea eax, [esp + 0x10]
push str._wal
push eax
call fcn.0041683c
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.004084b5
lea eax, [esp + 0x10]
push eax
call fcn.00426144
pop ecx
push 3
pop esi
mov dword [esp + 0x48], esi
mov edi, 0x6de17c
call fcn.00408619
or dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004085f6
cmp dword [0x6c438c], 1
jl 0x4521e3
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push edi
push eax
call fcn.00408586
mov dword [esp + 0x4c], 4
lea eax, [esp + 0x14]
push eax
or dword [esp + 0x50], 0xffffffff
call fcn.00404062
mov dword [esp + 0x50], 5
push dword [eax]
push str.HddId:__s
push str.AVSuiteService::Process
push 1
call fcn.00540a02
add esp, 0x18
or dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004084b5
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.0042373d
pop ecx
mov dword [esp + 0x48], 6
mov esi, eax
call fcn.00452292
or dword [esp + 0x48], 0xffffffff
lea eax, [esp + 0x24]
push eax
call fcn.00423a32
call fcn.004848c7
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x28]
push ebx
push ebx
push eax
push 0x45203e
push ebx
push ebx
mov dword [esp + 0x34], ecx
call fcn.00583186
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 0x45227f
call fcn.0046a19a
cmp dword [esp + 0x20], ebx
je 0x45227f
push ebx
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x45227f
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 0x45278a
Capabilities:
Reference sql statements

Disassembly:
push 0x1c
mov eax, 0x5cb2c9
call fcn.0058ec5e
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
push ebx
call fcn.00452596
mov dword [ebp - 4], esi
inc esi
mov dword [ebp - 0x14], esi
push 0x68b868
push ebx
call fcn.0040865a
mov dword [ebp - 4], esi
push str.SELECT_c_name__c_paths__c_all_drives__c_exts__c_schedule_type__c_schedule_period_FROM_profiles_WHERE_c_name__Default_
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0049d2f0
mov byte [ebp - 4], 2
cmp byte [ebp - 0x20], 0
jne 0x45283f
xor esi, esi
lea edi, [ebp - 0x28]
call fcn.0049c900
push eax
push ebx
call fcn.0040865a
inc esi
call fcn.0049c900
push eax
lea eax, [ebx + 4]
push eax
call fcn.0040865a
push 2
pop esi
call fcn.0049c840
test eax, eax
setne al
mov byte [ebx + 8], al
push 3
pop esi
call fcn.0049c900
push eax
lea eax, [ebx + 0xc]
push eax
call fcn.0040865a
push 4
pop esi
call fcn.0049c840
mov dword [ebx + 0x10], eax
push 5
pop esi
call fcn.0049c840
mov dword [ebx + 0x14], eax
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x45283f
call fcn.004486b0
mov byte [ebp - 4], 1
lea esi, [ebp - 0x28]
call fcn.0049c7f0
and dword [ebp - 4], 0
jmp 0x45285e
mov eax, ebx
call fcn.0058ed03
ret 8

Function at 0x452a63
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
sub esp, 0x22c
lea ebp, [esp - 4]
mov eax, dword [0x6c56f8]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push 8
mov eax, 0x5bc862
call fcn.0058ec2b
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp + 0x238]
call fcn.00408807
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
je 0x452b47
lea eax, [ebp]
push eax
push esi
mov dword [ebp], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x452acb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x452b47
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004085b5
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
call fcn.00408807
push dword [ebp + 0x238]
xor ecx, ecx
lea esi, [ebp - 0x10]
call fcn.0042b6cc
cmp eax, 0xffffffff
je 0x452b27
push dword [ebp + 8]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x452b27
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.004085f6
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x452ad1
push dword [ebp - 0x14]
call edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x238]
call fcn.004085f6
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.00581268
add ebp, 0x230
leave
ret
Function at 0x452b79
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 0x452b99
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 0x452bb7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x452b93
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
je 0x452bcb
lea eax, [ebp - 0x1c]
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
jmp 0x452baa
mov esi, dword [ebp - 0x10]
jmp 0x452bae

Function at 0x4539d6
Capabilities:
Shutdown system

Disassembly:
push 0x18
mov eax, 0x5b398e
call fcn.0058ec5e
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 0x453a05
mov eax, 0x80004005
jmp 0x453a51
lea eax, [ebp - 0x20]
push eax
push str.SeShutdownPrivilege
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 0x453a4f
push 0x80020013
push 5
call dword [sym.imp.USER32.dll_ExitWindowsEx]
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.0058ed03
ret 4
Function at 0x4541ae
Capabilities:
Get session user name

Disassembly:
push ebp
sub esp, 0xc8
lea ebp, [esp - 4]
mov eax, dword [0x6c56f8]
xor eax, ebp
mov dword [ebp + 0xc8], eax
push 0x14
mov eax, 0x5b9d20
call fcn.0058ec5e
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 0x4542b5
cmp dword [ebp - 0x18], ebx
je 0x4542b5
push dword [ebp - 0x18]
call fcn.00452b79
pop ecx
cmp eax, ebx
je 0x4542b5
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 0x4542b5
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x1c]
mov dword [0x6ddcb8], eax
cmp dword [ebp + 0xe0], ebx
jne 0x454252
push eax
call fcn.00421f49
pop ecx
cmp eax, ebx
je 0x454252
mov dword [0x6ddcb8], eax
push dword [0x6ddcb8]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x4542b5
xor eax, eax
mov word [ebp], ax
push 0xc6
push ebx
lea eax, [ebp + 2]
push eax
call fcn.00586790
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 0x4542af
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jbe 0x4542af
xor ecx, ecx
mov word [ebp + eax*2], cx
lea eax, [ebp]
push eax
push 0x6de6e0
call fcn.0040865a
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.00581268
add ebp, 0xcc
leave
ret 0x14
Function at 0x4555c9
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0x18
mov eax, 0x5c7d3c
call fcn.0058ec5e
and dword [ebp - 4], 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push eax
call fcn.004085b5
mov byte [ebp - 4], 1
push 0x68bbb0
xor ecx, ecx
lea esi, [ebp - 0x18]
call fcn.0042b6cc
cmp eax, 0xffffffff
je 0x455622
lea ecx, [ebp - 0x20]
push ecx
mov ecx, esi
push ecx
mov ecx, eax
call fcn.0042b91b
mov byte [ebp - 4], 2
mov edi, esi
call fcn.00408619
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004085f6
push dword [ebp + 0x24]
lea eax, [ebp - 0x1c]
push eax
call fcn.004085b5
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
call fcn.0042b762
lea eax, [ebp - 0x1c]
push eax
lea esi, [ebp - 0x18]
call fcn.00429d76
pop ecx
test al, al
jne 0x45577a
mov eax, esi
push eax
call fcn.00425b8c
pop ecx
test al, al
je 0x455669
mov eax, esi
push eax
call fcn.00425bf7
jmp 0x455779
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45569c
test al, 0x10
je 0x45569c
mov byte [ebp - 0x12], 0
lea eax, [ebp - 0x1c]
push eax
push 1
lea eax, [ebp - 0x12]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
call fcn.0046db7f
add esp, 0x14
jmp 0x45577a
push dword [ebp - 0x18]
call fcn.00421f7e
pop ecx
mov esi, 0x80
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push dword [ebp - 0x18]
call fcn.00424fac
pop ecx
pop ecx
push 1
lea esi, [ebp - 0x1c]
call fcn.00408830
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0040820f
mov byte [ebp - 4], 4
lea esi, [ebp - 0x18]
call fcn.00408830
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.0040820f
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
call fcn.0046711c
add esp, 0x3c
mov byte [ebp - 0x11], 0
push 0x68bbb4
lea eax, [ebp - 0x20]
push eax
call fcn.004085b5
mov byte [ebp - 4], 6
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.004890b0
mov bl, al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.004085f6
test bl, bl
je 0x455756
lea eax, [ebp - 0x11]
push eax
push 1
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00411618
lea ecx, [ebp - 0x20]
call fcn.004084b5
cmp byte [ebp - 0x11], 0
jne 0x45575f
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x68bbbc
lea eax, [ebp - 0x1c]
push eax
call fcn.00408696
test eax, eax
jne 0x45577a
push dword [ebp - 0x18]
call fcn.00424c67
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004085f6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004085f6
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.0058ed03
ret 0x24