joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4099ec
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409abf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409ad8
push ebx
push 0x409ae4
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a6c
mov al, 0x6a
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.004099c0
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a75
call fcn.004099c0
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409ac6
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b78
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
jmp 0x409c21
cmp dword [esi + 0x10], 0x1000
jne 0x409c0d
test byte [esi + 0x15], 1
jne 0x409c0d
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409bcc
cmp eax, 2
je 0x409bcc
cmp eax, 0x10
je 0x409bcc
cmp eax, 0x20
jne 0x409be1
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409be1
mov bl, 1
xor ebp, ebp
jmp 0x409bf2
mov eax, dword [esi]
add eax, ebp
call fcn.00409b70
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409be5
test bl, bl
je 0x409c0d
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409ba4
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x10001060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call fcn.1000106f
Function at 0x4017f0
Capabilities:
Manipulate user privileges

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jne 0x401803
xor eax, eax
pop ebx
add esp, 0x14
ret
lea eax, [esp + 0x1c]
push eax
call fcn.00401000
add esp, 4
test eax, eax
je 0x40181e
mov eax, 1
pop ebx
add esp, 0x14
ret
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x10]
push edx
push ebx
call fcn.004010c0
add esp, 0xc
test eax, eax
je 0x401849
mov eax, dword [esp + 0x1c]
push eax
call sub.ADVAPI32.dll_LsaClose
mov eax, 2
pop ebx
add esp, 0x14
ret
push edi
mov edi, dword [esp + 0x10]
push edi
call fcn.00401070
add esp, 4
test eax, eax
je 0x401870
mov ecx, dword [esp + 0x20]
push ecx
call sub.ADVAPI32.dll_LsaClose
pop edi
mov eax, 3
pop ebx
add esp, 0x14
ret
mov eax, str.SeServiceLogonRight
mov dword [esp + 0x18], eax
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401880
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
push esi
mov word [esp + 0x18], dx
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
add eax, 2
lea edx, [esp + 0x10]
push edx
mov word [esp + 0x22], ax
mov eax, dword [esp + 0x2c]
push edi
push eax
mov dword [esp + 0x20], 0xffffffff
call sub.ADVAPI32.dll_LsaEnumerateAccountRights
test eax, eax
je 0x401910
push eax
call sub.ADVAPI32.dll_LsaNtStatusToWinError
mov esi, eax
cmp esi, 2
je 0x401910
push edi
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [esp + 0x24]
push ecx
call sub.ADVAPI32.dll_LsaClose
push esi
call fcn.004052c0
add esp, 4
push eax
push ebx
push 0x40000209
call fcn.0041257c
add eax, 0x40
push eax
call fcn.00405470
add esp, 0x10
pop esi
pop edi
mov eax, 4
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0xc]
xor esi, esi
cmp dword [esp + 0x10], esi
jbe 0x401952
lea esp, [esp]
mov dx, word [eax + esi*8]
cmp dx, word [esp + 0x18]
jne 0x40194b
movzx ecx, word [esp + 0x1a]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax + esi*8 + 4]
push ecx
push edx
push eax
call fcn.00412c36
add esp, 0xc
test eax, eax
je 0x4019b3
mov eax, dword [esp + 0xc]
inc esi
cmp esi, dword [esp + 0x10]
jb 0x401920
push eax
call sub.ADVAPI32.dll_LsaFreeMemory
mov ecx, dword [esp + 0x24]
push 1
lea eax, [esp + 0x1c]
push eax
push edi
push ecx
call sub.ADVAPI32.dll_LsaAddAccountRights
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov edx, dword [esp + 0x24]
push edx
call sub.ADVAPI32.dll_LsaClose
test esi, esi
je 0x4019d7
push esi
call sub.ADVAPI32.dll_LsaNtStatusToWinError
push eax
call fcn.004052c0
add esp, 4
push eax
push 0x4000020a
call fcn.0041257c
add eax, 0x40
push eax
call fcn.00405470
add esp, 0xc
pop esi
pop edi
mov eax, 5
pop ebx
add esp, 0x14
ret
push edi
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [esp + 0xc]
push ecx
call sub.ADVAPI32.dll_LsaFreeMemory
mov edx, dword [esp + 0x24]
push edx
call sub.ADVAPI32.dll_LsaClose
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0x14
ret
push ebx
push 0x40000204
call fcn.0041257c
add eax, 0x20
push eax
call fcn.00405470
add esp, 0xc
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0x14
ret
Function at 0x404fb0
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
jne 0x404fed
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004052c0
add esp, 4
push eax
push ebx
push 0xc00003fe
push 1
call fcn.00405400
add esp, 0x14
pop edi
xor eax, eax
pop ebx
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
lea eax, [edi + edi]
push eax
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x40502b
push eax
push str.expand_environment_string
push str.ExpandEnvironmentStrings__
push 0xc00003eb
push 1
call fcn.00405400
add esp, 0x14
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
ret
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x40506c
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004052c0
add esp, 4
push eax
push ebx
push 0xc00003fe
push 1
call fcn.00405400
add esp, 0x14
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
ret
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
ret

Function at 0x405080
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, dword [esp + 8]
xor eax, eax
mov dword [esp + 8], eax
cmp word [ebp], ax
je 0x40513e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
push edi
mov edi, edi
cmp word [ebp], 0
mov esi, ebp
je 0x4050bf
lea esp, [esp]
cmp word [esi], 0x3d
je 0x4050c5
add esi, 2
cmp word [esi], 0
jne 0x4050b0
cmp word [esi], 0x3d
jne 0x405129
xor eax, eax
mov word [esi], ax
cmp byte [esp + 0x18], al
je 0x405103
add esi, 2
push esi
call fcn.00404fb0
mov edi, eax
add esp, 4
test edi, edi
je 0x405100
push edi
push ebp
call ebx
test eax, eax
jne 0x4050ee
inc dword [esp + 0x14]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x405110
push esi
jmp 0x405105
push 0
push ebp
call ebx
test eax, eax
jne 0x405110
inc dword [esp + 0x14]
add esi, 2
cmp word [esi], 0
je 0x405129
lea esp, [esp]
add esi, 2
cmp word [esi], 0
jne 0x405120
cmp word [esi + 2], 0
lea ebp, [esi + 2]
jne 0x4050a0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x405160
Capabilities:
Query environment variable

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
push esi
call fcn.00404f70
add esp, 4
call fcn.00405150
mov edi, eax
test esi, esi
je 0x405187
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop esi
ret
Function at 0x405400
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x40
push esi
push str.nssm
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x405466
mov ecx, dword [esp + 0x50]
xor eax, eax
test ecx, ecx
je 0x405438
lea edx, [esp + 0x50]
cmp eax, 0xf
jge 0x405438
add edx, 4
mov dword [esp + eax*4 + 4], ecx
mov ecx, dword [edx]
inc eax
test ecx, ecx
jne 0x405425
mov edx, dword [esp + 0x4c]
push 0
lea ecx, [esp + 8]
push ecx
push 0
push eax
push 0
push edx
mov dword [esp + eax*4 + 0x1c], 0
mov eax, dword [esp + 0x60]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
add esp, 0x40
ret

Function at 0x405600
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceExW]
movzx eax, ax
push eax
push esi
push 5
push 0
call edi
test eax, eax
jne 0x40563a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x717
je 0x40562d
xor eax, eax
pop edi
ret
push 0
push esi
push 5
push 0
call edi
test eax, eax
je 0x405629
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405629
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push ecx
push eax
push 0
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
pop edi
ret
Function at 0x4087e0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x40
mov eax, dword [0x422760]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
push esi
mov esi, dword [esp + 0x50]
push edi
mov edi, dword [esp + 0x4c]
push esi
push eax
push str._s_s
push 0xffffffffffffffff
lea eax, [esp + 0x18]
push 0x1d
push eax
call fcn.00412731
add esp, 0x18
test eax, eax
jge 0x408845
push 0
push str.delete_createfile_parameter__
push esi
push 0xc00003eb
push 1
call fcn.00405400
add esp, 0x14
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00412cdc
add esp, 0x40
ret
lea ecx, [esp + 8]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 0x44]
neg eax
pop edi
sbb eax, eax
pop esi
xor ecx, esp
inc eax
call fcn.00412cdc
add esp, 0x40
ret
Function at 0x4089b0
Capabilities:
Check if file exists
Move file

Disassembly:
mov eax, 0x10054
call fcn.00412cf0
mov eax, dword [0x422760]
xor eax, esp
mov dword [esp + 0x10050], eax
push ebx
mov ebx, dword [esp + 0x1005c]
push ebp
push esi
mov esi, dword [esp + 0x10068]
push edi
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push 7
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, ebp
je 0x408b1d
lea ecx, [esp + 0x2c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x408a3a
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x20]
xor ebx, ebx
push eax
mov dword [esp + 0x10080], ebx
mov dword [esp + 0x1007c], ebp
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
jmp 0x408a48
mov ebp, dword [esp + 0x10070]
mov ebx, dword [esp + 0x10078]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x408aa5
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push 0xffffffffffffffff
push 0xff676980
push 0
push ebp
call fcn.004133a0
add edi, eax
adc ebx, edx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x408b95
mov ebx, dword [esp + 0x10078]
mov ecx, dword [esp + 0x10074]
test ecx, ecx
jne 0x408ab4
test ebx, ebx
je 0x408acc
mov eax, dword [esp + 0x4c]
cmp eax, ebx
jb 0x408b95
jne 0x408acc
cmp dword [esp + 0x50], ecx
jb 0x408b95
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0x7fff
lea edx, [esp + 0x20]
lea ebx, [esp + 0x64]
mov ecx, esi
call fcn.004088e0
add esp, 4
mov eax, ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x408b5f
mov edx, dword [esp + 0x10]
push 0
mov ecx, ebx
push ecx
push esi
push edx
push 0x40000435
push 4
call fcn.00405400
add esp, 0x18
jmp 0x408b95
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x408b95
push ebp
push eax
call fcn.004052c0
add esp, 4
push eax
push esi
push str.CreateFile__
push esi
push ebx
push 0xc0000427
push 1
call fcn.00405400
add esp, 0x20
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
jmp 0x408acc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x408b95
push 0
push eax
call fcn.004052c0
mov ecx, dword [esp + 0x18]
add esp, 4
push eax
lea eax, [esp + 0x68]
push eax
push str.MoveFile__
push esi
push ecx
push 0xc0000427
push 1
call fcn.00405400
add esp, 0x20
mov ecx, dword [esp + 0x10060]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00412cdc
add esp, 0x10054
ret
Function at 0x408be0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov ebx, 0x7d0
lea ecx, [ecx]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
push eax
mov eax, dword [ebp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408c4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x6d
je 0x408c5b
cmp edi, 0x3e3
je 0x408c54
cmp edi, 0x718
je 0x408c31
or esi, 0xffffffff
jmp 0x408c3d
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 1
add ebx, 0xbb8
cmp ebx, 0x4268
jl 0x408bf0
jmp 0x408c5e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov esi, 1
jmp 0x408c5e
or esi, 0xffffffff
mov ecx, dword [ebp + 0x2c]
cmp dword [ecx], 1
jne 0x408c95
mov ebx, dword [esp + 0x24]
test byte [ebx], 1
jne 0x408c92
push 0
push edi
call fcn.004052c0
mov edx, dword [ebp + 4]
add esp, 4
push eax
mov eax, dword [ebp]
push edx
push eax
push 0xc0000432
push 1
call fcn.00405400
add esp, 0x18
or dword [ebx], 1
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x408ca0
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov ebx, 0x7d0
lea ecx, [ecx]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
push eax
mov eax, dword [ebp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x408d0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x3e5
je 0x408d0d
cmp esi, 0x6d
je 0x408d14
cmp esi, 0x70
je 0x408cf1
cmp esi, 0x718
jne 0x408cf8
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0xbb8
cmp ebx, 0x4268
mov edi, 1
jl 0x408cb0
jmp 0x408d17
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
or edi, 0xffffffff
mov ebx, dword [esp + 0x24]
test byte [ebx], 2
jne 0x408d43
push 0
push esi
call fcn.004052c0
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
add esp, 4
push eax
push ecx
push edx
push 0xc0000433
push 1
call fcn.00405400
add esp, 0x18
or dword [ebx], 2
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x409130
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, eax
mov dword [edi], 0
test ebx, ebx
je 0x409172
cmp dword [ebx], 0
jne 0x409172
test esi, esi
je 0x409172
cmp dword [esi], 0
jne 0x409172
push 0
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x4091a9
mov eax, dword [esi]
push 1
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0x30
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x4091d1
push eax
push str.create_logging_thread__
push str.logger
push 0xc00003eb
push 1
call fcn.00405400
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004052c0
mov ecx, dword [esp + 0x14]
push eax
push ebp
push ecx
push 0xc0000431
push 1
call fcn.00405400
add esp, 0x18
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esi], edx
mov edx, dword [esp + 0x20]
push edi
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x28]
push 0
mov dword [esi + 8], eax
mov dword [esi + 0x10], edx
mov dword [esi + 4], ebp
mov eax, dword [ebx]
push esi
mov dword [esi + 0x14], eax
mov edx, dword [ecx]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
push 0x408d50
mov dword [esi + 0x18], edx
mov edx, dword [esp + 0x44]
push 0
push 0
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x40925d
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004052c0
add esp, 4
push eax
push 0xc0000424
push 1
call fcn.00405400
add esp, 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x409920
Capabilities:
Get token membership

Disassembly:
sub esp, 0x10
mov eax, dword [0x422760]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
xor ebx, ebx
lea eax, [esp + 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x30]
push ecx
mov byte [0x42340d], bl
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], bl
mov byte [esp + 0x37], bl
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40998f
mov edx, dword [esp + 4]
push 0x42340d
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [esp + 0x10]
pop ebx
xor ecx, esp
call fcn.00412cdc
add esp, 0x10
ret
Function at 0x4099a0
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
sub esp, 0x3c
push ebx
push esi
push eax
call fcn.0041257c
add eax, 0x40
push eax
call fcn.00405470
push 0x3c
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00412d20
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add esp, 0x14
push 0x7fff
push 0
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x1c], str.runas
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
mov dword [esp + 0x18], eax
test eax, eax
jne 0x409a20
push str.elevate__
push str.GetModuleFileName__
push 0xc00001fa
call fcn.0041257c
add eax, 0x40
push eax
call fcn.00405470
add esp, 0x10
pop esi
mov eax, 0x6f
pop ebx
add esp, 0x3c
ret
push 0x7fff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xfffe
push 8
call ebx
push eax
call esi
mov esi, eax
test esi, esi
jne 0x409a5b
mov edx, dword [esp + 0x18]
push edx
push eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push str.elevate__
push str.GetCommandLine__
jmp 0x4099ff
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x41d4b4
push 0xffffffffffffffff
push 0x7fff
push esi
call fcn.00412731
mov eax, dword [esp + 0x5c]
mov eax, dword [eax]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409a80
sub eax, edx
push ebp
sar eax, 1
cmp word [esi], 0x22
push edi
lea edi, [eax + 1]
jne 0x409a9d
add edi, 2
movzx ecx, word [esi + edi*2]
push ecx
call fcn.0041364b
add esp, 4
test eax, eax
je 0x409ac3
mov edi, edi
movzx edx, word [esi + edi*2 + 2]
inc edi
push edx
call fcn.0041364b
add esp, 4
test eax, eax
jne 0x409ab0
lea ecx, [esp + 0x10]
lea eax, [esi + edi*2]
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], 5
xor ebp, ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x409ae6
lea ebp, [eax + 0x64]
mov edx, dword [esp + 0x20]
push edx
push 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call edi
push esi
push 0
call ebx
push eax
call edi
pop edi
mov eax, ebp
pop ebp
pop esi
pop ebx
add esp, 0x3c
ret
Function at 0x40a1e0
Capabilities:
Enumerate threads

Disassembly:
sub esp, 0x1c
push ebp
push edi
xor edi, edi
push edi
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
test ebp, ebp
jne 0x40a222
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004052c0
add esp, 4
push eax
mov eax, dword [esp + 0x30]
push eax
push 0xc0000408
push 1
call fcn.00405400
add esp, 0x14
pop edi
xor eax, eax
pop ebp
add esp, 0x1c
ret
xor eax, eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], eax
push ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x40a28b
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004052c0
mov edx, dword [esp + 0x30]
add esp, 4
push eax
push edx
push 0xc0000409
push 1
call fcn.00405400
add esp, 0x14
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop ebp
add esp, 0x1c
ret
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.USER32.dll_PostThreadMessageW]
push esi
mov esi, dword [esp + 0x34]
cmp eax, dword [esi]
jne 0x40a2b0
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x18]
push 0
push ecx
push 0x12
push edx
call ebx
mov edi, eax
lea eax, [esp + 0x10]
push eax
push ebp
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x40a2e8
nop
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esi]
jne 0x40a2d9
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x18]
push 0
push edx
push 0x12
push eax
call ebx
or edi, eax
lea ecx, [esp + 0x10]
push ecx
push ebp
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x40a2c0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x12
je 0x40a317
push 0
call esi
push eax
call fcn.004052c0
mov edx, dword [esp + 0x38]
add esp, 4
push eax
push edx
push 0xc0000409
push 1
call fcn.00405400
add esp, 0x14
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov eax, edi
pop edi
pop ebp
add esp, 0x1c
ret