joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004420
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x70
cmp dword [0x140016370], 0
jbe 0x140004541
mov rdx, qword [0x14000cc58]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
xorps xmm0, xmm0
movdqu xmmword [0x1400163c0], xmm0
and qword [0x1400163a8], 0
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 5
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], 7
lea rbx, [0x140016380]
lea r8, [0x1400163a0]
lea rcx, [0x14000ffb0]
mov edx, 0x10000000
mov r9, rbx
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
mov dword [0x1400163a0], 0x30
mov dword [0x1400163b8], 0x240
mov qword [0x1400163b0], rax
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
and qword [rsp + 0x40], 0
mov eax, dword [0x140016370]
and qword [rsp + 0x38], 0
mov rcx, qword [0x14000ffb0]
mov dword [rsp + 0x30], eax
mov rax, qword [0x14000ffa0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov rcx, qword [0x14000ffb0]
test rcx, rcx
je 0x140004522
call qword [sym.imp.ntoskrnl.exe_ZwClose]
and qword [0x14000ff90], 0
mov rcx, qword [0x14000ffa0]
test rcx, rcx
je 0x140004541
mov edx, 0x62737973
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
and qword [0x14000ffa0], 0
add rsp, 0x70
pop rbx
ret

Function at 0x140004548
Capabilities:
Delete file

Disassembly:
sub rsp, 0x68
mov rdx, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x20]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 0x30
mov dword [rsp + 0x48], 0x240
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
add rsp, 0x68
ret
Function at 0x140004594
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
mov rax, qword [0x14000c330]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov r12, r8
mov r15, rdx
mov rdi, rcx
xor r13d, r13d
mov dword [r11 - 0x60], r13d
xor eax, eax
mov qword [r11 - 0x5c], rax
mov qword [r11 - 0x54], rax
mov dword [r11 - 0x4c], eax
mov dword [r11 - 0x90], r13d
xor edx, edx
lea r8d, [r13 + 0x28]
lea rcx, [r11 - 0x88]
call fcn.140001550
mov qword [rsp + 0x70], r13
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x80], r13
mov bl, r13b
mov byte [rsp + 0x60], bl
mov dword [rsp + 0x88], 0x30
mov qword [rsp + 0x90], r13
mov dword [rsp + 0xa0], 0x240
mov qword [rsp + 0x98], rdi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xa8], xmm0
mov dword [rsp + 0x50], r13d
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x40], 0x960
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x88]
mov edx, 0x80100080
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
js 0x140004733
mov dword [rsp + 0x20], 5
lea r9d, [r13 + 0x18]
lea r8, [rsp + 0xb8]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
js 0x140004733
mov esi, dword [rsp + 0xc0]
lea r14d, [rsi + 1]
mov edx, r14d
xor ecx, ecx
mov r8d, 0x5f666c73
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x140004733
mov r8d, r14d
xor edx, edx
mov rcx, rax
call fcn.140001550
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov qword [r15], rdi
mov dword [r12], esi
mov bl, 1
mov byte [rsp + 0x60], bl
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140004748
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov qword [rsp + 0x68], r13
jmp 0x14000474e
mov al, bl
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400092a0
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140004774
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rdi, rdx
mov rsi, rcx
xor r14d, r14d
mov edx, 0x1018
xor ecx, ecx
mov r8d, 0x6675636b
mov qword [rbp + 0x77], r14
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x1400047c0
mov eax, 0xc000009a
jmp 0x1400048c5
xor edx, edx
mov r8d, 0x1018
mov rcx, rax
call fcn.140001550
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r14w
jne 0x1400047d4
add eax, eax
mov rcx, rbx
mov dword [rbx + 0x10], eax
sub rcx, rdi
movzx eax, word [rdi]
lea rdi, [rdi + 2]
mov word [rcx + rdi + 0x12], ax
test ax, ax
jne 0x1400047e9
lea rcx, [rbp - 9]
mov rdx, rsi
mov byte [rbx], r14b
mov qword [rbx + 8], r14
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x50], r14d
xorps xmm0, xmm0
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x40], 0x28
lea rax, [rbp - 9]
movdqu xmmword [rbp + 0x37], xmm0
mov qword [rbp + 0x27], rax
mov eax, 1
lea r9, [rbp + 7]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
lea r8, [rbp + 0x17]
lea rcx, [rbp + 0x77]
mov edx, 0x110000
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov dword [rbp + 0x17], 0x30
mov qword [rbp + 0x1f], r14
mov dword [rbp + 0x2f], 0x40
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov edi, eax
test eax, eax
jns 0x140004886
mov edx, 0x6675636b
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x1400048c3
mov rcx, qword [rbp + 0x77]
lea rdx, [rbp + 7]
mov r9d, 0x1018
mov r8, rbx
mov dword [rsp + 0x20], 0xa
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov edi, eax
test eax, eax
jns 0x1400048b9
mov edx, 0x6675636b
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400049f8
Capabilities:
Enumerate processes via ntquerysysteminformation
Find process by pid
Get system information on windows
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x14000c330]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbp, rcx
mov edx, 0x100000
mov r8d, 0x656e6f42
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
xor ebx, ebx
mov rsi, rax
mov rdi, rax
test rax, rax
je 0x140004b17
lea ecx, [rbx + 5]
xor r9d, r9d
mov r8d, 0x100000
mov rdx, rax
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
jns 0x140004a74
mov edx, 0x656e6f42
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x140004b17
mov qword [rsp + 0x20], rbx
mov rcx, qword [rdi + 0x50]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140004aa2
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x104
call fcn.140001550
lea rcx, [rdi + 0x38]
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call fcn.140004398
test eax, eax
js 0x140004b09
or r8, 0xffffffffffffffff
inc r8
cmp byte [r8 + rbp], bl
jne 0x140004ad0
lea rcx, [rsp + 0x30]
mov rdx, rbp
call sub.ntoskrnl.exe__strnicmp
test eax, eax
je 0x140004af5
mov eax, dword [rdi]
test eax, eax
je 0x140004af7
add rdi, rax
jmp 0x140004a79
mov bl, 1
mov edx, 0x656e6f42
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, bl
jmp 0x140004b19
lea rcx, [0x1400099b0]
mov edx, eax
call sub.ntoskrnl.exe_DbgPrint
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400092a0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140018000
Capabilities:
Create device object
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.14001802c
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140001c84
Function at 0x18002f9c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18002f9e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18002f9e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003ae0
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1e0
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x14009a358]
xor rax, rsp
mov qword [rsp + 0x1d8], rax
mov eax, 1
lock xadd dword [0x14009ea60], eax
test eax, eax
jne 0x140003b27
lea rdx, [rsp + 0x40]
mov cx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x14009ea64], eax
test bl, bl
je 0x140003b83
mfence
mov edx, dword [0x14009ea64]
test edx, edx
je 0x140003b83
lea r8, [0x140098748]
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.14000689a
lea rax, str.winsock_init.ipp
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rax, str.throw_on_error
mov qword [r8 + 8], rax
movabs rax, 0x500000048
mov qword [r8 + 0x10], rax
lea rdx, str.winsock
mov rcx, rdi
call fcn.140007e17
mov rcx, qword [rsp + 0x1d8]
xor rcx, rsp
call fcn.14003a390
mov rax, rsi
add rsp, 0x1e0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140008b12
Capabilities:
Terminate thread

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov r15d, edx
mov rsi, rcx
lea rax, vtable.boost::asio::detail::win_iocp_io_context.0
mov qword [rcx], rax
lea rbx, [rcx + 0xa8]
cmp qword [rcx + 0xa8], 0
je 0x140008c49
mov eax, 1
mov ecx, 1
xchg dword [rsi + 0x34], ecx
test ecx, ecx
jne 0x140008bcf
xchg dword [rsi + 0x38], eax
test eax, eax
jne 0x140008bcf
mov rcx, qword [rsi + 0x28]
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x140008bcf
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [0x140098748]
lea r14, [rbp - 0x20]
mov rcx, r14
mov edx, eax
call fcn.14000689a
lea rax, str.win_iocp_io_context.ipp
lea r8, [rbp - 0x38]
mov qword [r8], rax
lea rax, str.stop
mov qword [r8 + 8], rax
movabs rax, 0x900000120
mov qword [r8 + 0x10], rax
lea rdx, str.pqcs
mov rcx, r14
call fcn.140007e17
mov rdi, qword [rbx]
movdqu xmm0, xmmword [rdi + 8]
pshufd xmm0, xmm0, 0x4e
lea rdx, [rbp - 0x20]
movdqa xmmword [rdx], xmm0
mov ecx, 2
xor r8d, r8d
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mfence
mov eax, dword [0x14009ea5c]
mov rdx, qword [rdi + 8]
test eax, eax
je 0x140008c20
mov rcx, rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x140008c3f
lea rcx, [method.boost::asio::detail::win_iocp_io_context.virtual_16]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rdi + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
xor edx, edx
call fcn.140008a18
mov rcx, rbx
call fcn.140008a4a
lea rcx, [rsi + 0x90]
call fcn.140008a76
lea rcx, [rsi + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [rsi + 0x50]
call fcn.140008b02
lea rcx, [rsi + 0x48]
call fcn.140008a4a
lea rcx, [rsi + 0x28]
call fcn.140008b02
test r15d, r15d
je 0x140008c8f
mov rcx, rsi
call fcn.14003a738
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
Function at 0x1400090e4
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov r14d, r8d
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x14009a358]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ecx, ecx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rsi, rax
mov qword [rbx + 8], rax
test rax, rax
jne 0x14000918b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rbx]
mov rcx, rbx
mov edx, 1
call qword [rax]
lea r8, [0x140098748]
lea r15, [rsp + 0x50]
mov rcx, r15
mov edx, ebp
call fcn.14000689a
lea rax, str.win_thread.ipp
lea r8, [rsp + 0x38]
mov qword [r8], rax
lea rax, str.start_thread
mov qword [r8 + 8], rax
movabs rax, 0x50000004c
mov qword [r8 + 0x10], rax
lea rdx, str.thread.entry_event
mov rcx, r15
call fcn.140007e17
xor r12d, r12d
xor ecx, ecx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x10], rax
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x140009210
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rbx]
mov rcx, rbx
mov edx, 1
call qword [rax]
lea r8, [0x140098748]
lea r15, [rsp + 0x50]
mov rcx, r15
mov edx, ebp
call fcn.14000689a
lea rax, str.win_thread.ipp
lea r8, [rsp + 0x38]
mov qword [r8], rax
lea rax, str.start_thread
mov qword [r8 + 8], rax
movabs rax, 0x500000056
mov qword [r8 + 0x10], rax
lea rdx, str.thread.exit_event
mov rcx, r15
call fcn.140007e17
lea rax, [rsp + 0x34]
mov dword [rax], r12d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
lea r8, [0x1400092f7]
xor ecx, ecx
mov edx, r14d
mov r9, rbx
call fcn.1400612d0
mov qword [rdi + 8], rax
test rax, rax
jne 0x1400092be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rbx]
mov rcx, rbx
mov edx, 1
call qword [rax]
test rsi, rsi
je 0x140009262
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140009271
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [0x140098748]
lea rdi, [rsp + 0x50]
mov rcx, rdi
mov edx, ebp
call fcn.14000689a
lea rax, str.win_thread.ipp
lea r8, [rsp + 0x38]
mov qword [r8], rax
lea rax, str.start_thread
mov qword [r8 + 8], rax
movabs rax, 0x500000066
mov qword [r8 + 0x10], rax
lea rdx, str.thread
mov rcx, rdi
call fcn.140007e17
test rsi, rsi
je 0x1400092da
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14003a390
nop
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400230f9
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rax
mov r8, qword [rcx + 0x30]
cmp rcx, r8
je 0x140023183
mov r9, qword [rcx + 0x20]
mov r10, qword [rcx + 8]
cmp r9, r10
cmovb r10, r9
mov r11, qword [rcx]
mov eax, dword [rdx]
mov dword [rsp], eax
cmp r10, 4
jb 0x140023141
xor eax, eax
mov bl, byte [rsp + rax]
xor byte [r11 + rax], bl
inc rax
cmp rax, 4
jne 0x140023123
add r11, 4
add r10, 0xfffffffffffffffc
cmp r10, 3
ja 0x140023121
test r10, r10
je 0x140023176
xor eax, eax
mov bl, byte [rsp + rax]
xor byte [r11 + rax], bl
inc rax
cmp r10, rax
jne 0x140023148
mov eax, dword [rdx]
mov dword [rsp + 4], eax
xor eax, eax
lea ebx, [r10 + rax]
and ebx, 3
mov bl, byte [rsp + rbx + 4]
mov byte [rdx + rax], bl
inc rax
cmp rax, 4
jne 0x14002315f
sub r9, qword [rcx + 8]
add rcx, 0x10
cmp rcx, r8
jne 0x140023108
add rsp, 8
pop rbx
ret
Function at 0x1400232e6
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov qword [rbp - 8], 0xfffffffffffffffe
mov r14, r9
mov r15, rdx
mov byte [rbp - 0x14], r8b
movzx eax, byte [r9]
mov qword [rbp - 0x20], rax
mov eax, dword [rcx + 0x968]
test eax, eax
sete dl
add dl, dl
or dl, 1
mov byte [rbp - 0x13], dl
test eax, eax
jne 0x14002334c
cmp byte [rcx + 0xa09], 0
lea rax, [0x1400246bf]
lea rsi, [0x1400242b7]
cmove rsi, rax
call rsi
test eax, eax
je 0x140023343
mov dword [rbp - 0x18], eax
lea rdx, [rbp - 0x20]
mov rcx, r15
call fcn.14002410c
movzx esi, byte [r14]
test rsi, rsi
je 0x140023475
test byte [rbp - 0x13], 2
je 0x140023371
mov eax, dword [rbp - 0x18]
mov dword [rbp - 0xc], eax
mov rbx, qword [r15 + 0x10]
mov rax, qword [r15 + 0x20]
mov rcx, rax
sub rcx, rbx
cmp rcx, rsi
jae 0x1400233b5
mov rcx, qword [r15]
mov rdx, qword [r15 + 8]
mov r12, rbx
sub r12, rdx
sub rax, r12
sub rax, rcx
cmp rax, rsi
jb 0x140023484
cmp rbx, rdx
je 0x1400233b9
mov r8, r12
call fcn.14005a330
mov rcx, qword [r15]
mov al, byte [r14]
jmp 0x1400233bb
mov eax, esi
jmp 0x1400233c9
mov eax, esi
mov qword [r15 + 8], rcx
add r12, rcx
mov qword [r15 + 0x10], r12
mov rbx, r12
lea rcx, [rbx + rsi]
mov qword [r15 + 0x18], rcx
movzx ecx, sil
movzx eax, al
cmp cl, al
cmovb eax, ecx
test al, al
je 0x1400233f1
movzx r8d, al
lea rdx, [r14 + 1]
mov rcx, rbx
call fcn.14002f720
test byte [rbp - 0x13], 2
je 0x140023458
mov eax, dword [rbp - 0xc]
mov dword [rbp - 0x38], eax
cmp sil, 4
jb 0x140023428
xor eax, eax
mov cl, byte [rbp + rax - 0x38]
xor byte [rbx + rax], cl
inc rax
cmp rax, 4
jne 0x140023405
add rbx, 4
add rsi, 0xfffffffffffffffc
cmp rsi, 3
ja 0x140023403
test rsi, rsi
je 0x140023458
xor eax, eax
mov cl, byte [rbp + rax - 0x38]
xor byte [rbx + rax], cl
inc rax
cmp rsi, rax
jne 0x14002342a
mov eax, dword [rbp - 0xc]
mov dword [rbp - 0x50], eax
xor eax, eax
lea ecx, [rsi + rax]
and ecx, 3
mov cl, byte [rbp + rcx - 0x50]
mov byte [rbp + rax - 0xc], cl
inc rax
cmp rax, 4
jne 0x140023441
movzx eax, byte [r14]
mov rcx, qword [r15 + 0x10]
mov rdx, qword [r15 + 0x18]
sub rdx, rcx
cmp rdx, rax
cmovae rdx, rax
add rdx, rcx
mov qword [r15 + 0x10], rdx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea rax, str.flat_static_buffer.ipp
lea rsi, [rbp - 0x50]
mov qword [rsi], rax
lea rax, str.prepare
mov qword [rsi + 8], rax
movabs rax, 0x1f00000035
mov qword [rsi + 0x10], rax
lea rdx, str.buffer_overflow
lea rdi, [rbp - 0x38]
mov rcx, rdi
call fcn.140007406
lea rax, vtable.std::length_error.0
mov qword [rdi], rax
mov rcx, rdi
mov rdx, rsi
call fcn.14000d96d
int3
Function at 0x140023896
Capabilities:
Encode data using xor

Disassembly:
push rax
mov r9, qword [rcx]
mov r8, qword [rcx + 8]
mov ecx, dword [rdx]
mov dword [rsp], ecx
cmp r8, 4
jb 0x1400238c9
xor ecx, ecx
mov al, byte [rsp + rcx]
xor byte [r9 + rcx], al
inc rcx
cmp rcx, 4
jne 0x1400238ab
add r9, 4
add r8, 0xfffffffffffffffc
cmp r8, 3
ja 0x1400238a9
test r8, r8
je 0x1400238fe
xor ecx, ecx
mov al, byte [rsp + rcx]
xor byte [r9 + rcx], al
inc rcx
cmp r8, rcx
jne 0x1400238d0
mov eax, dword [rdx]
mov dword [rsp + 4], eax
xor eax, eax
lea ecx, [r8 + rax]
and ecx, 3
mov cl, byte [rsp + rcx + 4]
mov byte [rdx + rax], cl
inc rax
cmp rax, 4
jne 0x1400238e7
pop rax
ret
Function at 0x140024f20
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
xor ebp, ebp
cmp rcx, 0xffffffffffffffff
je 0x140025126
mov rsi, r9
mov r15, rdx
mov rdi, rcx
test r8b, r8b
je 0x140024f99
mov al, byte [r15]
test al, 8
je 0x140024f99
lea r9, [rsp + 0x30]
mov dword [r9], 0
or al, 8
mov byte [r15], al
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 0xffff
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140024f99
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, [0x140098748]
lea rcx, [rsp + 0x38]
mov edx, eax
call fcn.14000689a
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x140025116
mov ebp, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r14, [0x140098748]
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, eax
mov r8, r14
call fcn.14000689a
mov rax, qword [rbx + 0x10]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov rax, qword [0x140098750]
shr rax, 1
movabs r12, 0x595588bd12bf6fe8
cmp rax, r12
je 0x140025008
mov rax, qword [0x140098748]
lea rcx, [0x140098748]
mov edx, 0x2733
call qword [rax + 0x30]
mov rax, qword [rsi + 0x10]
cmp rax, 1
je 0x140025048
cmp dword [rsi], 0x2733
jne 0x140025048
mov rcx, r14
test rax, rax
je 0x140025026
mov rcx, qword [rsi + 8]
mov r8, qword [0x140098750]
xor ebx, ebx
cmp rcx, r14
sete bl
xor edx, edx
cmp qword [rcx + 8], r8
sete dl
test r8, r8
cmove edx, ebx
test dl, dl
jne 0x1400250bd
mov rcx, qword [0x140098750]
shr rcx, 1
cmp rcx, r12
je 0x140025071
mov rax, qword [0x140098748]
lea rcx, [0x140098748]
mov edx, 0x4d5
call qword [rax + 0x30]
mov rax, qword [rsi + 0x10]
cmp rax, 1
je 0x140025126
cmp dword [rsi], 0x4d5
jne 0x140025126
lea rdx, [0x140098748]
mov rcx, rdx
test rax, rax
je 0x14002509a
mov rcx, qword [rsi + 8]
mov rax, qword [0x140098750]
xor ebx, ebx
cmp rcx, rdx
sete bl
xor edx, edx
cmp qword [rcx + 8], rax
sete dl
test rax, rax
cmove edx, ebx
cmp dl, 1
jne 0x140025126
lea r8, [rsp + 0x30]
mov dword [r8], 0
mov rcx, rdi
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [r15], 0xfc
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebp, eax
test eax, eax
je 0x140025137
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, [0x140098748]
lea rdi, [rsp + 0x38]
mov rcx, rdi
mov edx, eax
call fcn.14000689a
movups xmm0, xmmword [rdi]
movups xmmword [rsi], xmm0
mov rax, qword [rdi + 0x10]
mov qword [rsi + 0x10], rax
jmp 0x140025126
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
xor ebp, ebp
mov eax, ebp
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x140025126