joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800d566
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
push edi
push 0
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800d5dd
call fcn.1800fc86
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
mov dword [ebp + 8], eax
je 0x1800d5d8
xor edi, edi
push 0xfffffffffffffffe
inc edi
push edi
mov dword [ebp - 0x14], ecx
call fcn.18001d8a
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
push dword [esi + 4]
lea eax, [ebp - 0x14]
push str._File::ReadAt__ReadFile_failed___s__0x_x_
push eax
mov dword [ebp - 0xc], 0xfffffffe
mov dword [ebp - 8], edi
call fcn.18001000
add esp, 0x10
mov eax, dword [ebp + 8]
jmp 0x1800d5e8
test edi, edi
je 0x1800d5e6
mov eax, dword [ebp - 4]
mov dword [edi], eax
xor eax, eax
pop edi
leave
ret 8

Function at 0x1800dbc3
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x180f51f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push edi
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], edi
push 0xf0000040
push 1
push edi
push edi
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1800dc10
push 1
call ebx
jmp 0x1800dbf3
lea eax, [ebp - 0x24]
push eax
push 0x20
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push edi
push dword [ebp - 0x48]
test eax, eax
jne 0x1800dc2b
call esi
jmp 0x1800dc0a
call esi
push 0x180c1de4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.18018b6d
add esp, 0xc
push 0x20
lea eax, [ebp - 0x24]
push eax
lea esi, [ebp - 0x6c]
call fcn.18003c62
mov ecx, dword [ebp - 0x50]
push 0xffffffffffffffff
push edi
push eax
call fcn.180039e8
push edi
push 1
mov ecx, esi
call fcn.18003cc8
mov esi, dword [ebp - 0x4c]
push 0x20
lea eax, [ebp - 0x44]
push eax
call fcn.18003c62
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1809ccb5
leave
ret
Function at 0x1800f1e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
push edi
xor edi, edi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
push dword [ebx + 4]
mov dword [ebp - 0xc], edi
call esi
cmp eax, edi
jle 0x1800f21e
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x1800f281
mov eax, dword [ebp - 8]
shr eax, 1
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1809db14
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, edi
je 0x1800f27a
cmp dword [ebp - 8], edi
je 0x1800f273
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 8]
push dword [ebx + 4]
call esi
cmp eax, edi
jle 0x1800f26e
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x1800f281
xor ecx, ecx
mov word [eax], cx
jmp 0x1800f281
mov dword [ebp - 4], 0x8007000e
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8

Function at 0x1800f28a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
push dword [eax + 4]
mov dword [ebp - 0xc], ebx
call edi
cmp eax, ebx
jle 0x1800f2c6
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x1800f31f
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x1800f31a
shr eax, 1
inc eax
push eax
call fcn.18004129
cmp eax, ebx
jne 0x1800f2ea
mov dword [ebp - 4], 0x8007000e
jmp 0x1800f310
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [ebp + 0xc]
push dword [eax + 4]
call edi
cmp eax, ebx
jle 0x1800f30d
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
or eax, 0xffffffff
call fcn.18003fe5
jmp 0x1800f31f
call fcn.18004003
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1800f38c
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jle 0x1800f3b6
and eax, 0xffff
or eax, 0x80070000
ret 0xc

Function at 0x1800f3b9
Capabilities:
Set registry value

Disassembly:
push 8
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 0xb
push 0
push dword [esp + 0x18]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jle 0x1800f3e3
and eax, 0xffff
or eax, 0x80070000
ret 0x10

Function at 0x1800f46b
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0x18]
push 0
push dword [esp + 0x14]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jle 0x1800f494
and eax, 0xffff
or eax, 0x80070000
ret 0x10
Function at 0x1800f7ec
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x180f51f0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0xf003f
push ecx
push dword [eax + 4]
mov ebx, 0x180c36ec
xor edi, edi
lea esi, [ebp - 0x214]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], edi
call fcn.1800e970
mov esi, eax
cmp esi, 0x80070002
je 0x1800f84c
cmp esi, 0x80070003
jne 0x1800f84f
xor esi, esi
inc esi
cmp esi, edi
je 0x1800f877
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], ebx
call fcn.1800e827
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1809ccb5
leave
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1800f895
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.1800f7ec
cmp eax, edi
jne 0x1800f8e0
lea eax, [ebp - 0x228]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x100
call esi
test eax, eax
je 0x1800f87f
lea ecx, [ebp - 0x214]
call fcn.1800e827
push dword [ebp - 0x220]
mov eax, dword [ebp - 0x21c]
call fcn.1800e56d
mov esi, eax
jmp 0x1800f853
Function at 0x18010549
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
xor edi, edi
inc edi
push edi
call esi
push dword [ebp + 0x14]
mov dword [ebp - 8], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x180105ce
call fcn.1800fc86
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
mov dword [ebp - 4], eax
je 0x180105c0
push 0xfffffffffffffffe
push edi
mov dword [ebp - 0x18], ecx
call fcn.18001d8a
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push str._Failed_to_GetDiskFreeSpaceEx___s__0x_x_
push eax
mov dword [ebp - 0x10], 0xfffffffe
mov dword [ebp - 0xc], edi
call fcn.18001000
add esp, 0x10
mov edi, dword [ebp - 4]
push dword [ebp - 8]
call esi
mov eax, edi
pop edi
pop esi
leave
ret
xor edi, edi
jmp 0x180105c3

Function at 0x18010742
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
lea eax, [ebp - 0x20]
call fcn.1800443b
xor ebx, ebx
push 0x3c
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x64], ebx
call fcn.1809d820
movzx ecx, byte [0x180fb8f9]
add esp, 0xc
neg ecx
sbb ecx, ecx
mov edi, 0x180fbba0
and ecx, edi
push 1
mov dword [ebp - 0x3c], 0x80
pop esi
je 0x180107b9
push 3
push esi
mov dword [ebp - 0x10], ecx
call fcn.18001d8a
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x10]
push str._System::StartProcess__process__s__cmd__s_
push eax
mov dword [ebp - 8], 3
mov dword [ebp - 4], esi
call fcn.18001000
add esp, 0x10
push dword [ebp + 0xc]
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x18010821
call fcn.1800fc86
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, edi
mov ebx, eax
je 0x18010812
push 0xfffffffffffffffe
pop edi
push edi
push esi
mov dword [ebp - 0x10], ecx
call fcn.18001d8a
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], esi
push str._System::StartProcess__::CreateProcess_failed__0x_x_
lea eax, [ebp - 0x10]
push eax
call fcn.18001000
add esp, 0xc
lea esi, [ebp - 0x20]
call fcn.1800448a
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, edi
je 0x18010812
push esi
push 8
pop edi
push edi
mov dword [ebp - 0x10], ecx
call fcn.18001d8a
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push dword [eax + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
push str._Started_process___u_
jmp 0x18010806
Function at 0x18010965
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
mov edi, ecx
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
mov ebx, eax
mov esi, str.WinSta0Default
je 0x180109c0
push 3
push 1
mov dword [ebp - 0x1c], ecx
call fcn.18001d8a
push esi
push dword [ebx]
mov dword [ebp - 0x18], eax
push dword [edi]
lea eax, [ebp - 0x1c]
push str._StartProcessAsUser___s___s___s_
push eax
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x10], 1
call fcn.18001000
add esp, 0x14
lea eax, [ebp - 0x3c]
call fcn.1800443b
mov eax, dword [edi]
sub eax, 0x10
call fcn.18003d67
add eax, 0x10
lea edi, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.1800bd34
push 0x20
mov eax, edi
call fcn.180030ba
mov eax, dword [ebx]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.18002ee3
push 0x40
xor edi, edi
lea eax, [ebp - 0x84]
push edi
push eax
mov dword [ebp - 0x88], 0x44
call fcn.1809d820
add esp, 0xc
xor ebx, ebx
inc ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 8], edi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x18010a50
call fcn.1800fc86
mov edi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18004250
lea esi, [ebp - 0x3c]
call fcn.1800448a
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 8]
push 0x104
lea esi, [ebp - 4]
mov dword [ebp - 0x10], eax
call fcn.18004129
push dword [ebp + 0xc]
lea ecx, [ebp - 0x88]
push ecx
push edi
push dword [ebp - 8]
push 0x400
push edi
push edi
push edi
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0xc], eax
or eax, 0xffffffff
call fcn.18003fe5
cmp dword [ebp - 0xc], edi
jne 0x18010ad9
call fcn.1800fc86
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
mov edi, eax
je 0x18010ad9
push 0xfffffffffffffffe
pop esi
push esi
push ebx
mov dword [ebp - 0x2c], ecx
call fcn.18001d8a
push edi
push dword [ebp - 4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push str._::CreateProcessAsUser_failed___s__0x_x_
push eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
call fcn.18001000
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
jmp 0x18010a36
Function at 0x18010fb0
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
or dword [ebp - 4], 0xffffffff
push esi
push edi
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
push 4
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x18011030
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
mov dword [ebp - 4], ecx
call sub.WTSAPI32.dll_WTSFreeMemory
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
je 0x18011028
push 6
pop edi
xor esi, esi
push edi
inc esi
push esi
mov dword [ebp - 0x1c], ecx
call fcn.18001d8a
push dword [ebp - 4]
push str._System::GetCurrentSessionId__session_id_from_::WTSQuerySessionInformation___d_
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
call fcn.18001000
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x180110b2
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
movzx ecx, byte [0x180fb8f9]
test eax, eax
je 0x18011072
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
je 0x18011028
push 6
pop edi
xor esi, esi
push edi
inc esi
push esi
mov dword [ebp - 0x1c], ecx
call fcn.18001d8a
push dword [ebp - 4]
push str._System::GetCurrentSessionId__session_id_from_::ProcessIdToSessionId___d_
jmp 0x18011013
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
je 0x180110af
push 0xfffffffffffffffe
pop edi
xor esi, esi
push edi
inc esi
push esi
mov dword [ebp - 0x1c], ecx
call fcn.18001d8a
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1c]
push str._System::GetCurrentSessionId___both::WTSQuerySessionInformation_and_::ProcessIdToSessionId_failed__0x_x_
push eax
call fcn.18001000
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
leave
ret
Function at 0x180113c8
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 8], 0xffffffff
push ebx
je 0x18011496
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
push 8
push dword [ebp + 8]
xor eax, eax
push eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x1801144e
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
je 0x18011445
push 6
push 1
mov dword [ebp - 0x1c], ecx
call fcn.18001d8a
push ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push str._System::IsSessionActive__wts_connect_state__d_
push eax
mov dword [ebp - 0x14], 6
mov dword [ebp - 0x10], 1
call fcn.18001000
add esp, 0xc
xor eax, eax
test ebx, ebx
sete al
jmp 0x18011498
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
je 0x18011496
push 0xfffffffffffffffe
push 1
mov dword [ebp - 0x1c], ecx
call fcn.18001d8a
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xfffffffe
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1c]
push str._WTSQuerySessionInformation_failed__0x_x_
push eax
call fcn.18001000
add esp, 0xc
xor al, al
pop ebx
leave
ret

Function at 0x18011768
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x180f51f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x180117d3
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x180117ca
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x10], ebx
pop ebx
setne al
xor ecx, ebp
call fcn.1809ccb5
leave
ret
Function at 0x18011de4
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x180f51f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x18011e4f
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x18011e46
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x10], ebx
pop ebx
setne al
xor ecx, ebp
call fcn.1809ccb5
leave
ret

Function at 0x1801270d
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x180f51f0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov esi, ecx
push 2
mov dword [esi], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x240], eax
cmp eax, 0xffffffff
jne 0x180127a3
call fcn.1800fc86
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
mov ebx, eax
je 0x18012790
push 0xfffffffffffffffe
pop edi
xor esi, esi
push edi
inc esi
push esi
mov dword [ebp - 0x250], ecx
call fcn.18001d8a
push ebx
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x250]
push str._GetParentProcessId__Failed_snapshot__0x_x_
push eax
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x244], esi
call fcn.18001000
add esp, 0xc
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.1809ccb5
leave
ret 4
mov edi, 0x22c
push edi
lea eax, [ebp - 0x23c]
push ebx
push eax
call fcn.1809d820
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
mov dword [ebp - 0x23c], edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x1801283a
call fcn.1800fc86
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
mov ebx, eax
je 0x18012829
push 0xfffffffffffffffe
pop edi
xor esi, esi
push edi
inc esi
push esi
mov dword [ebp - 0x250], ecx
call fcn.18001d8a
push ebx
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x250]
push str._Process32First_failed__0x_x_
push eax
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x244], esi
call fcn.18001000
add esp, 0xc
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18012790
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x1c]
jne 0x18012852
mov eax, dword [ebp - 0x224]
cmp eax, ebx
jne 0x1801286f
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1801283a
mov ebx, 0x80004005
jmp 0x18012829
mov dword [esi], eax
jmp 0x18012829
Function at 0x1801474e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x180147cf
push edi
call fcn.1809db14
pop ecx
mov dword [esi], eax
cmp eax, ebx
je 0x180147cf
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x180147c2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push str.VarFileInfoTranslation
push dword [esi]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x180147c2
cmp dword [ebp - 4], ebx
je 0x180147c2
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
xor eax, eax
mov dword [esi + 4], ecx
inc eax
jmp 0x180147d1
push dword [esi]
call fcn.1809ccc4
mov dword [esi + 4], ebx
mov dword [esi], ebx
pop ecx
xor eax, eax
pop edi
pop ebx
leave
ret 4

Function at 0x180149b5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], 0xffffffff
push esi
push edi
mov dword [ebp - 8], ebx
jne 0x180149d3
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
call fcn.18003d67
add eax, 0x10
push 0x40
mov dword [ebp - 4], eax
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 0x70], 0x44
call fcn.1809d820
xor eax, eax
mov dword [ebp - 0x28], ebx
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push ebx
push dword [ebp + 0xc]
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
xor edi, edi
mov dword [ebp - 8], ebx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x18014a25
mov edi, 0x400
jmp 0x18014a28
mov dword [ebp - 8], ebx
push 0x104
lea esi, [ebp - 4]
call fcn.18004129
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push ebx
push dword [ebp - 8]
push edi
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
or eax, 0xffffffff
call fcn.18003fe5
cmp edi, ebx
jne 0x18014ac2
call fcn.1800fc86
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
mov dword [ebp + 0xc], eax
je 0x18014aa6
push 0xfffffffffffffffe
pop edi
xor esi, esi
push edi
inc esi
push esi
mov dword [ebp - 0x18], ecx
call fcn.18001d8a
push dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push str._RunAsUser_failed__cmd_s__hresult0x_x_
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], esi
call fcn.18001000
add esp, 0x10
mov esi, dword [ebp + 0xc]
push ebx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18004250
mov eax, esi
jmp 0x180149ce
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x28]
call esi
xor esi, esi
jmp 0x18014aa9
Function at 0x18017641
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x180f51f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push eax
mov esi, ecx
call fcn.18018b6d
push 0x180c1dc4
push 0x180c1dd4
lea eax, [ebp - 0x24]
call fcn.18018c8e
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop esi
call fcn.1809ccb5
leave
ret