joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421c90
Capabilities:
Create thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
xor ecx, ecx
xor edx, edx
lea r8, [0x0041c4e0]
xor r9, r9
mov dword [rsp + 0x20], 0
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_CreateThread
mov dword [rbp + 0x3c], eax
mov eax, dword [rbp + 0x3c]
mov qword [0x00434890], rax
mov byte [0x004348a9], 0
mov eax, dword [rbp + 0x3c]
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x421ce0
Capabilities:
Log keystrokes

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x38], 0
call sub.kernel32.dll_GetCurrentThreadId
mov eax, eax
mov qword [rbp + 0x30], rax
mov rcx, qword [rbp + 0x50]
xor edx, edx
call sub.user32.dll_GetWindowThreadProcessId
mov eax, eax
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x30]
cmp rax, qword [rbp + 0x28]
jne 0x421d25
call sub.user32.dll_GetFocus
mov qword [rbp + 0x38], rax
jmp 0x421d4f
mov ecx, dword [rbp + 0x28]
mov edx, dword [rbp + 0x30]
or r8d, 0xffffffff
call sub.user32.dll_AttachThreadInput
test eax, eax
je 0x421d4f
call sub.user32.dll_GetFocus
mov qword [rbp + 0x38], rax
mov ecx, dword [rbp + 0x28]
mov edx, dword [rbp + 0x30]
xor r8, r8
call sub.user32.dll_AttachThreadInput
mov rax, qword [rbp + 0x38]
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x421d60
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x50], rcx
movzx rcx, byte [0x0042d124]
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
mov dword [rbp + 0x34], eax
mov rcx, qword [rbp + 0x50]
call sub.user32.dll_GetTopWindow
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x421d9d
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x28]
call fcn.00421ce0
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x421dbb
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x50], rax
jmp 0x421de8
call sub.kernel32.dll_GetTickCount
mov dword [rbp + 0x30], eax
mov eax, dword [rbp + 0x34]
sub eax, dword [rbp + 0x30]
movsxd rcx, eax
shr rcx, 0x20
xor eax, ecx
sub eax, ecx
cmp eax, 0x64
jg 0x421de8
movzx rcx, byte [0x0042d124]
call sub.kernel32.dll_Sleep
jmp 0x421d81
nop
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x38]
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x423370
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
sub rsp, 0x1a0
mov rbp, rsp
mov qword [rbp + 0x38], rbp
lea rcx, [0x004234f0]
call sub.kernel32.dll_LoadLibraryW
mov rcx, rax
lea rdx, [0x0042350a]
call fcn.0040e8a0
mov qword [rbp + 0x58], rax
lea rcx, [0x004234f0]
call sub.kernel32.dll_LoadLibraryW
mov rcx, rax
lea rdx, [0x0042352c]
call fcn.0040e8a0
mov qword [rbp + 0x50], rax
lea rcx, [0x004234f0]
call sub.kernel32.dll_LoadLibraryW
mov rcx, rax
lea rdx, [0x00423558]
call fcn.0040e8a0
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x74], 0x114
lea rcx, [rbp + 0x74]
call sub.kernel32.dll_GetVersionExW
cmp dword [rbp + 0x84], 1
je 0x4234b9
nop
call sub.kernel32.dll_GetCurrentProcess
mov rcx, rax
mov edx, 0x20
lea r8, [rbp + 0x190]
call qword [rbp + 0x58]
mov rax, qword [rbp + 0x190]
mov qword [rbp + 0x188], rax
xor ecx, ecx
lea rdx, [0x00423584]
lea r8, [rbp + 0x68]
call qword [rbp + 0x50]
mov dword [rbp + 0x64], 1
mov dword [rbp + 0x70], 2
mov dword [rbp + 0x60], 0
mov rcx, qword [rbp + 0x190]
xor edx, edx
lea r8, [rbp + 0x64]
xor r9, r9
mov qword [rsp + 0x20], 0
lea rax, [rbp + 0x60]
mov qword [rsp + 0x28], rax
call qword [rbp + 0x48]
mov dword [rbp + 0x64], 1
mov dword [rbp + 0x70], 2
mov dword [rbp + 0x60], 0
mov rcx, qword [rbp + 0x188]
xor edx, edx
lea r8, [rbp + 0x64]
xor r9, r9
mov qword [rsp + 0x20], 0
lea rax, [rbp + 0x60]
mov qword [rsp + 0x28], rax
call qword [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
call sub.kernel32.dll_CloseHandle
jmp 0x4234b9
mov byte [rbp + 0x19f], 1
movzx rax, byte [rbp + 0x19f]
lea rsp, [rbp + 0x1a0]
pop rbp
ret
Function at 0x423af0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], rbp
nop
xor ecx, ecx
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x423bd1
mov ecx, 1
call sub.user32.dll_GetClipboardData
mov qword [rbp + 0x48], rax
nop
cmp qword [rbp + 0x48], 0
je 0x423b51
mov rcx, qword [rbp + 0x48]
call sub.kernel32.dll_GlobalLock
lea rcx, [rbp + 0x40]
mov rdx, rax
call fcn.0040a540
jmp 0x423b5a
lea rcx, [rbp + 0x40]
call fcn.00409180
nop
cmp qword [rbp + 0x48], 0
je 0x423b6b
mov rcx, qword [rbp + 0x48]
call sub.kernel32.dll_GlobalUnlock
lea rcx, [rbp + 0x30]
lea rdx, str._fDA441968modd
call fcn.0040a710
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x30]
call fcn.0040ab00
test eax, eax
jne 0x423b9b
mov rax, qword [0x0042d958]
mov dword [rax], 1
jmp 0x423bc6
lea rcx, [rbp + 0x28]
lea rdx, [0x0042d5ad]
call fcn.0040a710
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x28]
call fcn.0040ab00
test eax, eax
jne 0x423bcb
mov rax, qword [0x0042d8b0]
mov byte [rax], 1
call sub.user32.dll_EmptyClipboard
call sub.user32.dll_CloseClipboard
nop
lea rcx, [rbp + 0x28]
mov edx, 2
call fcn.00409260
lea rcx, [rbp + 0x40]
call fcn.00409180
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x424a80
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
xor ecx, ecx
xor edx, edx
lea r8, [0x00424770]
xor r9, r9
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_CreateThread
test eax, eax
je 0x424ab3
mov dword [0x00435808], eax
add rsp, 0x48
ret
Function at 0x1800013a0
Capabilities:
Create process on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x140
movaps xmmword [rsp + 0x130], xmm6
test edx, edx
je 0x180001538
mov sil, 1
cmp edx, 1
jne 0x18000153a
xorps xmm6, xmm6
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0x110], xmm6
movaps xmmword [rsp + 0x100], xmm6
movaps xmmword [rsp + 0xf0], xmm6
movaps xmmword [rsp + 0xe0], xmm6
movaps xmmword [rsp + 0xd0], xmm6
mov qword [rsp + 0x120], 0
mov dword [rsp + 0xc0], 0x68
movaps xmmword [rsp + 0x50], xmm6
mov qword [rsp + 0x60], 0
lea rdx, str.C:WindowsSystem32calc.exeCString::new_failedsrclib.rs
lea rcx, [rsp + 0xa0]
mov r8d, 0x1c
call sym.__str_as_alloc::ffi::c_str::CString::new::SpecNewImpl_::spec_new_impl::h225707c6df47b177
cmp qword [rsp + 0xa0], 0
jne 0x18000154f
mov rbx, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb0]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 0
xor ecx, ecx
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_CreateProcessA
test eax, eax
je 0x1800014e6
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov rcx, qword [rsp + 0x50]
call fcn.1800bd7d4
mov rcx, qword [rsp + 0x58]
call fcn.1800bd7d4
xor ecx, ecx
call sub.KERNEL32.dll_GetModuleHandleA
mov rcx, rax
xor edx, edx
call sub.KERNEL32.dll_FreeLibraryAndExitThread
mov byte [rbx], 0
test rdi, rdi
je 0x18000153a
mov r8d, 1
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
jmp 0x18000153a
lea rax, str.Failed_to_open_Calculator___n
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
lea rax, [0x1800c00a8]
mov qword [rsp + 0x80], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x88], xmm0
lea rcx, [rsp + 0x70]
call dbg._print
mov byte [rbx], 0
test rdi, rdi
je 0x180001538
mov r8d, 1
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
xor esi, esi
mov eax, esi
movaps xmm6, xmmword [rsp + 0x130]
add rsp, 0x140
pop rbx
pop rdi
pop rsi
ret
movups xmm0, xmmword [rsp + 0xa0]
movups xmm1, xmmword [rsp + 0xb0]
movaps xmmword [rsp + 0x80], xmm1
movaps xmmword [rsp + 0x70], xmm0
lea rax, [0x1800c0060]
mov qword [rsp + 0x20], rax
lea rcx, [0x1800c003c]
lea r9, section..rdata
lea r8, [rsp + 0x70]
mov edx, 0x13
call dbg.unwrap_failed
ud2

Function at 0x180003650
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 0x1800036a8
lea rsi, [rsp + 0x60]
mov r8d, 0x198
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov cx, 0x202
mov rdx, rsi
call sub.WS2_32.dll_WSAStartup
mov dword [rsp + 0x2c], eax
test eax, eax
jne 0x1800036c2
lea rax, [0x1800bd8ec]
mov qword [rdi], rax
add rsp, 0x1f8
pop rdi
pop rsi
ret
lea rcx, [0x1800c2cc0]
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call dbg.panic
ud2
mov qword [rsp + 0x30], 0
lea rdx, [0x1800c8020]
lea r9, str.library_std_src_syswindows_net.rs
lea rcx, [rsp + 0x2c]
lea r8, [rsp + 0x30]
call dbg.assert_failed<i32, i32>
ud2
Function at 0x180023640
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 0x180023675
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x180023685
lea rax, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x50
pop rsi
ret
Function at 0x180025060
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 0x1800250e0
jmp 0x1800250cf
jae 0x180025184
cmp r8, 0x201
jae 0x1800250e0
mov r12d, 0x200
lea r13, [rsp + 0x68]
mov rbp, r8
jmp 0x180025127
sub r8, r15
sub rdi, r15
cmp rdi, r8
jae 0x180025107
lea rcx, [rsp + 0x30]
mov rdx, r15
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h2bdf9a6d8105bb54
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 0x18002514b
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1800251e2
mov r8d, ebx
cmp rbp, r8
jne 0x1800250c0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x180025202
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x1800250cf
jmp 0x1800250e0
cmp r12, r8
jb 0x18002521c
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 0x1800251cb
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 0x1800251b5
jmp 0x1800251cb
lea rcx, str.internal_error:_entered_unreachable_code09_f
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call dbg.panic
jmp 0x180025231
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 0x180025270
Capabilities:
Query environment variable

Disassembly:
push rsi
sub rsp, 0x70
call sub.KERNEL32.dll_GetEnvironmentStringsW
test rax, rax
je 0x180025288
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::h777c0ce01dc2e028]
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 0x180025c50
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::h36a8adcb91ede8d9
mov rbx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
test rbx, rbx
je 0x180025cd4
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8, r14
call sym.std::sys::windows::to_u16s::inner::h36a8adcb91ede8d9
mov r12, qword [rsp + 0x28]
mov r15, qword [rsp + 0x30]
test r12, r12
je 0x180025cd9
mov rcx, rbx
mov rdx, r12
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
je 0x180025cde
xor r14d, r14d
test r15, r15
jne 0x180025cf3
jmp 0x180025d07
mov r14, rdi
jmp 0x180025d20
mov r14, r15
jmp 0x180025d07
call sub.KERNEL32.dll_GetLastError
mov r14d, eax
shl r14, 0x20
or r14, 2
test r15, r15
je 0x180025d07
add r15, r15
mov r8d, 2
mov rcx, r12
mov rdx, r15
call sym.__rust_dealloc
test rdi, rdi
je 0x180025d20
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
test r14, r14
jne 0x180025d36
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::h7e2d7c98dd80582f]
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::h777c0ce01dc2e028]
mov qword [rsp + 0x50], rax
lea rax, [0x1800c4c18]
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, [0x1800c4c48]
lea rcx, [rsp + 0x78]
call dbg.panic_fmt
ud2
Function at 0x180025e00
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::h36a8adcb91ede8d9
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
test rbx, rbx
je 0x180025e6d
xor esi, esi
mov rcx, rbx
xor edx, edx
call sub.KERNEL32.dll_SetEnvironmentVariableW
test eax, eax
jne 0x180025e52
call sub.KERNEL32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
test rdi, rdi
je 0x180025e70
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call sym.__rust_dealloc
jmp 0x180025e70
mov rsi, rdi
test rsi, rsi
jne 0x180025e80
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::h7e2d7c98dd80582f]
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::h777c0ce01dc2e028]
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, [0x1800c4ca8]
lea rcx, [rsp + 0x40]
call dbg.panic_fmt
ud2
Function at 0x180027420
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 0x180027499
js 0x1800275e7
mov r15, rdx
mov rax, qword [0x1800f0168]
movzx eax, byte [rax]
mov edx, 1
mov rcx, rsi
call sym.__rust_alloc
test rax, rax
je 0x1800275ee
mov r14, rax
mov rbx, rax
mov rcx, r14
mov rdx, r15
mov r8, rsi
call sub.msvcrt.dll_memcpy
mov rcx, r14
cmp rsi, 8
jb 0x18002759c
cmp rsi, 0x20
jae 0x1800274a3
xor eax, eax
jmp 0x180027536
mov ebx, 1
jmp 0x1800275bf
mov rax, rsi
and rax, 0xffffffffffffffe0
xor ecx, ecx
movdqa xmm0, xmmword [0x1800c0cf0]
movdqa xmm1, xmmword [0x1800c0d00]
movdqa xmm2, xmmword [0x1800c0d10]
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 0x1800274d0
cmp rax, rsi
je 0x1800275bf
test sil, 0x18
je 0x180027596
mov rdx, rsi
and rdx, 0xfffffffffffffff8
lea rcx, [r14 + rdx]
movdqa xmm0, xmmword [0x1800c0d20]
movdqa xmm1, xmmword [0x1800c0d30]
movdqa xmm2, xmmword [0x1800c0d40]
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 0x180027560
cmp rdx, rsi
jne 0x18002759c
jmp 0x1800275bf
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 0x1800275a0
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 0x180032b40
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x180032ba1
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x180032ba1
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x180032ba1
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x180032ba1
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x180032be1
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 0x180032bcf
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 0x180032bf0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x180032c51
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x180032c51
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x180032c51
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x180032c51
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x180032c91
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 0x180032c7f
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 0x180032de0
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 0x180032e16
cdqe
jmp 0x180032e24
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x180032e2c
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x180032e3d
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 0x180032e50
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 0x180032ea4
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 0x180032f30
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 0x180032f67
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 0x180032ff0
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 0x18003306a
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 0x18003304b
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 0x180033063
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x18003305b
xor eax, eax
jmp 0x180033063
shl rax, 0x20
or rax, 2
add rsp, 0x28
pop rdi
pop rsi
ret
lea r8, [0x1800c54d0]
mov rcx, rsi
call dbg.slice_start_index_len_fail
ud2