joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001590c
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x118
mov ecx, dword [rsp + 0x180]
call fcn.180022c50
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x80], WSAGetLastError
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x68], 0x18
mov dword [rsp + 0x78], 1
mov r9d, 0x100000
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [rsp + 0xbc], 0x101
xor eax, eax
mov word [rsp + 0xc0], ax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xd0], 0
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x80]
mov edx, dword [rsp + 0x180]
mov ecx, dword [rsp + 0x178]
call fcn.1800217d0
test eax, eax
jne 0x180015a15
mov ecx, dword [rsp + 0x180]
call fcn.180022c8c
jmp 0x180015aca
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0x160]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x140]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x148]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.18001627c
cmp dword [rsp + 0x138], 0
jbe 0x180015a85
mov edx, dword [rsp + 0x138]
mov rcx, qword [rsp + 0x48]
call fcn.180017b94
lea rax, [rsp + 0xf0]
lea rcx, [rsp + 0x50]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
mov r9, qword [rsp + 0x168]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0xf0]
call fcn.180017c10
mov ecx, dword [rsp + 0x180]
call fcn.180022c8c
add rsp, 0x118
pop rdi
pop rsi
ret
Function at 0x180016650
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
lea rax, [fcn.180016650]
lea rcx, [0x1800165d0]
sub rax, rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x48], 0
mov eax, dword [rsp + 0x30]
add rax, 0x20
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x30]
add rax, 0x20
mov rcx, rax
call fcn.180027894
mov qword [rsp + 0x38], rax
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x80]
mov ecx, 0x20
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
add rcx, 0x20
lea rdx, [0x1800165d0]
mov rdi, rcx
mov rsi, rdx
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x180016742
mov eax, dword [rsp + 0x34]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180016742
mov eax, dword [rsp + 0x34]
cmp qword [rsp + 0x48], rax
je 0x180016742
mov qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x38]
call fcn.180027880
mov rax, qword [rsp + 0x40]
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x180016758
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x1c
rep stosb byte [rdi], al
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x78], 0
mov dword [rsp + 0x80], 0x1c
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x60], rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], 0
lea rcx, [0x180052524]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x180052510]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x180016833
xor eax, eax
jmp 0x1800169c5
lea r8, [rsp + 0x58]
mov rax, qword [rsp + 0xb0]
mov edx, dword [rax + 0x10]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax]
call fcn.180016650
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x180016867
xor eax, eax
jmp 0x1800169c5
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180016887
xor eax, eax
jmp 0x1800169c5
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x1800168a4
xor eax, eax
jmp 0x1800169c5
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x10]
cmp dword [rsp + 0x8c], eax
je 0x1800168ba
jmp 0x18001690f
mov r8d, dword [rsp + 0x88]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1800168de
jmp 0x18001690f
mov rax, qword [rsp + 0x38]
add rax, 0x20
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x38]
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1800168a4
cmp qword [rsp + 0x30], 0
je 0x18001693c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x18001697e
cmp qword [rsp + 0x50], 0x20
je 0x180016982
xor eax, eax
jmp 0x1800169c5
cmp dword [rsp + 0x70], 0
jne 0x1800169c0
mov dword [rsp + 0x70], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
jmp 0x1800169c5
mov eax, 1
add rsp, 0xa0
pop rdi
ret
Function at 0x1800169d0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x38], 0
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtQueueApcThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x180016a1a
xor eax, eax
jmp 0x180016a6f
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [rsp + 0x38]
test eax, eax
je 0x180016a45
xor eax, eax
jmp 0x180016a6f
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x180016a63
mov dword [rsp + 0x30], 1
jmp 0x180016a6b
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x180016a74
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180016abf
mov dword [rsp + 0x30], 1
jmp 0x180016ac7
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x180016ad0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x180016b22
mov dword [rsp + 0x40], 1
jmp 0x180016b2a
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x180016b34
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x538
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x560]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, qword [rsp + 0x568]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x180016b93
xor eax, eax
jmp 0x180016cac
mov eax, dword [rsp + 0x570]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x540]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 6
je 0x180016bc5
cmp dword [rsp + 0x50], 7
je 0x180016bf4
jmp 0x180016c2f
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9, qword [rsp + 0x558]
mov r8, qword [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x48], rax
jmp 0x180016c2f
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov rax, qword [rsp + 0x558]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x548]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x180016c3b
xor eax, eax
jmp 0x180016cac
mov dword [rsp + 0x90], 0x10000b
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x180016c5e
xor eax, eax
jmp 0x180016cac
mov rax, qword [rsp + 0x550]
mov qword [rsp + 0xe0], rax
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x180016c86
xor eax, eax
jmp 0x180016cac
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x180016ca0
mov dword [rsp + 0x54], 1
jmp 0x180016ca8
mov dword [rsp + 0x54], 0
mov eax, dword [rsp + 0x54]
add rsp, 0x538
ret
Function at 0x180017048
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x30], 0
mov ecx, 0x2d
call fcn.1800212a4
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x78], eax
jbe 0x180017087
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x34], eax
mov ecx, 0x2b
call fcn.18002136c
movzx eax, ax
mov ecx, dword [rsp + 0x34]
mov dword [rsp + 0x20], eax
mov r9d, 0x3000
mov r8d, ecx
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1800170dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, dword [rsp + 0x34]
mov ecx, 0x1f
call fcn.180010eb0
xor eax, eax
jmp 0x180017225
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x30], eax
jge 0x18001719a
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x78]
sub ecx, eax
mov eax, ecx
cdqe
movsxd rcx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x70]
add rdx, rcx
mov rcx, rdx
movsxd rdx, dword [rsp + 0x30]
mov r8, qword [rsp + 0x48]
add r8, rdx
mov rdx, r8
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], r8
mov r9, rax
mov r8, rcx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x180017164
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, reloc.WS2_32.dll_recv
call fcn.180010e8c
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x180017225
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x38], 0
jne 0x180017195
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x180017225
jmp 0x1800170dd
mov ecx, 0x2b
call fcn.18002136c
movzx eax, ax
mov dword [rsp + 0x3c], eax
mov ecx, 0x2c
call fcn.18002136c
movzx eax, ax
mov ecx, dword [rsp + 0x3c]
cmp ecx, eax
jne 0x1800171c2
jmp 0x180017220
mov ecx, 0x2c
call fcn.18002136c
movzx eax, ax
mov ecx, dword [rsp + 0x34]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rdx
mov r9d, eax
mov r8d, ecx
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x180017220
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, send
call fcn.180010e8c
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x180017225
mov rax, qword [rsp + 0x48]
add rsp, 0x58
ret
Function at 0x180017364
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x508
mov dword [rsp + 0x60], 0x100002
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x510]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x18001739d
xor eax, eax
jmp 0x180017401
mov rax, qword [rsp + 0x518]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x520]
mov qword [rsp + 0xb8], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x510]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x1800173d8
xor eax, eax
jmp 0x180017401
mov rcx, qword [rsp + 0x510]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1800173f5
mov dword [rsp + 0x20], 1
jmp 0x1800173fd
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
add rsp, 0x508
ret

Function at 0x18001740c
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x308
cmp qword [rsp + 0x320], 0
je 0x180017431
xor eax, eax
jmp 0x1800174a6
mov dword [rsp + 0x30], 0x100002
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x310]
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
jne 0x180017454
xor eax, eax
jmp 0x1800174a6
mov eax, dword [rsp + 0x318]
mov dword [rsp + 0xe0], eax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x310]
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
jne 0x18001747d
xor eax, eax
jmp 0x1800174a6
mov rcx, qword [rsp + 0x310]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x18001749a
mov dword [rsp + 0x20], 1
jmp 0x1800174a2
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
add rsp, 0x308
ret

Function at 0x180018040
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x180018097
mov eax, 0xffffffff
jmp 0x18001813b
cmp dword [rsp + 0x38], 0
jbe 0x180018137
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
jae 0x180018137
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, eax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x180018132
mov eax, 0xffffffff
jmp 0x18001813b
jmp 0x180018097
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x180018f40
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
jge 0x180018fd3
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x58]
add rdx, rcx
mov rcx, rdx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x180018fba
cmp dword [rsp + 0x34], 0
jne 0x180018fc1
mov eax, 0xffffffff
jmp 0x180018fe8
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
jmp 0x180018f63
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
je 0x180018fe4
mov eax, 0xffffffff
jmp 0x180018fe8
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x180018ff0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x34], 1
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
jge 0x1800190ad
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
cmp eax, 0x2000
jle 0x180019046
mov dword [rsp + 0x38], 0x2000
jmp 0x180019056
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov r8d, dword [rsp + 0x38]
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x180019098
mov eax, dword [rsp + 0x34]
jmp 0x1800190b1
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
jmp 0x18001901b
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret
Function at 0x1800191c4
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [rsp + 0x58]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x2c], 1
lea r8, [rsp + 0x2c]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
jne 0x180019216
xor eax, eax
jmp 0x1800192be
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [rsp + 0x30]
jae 0x18001928e
mov r9d, 2
mov r8d, 1
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x180019255
mov dword [rsp + 0x28], 0
jmp 0x18001928e
cmp dword [rsp + 0x24], 0
jle 0x180019268
mov dword [rsp + 0x28], 1
jmp 0x18001928e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x180019282
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18001928c
mov dword [rsp + 0x28], 0
jmp 0x18001928e
jmp 0x180019216
mov dword [rsp + 0x2c], 0
lea r8, [rsp + 0x2c]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
jne 0x1800192ba
xor eax, eax
jmp 0x1800192be
mov eax, dword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x1800192c4
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x78
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x38], rax
lea rax, [0x1800193ac]
mov qword [rsp + 0x40], rax
lea rax, [0x18001948c]
mov qword [rsp + 0x48], rax
lea rax, [0x180019370]
mov qword [rsp + 0x50], rax
lea rax, [0x180018c60]
mov qword [rsp + 0x58], rax
lea rax, [0x18001945c]
mov qword [rsp + 0x60], rax
lea rax, [0x180018c60]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x30]
mov rdi, qword [rsp + 0x90]
mov rsi, rax
mov ecx, 0x40
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x90]
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x180019500
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x20], eax
jge 0x18001958c
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x50]
sub ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
add rdx, rcx
mov rcx, rdx
xor r9d, r9d
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
jne 0x180019571
mov eax, 0xffffffff
jmp 0x1800195a1
cmp dword [rsp + 0x24], 0
jne 0x18001957a
jmp 0x18001958c
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
jmp 0x180019523
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x20], eax
je 0x18001959d
mov eax, 0xffffffff
jmp 0x1800195a1
mov eax, dword [rsp + 0x50]
add rsp, 0x38
ret

Function at 0x1800195a8
Capabilities:
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp dword [rsp + 0x50], 0
jne 0x1800195c9
mov eax, 1
jmp 0x1800195f5
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x1800195f0
xor eax, eax
jmp 0x1800195f5
mov eax, 1
add rsp, 0x38
ret