joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444920
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x475a28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0046e450
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004442c0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046e37e
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0046ac41
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0046ac41
push 1
push 0
push 0
mov ecx, esi
call fcn.0046abe9
push 1
push 0
push 1
mov ecx, esi
call fcn.0046abe9
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046e4c2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x444aa0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x475a48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0046e450
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004442c0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046e37e
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x444b64
cmp dword [esp + 0x40], 1
jne 0x444b62
cmp ecx, eax
jge 0x444b64
mov eax, ecx
cmp eax, 0xc8
jge 0x444b70
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00444920
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046e4c2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4452e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x475ab3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046905a
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046e6f8
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046fc14
test eax, eax
je 0x4453fc
mov ecx, dword [esp + 0x3c]
call fcn.0046e725
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4453c0
push edi
mov ecx, esi
call fcn.0046bd8c
mov ecx, esi
call fcn.00445560
cmp dword [esp + 0x38], 1
jne 0x4453f5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046bec7
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x447e10
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x447e43
push esi
call fcn.0044af20
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x447e3c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x447ec9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x447eb2
mov eax, dword [esi + 8]
test eax, eax
je 0x447e67
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x447eae
cmp eax, 2
je 0x447eb2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x447e5a
cmp eax, 3
je 0x447e8d
cmp eax, 1
jne 0x447e5a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x447e5a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x447e5a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00447ef0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x447ed8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00447ef0
add esp, 4
pop esi
ret

Function at 0x4531c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x453226
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x453226
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x453207
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4535b0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4535e8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x454270
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4542b9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x454730
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x475fb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004542e0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00454360
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00454360
lea ecx, [esi + 0xc]
call fcn.00467a36
lea ecx, [esi + 0x10]
call fcn.00467a36
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004558f0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004558f0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004558f0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00467aab
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00467aab
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x469e4f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x469e87
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00467f06
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00467ede
jmp 0x469e93
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46b549
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46b58b
call fcn.004712bf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46b58b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46b582
xor eax, eax
jmp 0x46b593
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046b599
pop edi
pop esi
pop ebx
ret 4

Function at 0x4717ef
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47181d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47183b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00471755
jmp 0x47183b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47183b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00471755
test edi, edi
mov eax, edi
jne 0x471825
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x13c
mov eax, dword [0x41dda0]
xor eax, esp
mov dword [esp + 0x138], eax
mov eax, dword [esp + 0x140]
push esi
mov esi, dword [esp + 0x148]
push edi
mov edi, dword [esp + 0x150]
test edi, edi
je 0x4010e8
test esi, esi
je 0x4010e8
lea ecx, [esp + 8]
push ecx
push 0x201
push 0
push 0x41eec0
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4010e8
push 0x12b
push eax
lea edx, [esp + 0x1d]
push edx
mov byte [esp + 0x20], al
call fcn.00405940
add esp, 0xc
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push esi
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0x12c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4010e8
mov eax, dword [esp + 0x154]
lea edx, [esp + 0x14]
push edx
push eax
push edi
call fcn.004058c6
add esp, 0xc
pop edi
lea eax, [esi + 1]
pop esi
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.0040592b
add esp, 0x13c
ret
mov ecx, dword [esp + 0x140]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040592b
add esp, 0x13c
ret

Function at 0x4011b0
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
sub esp, 8
push ebp
push esi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
xor esi, esi
push 1
push esi
push esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
or ebp, 0xffffffff
call sub.WTSAPI32.dll_WTSEnumerateProcessesA
test eax, eax
je 0x40123a
mov eax, dword [esp + 8]
push ebx
push edi
xor edi, edi
cmp dword [esp + 0x14], esi
jbe 0x401232
mov ebx, dword [esp + 0x1c]
jmp 0x4011f0
mov edx, dword [esi + eax + 8]
push str.winlogon.exe
push edx
call fcn.00405bdb
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x40120f
cmp ebx, dword [esi + eax]
je 0x40122b
add edi, 1
add esi, 0x10
cmp edi, dword [esp + 0x14]
jb 0x4011f0
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
shl edi, 4
mov ebp, dword [edi + eax + 4]
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
Function at 0x401420
Capabilities:
Get token privileges

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov ecx, dword [ebp]
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [esp + 0x10]
push eax
xor ebx, ebx
push ebx
push ebx
push 3
push ecx
mov dword [esp + 0x24], ebx
call edi
mov edx, dword [esp + 0x10]
push edx
call fcn.00405c8e
add esp, 4
mov esi, eax
mov dword [esi], ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp]
lea eax, [esp + 0x10]
push eax
push ecx
push esi
push 3
push edx
call edi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x4014b5
xor eax, eax
cmp dword [esi], eax
jbe 0x401490
lea ecx, [esi + 0xc]
lea ecx, [ecx]
mov dword [ecx], 2
add eax, 1
add ecx, 0xc
cmp eax, dword [esi]
jb 0x401480
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp]
push 0
push 0
push eax
push esi
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4014c8
call edi
push eax
push eax
push str.Failed_to_call_AdjustTokenPrivileges._Error_Code___d__0x_x_._n
jmp 0x4014c0
call edi
mov ebx, eax
push ebx
push ebx
push str.Failed_to_call_GetTokenInformation._Error_Code___d__0x_x_._n
call fcn.004052f0
add esp, 0xc
push esi
call fcn.00405c2b
mov eax, dword [ebp]
add esp, 4
push 4
lea edx, [esp + 0x18]
push edx
push 0x1a
push eax
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x401503
call edi
mov ebx, eax
push ebx
push ebx
push str.Failed_to_call_GetTokenInformation._Error_Code___d__0x_x_._n
call fcn.004052f0
add esp, 0xc
pop edi
pop esi
xor eax, eax
test ebx, ebx
pop ebp
sete al
pop ebx
add esp, 8
ret
Function at 0x401520
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x514
mov eax, dword [0x41dda0]
xor eax, esp
mov dword [esp + 0x510], eax
push ebx
push ebp
mov ebp, dword [esp + 0x528]
push esi
mov esi, dword [esp + 0x524]
xor ebx, ebx
cmp esi, ebx
push edi
mov edi, dword [esp + 0x52c]
mov dword [esp + 0x18], ebx
je 0x401700
cmp edi, ebx
je 0x401700
cmp ebp, ebx
je 0x401700
push 0x1f3
lea eax, [esp + 0x13d]
push ebx
push eax
mov byte [esp + 0x144], bl
call fcn.00405940
push 0x1f3
lea ecx, [esp + 0x33d]
push ebx
push ecx
mov byte [esp + 0x344], bl
call fcn.00405940
push 0xc7
lea edx, [esp + 0x8d]
push ebx
push edx
mov byte [esp + 0x94], bl
call fcn.00405940
push edi
push esi
push str._s_s
lea eax, [esp + 0x168]
push 0x1f4
push eax
call fcn.00405a35
push esi
push 0x4123f8
lea ecx, [esp + 0x36c]
push 0x1f4
push ecx
call fcn.00405a35
add esp, 0x48
push ebp
push str._dumy__s
lea edx, [esp + 0x78]
push 0xc8
push edx
call fcn.00405a35
call fcn.004012f0
lea eax, [esp + 0x20]
push eax
call fcn.00401250
add esp, 0x14
test eax, eax
je 0x4016fa
xor eax, eax
push 0x44
lea ecx, [esp + 0x30]
push ebx
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call fcn.00405940
mov edx, dword [esp + 0x1c]
add esp, 0xc
push ebx
push edx
lea eax, [esp + 0x1c]
push eax
mov word [esp + 0x68], 5
mov dword [esp + 0x40], str.Winsta0default
mov dword [esp + 0x38], 0x44
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
push ebx
je 0x4016c2
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push 0x408
push ebx
push ebx
push ebx
lea ecx, [esp + 0x90]
push ecx
lea edx, [esp + 0x15c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x4016ad
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4016fa
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [esp + 0x18]
jmp 0x401702
mov edx, dword [esp + 0x1c]
push ebx
push 8
push ebx
push ebx
push ebx
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x15c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x4016ef
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
jmp 0x401702
xor eax, eax
mov ecx, dword [esp + 0x520]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040592b
add esp, 0x514
ret
Function at 0x401720
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
sub esp, 8
push ebp
push esi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
xor esi, esi
push 1
push esi
push esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
or ebp, 0xffffffff
call sub.WTSAPI32.dll_WTSEnumerateProcessesA
test eax, eax
je 0x4017aa
mov eax, dword [esp + 8]
push ebx
push edi
xor edi, edi
cmp dword [esp + 0x14], esi
jbe 0x4017a2
mov ebx, dword [esp + 0x1c]
jmp 0x401760
mov edx, dword [esi + eax + 8]
push str.explorer.exe
push edx
call fcn.00405bdb
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x40177f
cmp ebx, dword [esi + eax]
je 0x40179b
add edi, 1
add esi, 0x10
cmp edi, dword [esp + 0x14]
jb 0x401760
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
shl edi, 4
mov ebp, dword [edi + eax + 4]
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
Function at 0x401870
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x63c
mov eax, dword [0x41dda0]
xor eax, esp
mov dword [esp + 0x638], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x64c]
xor ebx, ebx
xor ebp, ebp
cmp esi, ebx
push edi
mov edi, dword [esp + 0x654]
je 0x401a7a
cmp edi, ebx
je 0x401a7a
push 0x12b
lea eax, [esp + 0x139]
push ebx
push eax
mov byte [esp + 0x140], bl
call fcn.00405940
push 0x12c
lea ecx, [esp + 0x144]
push ecx
push esi
call fcn.00401110
push 0x1f3
lea edx, [esp + 0x27d]
push ebx
push edx
mov byte [esp + 0x284], bl
call fcn.00405940
push 0x1f3
lea eax, [esp + 0x47d]
push ebx
push eax
mov byte [esp + 0x484], bl
call fcn.00405940
push 0xc7
lea ecx, [esp + 0xa1]
push ebx
push ecx
mov byte [esp + 0xa8], bl
call fcn.00405940
push edi
lea edx, [esp + 0x174]
push edx
push str._s_s
lea eax, [esp + 0x2a8]
push 0x1f4
push eax
call fcn.00405a35
add esp, 0x50
lea ecx, [esp + 0x134]
push ecx
push 0x4123f8
lea edx, [esp + 0x45c]
push 0x1f4
push edx
call fcn.00405a35
push str._dumy
lea eax, [esp + 0x80]
push 0xc8
push eax
call fcn.00405a35
call fcn.004012f0
lea ecx, [esp + 0x2c]
push ecx
call fcn.004017c0
add esp, 0x20
test eax, eax
je 0x401a76
lea edx, [esp + 0x10]
push edx
call fcn.00401420
xor eax, eax
push 0x44
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push ebx
push eax
mov dword [esp + 0x24], ebx
call fcn.00405940
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ebx
push ecx
lea edx, [esp + 0x1c]
push edx
mov word [esp + 0x64], 5
mov dword [esp + 0x3c], str.Winsta0default
mov dword [esp + 0x34], 0x44
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebx
je 0x401a41
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push 0x408
push ebx
push ebx
push ebx
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x284]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x401a2e
lea ebp, [ebx + 1]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x401a76
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, ebp
jmp 0x401a7c
mov ecx, dword [esp + 0x1c]
push ebx
push 8
push ebx
push ebx
push ebx
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x284]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x401a6b
mov ebp, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
jmp 0x401a7c
xor eax, eax
mov ecx, dword [esp + 0x648]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040592b
add esp, 0x63c
ret
Function at 0x401aa0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x514
mov eax, dword [0x41dda0]
xor eax, esp
mov dword [esp + 0x510], eax
push ebx
push ebp
mov ebp, dword [esp + 0x528]
push esi
mov esi, dword [esp + 0x524]
xor ebx, ebx
cmp esi, ebx
push edi
mov edi, dword [esp + 0x52c]
mov dword [esp + 0x18], ebx
je 0x401c96
cmp edi, ebx
je 0x401c96
cmp ebp, ebx
je 0x401c96
push 0x1f3
lea eax, [esp + 0x13d]
push ebx
push eax
mov byte [esp + 0x144], bl
call fcn.00405940
push 0x1f3
lea ecx, [esp + 0x33d]
push ebx
push ecx
mov byte [esp + 0x344], bl
call fcn.00405940
push 0xc7
lea edx, [esp + 0x8d]
push ebx
push edx
mov byte [esp + 0x94], bl
call fcn.00405940
push edi
push esi
push str._s_s
lea eax, [esp + 0x168]
push 0x1f4
push eax
call fcn.00405a35
push esi
push 0x4123f8
lea ecx, [esp + 0x36c]
push 0x1f4
push ecx
call fcn.00405a35
add esp, 0x48
push ebp
push str._dumy__s
lea edx, [esp + 0x78]
push 0xc8
push edx
call fcn.00405a35
call fcn.004012f0
lea eax, [esp + 0x20]
push eax
call fcn.004017c0
add esp, 0x14
test eax, eax
je 0x401c90
cmp dword [esp + 0x534], ebx
je 0x401bb2
lea ecx, [esp + 0x10]
push ecx
call fcn.00401420
add esp, 4
xor eax, eax
push 0x44
lea edx, [esp + 0x30]
push ebx
push edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call fcn.00405940
mov eax, dword [esp + 0x1c]
add esp, 0xc
push ebx
push eax
lea ecx, [esp + 0x1c]
push ecx
mov word [esp + 0x68], 5
mov dword [esp + 0x40], str.Winsta0default
mov dword [esp + 0x38], 0x44
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
lea edx, [esp + 0x1c]
push edx
test eax, eax
lea eax, [esp + 0x30]
push eax
push ebx
je 0x401c58
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push 0x408
push ebx
push ebx
push ebx
lea edx, [esp + 0x90]
push edx
lea eax, [esp + 0x15c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x401c43
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x401c90
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [esp + 0x18]
jmp 0x401c98
mov eax, dword [esp + 0x1c]
push ebx
push 8
push ebx
push ebx
push ebx
lea ecx, [esp + 0x90]
push ecx
lea edx, [esp + 0x15c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x401c85
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
jmp 0x401c98
xor eax, eax
mov ecx, dword [esp + 0x520]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040592b
add esp, 0x514
ret