joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432abd
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0x14
mov eax, 0x5ae5cf
call fcn.0058705b
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov eax, dword [esi + 0x1c]
test al, 1
je 0x432bff
test al, 2
je 0x432bff
push dword [0x6de664]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov eax, dword [esi + 0x20]
mov edi, eax
and eax, 0x100
and edi, 0xfffffcff
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0xf023f
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
cmp edi, 0x80000001
jne 0x432b3f
cmp dword [ebp - 0x10], ebx
je 0x432b32
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
cmp dword [ebp - 0x10], ebx
je 0x432b49
lea eax, [ebp - 0x10]
jmp 0x432b5a
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 1
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x20]
lea ecx, [esi + 0x24]
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov dword [ebp - 4], ebx
test byte [ebp - 0x18], 1
je 0x432b8c
and dword [ebp - 0x18], 0xfffffffe
cmp dword [ebp - 0x1c], ebx
je 0x432b8c
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
jne 0x432bd5
cmp byte [ebp + 8], bl
je 0x432bb7
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [esi + 4]
mov dword [ebp + 8], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x432bb7
push 0x50
pop edi
jmp 0x432bd5
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 0x14]
push ebx
push dword [esi + 4]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp edi, ebx
jne 0x432bd5
xor edi, edi
cmp dword [ebp - 0x14], ebx
je 0x432be3
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], ebx
je 0x432bfb
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x432c01
xor eax, eax
call fcn.00587133
ret 0xc

Function at 0x432c09
Capabilities:
Delete file

Disassembly:
add ecx, 0x22c
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
ret
Function at 0x432c2b
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 0x432d09
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 0x432c84
mov dword [ebp - 8], 0xe
jmp 0x432cf8
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 0x432cf8
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.0057e690
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 0x432ce7
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 0x432d08
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 0x432d11
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 0x432d4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x432de1
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x432d68
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x432dd7
cmp ebx, esi
jne 0x432d75
mov dword [ebp - 4], 0x54f
jmp 0x432dd7
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.00431acb
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x432dd7
push dword [edi + 4]
lea esi, [ebp - 0xc]
mov eax, ebx
call fcn.004319d0
test eax, eax
jl 0x432dd7
mov ecx, dword [ebp - 0xc]
inc ecx
inc ecx
lea eax, [ecx + 4]
cmp eax, ebx
ja 0x432dd7
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 0x432f94
Capabilities:
Check if file exists
Create directory
Get file attributes
Link many functions at runtime

Disassembly:
push esi
push 0x685fa8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlNtStatusToDosError
push eax
mov dword [0x6de3a8], eax
call esi
push str.ZwQueryInformationFile
push dword [0x6de3a8]
mov dword [0x6de3ac], eax
call esi
push 0x685fec
push dword [0x6de3a8]
mov dword [0x6de3bc], eax
call esi
push 0x685ffc
push dword [0x6de3a8]
mov dword [0x6de3b4], eax
call esi
push str.ZwSetInformationFile
push dword [0x6de3a8]
mov dword [0x6de3b0], eax
call esi
push dword [esp + 8]
mov dword [0x6de3b8], eax
mov esi, 0x6de1a0
mov eax, 0x208
mov edx, esi
call fcn.00431971
test eax, eax
jge 0x433026
xor eax, eax
push 0x57
mov word [0x6de1a0], ax
pop eax
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x433046
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x433046
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop esi
ret

Function at 0x433193
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 0x433230
push esi
push edi
mov edi, 0x208
push ebx
lea esi, [ebp - 0x80]
mov eax, edi
mov dword [ebp - 0x7c], 3
call fcn.004319d0
test eax, eax
jne 0x43322e
mov eax, dword [ebp - 0x80]
shr eax, 1
je 0x43322e
cmp word [ebx + eax*2], 0x5c
je 0x4331ee
dec eax
jne 0x4331e2
jmp 0x43322e
lea esi, [ebx + eax*2]
test esi, esi
je 0x43322e
push 0x6de1a0
mov eax, edi
lea edx, [ebp - 0x78]
call fcn.00431971
push esi
lea edi, [ebp - 0x78]
call fcn.0043199c
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43322e
mov eax, edi
push eax
mov eax, 0x208
mov edx, ebx
call fcn.00431971
and dword [ebp - 0x7c], 0
pop edi
pop esi
mov ecx, dword [ebp + 0x190]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
call fcn.005796dc
add ebp, 0x194
leave
ret
Function at 0x433bb7
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 0x6de1a0
mov eax, 0x208
lea edx, [ebp - 0x41c]
call fcn.00431971
push str..Q
lea edi, [ebp - 0x41c]
call fcn.0043199c
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 0x433cb2
lea eax, [ebp - 0x650]
push eax
lea esi, [ebp - 0x680]
mov eax, 0x208
call fcn.004319d0
test eax, eax
jl 0x433c95
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.0057e690
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 0x433c95
push dword [ebp - 0x684]
lea eax, [ebp - 0x42c]
push eax
call fcn.004547e0
pop ecx
pop ecx
test al, al
je 0x433cb2
lea eax, [ebp - 0x67c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x433c15
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.005796dc
leave
ret

Function at 0x437e95
Capabilities:
Initialize winsock library

Disassembly:
push 0x198
mov eax, 0x5b472a
call fcn.005870c4
mov edi, 0x6df468
push 0x6df46c
mov dword [ebp - 0x1a4], edi
mov dword [0x6df468], 0x69253c
call fcn.00448527
xor esi, esi
mov dword [ebp - 4], esi
push esi
push esi
push 1
push esi
mov dword [0x6df484], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x6df488], eax
mov dword [ebp - 4], 1
push 0x6df48c
mov dword [0x6df468], 0x692c64
call fcn.004084c2
mov byte [ebp - 4], 2
push 0x6df498
mov dword [0x6df494], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x190
lea eax, [ebp - 0x1a0]
push esi
push eax
mov dword [0x6df490], esi
call fcn.0057e5e0
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.00587147
ret
Function at 0x437f47
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0xc
mov eax, 0x5bb09c
call fcn.0058705b
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
push dword [ebp + 8]
call fcn.004084c2
mov dword [ebp - 4], edi
mov esi, 0x100000
push esi
mov dword [ebp - 0x10], 1
call fcn.00579e3f
pop ecx
push esi
mov ebx, eax
push edi
push ebx
call fcn.0057e5e0
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 0x437fa2
add edi, eax
jmp 0x437f86
push ebx
lea eax, [ebp + 0xc]
push eax
mov byte [edi + ebx], 0
call fcn.004083d7
mov dword [ebp - 4], 1
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041baa0
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov edi, dword [ebp + 8]
call fcn.0040857c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00408559
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00408418
push ebx
call fcn.00579d62
pop ecx
mov eax, edi
call fcn.00587133
ret 8

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

Disassembly:
push 0x64
mov eax, 0x5b46ec
call fcn.0058705b
mov edi, ecx
xor esi, esi
inc esi
mov dword [ebp - 4], esi
push edi
call fcn.0041cf44
xor ebx, ebx
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x438024
mov dword [ebp - 0x14], edi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.0057e5e0
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.004084c2
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str._s__s
call fcn.00417a4d
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.00408793
push eax
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x4380de
cmp dword [0x6c438c], 3
jl 0x4380b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcessAsUser____i
push str.RunProcessWaitR
push 3
call fcn.00538922
add esp, 0x10
xor esi, esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00408559
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00408559
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00408559
mov eax, esi
call fcn.00587133
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 0x4380b3
Function at 0x43b796
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, 0x5b7be7
call fcn.0058705b
xor esi, esi
mov dword [ebp - 4], esi
push 0x685e34
push edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
call fcn.00408518
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 0x43b85b
lea ecx, [ebp - 0x10]
push ecx
push eax
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x43b85b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x43b852
xor eax, eax
push 0xc6
mov word [ebp], ax
lea eax, [ebp + 2]
push esi
push eax
call fcn.0057e5e0
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 0x43b84c
mov eax, dword [ebp - 0x14]
cmp eax, esi
jbe 0x43b84c
xor ecx, ecx
mov word [ebp + eax*2], cx
lea eax, [ebp]
push eax
push edi
call fcn.004085bd
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.005796dc
add ebp, 0xcc
leave
ret
Function at 0x43d388
Capabilities:
Create thread
Delete file
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c5482
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 0x43d587
call fcn.0041d1a5
call fcn.0043d2ae
lea eax, [esp + 0x10]
push str._journal
push eax
mov esi, 0x6de984
call fcn.00413787
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.00408418
lea eax, [esp + 0x10]
push str._shm
push eax
call fcn.00413787
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.00408418
lea eax, [esp + 0x10]
push str._wal
push eax
call fcn.00413787
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.00408418
lea eax, [esp + 0x10]
push eax
call fcn.00420cf5
pop ecx
push 3
pop esi
mov dword [esp + 0x48], esi
mov edi, 0x6de98c
call fcn.0040857c
or dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00408559
cmp dword [0x6c438c], 1
jl 0x43d4e0
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push edi
push eax
call fcn.004084e9
mov dword [esp + 0x4c], 4
lea eax, [esp + 0x14]
push eax
or dword [esp + 0x50], 0xffffffff
call fcn.004040c8
mov dword [esp + 0x50], 5
push dword [eax]
push str.HddId:__s
push str.AVSuiteService::Process
push 1
call fcn.00538922
add esp, 0x18
or dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00408418
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.0041e9f6
pop ecx
mov dword [esp + 0x48], 6
mov esi, eax
call fcn.0043d59a
or dword [esp + 0x48], 0xffffffff
lea eax, [esp + 0x24]
push eax
call fcn.0041eceb
call fcn.0046eea0
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x28]
push ebx
push ebx
push esi
push 0x43d33b
push ebx
push ebx
mov dword [esp + 0x34], eax
call fcn.0057b57b
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 0x43d587
lea ecx, [esi + 0xc0]
call fcn.004706fd
call fcn.004571f2
cmp dword [esp + 0x20], ebx
je 0x43d587
push ebx
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x43d587
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 0x43e531
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, 0x5b7b2f
call fcn.0058705b
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp + 0x238]
call fcn.0040876a
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
je 0x43e615
lea eax, [ebp]
push eax
push esi
mov dword [ebp], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x43e599
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43e615
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00408518
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
call fcn.0040876a
push dword [ebp + 0x238]
xor ecx, ecx
lea esi, [ebp - 0x10]
call fcn.004260a9
cmp eax, 0xffffffff
je 0x43e5f5
push dword [ebp + 8]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x43e5f5
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.00408559
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x43e59f
push dword [ebp - 0x14]
call edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x238]
call fcn.00408559
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.005796dc
add ebp, 0x230
leave
ret

Function at 0x43e647
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 0x43e667
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 0x43e685
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43e661
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
je 0x43e699
lea eax, [ebp - 0x1c]
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
jmp 0x43e678
mov esi, dword [ebp - 0x10]
jmp 0x43e67c
Function at 0x43f4a0
Capabilities:
Shutdown system

Disassembly:
push 0x18
mov eax, 0x5abdab
call fcn.0058708e
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 0x43f4cf
mov eax, 0x80004005
jmp 0x43f51b
lea eax, [ebp - 0x20]
push eax
push 0x68313c
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 0x43f519
push 0x80020013
push 5
call dword [sym.imp.USER32.dll_ExitWindowsEx]
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.00587133
ret 4

Function at 0x43fd9b
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, 0x5b44f7
call fcn.0058708e
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 0x43fea2
cmp dword [ebp - 0x18], ebx
je 0x43fea2
push dword [ebp - 0x18]
call fcn.0043e647
pop ecx
cmp eax, ebx
je 0x43fea2
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 0x43fea2
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x1c]
mov dword [0x6de664], eax
cmp dword [ebp + 0xe0], ebx
jne 0x43fe3f
push eax
call fcn.0041cf44
pop ecx
cmp eax, ebx
je 0x43fe3f
mov dword [0x6de664], eax
push dword [0x6de664]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x43fea2
xor eax, eax
mov word [ebp], ax
push 0xc6
push ebx
lea eax, [ebp + 2]
push eax
call fcn.0057e5e0
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 0x43fe9c
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jbe 0x43fe9c
xor ecx, ecx
mov word [ebp + eax*2], cx
lea eax, [ebp]
push eax
push 0x6deee0
call fcn.004085bd
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.005796dc
add ebp, 0xcc
leave
ret 0x14