joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14011b8d0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test rdx, rdx
je 0x14011b936
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
jmp 0x14011b8f8
add rdi, rbx
sub rsi, rbx
je 0x14011b936
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xbfffffff
jbe 0x14011b8f0
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x14011b8f0
add ebp, 0x80000000
jmp 0x14011b938
xor ebp, ebp
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x14011c2d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x28
mov r8d, ecx
cmp cx, 4
jae 0x14011c2f0
xor r9d, r9d
test r8w, r8w
setne r9b
mov eax, r9d
add rsp, 0x28
ret
bsr cx, r8w
xor ecx, 0xfffffff0
movzx eax, r8w
add ecx, 0x11
shr ecx, 1
mov r9d, 1
shl r9d, cl
shr eax, cl
add eax, r9d
movzx ecx, ax
shr ecx, 1
cmp cx, r9w
jbe 0x14011c33b
nop word [rax + rax]
mov eax, r8d
xor edx, edx
div cx
add eax, ecx
movzx eax, ax
shr eax, 1
mov r9d, ecx
cmp cx, ax
mov ecx, eax
jb 0x14011c320
jmp 0x14011c359
mov eax, ecx
jmp 0x14011c359
test ax, ax
je 0x14011c367
mov r9d, eax
mov eax, r8d
xor edx, edx
div r9w
add eax, r9d
movzx eax, ax
shr eax, 1
cmp r9w, ax
ja 0x14011c340
mov eax, r9d
add rsp, 0x28
ret
lea rcx, [0x1402081e0]
lea r8, [0x140208200]
mov edx, 0x19
call dbg.panic
ud2
Function at 0x140121370
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
ucomisd xmm1, xmm1
jp 0x1401213f9
movabs rax, 0x7fffffffffffffff
movq rdx, xmm1
mov rcx, rdx
and rcx, rax
je 0x1401213f9
movq r8, xmm0
mov r11, r8
shr r11, 0x34
and r11d, 0x7ff
cmp r11d, 0x7ff
je 0x1401213f9
test r8, rax
je 0x140121401
mov r9, rdx
shr r9, 0x34
and r9d, 0x7ff
movabs rsi, 0x10000000000000
test r11d, r11d
je 0x140121408
lea r10, [rsi - 1]
and r10, r8
or r10, rsi
test r9d, r9d
je 0x140121438
lea rbx, [rsi - 1]
and rbx, rdx
or rbx, rsi
lea eax, [r11 + 1]
xor edi, edi
cmp eax, r9d
jne 0x140121472
jmp 0x14012152f
mulsd xmm0, xmm1
divsd xmm0, xmm0
xor eax, eax
jmp 0x1401215ba
mov rax, r8
xor r11d, r11d
shl rax, 0xc
js 0x140121428
nop word cs:[rax + rax]
dec r11d
add rax, rax
jns 0x140121420
mov cl, 1
sub cl, r11b
mov r10, r8
shl r10, cl
test r9d, r9d
jne 0x1401213df
mov rax, rdx
xor r9d, r9d
shl rax, 0xc
js 0x140121458
nop word cs:[rax + rax]
dec r9d
add rax, rax
jns 0x140121450
mov cl, 1
sub cl, r9b
mov rbx, rdx
shl rbx, cl
lea eax, [r11 + 1]
xor edi, edi
cmp eax, r9d
je 0x14012152f
xor eax, eax
cmp r11d, r9d
jl 0x1401215ba
xor eax, eax
mov ecx, r11d
sub ecx, r9d
jle 0x1401214fc
lea eax, [r9 + 1]
cmp r11d, eax
jne 0x140121494
xor eax, eax
jmp 0x1401214d8
mov r11d, ecx
and r11d, 0xfffffffe
xor eax, eax
mov rdi, r10
xor r14d, r14d
sub r10, rbx
setns r14b
cmovs r10, rdi
or r14d, eax
add r10, r10
mov rax, r10
sub rax, rbx
cmovns r10, rax
add r10, r10
shr rax, 0x3e
and eax, 0xfffffffe
lea eax, [rax + r14*4]
xor eax, 2
mov rdi, r10
add r11d, 0xfffffffe
jne 0x1401214a0
mov r11d, r9d
test cl, 1
je 0x1401214fc
xor ecx, ecx
mov r11, r10
sub r11, rbx
setns cl
cmovs r11, r10
or eax, ecx
add r11, r11
add eax, eax
mov r10, r11
mov r11d, r9d
mov rcx, r10
xor edi, edi
sub r10, rbx
setns dil
cmovs r10, rcx
or edi, eax
test r10, r10
je 0x1401215c0
cmp r10, rsi
jae 0x14012152f
nop dword [rax]
mov rax, r10
add r10, r10
dec r11d
shr rax, 0x33
je 0x140121520
test r11d, r11d
jle 0x1401215c9
movabs rax, 0xfff0000000000000
add r10, rax
mov rax, r11
shl rax, 0x34
or r10, rax
test rdx, rdx
jns 0x14012155c
xorpd xmm1, xmmword [0x14020a100]
movq xmm0, r10
cmp r11d, r9d
jne 0x14012156e
subsd xmm0, xmm1
inc edi
jmp 0x140121593
inc r11d
cmp r11d, r9d
jne 0x140121593
movdqa xmm2, xmm0
addsd xmm2, xmm0
ucomisd xmm2, xmm1
ja 0x140121566
ucomisd xmm2, xmm1
jne 0x140121593
jp 0x140121593
mov eax, edi
and eax, 1
jne 0x140121566
test rdx, rdx
sets al
and edi, 0x7fffffff
test r8, r8
sets cl
jns 0x1401215af
xorpd xmm0, xmmword [0x14020a100]
xor cl, al
mov eax, edi
neg eax
test cl, cl
cmove eax, edi
pop rbx
pop rdi
pop rsi
pop r14
ret
mov r11d, 0xffffffc4
xor r10d, r10d
mov cl, 1
sub cl, r11b
shr r10, cl
test rdx, rdx
js 0x140121554
jmp 0x14012155c
Function at 0x14012d430
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbp
push rbx
movd edx, xmm0
mov eax, edx
shr eax, 0x17
movzx r10d, al
cmp r10d, 0xff
je 0x14012d4aa
ucomiss xmm1, xmm1
jp 0x14012d4aa
movd r8d, xmm1
mov eax, r8d
and eax, 0x7fffffff
je 0x14012d4aa
test edx, 0x7fffffff
je 0x14012d4b2
mov eax, r8d
shr eax, 0x17
movzx r9d, al
test r10d, r10d
je 0x14012d4b9
mov r11d, edx
and r11d, 0x7fffff
or r11d, 0x800000
test r9d, r9d
je 0x14012d4e7
mov edi, r8d
and edi, 0x7fffff
or edi, 0x800000
lea eax, [r10 + 1]
xor esi, esi
cmp eax, r9d
jne 0x14012d520
jmp 0x14012d5f1
mulss xmm0, xmm1
divss xmm0, xmm0
xor eax, eax
jmp 0x14012d66b
mov eax, edx
xor r10d, r10d
shl eax, 9
js 0x14012d4d7
nop word cs:[rax + rax]
dec r10d
add eax, eax
jns 0x14012d4d0
mov cl, 1
sub cl, r10b
mov r11d, edx
shl r11d, cl
test r9d, r9d
jne 0x14012d48b
mov eax, r8d
xor r9d, r9d
shl eax, 9
js 0x14012d507
nop word cs:[rax + rax]
dec r9d
add eax, eax
jns 0x14012d500
mov cl, 1
sub cl, r9b
mov edi, r8d
shl edi, cl
lea eax, [r10 + 1]
xor esi, esi
cmp eax, r9d
je 0x14012d5f1
xor eax, eax
cmp r10d, r9d
jl 0x14012d66b
xor eax, eax
mov esi, r10d
sub esi, r9d
jle 0x14012d542
lea ecx, [r9 + 1]
cmp r10d, ecx
jne 0x14012d546
xor ecx, ecx
jmp 0x14012d591
xor ecx, ecx
jmp 0x14012d5b7
mov r10d, esi
and r10d, 0xfffffffe
xor ecx, ecx
mov ebx, r11d
nop word cs:[rax + rax]
xor ebp, ebp
sub r11d, edi
setns bpl
cmovs r11d, ebx
or ebp, ecx
add r11d, r11d
mov ecx, r11d
sub ecx, edi
cmovns r11d, ecx
add r11d, r11d
shrd ecx, ebp, 0x1e
and ecx, 0xfffffffe
xor ecx, 2
mov ebx, r11d
add r10d, 0xfffffffe
jne 0x14012d560
mov r10d, r9d
test sil, 1
je 0x14012d5b7
xor r10d, r10d
mov esi, r11d
sub esi, edi
setns r10b
cmovs esi, r11d
or ecx, r10d
add esi, esi
add ecx, ecx
mov r11d, esi
mov r10d, r9d
mov ebx, r11d
xor esi, esi
sub r11d, edi
setns sil
cmovs r11d, ebx
or esi, ecx
test r11d, r11d
je 0x14012d675
cmp r11d, 0x7fffff
ja 0x14012d5f1
nop dword [rax + rax]
mov eax, r11d
lea r11d, [rax + rax]
dec r10d
cmp eax, 0x400000
jb 0x14012d5e0
test r10d, r10d
jle 0x14012d670
add r11d, 0xff800000
mov eax, r10d
shl eax, 0x17
or eax, r11d
test r8d, r8d
jns 0x14012d612
xorps xmm1, xmmword [0x14020d7c0]
movd xmm0, eax
cmp r10d, r9d
jne 0x14012d623
subss xmm0, xmm1
inc esi
jmp 0x14012d646
inc r10d
cmp r10d, r9d
jne 0x14012d646
movdqa xmm2, xmm0
addss xmm2, xmm0
ucomiss xmm2, xmm1
ja 0x14012d61b
ucomiss xmm2, xmm1
jne 0x14012d646
jp 0x14012d646
mov eax, esi
and eax, 1
jne 0x14012d61b
test r8d, r8d
sets al
and esi, 0x7fffffff
test edx, edx
sets cl
jns 0x14012d660
xorps xmm0, xmmword [0x14020d7c0]
xor cl, al
mov eax, esi
neg eax
test cl, cl
cmove eax, esi
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov eax, r11d
jmp 0x14012d67b
mov r10d, 0xffffffe2
mov cl, 1
sub cl, r10b
shr eax, cl
test r8d, r8d
js 0x14012d60b
jmp 0x14012d612
Function at 0x140130720
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rdi
sub rsp, 0x1f8
mov rax, qword [rcx]
mov rdi, qword [rax]
mov qword [rax], 0
test rdi, rdi
je 0x140130778
lea rsi, [rsp + 0x60]
mov r8d, 0x198
mov rcx, rsi
xor edx, edx
call fcn.1401e9fc8
mov cx, 0x202
mov rdx, rsi
call sub.ws2_32.dll_WSAStartup
mov dword [rsp + 0x2c], eax
test eax, eax
jne 0x140130792
lea rax, [0x1401e980c]
mov qword [rdi], rax
add rsp, 0x1f8
pop rdi
pop rsi
ret
lea rcx, [0x14020fc60]
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call dbg.panic
ud2
mov qword [rsp + 0x30], 0
lea rdx, [0x140214e78]
lea r9, str.N__
lea rcx, [rsp + 0x2c]
lea r8, [rsp + 0x30]
call dbg.assert_failed<i32, i32>
ud2

Function at 0x140150410
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
test rax, rax
je 0x140150445
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140150455
lea rax, str.XY__
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x50
pop rsi
ret
Function at 0x140151e30
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor esi, esi
mov r14d, 0xffffffff
xor edi, edi
xor r15d, r15d
cmp r8, 0x201
jae 0x140151eb0
jmp 0x140151e9f
jae 0x140151f54
cmp r8, 0x201
jae 0x140151eb0
mov r12d, 0x200
lea r13, [rsp + 0x68]
mov rbp, r8
jmp 0x140151ef7
sub r8, r15
sub rdi, r15
cmp rdi, r8
jae 0x140151ed7
lea rcx, [rsp + 0x30]
mov rdx, r15
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h90367b25ac15f38e
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rsi, qword [rsp + 0x38]
cmp rsi, r14
mov r15d, 0xffffffff
cmovb r15, rsi
mov qword [rsp + 0x40], r15
mov rdi, rsi
mov r12, r15
mov r13, qword [rsp + 0x20]
mov rbp, r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, ebp
mov rdx, r13
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov ebx, eax
test eax, eax
jne 0x140151f1b
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x140151fb2
mov r8d, ebx
cmp rbp, r8
jne 0x140151e90
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x140151fd2
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x140151e9f
jmp 0x140151eb0
cmp r12, r8
jb 0x140151fec
lea rcx, [rsp + 0x48]
mov rdx, r13
call dbg.from_wide
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
mov rdi, qword [rsp + 0x28]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
test rsi, rsi
je 0x140151f9b
add rsi, rsi
mov r8d, 2
mov rcx, qword [rsp + 0x20]
mov rdx, rsi
call sym.__rust_dealloc
mov rax, rdi
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rdi, qword [rsp + 0x28]
mov qword [rdi], rax
mov byte [rdi + 0x18], 2
test rsi, rsi
jne 0x140151f85
jmp 0x140151f9b
lea rcx, [0x140210a70]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call dbg.panic
jmp 0x140152001
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r12
mov r8, rax
call dbg.slice_end_index_len_fail
ud2

Function at 0x140152040
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x70
call sub.KERNEL32.dll_GetEnvironmentStringsW
test rax, rax
je 0x140152058
mov rdx, rax
add rsp, 0x70
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x30], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::h9825ea4f4d1e9fc3]
mov qword [rsp + 0x38], rax
lea rax, str.failure_getting_env_string_from_OS:
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
lea rdx, str.library_std_src_syswindowsos.rs
lea rcx, [rsp + 0x40]
call dbg.panic_fmt
ud2
Function at 0x140152a20
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov r14, r9
mov r15, r8
mov r8, rdx
mov rdx, rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r9
lea rsi, [rsp + 0x28]
mov rcx, rsi
call sym.std::sys::windows::to_u16s::inner::heef13dde5237a2e1
mov rbx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
test rbx, rbx
je 0x140152aa4
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8, r14
call sym.std::sys::windows::to_u16s::inner::heef13dde5237a2e1
mov r12, qword [rsp + 0x28]
mov r15, qword [rsp + 0x30]
test r12, r12
je 0x140152aa9
mov rcx, rbx
mov rdx, r12
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
je 0x140152aae
xor r14d, r14d
test r15, r15
jne 0x140152ac3
jmp 0x140152ad7
mov r14, rdi
jmp 0x140152af0
mov r14, r15
jmp 0x140152ad7
call sub.KERNEL32.dll_GetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
test r15, r15
je 0x140152ad7
add r15, r15
mov r8d, 2
mov rcx, r12
mov rdx, r15
call sym.__rust_dealloc
test rdi, rdi
je 0x140152af0
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
test r14, r14
jne 0x140152b06
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov qword [rsp + 0x20], r14
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [sym.__std::path::Display_as_core::fmt::Debug_::fmt::hdcc802b712c7dc88]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x48], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::h9825ea4f4d1e9fc3]
mov qword [rsp + 0x50], rax
lea rax, str.je__
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 3
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], 3
lea rdx, [0x140211bc8]
lea rcx, [rsp + 0x78]
call dbg.panic_fmt
ud2
Function at 0x140152bd0
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov r8, rdx
mov rdx, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], r8
lea rcx, [rsp + 0x40]
call sym.std::sys::windows::to_u16s::inner::heef13dde5237a2e1
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
test rbx, rbx
je 0x140152c3d
xor esi, esi
mov rcx, rbx
xor edx, edx
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
jne 0x140152c22
call sub.KERNEL32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
test rdi, rdi
je 0x140152c40
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
jmp 0x140152c40
mov rsi, rdi
test rsi, rsi
jne 0x140152c50
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x70], rax
lea rax, [sym.__std::path::Display_as_core::fmt::Debug_::fmt::hdcc802b712c7dc88]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x80], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::h9825ea4f4d1e9fc3]
mov qword [rsp + 0x88], rax
lea rax, str.failed_to_remove_environment_variable__
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 2
lea rdx, [0x140211c28]
lea rcx, [rsp + 0x40]
call dbg.panic_fmt
ud2
Function at 0x1401541f0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x20], xmm6
mov rsi, r8
mov rdi, rcx
test r8, r8
je 0x140154269
js 0x1401543b7
mov r15, rdx
mov rax, qword [str.1__]
movzx eax, byte [rax]
mov edx, 1
mov rcx, rsi
call sym.__rust_alloc
test rax, rax
je 0x1401543be
mov r14, rax
mov rbx, rax
mov rcx, r14
mov rdx, r15
mov r8, rsi
call sym.memcpy
mov rcx, r14
cmp rsi, 8
jb 0x14015436c
cmp rsi, 0x20
jae 0x140154273
xor eax, eax
jmp 0x140154306
mov ebx, 1
jmp 0x14015438f
mov rax, rsi
and rax, 0xffffffffffffffe0
xor ecx, ecx
movdqa xmm0, xmmword [0x14020e810]
movdqa xmm1, xmmword [0x14020e820]
movdqa xmm2, xmmword [0x14020e830]
nop word cs:[rax + rax]
movdqu xmm3, xmmword [rbx + rcx]
movdqu xmm4, xmmword [rbx + rcx + 0x10]
movdqa xmm5, xmm3
paddb xmm5, xmm0
movdqa xmm6, xmm4
paddb xmm6, xmm0
movdqa xmm7, xmm5
pminub xmm7, xmm1
pcmpeqb xmm7, xmm5
pand xmm7, xmm2
movdqa xmm5, xmm6
pminub xmm5, xmm1
pcmpeqb xmm5, xmm6
pand xmm5, xmm2
pxor xmm7, xmm3
pxor xmm5, xmm4
movdqu xmmword [rbx + rcx], xmm7
movdqu xmmword [rbx + rcx + 0x10], xmm5
add rcx, 0x20
cmp rax, rcx
jne 0x1401542a0
cmp rax, rsi
je 0x14015438f
test sil, 0x18
je 0x140154366
mov rdx, rsi
and rdx, 0xfffffffffffffff8
lea rcx, [r14 + rdx]
movdqa xmm0, xmmword [0x14020e840]
movdqa xmm1, xmmword [0x14020e850]
movdqa xmm2, xmmword [0x14020e860]
nop dword [rax]
movq xmm3, qword [rbx + rax]
movdqa xmm4, xmm3
paddb xmm4, xmm0
movdqa xmm5, xmm4
pmaxub xmm5, xmm1
pcmpeqb xmm5, xmm4
pandn xmm5, xmm2
pxor xmm5, xmm3
movq qword [rbx + rax], xmm5
add rax, 8
cmp rdx, rax
jne 0x140154330
cmp rdx, rsi
jne 0x14015436c
jmp 0x14015438f
add rax, r14
mov rcx, rax
add r14, rsi
nop
movzx eax, byte [rcx]
lea edx, [rax - 0x61]
cmp dl, 0x1a
setb dl
shl dl, 5
xor dl, al
mov byte [rcx], dl
lea rax, [rcx + 1]
mov rcx, rax
cmp rax, r14
jne 0x140154370
mov qword [rdi], rbx
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rsi
mov byte [rdi + 0x18], 0
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x20]
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call dbg.capacity_overflow
ud2
mov ecx, 1
mov rdx, rsi
call dbg.handle_alloc_error
ud2

Function at 0x14015e490
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14015e4f1
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14015e4f1
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14015e4f1
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x14015e4f1
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x14015e531
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1006
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14015e51f
xor eax, eax
add rsp, 0x38
ret
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, str.cannot_set_a_0_duration_timeout
add rsp, 0x38
ret
Function at 0x14015e540
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14015e5a1
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14015e5a1
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14015e5a1
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x14015e5a1
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x14015e5e1
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1005
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14015e5cf
xor eax, eax
add rsp, 0x38
ret
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, str.cannot_set_a_0_duration_timeout
add rsp, 0x38
ret

Function at 0x14015e730
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
mov r9d, 2
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
je 0x14015e766
cdqe
jmp 0x14015e774
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14015e77c
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14015e78d
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x14015e7a0
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rcx, qword [rcx]
xor esi, esi
xor eax, eax
cmp r8d, 0x3b9aca00
setne al
cmove edx, esi
mov word [rsp + 0x2c], ax
mov word [rsp + 0x2e], dx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov edx, 0xffff
mov r8d, pe_nt_image_headers64
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x14015e7f4
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x14015e880
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14015e8b7
xor eax, eax
add rsp, 0x38
ret
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x14015e940
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rdx, qword [rdx + 8]
mov rsi, qword [rdi + 0x10]
mov rax, rdx
sub rax, rsi
jb 0x14015e9ba
mov rcx, qword [rcx]
cmp rax, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, rax
mov rdx, qword [rdi]
add rdx, rsi
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
je 0x14015e99b
cdqe
add rsi, rax
mov qword [rdi + 0x10], rsi
mov rax, qword [rdi + 0x18]
cmp rax, rsi
cmova rsi, rax
mov qword [rdi + 0x18], rsi
xor eax, eax
jmp 0x14015e9b3
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14015e9ab
xor eax, eax
jmp 0x14015e9b3
shl rax, 0x20
or rax, 2
add rsp, 0x28
pop rdi
pop rsi
ret
lea r8, [0x140212490]
mov rcx, rsi
call dbg.slice_start_index_len_fail
ud2
Function at 0x14015e9d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
lea rdx, [rsp + 0x3c]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x38]
mov rdx, rax
call sub.ws2_32.dll_WSARecv
test eax, eax
je 0x14015ea32
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14015ea43
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14015ea56
mov eax, dword [rsp + 0x38]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14015ea56
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x40
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x3c], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov rdx, rax
call sub.ws2_32.dll_WSASend
cmp eax, 0xffffffff
je 0x14015eab1
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14015eac7
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x40
pop rsi
ret

Function at 0x14015eae0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
je 0x14015eb16
cdqe
jmp 0x14015eb24
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14015eb2c
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14015eb3d
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x14015eb50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rdx, qword [rdx + 8]
mov rsi, qword [rdi + 0x10]
mov rax, rdx
sub rax, rsi
jb 0x14015ebcd
mov rcx, qword [rcx]
mov rcx, qword [rcx]
cmp rax, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, rax
mov rdx, qword [rdi]
add rdx, rsi
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
je 0x14015ebae
cdqe
add rsi, rax
mov qword [rdi + 0x10], rsi
mov rax, qword [rdi + 0x18]
cmp rax, rsi
cmova rsi, rax
mov qword [rdi + 0x18], rsi
xor eax, eax
jmp 0x14015ebc6
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14015ebbe
xor eax, eax
jmp 0x14015ebc6
shl rax, 0x20
or rax, 2
add rsp, 0x28
pop rdi
pop rsi
ret
lea r8, [0x140212490]
mov rcx, rsi
call dbg.slice_start_index_len_fail
ud2