joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ec70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14000ecf0
cmp r11, r10
ja 0x14000ed67
cmp r10, rdx
ja 0x14000ed79
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x14000ecf2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14000ecd0
jmp 0x14000ed54
ja 0x14000ecfa
mov r11, r10
cmp rax, r8
jne 0x14000ec9e
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x14000ed30
mov rdi, r8
sub ecx, edx
jns 0x14000ed4b
jmp 0x14000ed56
cmp r8, rsi
je 0x14000ed88
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14000ed56
xor al, 1
cmp rdi, rsi
jne 0x14000ed10
jmp 0x14000ed56
xor eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400d6520
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400d6300
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.1400d6620
int3
Function at 0x140010825
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push rdi
sub rsp, 0x28
not ecx
lea rax, [0x1405fda98]
cmp r8, 0x40
jb 0x14001095a
add rdx, 0x10
xor r10d, r10d
mov r9d, 0xff
cmp r8, 0xf
jbe 0x140010987
movzx esi, byte [rdx - 1]
movzx r11d, byte [rdx - 2]
mov r11d, dword [rax + r11*4 + 0x400]
xor r11d, dword [rax + rsi*4]
movzx esi, byte [rdx - 3]
xor r11d, dword [rax + rsi*4 + 0x800]
movzx esi, byte [rdx - 4]
xor r11d, dword [rax + rsi*4 + 0xc00]
movzx esi, byte [rdx - 5]
xor r11d, dword [rax + rsi*4 + 0x1000]
movzx esi, byte [rdx - 6]
xor r11d, dword [rax + rsi*4 + 0x1400]
movzx esi, byte [rdx - 7]
xor r11d, dword [rax + rsi*4 + 0x1800]
movzx esi, byte [rdx - 8]
xor r11d, dword [rax + rsi*4 + 0x1c00]
movzx esi, byte [rdx - 9]
xor r11d, dword [rax + rsi*4 + 0x2000]
movzx esi, byte [rdx - 0xa]
xor r11d, dword [rax + rsi*4 + 0x2400]
movzx esi, byte [rdx - 0xb]
xor r11d, dword [rax + rsi*4 + 0x2800]
movzx esi, byte [rdx - 0xc]
xor r11d, dword [rax + rsi*4 + 0x2c00]
mov esi, ecx
shr esi, 0x18
movzx edi, byte [rdx - 0xd]
xor edi, esi
xor r11d, dword [rax + rdi*4 + 0x3000]
mov esi, ecx
shr esi, 0x10
and esi, r9d
movzx edi, byte [rdx - 0xe]
xor edi, esi
xor r11d, dword [rax + rdi*4 + 0x3400]
inc r10
mov esi, ecx
shr esi, 8
and esi, r9d
movzx edi, byte [rdx - 0xf]
xor edi, esi
xor r11d, dword [rax + rdi*4 + 0x3800]
and ecx, r9d
movzx esi, byte [rdx - 0x10]
xor esi, ecx
mov ecx, r11d
xor ecx, dword [rax + rsi*4 + 0x3c00]
lea r11, [r8 - 0x10]
cmp r10, 4
jne 0x14001094a
cmp r11, 0x3f
jbe 0x140010956
xor r10d, r10d
add rdx, 0x10
mov r8, r11
jmp 0x14001084b
add r8, 0xfffffffffffffff0
test r8, r8
je 0x14001097c
xor r9d, r9d
mov r10b, byte [rdx + r9]
xor r10b, cl
movzx r10d, r10b
shr ecx, 8
xor ecx, dword [rax + r10*4]
inc r9
cmp r8, r9
jne 0x140010962
not ecx
mov eax, ecx
add rsp, 0x28
pop rdi
pop rsi
ret
lea rax, str.C:UsersDevelopUser.cargo_registry_srcindex.crates.io_6f17d22bba15001fcrc32fast_1.3.2_src_baseline.rs
mov ecx, 0xf
mov rdx, r8
mov r8, rax
call fcn.1400d6290
int3
Function at 0x14001099f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x48
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
cmp r8, 0x80
jb 0x140010ba1
movdqu xmm4, xmmword [rdx]
movdqu xmm3, xmmword [rdx + 0x10]
movdqu xmm2, xmmword [rdx + 0x20]
movdqu xmm1, xmmword [rdx + 0x30]
not ecx
movd xmm0, ecx
pxor xmm0, xmm4
add rdx, 0x40
add r8, 0xffffffffffffffc0
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x1400db080]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm7, xmm0
pclmulqdq xmm7, xmm5, 0x11
movdqu xmm0, xmmword [rdx]
pxor xmm0, xmm6
pxor xmm0, xmm7
movdqu xmm6, xmmword [rdx + 0x10]
movdqu xmm7, xmmword [rdx + 0x20]
movdqu xmm8, xmmword [rdx + 0x30]
movdqa xmm9, xmm3
pclmulqdq xmm9, xmm4, 0
pxor xmm9, xmm6
pclmulqdq xmm3, xmm5, 0x11
pxor xmm3, xmm9
movdqa xmm6, xmm2
pclmulqdq xmm6, xmm4, 0
pxor xmm6, xmm7
pclmulqdq xmm2, xmm5, 0x11
pxor xmm2, xmm6
movdqa xmm6, xmm1
pclmulqdq xmm6, xmm4, 0
pxor xmm6, xmm8
pclmulqdq xmm1, xmm5, 0x11
pxor xmm1, xmm6
add rdx, 0x40
add r8, 0xffffffffffffffc0
cmp r8, 0x3f
ja 0x140010a05
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm5, xmmword [0x1400db090]
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm6
pxor xmm0, xmm3
movdqa xmm3, xmm0
pclmulqdq xmm3, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm3
pxor xmm0, xmm2
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm2
pxor xmm0, xmm1
cmp r8, 0x10
jb 0x140010b23
movdqu xmm1, xmmword [rdx]
add r8, 0xfffffffffffffff0
add rdx, 0x10
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm2
cmp r8, 0xf
ja 0x140010af9
movdqa xmm1, xmmword [0x1400db090]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
invalid
jae 0x140010b0d
or byte [rsi + 0xf], ah
out dx, eax
shl dword [rsi + 0xf], 0xef
leave
pxor xmm2, xmm2
movss xmm2, xmm0
movabs rax, 0x163cd6124
movq xmm3, rax
pclmulqdq xmm3, xmm2, 0
psrldq xmm0, 4
pxor xmm0, xmm3
xorps xmm2, xmm2
movss xmm2, xmm0
pclmulqdq xmm2, xmmword [0x1400db0a0], 0x10
pblendw xmm2, xmm1, 0xfc
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm2, 0
pxor xmm1, xmm0
pextrd ecx, xmm1, 1
not ecx
test r8, r8
je 0x140010bbf
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
add rsp, 0x48
jmp fcn.140010825
mov eax, ecx
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x140010e82
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
mov r15, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov r12, qword [sym.imp.advapi32.dll_SystemFunction036]
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
call r15
cmp eax, 0xbfffffff
jbe 0x140010edc
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call r12
test al, al
je 0x140010ee8
add rdi, rbx
sub rsi, rbx
jne 0x140010eaa
xor ebp, ebp
jmp 0x140010eee
and ebp, 0x7fffffff
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140019a93
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rsi, rcx
xor eax, eax
mov cl, byte [rdx + rax]
xor byte [rsi + rax], cl
lea rcx, [rax + 1]
mov rax, rcx
cmp rcx, 0x10
jne 0x140019a9e
test byte [0x1406a72bb], 1
je 0x140019ac3
test byte [0x1406a72bc], 2
jne 0x140019b30
mov rdx, qword [rsi + 0x10]
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
bswap rax
bswap rcx
mov r8, qword [rsi + 0x18]
lea rdi, [rsp + 0x38]
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov rcx, rdi
call fcn.140019ed5
mov rcx, qword [rdi]
mov rdx, qword [rdi + 8]
lea rax, [rsp + 0x48]
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov cl, 1
xor edx, edx
mov r8, qword [rax]
add rax, 8
bswap r8
mov qword [rsp + rdx*8 + 0x28], r8
mov edx, 1
test cl, 1
mov ecx, 0
jne 0x140019b03
movups xmm0, xmmword [rsp + 0x28]
movaps xmmword [rsi], xmm0
add rsp, 0x58
pop rdi
pop rsi
ret
lea rdx, [rsi + 0x10]
mov rcx, rsi
add rsp, 0x58
pop rdi
pop rsi
jmp 0x1400aff30
movdqu xmm0, xmmword [rcx]
movdqa xmm5, xmmword [0x14065dac0]
movdqu xmm2, xmmword [rdx]
movdqu xmm4, xmmword [rdx + 0x20]
pshufb xmm0, xmm5
movdqa xmm1, xmm0
pshufd xmm3, xmm0, 0x4e
pxor xmm3, xmm0
pclmulqdq xmm0, xmm2, 0
pclmulqdq xmm1, xmm2, 0x11
pclmulqdq xmm3, xmm4, 0
pxor xmm3, xmm0
pxor xmm3, xmm1
movdqa xmm4, xmm3
psrldq xmm3, 8
pslldq xmm4, 8
pxor xmm1, xmm3
pxor xmm0, xmm4
movdqa xmm4, xmm0
movdqa xmm3, xmm0
psllq xmm0, 5
pxor xmm3, xmm0
psllq xmm0, 1
pxor xmm0, xmm3
psllq xmm0, 0x39
movdqa xmm3, xmm0
pslldq xmm0, 8
psrldq xmm3, 8
pxor xmm0, xmm4
pxor xmm1, xmm3
movdqa xmm4, xmm0
psrlq xmm0, 1
pxor xmm1, xmm4
pxor xmm4, xmm0
psrlq xmm0, 5
pxor xmm0, xmm4
psrlq xmm0, 1
pxor xmm0, xmm1
pshufb xmm0, xmm5
movdqu xmmword [rcx], xmm0
ret

Function at 0x140019b42
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x158
mov rbx, r9
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0x1a8]
mov rdx, qword [rsp + 0x1a0]
shl rdx, 3
shl rcx, 3
lea rax, [rsp + 0x20]
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov cl, 1
xor edx, edx
mov r8, qword [rax]
add rax, 8
bswap r8
mov qword [rsp + rdx*8 + 0x40], r8
mov edx, 1
test cl, 1
mov ecx, 0
jne 0x140019b82
lea rdx, [rsp + 0x40]
movups xmm0, xmmword [rdx]
movups xmmword [rdx], xmm0
mov rcx, r14
call fcn.140019a93
lea rcx, [rsp + 0x40]
mov r8d, 0x110
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0x20], xmm0
mov eax, dword [0x1406a72bc]
bt eax, 9
mov ecx, 2
sbb ecx, 0xffffffff
bt eax, 0x19
mov eax, 1
cmovae eax, ecx
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov r8, rdi
cmp eax, 1
je 0x140019c0a
cmp eax, 2
jne 0x140019c11
call fcn.1400ae5e0
jmp 0x140019c16
call fcn.1400ae980
jmp 0x140019c16
call fcn.1400cc948
movaps xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x20], xmm0
xor eax, eax
mov cl, byte [rsp + rax + 0x30]
xor byte [rsp + rax + 0x20], cl
lea rcx, [rax + 1]
mov rax, rcx
cmp rcx, 0x10
jne 0x140019c22
movaps xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
add rsp, 0x158
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14001de67
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x268
movaps xmmword [rsp + 0x250], xmm6
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x30], rcx
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14001e0a6
mov r13, qword [rsp + 0x2d0]
test r13, r13
je 0x14001e050
mov rsi, r9
mov rax, qword [rsp + 0x30]
lea rdi, [rax + 0x30]
lea rbx, [rsp + 0x1c8]
xorps xmm6, xmm6
lea rcx, [rsp + 0x178]
xor r14d, r14d
mov rbp, qword [rsp + 0x38]
cmp r13, rbp
cmovb rbp, r13
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmm2, xmmword [rdi + 0x20]
movups xmm3, xmmword [rdi + 0x30]
movaps xmmword [rsp + 0x80], xmm3
movaps xmmword [rsp + 0x70], xmm2
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
mov al, byte [0x1406a72b0]
cmp al, 2
jne 0x14001e03e
movups xmmword [rbx + 0x70], xmm6
movups xmmword [rbx + 0x60], xmm6
movups xmmword [rbx + 0x50], xmm6
movups xmmword [rbx + 0x40], xmm6
movups xmmword [rbx + 0x30], xmm6
movups xmmword [rbx + 0x20], xmm6
movups xmmword [rbx + 0x10], xmm6
movups xmmword [rbx], xmm6
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x178], rax
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movaps xmm2, xmmword [rsp + 0x70]
movaps xmm3, xmmword [rsp + 0x80]
movups xmmword [rbx - 0x18], xmm3
movups xmmword [rbx - 0x28], xmm2
movups xmmword [rbx - 0x38], xmm1
movups xmmword [rbx - 0x48], xmm0
xor eax, eax
mov qword [rsp + 0x1c0], rax
mov qword [rsp + 0x248], rax
mov rdx, qword [rsp + 0x40]
mov r12, rcx
mov r8, qword [rsp + 0x48]
call fcn.14001e2a5
movabs rax, 0x100000000
cmp r14, rax
je 0x14001e06c
mov eax, r14d
bswap eax
mov dword [rsp + 0x50], eax
mov r8d, 4
mov rcx, r12
lea r15, [rsp + 0x50]
mov rdx, r15
call fcn.14001e2a5
mov r8d, 0xd8
mov rcx, r15
mov rdx, r12
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x130]
mov rdx, r15
call fcn.14001e4fa
mov rax, qword [rsp + 0x130]
mov rcx, qword [rax + 0x10]
cmp rcx, 0x41
jae 0x14001e095
test rcx, rcx
je 0x14001e022
cmp rbp, rcx
cmovb rcx, rbp
cmp rcx, 1
adc rcx, 0
xor eax, eax
mov dl, byte [rsp + rax + 0x138]
xor byte [rsi + rax], dl
lea rdx, [rax + 1]
mov rax, rdx
cmp rcx, rdx
jne 0x14001e00c
add rsi, rbp
sub r13, rbp
inc r14
test r13, r13
lea rcx, [rsp + 0x178]
jne 0x14001ded6
jmp 0x14001e050
call fcn.1400d6caf
lea rcx, [rsp + 0x178]
jmp 0x14001df16
movaps xmm6, xmmword [rsp + 0x250]
add rsp, 0x268
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str._bNa_
mov qword [rsp + 0x20], rax
lea rcx, [0x1406594a4]
lea r9, [0x140612900]
lea r8, [rsp + 0x50]
mov edx, 0x2b
call fcn.1400d6590
lea r8, str.C:UsersDevelopUser.cargo_registry_srcindex.crates.io_6f17d22bba15001f_ring_0.17.7_srcdigest.rs
mov edx, 0x40
call fcn.1400d6300
lea rax, str.chunk_size_must_be_non_zero
lea rcx, [rsp + 0x50]
mov qword [rcx], rax
mov qword [rcx + 8], 1
mov qword [rcx + 0x10], 8
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
lea rdx, str.C:UsersDevelopUser.cargo_registry_srcindex.crates.io_6f17d22bba15001f_ring_0.17.7_src_rsapadding.rs_bNa_
call fcn.1400d6240
int3
Function at 0x140022eb5
Capabilities:
Hash data using sha512

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x1d8
mov rdi, r9
mov r15, r8
mov r12, rdx
mov rsi, rcx
mov rbx, qword [rsp + 0x230]
mov al, byte [0x1406a72b0]
cmp al, 2
jne 0x140022fd3
xorps xmm0, xmm0
lea r14, [rsp + 0x28]
movups xmmword [r14 + 0xc0], xmm0
movups xmmword [r14 + 0xb0], xmm0
movups xmmword [r14 + 0xa0], xmm0
movups xmmword [r14 + 0x90], xmm0
movups xmmword [r14 + 0x80], xmm0
movups xmmword [r14 + 0x70], xmm0
movups xmmword [r14 + 0x60], xmm0
movups xmmword [r14 + 0x50], xmm0
lea rax, [0x1406135f8]
mov qword [r14], rax
movups xmm0, xmmword [0x140613628]
movups xmmword [r14 + 8], xmm0
movups xmm0, xmmword [0x140613638]
movups xmmword [r14 + 0x18], xmm0
movups xmm0, xmmword [0x140613648]
movups xmmword [r14 + 0x28], xmm0
movups xmm0, xmmword [0x140613658]
movups xmmword [r14 + 0x38], xmm0
xor eax, eax
mov qword [r14 + 0x48], rax
mov qword [r14 + 0xd0], rax
mov r8d, 0x20
mov rcx, r14
mov rdx, r12
call fcn.14001e2a5
mov r8d, 0x20
mov rcx, r14
mov rdx, r15
call fcn.14001e2a5
mov rcx, r14
mov rdx, rdi
mov r8, rbx
call fcn.14001e2a5
lea rdi, [rsp + 0x100]
mov r8d, 0xd8
mov rcx, rdi
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rsi
mov rdx, rdi
call fcn.14001e4fa
nop
add rsp, 0x1d8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400d6caf
jmp 0x140022ee7
Function at 0x140028b60
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x140028b85
cmp rax, rcx
je 0x140028b8b
cmp rdx, 4
jae 0x140028b92
xor eax, eax
xor r8d, r8d
jmp 0x140028c30
pop rbp
jmp fcn.1400096b0
xor eax, eax
jmp 0x140028c47
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400db000]
movdqa xmm3, xmmword [0x1400db010]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140028bc0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140028c47
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140028c30
pop rbp
ret
Function at 0x140032bac
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140032be2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x140032bea
mov esi, dword [rdx]
mov r9d, 4
jmp 0x140032bef
xor r10d, r10d
jmp 0x140032c9d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140032c12
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140032c29
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140032c49
add r11, r8
jmp 0x140032d6e
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140032d11
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140032cbf
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x140032d23
mov r9d, dword [rdx + r10]
mov r8d, 4
jmp 0x140032d29
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x140032d50
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x140032d6a
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret

Function at 0x140068fa0
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.140069330
mov rax, qword [rbp - 0x60]
movabs rdi, 0x8000000000000000
cmp rax, rdi
jne 0x140068ff6
lea rcx, [rbp - 0x58]
call fcn.140064560
mov qword [rsi], rdi
jmp 0x140069247
mov qword [rbp + 0x3f8], rsi
mov qword [rbp + 0x3f0], rax
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x400], rax
mov qword [rbp + 0x408], 0
mov qword [rbp + 0x410], 2
mov qword [rbp + 0x418], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r14d, r14d
cmp r8, 0x201
jae 0x140069080
jmp 0x14006906f

Function at 0x14006aaf0
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
in al, dx
push 0x246c8d48
invalid
Function at 0x14006da10
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
test cx, cx
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor edi, edi
mov ecx, ebx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14006daf0
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x14006da75
mov esi, eax
cmp eax, 0x2726
jne 0x14006dae3
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14006dadb
mov rsi, rax
xor edi, edi
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x14006daf0
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_closesocket]
mov edi, 1
mov rsi, rbx
jmp 0x14006daf0
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov edi, 1
mov rax, rdi
mov rdx, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret

Function at 0x14006db70
Capabilities:
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14006dbd4
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14006dbd4
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14006dbd4
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x14006dbd4
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
cmovb ecx, eax

Function at 0x14006dc20
Capabilities:
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14006dc84
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14006dc84
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
sal byte [rdx + 0x27], 1
mov dword [rbp - 4], r9d
mov dword [rsp + 0x20], 4
lea r9, [rbp - 4]
mov edx, 0xffff
mov r8d, 0x1005
call qword [sym.imp.ws2_32.dll_setsockopt]
enter 6, 0xffffffffffffff83
clc
invalid
je 0x14006dcae
xor eax, eax
jmp 0x14006dcbc

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

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rdi, rdx
mov rdx, qword [rdx + 8]
mov rsi, qword [rdi + 0x10]
mov rax, rdx
sub rax, rsi
jb 0x14006dd53
mov rcx, qword [rcx]
cmp rax, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, rax
mov rdx, qword [rdi]
add rdx, rsi
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x14006dd32
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 0x14006dd4b
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x14006dd43
xor eax, eax
jmp 0x14006dd4b
shl rax, 0x20
or rax, 2
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
lea r8, str._rustc_129f3b9964af4d4a709d1383930ade12dfe7c081librarycore_srcio_borrowed_buf.rs
mov rcx, rsi
call fcn.1400d6280
int3