joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140126960
Capabilities:
Encrypt data via sspi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r12, r9
mov r13, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x20]
call fcn.140126c30
mov eax, dword [rsp + 0x20]
cmp eax, 2
jne 0x140126999
mov rax, qword [rsp + 0x28]
jmp 0x140126aec
test eax, eax
je 0x140126ae2
mov rdx, qword [rdi + 0x88]
mov r15, qword [rdi + 0x90]
cmp r15, rdx
jne 0x140126b43
mov rbx, qword [rsp + 0x28]
mov r14d, ebx
shr rbx, 0x20
cmp r12, rbx
cmovb rbx, r12
mov ebp, dword [rsp + 0x24]
lea r12, [rbx + rbp]
add r14, r12
sub r14, r15
jbe 0x140126a27
mov rax, qword [rdi + 0x80]
sub rax, r15
cmp rax, r14
jb 0x140126bb3
mov rax, qword [rdi + 0x78]
lea rcx, [rax + r15]
cmp r14, 2
jb 0x140126a1a
lea r8, [r14 - 1]
xor edx, edx
mov qword [rsp + 0x60], rax
call sub.VCRUNTIME140.dll_memset
add r15, r14
dec r15
mov rcx, qword [rsp + 0x60]
add rcx, r15
mov byte [rcx], 0
inc r15
mov qword [rdi + 0x88], r15
cmp r12, r15
ja 0x140126bf1
mov rcx, qword [rdi + 0x78]
add rcx, rbp
mov rdx, r13
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rdi + 0x88]
cmp rdx, rbp
jb 0x140126c05
cmp rdx, r12
jb 0x140126c16
mov rax, qword [rdi + 0x78]
lea rcx, [rax + rbp]
sub edx, r12d
add r12, rax
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x24], 7
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], 1
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x44], 6
mov qword [rsp + 0x48], r12
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movabs rax, 0x400000000
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x70], rax
lea rcx, [rdi + 0x98]
lea r8, [rsp + 0x68]
xor edx, edx
xor r9d, r9d
call qword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x140126b0c
shl rax, 0x20
or rax, 2
jmp 0x140126aec
movabs rax, 0x8009031700000002
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [rsp + 0x30]
add eax, dword [rsp + 0x20]
add eax, dword [rsp + 0x40]
mov rdx, qword [rdi + 0x88]
cmp rdx, rax
jb 0x140126b2e
mov qword [rdi + 0x88], rax
mov rdx, rax
mov qword [rdi + 0x90], 0
mov qword [rdi + 0xd8], rbx
xor r15d, r15d
cmp r15, rdx
je 0x140126ba1
lea rbx, [rdi + 0x30]
lea r14, [rsp + 0x20]
nop word cs:[rax + rax]
mov r9, rdx
sub r9, r15
jb 0x140126be0
mov r8, qword [rdi + 0x78]
add r8, r15
mov rcx, r14
mov rdx, rbx
call fcn.14013c1f0
cmp qword [rsp + 0x20], 0
mov rax, qword [rsp + 0x28]
jne 0x140126aec
add r15, rax
mov qword [rdi + 0x90], r15
mov rdx, qword [rdi + 0x88]
cmp r15, rdx
jne 0x140126b60
mov rax, qword [rdi + 0xd8]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140126af5
lea rcx, [rdi + 0x78]
mov rdx, r15
mov r8, r14
call fcn.140219ac0
mov r15, qword [rdi + 0x88]
mov rax, qword [rdi + 0x78]
lea rcx, [rax + r15]
cmp r14, 2
jae 0x1401269fc
jmp 0x140126a1a
lea r8, [0x1402c10c8]
mov rcx, r15
call fcn.140222b10
ud2
lea r8, [0x1402c1028]
mov rcx, r12
mov rdx, r15
call fcn.140222b90
ud2
lea r8, [0x1402c1040]
mov rcx, rbp
call fcn.140222b90
ud2
lea r8, [0x1402c1058]
mov rcx, r12
call fcn.140222b90
ud2
Function at 0x1401298b0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rax
mov rax, rcx
add qword [rcx + 0x30], 8
mov qword [rsp], rdx
mov r10, qword [rcx + 0x40]
test r10, r10
je 0x140129957
mov esi, 8
mov r9d, 8
sub r9, r10
cmp r9, 8
cmovb rsi, r9
xor r11d, r11d
xor r8d, r8d
cmp rsi, 4
mov ecx, edx
cmovae r11, rcx
setae r8b
lea rcx, [r8*4 + 1]
shl r8, 2
cmp rcx, rsi
jae 0x14012991e
movzx edx, word [rsp + r8]
lea ecx, [r8*8]
shl rdx, cl
or r11, rdx
or r8, 2
cmp r8, rsi
jae 0x140129935
movzx edx, byte [rsp + r8]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r11, rdx
lea ecx, [r10*8]
shl r11, cl
or r11, qword [rax + 0x38]
mov qword [rax + 0x38], r11
cmp r10, 8
jbe 0x14012995c
add r10, 8
jmp 0x140129a96
xor r9d, r9d
jmp 0x1401299b0
mov r8, qword [rax + 0x18]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, rdx
rol rdx, 0xd
xor r8, r11
xor rdx, rcx
rol rcx, 0x20
mov r10, qword [rax + 8]
add r10, r8
rol r8, 0x10
xor r8, r10
add rcx, r8
rol r8, 0x15
xor r8, rcx
add r10, rdx
rol rdx, 0x11
mov qword [rax + 0x18], r8
xor rdx, r10
rol r10, 0x20
mov qword [rax + 0x10], rdx
mov qword [rax + 8], r10
xor rcx, r11
mov qword [rax], rcx
mov ecx, 8
sub rcx, r9
mov r10d, ecx
and r10d, 7
and rcx, 0xfffffffffffffff8
cmp r9, rcx
jae 0x140129a32
mov rdx, qword [rax]
mov r8, qword [rax + 8]
mov rsi, qword [rax + 0x18]
mov r11, qword [rax + 0x10]
nop word [rax + rax]
add rdx, r11
rol r11, 0xd
mov rdi, qword [rsp + r9]
xor r11, rdx
rol rdx, 0x20
xor rsi, rdi
add r8, rsi
rol rsi, 0x10
xor rsi, r8
add rdx, rsi
rol rsi, 0x15
add r8, r11
rol r11, 0x11
xor r11, r8
rol r8, 0x20
xor rsi, rdx
xor rdx, rdi
add r9, 8
cmp r9, rcx
jb 0x1401299e0
mov qword [rax + 0x18], rsi
mov qword [rax + 0x10], r11
mov qword [rax + 8], r8
mov qword [rax], rdx
cmp r10d, 3
jbe 0x140129a4f
mov r8d, dword [rsp + r9]
mov edx, 4
mov rcx, rdx
or rcx, 1
cmp rcx, r10
jb 0x140129a60
jmp 0x140129a7a
xor r8d, r8d
xor edx, edx
mov rcx, rdx
or rcx, 1
cmp rcx, r10
jae 0x140129a7a
lea rcx, [rdx + r9]
movzx r11d, word [rsp + rcx]
lea ecx, [rdx*8]
shl r11, cl
or r8, r11
or rdx, 2
cmp rdx, r10
jae 0x140129a92
add r9, rdx
movzx r9d, byte [rsp + r9]
shl edx, 3
mov ecx, edx
shl r9, cl
or r8, r9
mov qword [rax + 0x38], r8
mov qword [rax + 0x40], r10
add rsp, 8
pop rdi
pop rsi
ret

Function at 0x14012cd20
Capabilities:
Get remote cert context via schannel

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov edx, 0x53
call qword [sym.imp.secur32.dll_QueryContextAttributesW]
mov edx, eax
xor eax, eax
test edx, edx
setne cl
jne 0x14012cd54
mov rdx, qword [rsp + 0x20]
mov al, cl
add rsp, 0x28
ret
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret
Function at 0x14012d340
Capabilities:
Get hostname

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x2c], 0x10
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x2c]
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x14012d3b1
mov edi, dword [rsp + 0x2c]
cmp rdi, 0x11
jae 0x14012d412
test edi, edi
je 0x14012d3ba
movzx eax, byte [0x1402e6951]
mov edx, 1
mov rcx, rdi
call fcn.140018800
test rax, rax
je 0x14012d428
mov rbx, rax
lea rdx, [rsp + 0x30]
mov rcx, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14012d3bf
mov qword [rsi], 0
jmp 0x14012d407
mov ebx, 1
lea rcx, [rsp + 0x48]
mov rdx, rbx
mov r8, rdi
call fcn.140159030
cmp qword [rsp + 0x48], 0
je 0x14012d3de
cmp byte [rsp + 0x58], 2
jne 0x14012d3eb
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rdi
jmp 0x14012d407
mov qword [rsi], 0
test edi, edi
je 0x14012d407
mov r8d, 1
mov rcx, rbx
mov rdx, rdi
call fcn.140018810
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
lea r8, str.C:UsersJuanjo.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinutil_0.1.1_srclib.rs
mov edx, 0x10
mov rcx, rdi
call fcn.140222b90
ud2
mov ecx, 1
mov rdx, rdi
call fcn.140222360
ud2
Function at 0x1401362a0
Capabilities:
Get common file path

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x28], 0
lea rcx, [0x1402c6e98]
lea r9, [rsp + 0x28]
xor edx, edx
xor r8d, r8d
call sub.shell32.dll_SHGetKnownFolderPath
mov rcx, qword [rsp + 0x28]
test eax, eax
je 0x1401362db
call sub.ole32.dll_CoTaskMemFree
mov byte [rsi + 0x18], 2
jmp 0x1401362fa
call sub.kernel32.dll_lstrlenW
movsxd r8, eax
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call fcn.14013c2c0
mov rcx, qword [rsp + 0x28]
call sub.ole32.dll_CoTaskMemFree
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x140136310
Capabilities:
Get common file path

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x28], 0
lea rcx, [0x1402c6ea8]
lea r9, [rsp + 0x28]
xor edx, edx
xor r8d, r8d
call sub.shell32.dll_SHGetKnownFolderPath
mov rcx, qword [rsp + 0x28]
test eax, eax
je 0x14013634b
call sub.ole32.dll_CoTaskMemFree
mov byte [rsi + 0x18], 2
jmp 0x14013636a
call sub.kernel32.dll_lstrlenW
movsxd r8, eax
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call fcn.14013c2c0
mov rcx, qword [rsp + 0x28]
call sub.ole32.dll_CoTaskMemFree
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x140136380
Capabilities:
Get common file path

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x28], 0
lea rcx, [0x1402c6eb8]
lea r9, [rsp + 0x28]
xor edx, edx
xor r8d, r8d
call sub.shell32.dll_SHGetKnownFolderPath
mov rcx, qword [rsp + 0x28]
test eax, eax
je 0x1401363bb
call sub.ole32.dll_CoTaskMemFree
mov byte [rsi + 0x18], 2
jmp 0x1401363da
call sub.kernel32.dll_lstrlenW
movsxd r8, eax
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call fcn.14013c2c0
mov rcx, qword [rsp + 0x28]
call sub.ole32.dll_CoTaskMemFree
mov rax, rsi
add rsp, 0x30
pop rsi
ret
Function at 0x140138ff0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140139080
jmp 0x14013906f
jae 0x140139140
cmp r8, 0x201
jae 0x140139080
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x1401390d8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x1401390af
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140221630
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140139101
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1401391a8
mov r8d, r14d
cmp r15, r8
jne 0x140139060
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1401391cb
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14013906f
jmp 0x140139080
cmp rsi, r8
jb 0x1401391e5
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14013c2c0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140139191
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140018810
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140139179
jmp 0x140139191
lea rcx, str.internal_error:_entered_unreachable_code_rustc_31bc7e2c47e82798a392c770611975a6883132c8library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140222660
jmp 0x1401391fa
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140222b90
ud2
Function at 0x140139350
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.1401460c0
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x408], rax
test rax, rax
je 0x1401394d6
mov qword [rbp + 0x400], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x418], rax
mov qword [rbp + 0x3e8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x140139410
jmp 0x1401393ff
jae 0x1401394e8
cmp r8, 0x201
jae 0x140139410
mov r15d, 0x200
lea r14, [rbp - 0x60]
mov r12, r8
jmp 0x140139468
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x14013943f
lea rcx, [rbp + 0x3e8]
mov rdx, r13
call fcn.140221630
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x410], rax
mov rdi, qword [rbp + 0x3f0]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x3f8], r13
mov rbx, rdi
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x140139497
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1401395bb
mov r8d, esi
cmp r12, r8
jne 0x1401393f0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1401395e5
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1401393ff
jmp 0x140139410
lea rcx, [rbp - 0x58]
call fcn.140136b60
mov byte [rsi + 0x18], 2
jmp 0x14013957a
cmp r15, r8
jb 0x1401395ff
lea rcx, [rbp + 0x3a0]
mov rdx, r14
call fcn.14013c2c0
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3d0], xmm1
movaps xmmword [rbp + 0x3c0], xmm0
test rdi, rdi
je 0x140139539
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rdi
call fcn.140018810
cmp byte [rbp + 0x3d8], 2
jne 0x140139591
mov rsi, qword [rbp + 0x400]
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3c0]
call fcn.140136b60
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x14013957a
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.140018810
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3c0]
movaps xmm1, xmmword [rbp + 0x3d0]
mov rsi, qword [rbp + 0x400]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x140139565
jmp 0x14013957a
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3c0], rax
mov byte [rbp + 0x3d8], 2
test rdi, rdi
jne 0x140139521
jmp 0x140139539
lea rcx, str.internal_error:_entered_unreachable_code_rustc_31bc7e2c47e82798a392c770611975a6883132c8library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140222660
jmp 0x140139614
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.140222b90
ud2
Function at 0x14013bdd0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14013be31
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14013be31
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14013be31
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x14013be31
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x14013be73
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1006
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14013be60
xor eax, eax
add rsp, 0x38
ret
call qword [sym.imp.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 0x14013be80
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x48]
cmp rax, 6
je 0x1401226b5
cmp eax, 5
je 0x1401226d8
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
lea rdx, [rax - 2]
cmp rdx, 3
mov ecx, 1
cmovb rcx, rdx
test rcx, rcx
je 0x140122675
cmp rcx, 1
jne 0x140122693
lea rcx, [rbx + 0x78]
jmp 0x140122679
lea rcx, [rbx + 0x50]
mov rdx, rdi
mov r8d, esi
call fcn.14013bdd0
test rax, rax
jne 0x1401226b7
mov rax, qword [rbx + 0x48]
cmp rax, 5
je 0x1401226d8
add rax, 0xfffffffffffffffe
cmp rax, 3
mov ecx, 1
cmovb rcx, rax
test rcx, rcx
je 0x1401226bf
cmp rcx, 1
jne 0x1401226b5
add rbx, 0x78
jmp 0x1401226c3
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
add rbx, 0x50
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x14013be80
lea rcx, str.called__Option::unwrap____on_a__None__valueC:UsersJuanjo.cargo_registry_srcindex.crates.io_6f17d22bba15001f_bufstream_0.1.4_srclib.rs
lea r8, [0x1402bf110]
mov edx, 0x2b
call fcn.140222660
ud2
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14013bee1
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14013bee1
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14013bee1
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x14013bee1
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x14013bf23
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1005
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14013bf10
xor eax, eax
add rsp, 0x38
ret
call qword [sym.imp.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 0x14013bf30
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 0xffffffffffffffff
je 0x1400e3a18
add rcx, 0x18
add rsp, 0x28
jmp 0x1400f3fd0
lea rcx, str.called__Option::unwrap____on_a__None__valueC:UsersJuanjo.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.33.0_srciopoll_evented.rs
lea r8, [0x140280cc8]
mov edx, 0x2b
call fcn.140222660
ud2
jmp 0x14013bf30
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 qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14013bf68
xor eax, eax
add rsp, 0x38
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x14013bf80
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 qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x14013bfb7
cdqe
jmp 0x14013bfc6
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x14013bfce
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14013bfdf
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 0x14013bff0
Capabilities:
Send data
Send 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 qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x14013c02d
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14013c044
call qword [sym.imp.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, 0x20
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
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 qword [sym.imp.ws2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x14013c0a5
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14013c0bc
call qword [sym.imp.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 0x14013c1f0
Capabilities:
Send data
Send 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
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x14013c22a
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14013c241
call qword [sym.imp.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, 0x20
pop rsi
ret
Function at 0x14013c250
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
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x14013c284
cdqe
jmp 0x14013c293
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x14013c29b
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14013c2ac
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 0x1401433c0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x1402c90b0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140143404
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x140143463
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140143472
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1401434aa
cmp eax, 0x103
je 0x1401434b4
test eax, eax
js 0x14014348f
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1401434aa
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1402c9118]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14013b580
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140136d00
mov ecx, 7
int 0x29
ud2