joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800104a0
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 0x18001050d
mov rcx, qword [rcx]
lea rdx, [rsp + 0x20]
call fcn.18000c71c
test eax, eax
je 0x18001050d
mov rax, qword [rsp + 0x20]
or dword [rbx + 0x20], 4
mov rcx, rbx
mov qword [rbx], rax
call fcn.1800101e8
mov rcx, qword [rbx + 0x18]
lea rdx, [rsp + 0x20]
mov edi, eax
call fcn.1800102ec
mov rcx, qword [rbx + 0x18]
test eax, eax
jne 0x1800104ff
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x180010515
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
jmp 0x180010515
mov rcx, rbx
call fcn.1800101e8
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x180010520
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 [0x180047480]
mov qword [r11 - 0x28], r8
and qword [r11 - 0x30], 0
mov r8, qword [0x180047488]
mov dword [rsp + 0x30], eax
mov qword [r11 - 0x40], rdx
mov rdx, qword [0x180047478]
and qword [r11 - 0x48], 0
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x180010580
mov eax, 1
jmp 0x180010598
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rbx]
mov ecx, 0x45
mov r8d, eax
call fcn.18000e390
xor eax, eax
add rsp, 0x60
pop rbx
ret
Function at 0x18001071c
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.180014720
mov edx, 0x4000
mov rcx, rax
mov rbp, rax
call fcn.18001487c
mov edi, 0x400
mov rcx, rbp
mov edx, edi
mov qword [rsp + 0x68], rax
call fcn.18001487c
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x60], rax
call fcn.18001487c
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x70], rax
call fcn.18001487c
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x78], rax
call fcn.18001487c
lea r14d, [rsi + 0x68]
lea rcx, [rsp + 0x80]
mov r8d, r14d
xor edx, edx
mov rdi, rax
call fcn.18001b4d0
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.18000f9f4
mov rdx, qword [rsp + 0x70]
mov r8d, 0x400
mov rcx, r12
call fcn.18000f9f4
mov rdx, qword [rsp + 0x78]
mov r8d, 0x400
mov rcx, rbx
call fcn.18000f9f4
mov rdx, qword [rsp + 0x60]
mov ebx, 0x400
mov r8d, ebx
mov rcx, r13
call fcn.18000f9f4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
jae 0x180010889
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 0x18001090b
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.18000e258
mov ebx, edi
mov rcx, rbp
call fcn.180014814
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 0x180010c4c
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 0x180010c3e
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.18001c480
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 [0x1800424d0], rsi
mov rbx, rcx
jne 0x180010c8a
mov ecx, 0x80004
call fcn.18001b228
mov qword [0x1800424d0], rax
mov ecx, dword [rbx]
call sub.WS2_32.dll_htonl
mov rcx, qword [0x1800424d0]
mov dword [rcx], eax
mov edi, dword [rbx + 4]
cmp edi, r14d
cmova edi, r14d
test edi, edi
je 0x180010cdc
mov rax, qword [0x1800424d0]
mov r9, qword [rbx + 8]
mov ecx, esi
add rax, 4
mov r8d, edi
mov edx, 1
add rcx, rax
call fcn.18001ccd0
test eax, eax
je 0x180010cd8
sub dword [rbx + 4], eax
add esi, eax
sub edi, eax
jne 0x180010ca8
jmp 0x180010cdc
and dword [rbx + 4], 0
mov rcx, qword [0x1800424d0]
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 0x180010c04
Function at 0x1800112cc
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 0x1800112fe
xor eax, eax
jmp 0x180011320
inc eax
cmp eax, edi
jae 0x1800112fa
mov r8, rdi
xor edx, edx
mov rcx, rbp
call fcn.18001b4d0
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 0x180011338
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 0x1800119dc
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.18001a964
mov r15d, 0x68
lea rcx, [rbp - 0x60]
xor edx, edx
mov r8d, r15d
call fcn.18001b4d0
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.180019a54
test eax, eax
je 0x180011b1e
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.180011ffc
test edi, edi
je 0x180011af3
mov rcx, qword [rsp + 0x58]
mov edx, edi
call fcn.1800131d0
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.180013244
mov ecx, dword [rbp + 0x70]
call fcn.18001a994
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 0x180012258
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.180012258]
mov rbp, rcx
lea r15, [0x18001220c]
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.18001b228
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.18001b8c0
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 0x180012318
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 0x180012318
cmp qword [rsp + 0x70], rdi
cmovne rbx, r12
mov rcx, r14
call fcn.18001b1e8
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 0x18001233c
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.18001b4d0
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 0x1800124c5
mov edx, dword [rsi + 0x10]
mov rcx, qword [rsi]
lea r8, [rbp - 0x20]
call fcn.180012258
mov rbx, rax
test rax, rax
je 0x1800124c5
xor edx, edx
lea ecx, [rdx + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
test rax, rax
je 0x1800124c5
lea rdx, [rbp - 0x40]
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1800124c5
mov eax, dword [rsi + 0x10]
cmp dword [rbp - 0x34], eax
jne 0x18001244d
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 0x18001244d
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 0x18001240d
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 0x1800124c5
cmp qword [rbp + 0x28], rdi
jne 0x1800124c5
cmp dword [rbp - 8], 0
jne 0x1800124e1
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 0x1800124c7
Function at 0x1800124e8
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 0x18001252d
xor eax, eax
jmp 0x180012557
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 0x180012529
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 0x18001256c
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 0x180012598
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 0x1800125cc
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 0x180012623
xor eax, eax
jmp 0x1800126c6
mov eax, dword [rsp + 0x550]
add r8, rax
sub edi, 6
je 0x18001265b
dec edi
jne 0x18001261c
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 0x180012675
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 0x18001261c
lea rdx, [rsp + 0x40]
mov rcx, rax
mov dword [rsp + 0x70], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x18001261c
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov qword [rsp + 0xc0], rbp
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x18001261c
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 0x1800126e4
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.18001979c
mov ecx, 0x2b
movzx ebx, ax
call fcn.18001979c
cmp ax, bx
je 0x18001274e
mov ecx, 0x2c
call fcn.18001979c
lea r9, [rsp + 0x40]
mov rdx, rdi
movzx r8d, ax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18001274e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, reloc.WS2_32.dll_recvfrom
mov edx, eax
call fcn.18000e2a4
xor eax, eax
jmp 0x180012753
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1800129dc
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.180019714
lea ecx, [rbx + 0x2b]
mov ebp, eax
cmp esi, eax
cmova ebp, esi
mov r15d, ebp
call fcn.18001979c
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 0x180012a54
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rbx + 0x1f]
mov edx, ebp
mov r8d, eax
call fcn.18000e2b0
xor eax, eax
jmp 0x180012b0f
test esi, esi
jle 0x180012a95
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 0x180012ae4
mov eax, dword [rsp + 0x88]
add ebx, eax
test eax, eax
je 0x180012af6
cmp ebx, esi
jl 0x180012a58
mov esi, 0x2c
mov ecx, esi
call fcn.18001979c
lea ecx, [rsi - 1]
movzx ebx, ax
call fcn.18001979c
cmp ax, bx
je 0x180012b0c
mov ecx, esi
call fcn.18001979c
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 0x180012b0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rsi - 0x1b]
jmp 0x180012aef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, reloc.WS2_32.dll_recv
mov edx, eax
call fcn.18000e2a4
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x180012a4d
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 0x180012bdc
Capabilities:
Resume thread

Disassembly:
cmp byte [rcx + 0x14], 0
mov rcx, qword [rcx + 8]
je 0x180012c68
jmp 0x180012bdc
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 0x180012c19
xor eax, eax
jmp 0x180012c4c
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 0x180012c15
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 0x180012c8b
xor eax, eax
jmp 0x180012ccc
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x100002
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
je 0x180012c87
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0xd0], esi
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
je 0x180012c87
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 0x180012c68
Capabilities:
Resume thread

Disassembly:
cmp byte [rcx + 0x14], 0
mov rcx, qword [rcx + 8]
je 0x180012c68
jmp 0x180012bdc
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 0x180012c19
xor eax, eax
jmp 0x180012c4c
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 0x180012c15
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 0x180012c8b
xor eax, eax
jmp 0x180012ccc
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x100002
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
je 0x180012c87
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0xd0], esi
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
je 0x180012c87
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 0x1800134e8
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 0x18001352f
or eax, 0xffffffff
jmp 0x18001358f
cmp dword [rsp + 0x30], ebx
jbe 0x18001358d
cmp ebx, edi
jae 0x18001358d
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 0x18001352a
cmp dword [rsp + 0x30], 0
ja 0x180013535
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret