joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404ab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a4f0
cmp edx, dword [eax]
je 0x404ad2
add eax, 8
inc ecx
cmp eax, 0x40a580
jl 0x404ac3
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a4f0]
jne 0x404c00
mov eax, dword [0x40aaf8]
cmp eax, 1
je 0x404bda
test eax, eax
jne 0x404b03
cmp dword [0x4080cc], 1
je 0x404bda
cmp edx, 0xfc
je 0x404c00
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404b3a
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004054d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004028e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404b7d
lea eax, [ebp - 0x1a4]
push eax
call fcn.004028e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40751c
push edi
call fcn.00405980
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004054d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004054e0
lea eax, [ebp - 0xa0]
push 0x4074fc
push eax
call fcn.004054e0
push dword [esi + 0x40a4f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004054e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004058f5
add esp, 0x2c
pop edi
jmp 0x404c00
lea eax, [ebp + 8]
lea esi, [esi + 0x40a4f4]
push 0
push eax
push dword [esi]
call fcn.004028e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402bf6
Capabilities:
Create process on windows

Disassembly:
push 0x20
mov eax, 0x49dcad
call fcn.00486a61
mov ebx, ecx
lea eax, [ebp - 0x10]
push eax
call sub.SensApi.dll_IsNetworkAlive
test eax, eax
je 0x402c53
push str.Uninstall:_OpenDefaultBrowser_with_Page:
lea esi, [ebp - 0x2c]
call fcn.00404db2
mov eax, esi
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00404975
pop ecx
push edi
push 1
call fcn.00404f5a
cmp dword [ebx + 0x18], 8
jb 0x402c3f
mov ebx, dword [ebx + 4]
jmp 0x402c42
add ebx, 4
push 1
push edi
push edi
push ebx
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
call fcn.00486b39
ret

Function at 0x403d90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403da7
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x403ddc
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x403dd8
cmp edi, eax
jae 0x403ddc
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x403dca
cmp edi, eax
jb 0x403de0
xor eax, eax
jmp 0x403de9
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4051ac
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x4e1e39], 0
jne 0x4051dc
push 0x4aed0c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4051d5
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4e1e3c], eax
mov byte [0x4e1e39], 1
mov eax, dword [0x4e1e3c]
test eax, eax
je 0x4051f4
push 0
push dword [esi + 4]
push dword [esp + 0xc]
push dword [esi]
call eax
jmp 0x405200
push dword [esp + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
ret 4

Function at 0x4052da
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40533e
cmp dword [ebp + 0xc], 1
je 0x405316
cmp dword [ebp + 0xc], 2
je 0x405316
push 0xd
pop eax
jmp 0x40533e
mov eax, dword [ebp - 4]
test edi, edi
je 0x405338
test eax, eax
je 0x405333
test al, 1
jne 0x405311
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x405338
jmp 0x405311
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x405342
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
test edi, edi
je 0x405354
cmp dword [esi], 2
jae 0x405354
push 0x7a
pop eax
jmp 0x4053b5
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4053b5
cmp dword [ebp + 0xc], 7
je 0x405385
push 0xd
jmp 0x405351
mov ecx, dword [ebp - 4]
test edi, edi
je 0x4053af
test cl, 1
jne 0x405381
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x405381
cmp word [edi + eax*2 - 2], 0
jne 0x405381
cmp eax, 1
jbe 0x4053af
cmp word [edi + eax*2 - 4], 0
jne 0x405381
shr ecx, 1
mov dword [esi], ecx
xor eax, eax
leave
ret 8

Function at 0x4053b9
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]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc

Function at 0x40540c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x4de270]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
push ecx
push dword [edi]
mov dword [esp + 0x24], ecx
xor esi, esi
or eax, 0x2001f
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call fcn.00405261
mov ebx, eax
cmp ebx, esi
je 0x405478
lea esi, [esp + 0x10]
call fcn.00405203
mov eax, ebx
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004812cc
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x405492
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.0040540c
cmp eax, esi
jne 0x4054cb
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x2c]
mov dword [esp + 0x38], 0x100
call ebx
test eax, eax
je 0x405480
lea esi, [esp + 0x10]
call fcn.00405203
push dword [esp + 0x1c]
mov esi, edi
call fcn.004051ac
lea esi, [esp + 0x10]
mov edi, eax
call fcn.00405203
mov eax, edi
jmp 0x405461
Function at 0x4058e7
Capabilities:
Delete registry value

Disassembly:
push 0x24
mov eax, 0x4a0902
call fcn.00486a61
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call fcn.004055b7
mov esi, eax
cmp esi, edi
jne 0x405925
mov edi, 0x3e81
lea esi, [ebp - 0x14]
call fcn.00405203
mov eax, edi
call fcn.00486b39
ret 4
cmp dword [ebx + 0x18], 8
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
jb 0x405936
mov eax, dword [ebx + 4]
jmp 0x405939
lea eax, [ebx + 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test edi, edi
jne 0x405950
push esi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
jmp 0x405913
push str.CRegistry::removeValue_...___for_key
lea esi, [ebp - 0x30]
call fcn.00404db2
mov eax, esi
push eax
mov byte [ebp - 4], 1
call fcn.00404975
pop ecx
xor ebx, ebx
push ebx
push 1
mov byte [ebp - 4], bl
call fcn.00404f5a
push str.CRegistry::removeValue_...___DeleteValue_error
lea esi, [ebp - 0x30]
call fcn.00404db2
push edi
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00408b56
pop ecx
push ebx
push 1
call fcn.00404f5a
jmp 0x405913
Function at 0x405ccf
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0879
mov eax, dword fs:[0]
push eax
mov eax, 0x2038
call fcn.00494e40
mov eax, dword [0x4de270]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov ebx, edx
mov dword [ebp - 0x201c], ecx
mov dword [ebp - 0x2024], esi
mov dword [ebp - 0x2020], esi
push eax
mov dword [ebp - 4], esi
call fcn.004055b7
mov edi, eax
cmp edi, esi
jne 0x405d57
mov edi, 0x3e81
lea esi, [ebp - 0x2024]
call fcn.00405203
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 - 0x14]
xor ecx, ebp
call fcn.004812cc
leave
ret 4
lea eax, [ebp - 0x2018]
push eax
lea eax, [ebp - 0x2014]
push eax
push dword [ebp - 0x201c]
mov dword [ebp - 0x2024], edi
mov dword [ebp - 0x2020], esi
mov dword [ebp - 0x2018], 0x1000
call fcn.004061b3
cmp dword [ebx + 0x18], 8
jb 0x405d91
mov eax, dword [ebx + 4]
jmp 0x405d94
lea eax, [ebx + 4]
mov dword [ebp - 0x201c], esi
mov dword [ebp - 0x2018], eax
lea esi, [ebp - 0x2014]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add dword [ebp - 0x201c], ecx
add esi, ecx
cmp eax, 1
jne 0x405da6
push dword [ebp - 0x201c]
lea eax, [ebp - 0x2014]
push eax
push 7
push 0
push dword [ebp - 0x2018]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x2018], eax
test eax, eax
jne 0x405def
push edi
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
jmp 0x405e43
push str.CRegistry::setMultiValue_...___for_key
lea esi, [ebp - 0x2040]
call fcn.00404db2
mov eax, esi
push eax
mov byte [ebp - 4], 1
call fcn.00404975
pop ecx
xor ebx, ebx
push ebx
push 1
mov byte [ebp - 4], bl
call fcn.00404f5a
push str.CRegistry::setMultiValue_...___SetMultiStringValue_error
lea esi, [ebp - 0x2040]
call fcn.00404db2
mov byte [ebp - 4], 2
push dword [ebp - 0x2018]
mov ecx, esi
call fcn.00408b56
pop ecx
push ebx
push 1
call fcn.00404f5a
mov edi, dword [ebp - 0x2018]
jmp 0x405d2e

Function at 0x405f27
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 0x14], 0
jne 0x405f36
push 0xd
pop eax
leave
ret
and dword [ebp - 4], 0
cmp dword [eax + 0x1c], 8
jb 0x405f45
mov ecx, dword [eax + 8]
jmp 0x405f48
lea ecx, [eax + 8]
push edi
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
push ecx
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x405f8c
cmp dword [ebp - 4], eax
je 0x405f8c
cmp dword [esi + 0x18], 8
jb 0x405f74
mov eax, dword [esi + 4]
jmp 0x405f77
lea eax, [esi + 4]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret
Function at 0x406268
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49f93a
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4de270]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
mov eax, dword [0x4de270]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
push ecx
push eax
mov eax, 0x20019
lea ecx, [esp + 0x18]
mov dword [esp + 0x260], ebx
call fcn.00405261
cmp eax, ebx
je 0x406308
mov ebx, 0x3e80
lea esi, [esp + 0x10]
call fcn.00405203
mov eax, ebx
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.004812cc
mov esp, ebp
pop ebp
ret
xor edi, edi
lea eax, [esp + 0x20]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x58]
push eax
push edi
push dword [esp + 0x2c]
mov dword [esp + 0x38], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x40636e
cmp eax, ebx
jne 0x40636b
lea eax, [esp + 0x44]
push eax
lea esi, [esp + 0x2c]
call fcn.00404db2
mov eax, esi
push eax
mov eax, dword [esp + 0x20]
mov byte [esp + 0x25c], 1
call fcn.00406493
push ebx
push 1
mov byte [esp + 0x260], bl
call fcn.00404f5a
inc edi
jmp 0x40630a
lea esi, [esp + 0x10]
call fcn.00405203
jmp 0x4062d9

Function at 0x40637c
Capabilities:
Encrypt data using dpapi
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SoftwareMicrosoftInternet_ExplorerUser_Preferences
push SysReAllocString
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x40641f
mov eax, edi
mov dword [ebp - 0x14], edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x4063b5
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x4063f2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40641f
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push 3
push esi
push str.88D7D0879DAB32E14DE5B3A805A34F98AFF34F5977
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x4091d5
Capabilities:
Create process on windows

Disassembly:
push 0x74
mov eax, 0x49f799
call fcn.00486a61
mov edi, str.CSystemCommands::OpenProgram__path
push edi
lea esi, [ebp - 0x28]
call fcn.00404db2
mov ebx, dword [ebp + 8]
and dword [ebp - 4], 0
mov eax, esi
push eax
call fcn.00404975
or dword [ebp - 4], 0xffffffff
pop ecx
xor ebx, ebx
push 0
inc ebx
push ebx
call fcn.00404f5a
push str.CSystemCommands::OpenProgram__params
lea esi, [ebp - 0x28]
call fcn.00404db2
mov eax, esi
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0xc]
push eax
call fcn.00404975
or dword [ebp - 4], 0xffffffff
pop ecx
push 0
push 1
call fcn.00404f5a
push str.CSystemCommands::OpenProgram__timeout
lea esi, [ebp - 0x28]
call fcn.00404db2
push dword [ebp + 0x10]
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.00408b56
or dword [ebp - 4], 0xffffffff
pop ecx
push 0
push 1
call fcn.00404f5a
push edi
lea esi, [ebp - 0x28]
call fcn.00404db2
mov ebx, dword [ebp + 8]
mov eax, esi
push eax
mov dword [ebp - 4], 3
call fcn.00404975
or dword [ebp - 4], 0xffffffff
pop ecx
xor edi, edi
push edi
push 1
call fcn.00404f5a
push 0x38
lea eax, [ebp - 0x7c]
push edi
push eax
mov dword [ebp - 0x80], 0x3c
call fcn.004864e0
mov eax, dword [ebp + 0x14]
add esp, 0xc
cmp dword [eax + 0x18], 8
mov dword [ebp - 0x7c], 0x140
jb 0x4092b8
mov eax, dword [eax + 4]
jmp 0x4092bb
add eax, 4
cmp dword [ebx + 0x18], 8
mov dword [ebp - 0x74], eax
jb 0x4092cc
mov eax, dword [ebx + 4]
mov dword [ebp - 0x70], eax
jmp 0x4092d2
add ebx, 4
mov dword [ebp - 0x70], ebx
mov eax, dword [ebp + 0xc]
xor ebx, ebx
inc ebx
cmp dword [eax + 0x18], 8
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x64], ebx
jb 0x4092e9
mov eax, dword [eax + 4]
jmp 0x4092ec
add eax, 4
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40935d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CSystemCommands::OpenProgram__error
lea esi, [ebp - 0x28]
mov dword [ebp + 8], eax
call fcn.00404db2
push dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], 4
call fcn.00408b56
or dword [ebp - 4], 0xffffffff
pop ecx
push edi
push ebx
call fcn.00404f5a
cmp dword [ebp + 8], 0x4c7
jne 0x409359
push str.CSystemCommands::OpenProgram__user_refused_elevation.
lea esi, [ebp - 0x44]
call fcn.00404db2
mov dword [ebp - 4], 5
call fcn.00404e64
push edi
push ebx
call fcn.00404f5a
xor al, al
jmp 0x409370
cmp dword [ebp + 0x10], edi
je 0x40936e
push dword [ebp + 0x10]
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov al, 1
call fcn.00486b39
ret
Function at 0x409448
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x144
mov eax, dword [0x4de270]
xor eax, ebp
mov dword [ebp + 0x74], eax
push edi
push 9
pop ecx
xor eax, eax
push 0x11c
lea edi, [ebp - 0xcc]
push eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xa8]
push eax
call fcn.004864e0
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
pop edi
test eax, eax
je 0x409580
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4094c6
lea ecx, [ebp - 0xcc]
push ecx
call eax
jmp 0x4094d3
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 2
pop ecx
cmp dword [ebp - 0x98], ecx
jne 0x409580
cmp dword [ebp - 0xa4], 4
jbe 0x409580
cmp dword [ebp - 0xa4], 6
jne 0x40953a
xor eax, eax
cmp dword [ebp - 0xa0], eax
jne 0x40950d
cmp byte [ebp + 0x72], 1
setne al
add eax, ecx
jmp 0x409582
inc eax
cmp dword [ebp - 0xa0], eax
jne 0x409525
xor ecx, ecx
cmp byte [ebp + 0x72], al
sete cl
add ecx, 4
mov eax, ecx
jmp 0x409582
cmp dword [ebp - 0xa0], ecx
jne 0x409580
xor ecx, ecx
cmp byte [ebp + 0x72], al
sete cl
add ecx, 6
jmp 0x409521
cmp dword [ebp - 0xa4], 5
jne 0x409580
cmp dword [ebp - 0xa0], ecx
jne 0x409580
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x40955c
xor eax, eax
inc eax
jmp 0x409582
test dword [ebp + 0x70], 0x2000
jne 0x409557
xor eax, eax
inc eax
test dword [ebp + 0x70], 0x8000
jne 0x409582
cmp byte [ebp + 0x72], al
jne 0x409582
cmp word [ebp - 0xcc], 9
jne 0x409582
xor eax, eax
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.004812cc
add ebp, 0x78
leave
ret
Function at 0x409fd7
Capabilities:
Enumerate processes

Disassembly:
push 0x278
mov eax, 0x49f653
call fcn.00486aca
mov edi, ecx
push str.CSystemCommands::Wait4AllProcesses__start.
lea esi, [ebp - 0x268]
mov dword [ebp - 0x24c], edi
call fcn.00404db2
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00404e64
or dword [ebp - 4], 0xffffffff
push ebx
push 1
call fcn.00404f5a
cmp edi, ebx
je 0x40a162
mov ecx, 0x4aec58
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a049
cmp dx, bx
je 0x40a045
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a049
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40a023
xor eax, eax
jmp 0x40a04e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40a162
push ebx
call fcn.00481d95
mov esi, eax
mov eax, dword [ebp + 8]
mov edi, edx
cdq
add esi, eax
pop ecx
adc edi, edx
push ebx
push 2
mov byte [ebp - 0x241], bl
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x23c]
push ebx
push eax
call fcn.004864e0
add esp, 0xc
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x248]
mov dword [ebp - 0x240], 0x22c
call sub.KERNEL32.dll_Process32FirstW
push dword [ebp - 0x24c]
lea eax, [ebp - 0x21c]
push eax
call fcn.00482643
pop ecx
pop ecx
test eax, eax
je 0x40a0de
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x248]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40a0ae
jmp 0x40a0e5
mov byte [ebp - 0x241], 1
push ebx
call fcn.00481d95
cmp dword [ebp + 8], ebx
pop ecx
jl 0x40a0fb
cmp edx, edi
jg 0x40a110
jl 0x40a0fb
cmp eax, esi
jae 0x40a110
cmp byte [ebp - 0x241], bl
je 0x40a139
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40a069
push str.CSystemCommands::Wait4AllProcesses__EXIT_ONTIMEOUT.
lea esi, [ebp - 0x268]
call fcn.00404db2
mov dword [ebp - 4], 2
call fcn.00404e64
push ebx
push 1
call fcn.00404f5a
xor eax, eax
inc eax
jmp 0x40a186
push str.CSystemCommands::Wait4AllProcesses__EXIT_ALLPROCCESS_ENDED.
lea esi, [ebp - 0x284]
call fcn.00404db2
mov dword [ebp - 4], 3
call fcn.00404e64
push ebx
push 1
call fcn.00404f5a
push 2
pop eax
jmp 0x40a186
push str.CSystemCommands::Wait4AllProcesses__not_valid_process_name.
lea esi, [ebp - 0x268]
call fcn.00404db2
xor edi, edi
inc edi
mov dword [ebp - 4], edi
call fcn.00404e64
push ebx
push edi
call fcn.00404f5a
xor eax, eax
call fcn.00486b4d
ret
Function at 0x40a44b
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4de270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp edi, ebx
je 0x40a503
mov ecx, 0x4aec58
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a496
cmp dx, bx
je 0x40a492
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a496
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40a470
xor eax, eax
jmp 0x40a49b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40a503
push esi
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov esi, eax
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.004864e0
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00482643
pop ecx
pop ecx
test eax, eax
je 0x40a4fc
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40a4d6
jmp 0x40a4fe
mov bl, 1
mov al, bl
pop esi
jmp 0x40a505
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004812cc
leave
ret
Function at 0x40b824
Capabilities:
Enumerate processes

Disassembly:
push ebp
sub esp, 0x22c
lea ebp, [esp - 4]
mov eax, dword [0x4de270]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push 0x48
mov eax, 0x49f492
call fcn.00486a61
push 0
mov esi, ecx
push 2
mov dword [ebp - 0x1c], esi
or edi, 0xffffffff
mov byte [ebp - 0xd], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x40b88e
push str.CLocalSystemCommands::LaunchAppIntoDifferentSession___CreateToolhelp32Snapshot_failed.
lea esi, [ebp - 0x38]
call fcn.00404db2
and dword [ebp - 4], 0
call fcn.00404e64
push 0
push 1
lea esi, [ebp - 0x38]
call fcn.00404f5a
xor eax, eax
jmp 0x40b97a
lea ecx, [ebp]
push ecx
push eax
mov dword [ebp], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40b8c0
push str.CLocalSystemCommands::LaunchAppIntoDifferentSession___Process32First_failed.
lea esi, [ebp - 0x38]
call fcn.00404db2
xor edi, edi
inc edi
mov dword [ebp - 4], edi
call fcn.00404e64
push 0
push edi
jmp 0x40b87f
cmp dword [esi + 0x18], 8
jb 0x40b8cb
mov eax, dword [esi + 4]
jmp 0x40b8ce
lea eax, [esi + 4]
push eax
lea eax, [ebp + 0x24]
push eax
call fcn.00482643
pop ecx
pop ecx
test eax, eax
jne 0x40b931
and dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40b931
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x238]
jne 0x40b931
mov edi, dword [ebp + 8]
push str.CLocalSystemCommands::LaunchAppIntoDifferentSession___winlogonPid
lea esi, [ebp - 0x38]
call fcn.00404db2
push edi
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.00408b56
or dword [ebp - 4], 0xffffffff
pop ecx
push 0
push 1
call fcn.00404f5a
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 0xd], 1
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40b8c0
cmp byte [ebp - 0xd], al
jne 0x40b96c
push str.CLocalSystemCommands::LaunchAppIntoDifferentSession___didnt_get_winlogonPid.
lea esi, [ebp - 0x54]
call fcn.00404db2
mov dword [ebp - 4], 3
call fcn.00404e64
push 0
push 1
jmp 0x40b882
push edi
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
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.004812cc
add ebp, 0x230
leave
ret