joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4023f0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
lea eax, [esp]
push str.SMPAGTCTR.INI
push 0x41f3ac
push str._s_s
push eax
call fcn.00409e89
mov edx, dword [esp + 0x11c]
mov eax, dword [esp + 0x118]
add esp, 0x10
lea ecx, [esp]
push ecx
push edx
push eax
push 0x41f4b4
push str.Path
push str.Common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
ja 0x40245c
push str.SMP_Agent
push 0x41f3ac
lea ecx, [esp + 8]
push str._s_s
push ecx
call fcn.00409e89
add esp, 0x10
mov eax, 1
add esp, 0x104
ret

Function at 0x402770
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x402794
mov eax, 1
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4027e1
mov eax, 2
add esp, 0x14
ret
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
and al, 0xfd
add eax, 3
add esp, 0x14
ret

Function at 0x402800
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push esi
push edi
push str.SeDebugPrivilege
call fcn.00406460
mov esi, dword [esp + 0x10]
add esp, 4
test esi, esi
jne 0x402850
mov eax, dword [esp + 0x10]
test eax, eax
je 0x402843
cmp byte [eax], 0
je 0x402843
push eax
call fcn.00405e80
mov esi, eax
add esp, 4
test esi, esi
jne 0x402850
push 0x490
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
push 0
push 1
push 0
push 0
push str.ExitProcess
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
push esi
call fcn.00406b50
mov edi, eax
add esp, 0x18
test edi, edi
je 0x40288b
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
push esi
call fcn.00402920
add esp, 4
test eax, eax
je 0x40290f
push esi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4028b9
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4028d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4028f5
mov edi, eax
jmp 0x4028f8
push 0x7d0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4028f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4028f5
mov edi, eax
jmp 0x4028f8
or edi, 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40290f
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
Function at 0x402a70
Capabilities:
Delete registry key

Disassembly:
push esi
push str.SYSTEMCurrentControlSetControlSafeBootMinimal
push 0x80000002
xor esi, esi
call fcn.00412fc0
add esp, 8
test eax, eax
jne 0x402aa4
push eax
push str.SYSTEMCurrentControlSetControlSafeBootMinimal
push eax
push str.SYSTEMCurrentControlSetControlSafeBootBkMinimal
push 0x80000002
call fcn.00412e40
add esp, 0x14
mov esi, eax
push str.SYSTEMCurrentControlSetControlSafeBootNetwork
push 0x80000002
call fcn.00412fc0
add esp, 8
test eax, eax
jne 0x402ad9
push eax
push str.SYSTEMCurrentControlSetControlSafeBootNetwork
push eax
push str.SYSTEMCurrentControlSetControlSafeBootBkNetwork
push 0x80000002
call fcn.00412e40
add esp, 0x14
test eax, eax
je 0x402ad9
mov esi, eax
push str.SYSTEMCurrentControlSetControlSafeBootBk
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov eax, esi
pop esi
ret

Function at 0x403220
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea eax, [ebx + 1]
push eax
call fcn.0040a5bb
mov edx, eax
add esp, 4
test edx, edx
jne 0x40324d
pop edi
pop esi
pop ebx
ret 8
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [edx], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
jle 0x403286
mov cl, byte [eax + edx]
xor cl, 0x1a
mov byte [eax + edx], cl
inc eax
cmp eax, ebx
jl 0x403278
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov eax, edx
mov dword [ecx], ebx
pop ebx
ret 8
Function at 0x403ab0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
push edi
je 0x403aed
mov edi, dword [esp + 0x18]
shr edi, 2
je 0x403b0b
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
sub esi, edx
mov eax, dword [esi + edx]
add edx, 4
mov ecx, eax
ror ecx, 8
rol eax, 8
xor eax, ecx
and eax, 0xff00ff
xor eax, ecx
dec edi
mov dword [edx - 4], eax
jne 0x403acd
pop edi
pop esi
ret
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
cmp esi, edi
je 0x403b0b
mov ecx, dword [esp + 0x18]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret

Function at 0x4045f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], 0x44
test eax, eax
mov dword [esp + 0x40], 1
pop edi
jne 0x40461a
mov word [esp + 0x40], ax
xor eax, eax
mov dword [esp], eax
lea ecx, [esp]
mov dword [esp + 4], eax
lea edx, [esp + 0x10]
mov dword [esp + 8], eax
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x28], eax
push eax
mov eax, dword [esp + 0x78]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40465a
xor al, al
add esp, 0x54
ret 8
mov ecx, dword [esp]
push esi
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov al, 1
pop esi
add esp, 0x54
ret 8
Function at 0x404970
Capabilities:
Enumerate process modules

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov dword [esi + 8], 0xffffffff
mov dword [edi], 0
mov eax, dword [esi]
push eax
call fcn.00405b1e
push 0x1000
call fcn.0040a5bb
add esp, 8
mov dword [esi], eax
push edi
push 0x1000
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4049b9
mov eax, dword [edi]
mov dword [esi + 8], 1
shr eax, 2
mov dword [edi], eax
cmp dword [edi], 0x400
jae 0x404984
mov eax, dword [esi]
test eax, eax
je 0x4049da
mov ecx, dword [esi + 8]
mov edx, dword [edi]
cmp ecx, edx
jae 0x4049da
mov eax, dword [eax + ecx*4]
inc ecx
mov dword [esi + 8], ecx
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x404a20
Capabilities:
Enumerate process modules

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
lea edi, [esi + 8]
test eax, eax
mov dword [edi], 0
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 4], 0
je 0x404a9f
mov eax, dword [esi + 4]
push eax
call fcn.00405b1e
push 0x1000
call fcn.0040a5bb
mov ecx, dword [esi]
add esp, 8
mov dword [esi + 4], eax
push edi
push 0x1000
push eax
push ecx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x404a7b
mov eax, dword [edi]
mov dword [esi + 0xc], 0
shr eax, 2
mov dword [edi], eax
cmp dword [edi], 0x400
jae 0x404a41
cmp dword [esi], 0
je 0x404a9f
mov ecx, dword [esi + 0xc]
mov eax, dword [edi]
cmp ecx, eax
jae 0x404a9f
mov edx, dword [esi + 4]
inc ecx
pop edi
mov eax, dword [edx + ecx*4 - 4]
mov dword [esi + 0xc], ecx
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x404f10
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x24]
push ebp
push esi
push edi
push 0x400
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.00404b60
lea ecx, [esp + 0x10]
push ecx
push 0x404b10
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0
test eax, eax
je 0x404fc1
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jbe 0x404fc1
mov esi, dword [eax]
mov dword [esp + 0x20], 1
test esi, esi
je 0x404fc1
mov ebp, dword [sym.imp.USER32.dll_SendMessageTimeoutA]
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0
push edx
push 0x64
push 0xa
push 0
push 0
push 0x11
push esi
call ebp
mov eax, dword [esp + 0xc]
test eax, eax
je 0x405001
push 0
push 0
push 0x10
push esi
call edi
push 0
push 0
push 0x10
push esi
call edi
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x404fc1
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
cmp eax, edx
jae 0x404fc1
mov esi, dword [ecx + eax*4]
inc eax
test esi, esi
mov dword [esp + 0x20], eax
jne 0x404f6d
mov eax, dword [esp + 0x30]
mov edi, 1
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40501e
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405017
mov eax, dword [esp + 0x34]
test eax, eax
je 0x405015
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x405017
lea ecx, [esp + 0x10]
call fcn.00404b90
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret 8
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
call fcn.00404b90
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x20
ret 8
Function at 0x405190
Capabilities:
Delete service

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x415571
push eax
mov dword fs:[0], esp
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x40520c
push 0xffc
call fcn.0040a5bb
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x10], esi
je 0x4052eb
push str.Error_while_OpenSCManager.
push 0x3a99
push esi
push str.Nov_11_2010
push str.E:CommonSourceCSServiceControlCSServiceControl.cpp
push 0x59
push eax
call fcn.004057c0
add esp, 0x1c
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 4
mov eax, dword [esp + 0x18]
push 0xf01ff
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x40527e
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0xffc
call fcn.0040a5bb
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x10], 1
je 0x4052eb
push str.Error_while_OpenService.
push 0x3a9b
push edi
push str.Nov_11_2010
push str.E:CommonSourceCSServiceControlCSServiceControl.cpp
push 0x65
push eax
call fcn.004057c0
add esp, 0x1c
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 4
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jne 0x4052e6
call edi
push esi
call edi
push 0xffc
call fcn.0040a5bb
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x10], 2
je 0x4052eb
push str.Error_while_DeleteService.
push 0x3a9c
push 0
push str.Nov_11_2010
push str.E:CommonSourceCSServiceControlCSServiceControl.cpp
push 0x6f
push eax
call fcn.004057c0
add esp, 0x1c
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 4
call edi
push esi
call edi
mov ecx, dword [esp + 8]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4
Function at 0x405300
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x4053b1
mov eax, dword [esp + 0x30]
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x4053a1
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x10]
push ecx
push esi
call ebx
test eax, eax
je 0x4053a1
cmp dword [esp + 0x14], 1
je 0x405389
lea edx, [esp + 0x10]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4053a1
cmp dword [esp + 0x14], 3
jne 0x405389
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
je 0x4053a1
cmp dword [esp + 0x14], 3
je 0x40536f
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call edi
push esi
call edi
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1c
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call edi
test esi, esi
je 0x4053b1
push esi
call edi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret 4

Function at 0x4058a0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x2000
call fcn.0040b250
mov ecx, dword [esp + 0x2004]
lea eax, [esp + 0x2008]
push eax
lea edx, [esp + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x2000
ret

Function at 0x4063d0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4063f7
add esp, 0x1c
ret
lea ecx, [esp + 4]
push esi
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov esi, eax
test esi, esi
je 0x40644a
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push 0
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xc]
push 0x10
push ecx
push 0
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, eax
mov eax, dword [esp + 4]
test eax, eax
je 0x406459
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x1c
ret
Function at 0x406540
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x40660f
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x406585
mov eax, 1
add esp, 0x94
ret
cmp eax, 5
jne 0x4065c0
mov eax, dword [esp + 8]
test eax, eax
jne 0x40659e
mov eax, 2
add esp, 0x94
ret
cmp eax, 1
jne 0x4065af
mov eax, 3
add esp, 0x94
ret
cmp eax, 2
jne 0x40660f
mov eax, 4
add esp, 0x94
ret
cmp eax, 6
jne 0x4065fe
mov eax, dword [esp + 8]
test eax, eax
jne 0x4065d9
mov eax, 5
add esp, 0x94
ret
cmp eax, 1
jne 0x4065ea
mov eax, 6
add esp, 0x94
ret
xor ecx, ecx
cmp eax, 2
setne cl
add ecx, 7
mov eax, ecx
add esp, 0x94
ret
cmp eax, 7
jb 0x40660f
mov eax, 8
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret

Function at 0x406620
Capabilities:
Acquire debug privileges

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
push esi
push edi
push ebx
push 0
push 0x1f0fff
mov edi, 1
mov dword [eax], 0
call ebp
mov esi, eax
test esi, esi
jne 0x40666f
test edi, edi
je 0x40668d
push str.SeDebugPrivilege
xor edi, edi
call fcn.00406460
add esp, 4
push ebx
push edi
push 0x1f0fff
call ebp
mov esi, eax
test esi, esi
je 0x40664d
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x40669f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4066a1
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4066b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x5c
push ebx
mov ebx, dword [esp + 0x8c]
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x1c], eax
xor edi, edi
mov dword [esp + 0x20], eax
cmp ebx, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], eax
jne 0x4066ed
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea ebx, [esp + 0x28]
mov esi, dword [esp + 0x70]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x4067f6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, eax
je 0x4067f6
lea edx, [esp + 0x10]
push edx
push 0xb
push esi
call fcn.00406620
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x40673b
push esi
push str.Ps_OpenProcessToken:__d
call fcn.004068e0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 1
push 2
push edi
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov edx, dword [esp + 0x10]
mov esi, eax
push edx
call ebp
cmp esi, edi
jne 0x406790
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, edi
jne 0x40676d
or eax, 0xffffffff
push eax
push str.Ps_OpenProcessToken:__d
call fcn.004068e0
add esp, 8
call esi
cmp eax, edi
jne 0x40687b
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x5c
ret
mov edi, dword [esp + 0x7c]
test edi, edi
mov eax, edi
jne 0x40679e
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
push eax
mov eax, dword [esp + 0x98]
push ebx
push eax
mov eax, dword [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x94]
push edx
mov edx, dword [esp + 0x94]
push eax
mov eax, dword [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x90]
push edx
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
call ebp
jmp 0x40684e
mov edi, dword [esp + 0x7c]
test edi, edi
mov eax, edi
jne 0x406804
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
push eax
mov eax, dword [esp + 0x90]
push ebx
push ecx
mov ecx, dword [esp + 0x94]
push edx
mov edx, dword [esp + 0x94]
push eax
mov eax, dword [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x90]
push edx
mov edx, dword [esp + 0x90]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
test esi, esi
jne 0x406867
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40687b
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x5c
ret
test edi, edi
jne 0x406879
mov eax, dword [esp + 0x18]
push eax
call ebp
mov ecx, dword [esp + 0x1c]
push ecx
call ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret

Function at 0x4068e0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x2710
call fcn.0040b250
mov ecx, dword [esp + 0x2714]
lea eax, [esp + 0x2718]
push eax
push ecx
lea edx, [esp + 8]
push 0x270f
push edx
call fcn.0040af45
add esp, 0x10
lea eax, [esp]
mov byte [esp + 0x270f], 0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x2710
ret
Function at 0x406a10
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x22c
push ebx
push ebp
mov ebp, dword [esp + 0x238]
push esi
push edi
xor edx, edx
mov ecx, 0x88
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], edx
rep stosd dword es:[edi], eax
cmp ebp, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov edi, 1
jne 0x406a52
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x22c
ret
mov ebx, dword [esp + 0x244]
push ebx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x406aa2
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x406a45
call ebp
cmp eax, 5
jne 0x406a45
push str.SE_DEBUG_NAME
xor edi, edi
call fcn.00406460
add esp, 4
test eax, eax
je 0x406a45
push ebx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x406a6e
mov ebp, dword [esp + 0x240]
push 0x5c
push ebp
call fcn.0040a5e0
add esp, 8
test eax, eax
je 0x406ab9
mov dword [esp + 0x14], 1
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x224
push eax
push esi
call sub.KERNEL32.dll_Module32First
mov eax, dword [esp + 0x14]
push ebp
test eax, eax
je 0x406aeb
lea ecx, [esp + 0x13c]
push ecx
call fcn.00411f50
add esp, 8
test eax, eax
je 0x406b0d
jmp 0x406afc
lea edx, [esp + 0x3c]
push edx
call fcn.00411f50
add esp, 8
test eax, eax
je 0x406b17
lea eax, [esp + 0x18]
push eax
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
je 0x406b1f
jmp 0x406acc
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x10], ecx
jmp 0x406b1f
mov edx, dword [esp + 0x34]
mov dword [esp + 0x10], edx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x406b3f
mov eax, dword [esp + 0x248]
test eax, eax
je 0x406b3f
mov edx, dword [esp + 0x28]
mov dword [eax], edx
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x22c
ret
Function at 0x406b50
Capabilities:
Create thread
Inject thread

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x20]
xor ebp, ebp
mov ebx, 1
cmp edi, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], esi
je 0x406cdd
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, eax
je 0x406cdd
test byte [esp + 0x30], 3
jne 0x406b93
mov dword [esp + 0x30], ebx
push edi
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x43a
call ebp
mov esi, eax
test esi, esi
jne 0x406bd9
test ebx, ebx
je 0x406c11
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x406c11
push str.SE_DEBUG_NAME
xor ebx, ebx
call fcn.00406460
add esp, 4
test eax, eax
je 0x406c11
push edi
push ebx
push 0x43a
call ebp
mov esi, eax
test esi, esi
je 0x406ba8
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov edi, ebp
neg edi
sbb edi, edi
and edi, eax
je 0x406c3c
push 4
push 0x103000
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
jne 0x406c1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x406cb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
lea eax, [esp + 0x20]
push eax
push edi
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x406c02
cmp dword [esp + 0x20], edi
jne 0x406c02
mov eax, ebx
jmp 0x406c44
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push 0
push 0
push eax
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebp, eax
test ebp, ebp
je 0x406c9e
push 0xffffffffffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x406c7c
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x406c9e
test ebx, ebx
je 0x406ca8
test byte [esp + 0x30], 2
je 0x406ca8
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x30]
push edx
push edi
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x406ca8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x406cb3
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x406cc6
push 0x8000
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test esi, esi
je 0x406cd1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push esi
call dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
cmp ecx, ebp
je 0x406cec
mov dword [ecx], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret