joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000399a
Capabilities:
Set current directory

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 rdi, qword [rcx + 0x10]
test rdi, rdi
mov qword [rbp - 0x10], rcx
je 0x1400039dc
mov rbx, qword [rcx + 8]
add rdi, rbx
mov cl, byte [rbx]
movzx r14d, cl
test r14b, r14b
js 0x1400039f3
inc rbx
jmp 0x140003a85
xor edx, edx
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x28], 2
mov qword [rbp - 0x20], rdx
jmp 0x140003b33
mov eax, r14d
and eax, 0x1f
movzx edx, byte [rbx + 1]
and edx, 0x3f
cmp r14b, 0xdf
jbe 0x140003a39
movzx r14d, byte [rbx + 2]
shl edx, 6
and r14d, 0x3f
or r14d, edx
cmp cl, 0xf0
jb 0x140003a47
movzx ecx, byte [rbx + 3]
add rbx, 4
and eax, 7
shl eax, 0x12
shl r14d, 6
and ecx, 0x3f
or ecx, r14d
or ecx, eax
mov r14d, ecx
jmp 0x140003a51
add rbx, 2
shl eax, 6
or eax, edx
mov r14d, eax
jmp 0x140003a85
add rbx, 3
shl eax, 0xc
or r14d, eax
cmp r14d, 0xffff
jbe 0x140003a85
lea ecx, [r14 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r14d, 0x3ff
or r14d, 0xdc00
mov eax, 1
mov r15d, r14d
mov r14d, ecx
jmp 0x140003a8a
xor r15d, r15d
xor eax, eax
mov rcx, rdi
sub rcx, rbx
add rcx, 3
mov rdx, 0xffffffffffffffff
cmovae rdx, rcx
shr rdx, 2
add rdx, rax
cmp rdx, 4
mov r12d, 3
cmovae r12, rdx
movabs rax, 0x3fffffffffffffff
cmp r12, rax
jae 0x140003bb3
lea rsi, [r12*2 + 2]
mov al, byte [0x140532321]
mov edx, 2
mov rcx, rsi
call fcn.140008450
test rax, rax
je 0x140003bba
inc r12
mov word [rax], r14w
lea rcx, [rbp - 0x48]
mov qword [rcx], r12
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], 1
lea rdx, [rbp - 0x30]
mov qword [rdx], rbx
mov qword [rdx + 8], rdi
mov word [rdx + 0x10], r15w
call fcn.140069610
movups xmm0, xmmword [rbp - 0x48]
movaps xmmword [rbp - 0x30], xmm0
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x20], rax
mov rdx, qword [rbp - 0x30]
cmp rax, rdx
jne 0x140003b40
lea rcx, [rbp - 0x30]
call fcn.1400697a0
mov rax, qword [rbp - 0x20]
mov rdi, qword [rbp - 0x28]
mov word [rdi + rax*2], 0
mov rcx, rdi
call qword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x140003b5b
xor esi, esi
jmp 0x140003b6b
call qword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rbx, qword [rbp - 0x10]
cmp qword [rbp - 0x30], 0
je 0x140003b88
mov rcx, qword [0x140532288]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rbx], 0
je 0x140003ba1
mov r8, qword [rbx + 8]
mov rcx, qword [0x140532288]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
call fcn.140008610
jmp 0x140003bc7
mov ecx, 2
mov rdx, rsi
call fcn.1400d8e40
ud2
Function at 0x14000eed0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
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 0x14000ef60
cmp r11, r10
ja 0x14000efd6
cmp r10, rdx
ja 0x14000efe8
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14000ef62
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14000ef40
jmp 0x14000efc4
ja 0x14000ef6a
mov r11, r10
cmp rax, r8
jne 0x14000ef04
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 0x14000efa0
mov rdi, r8
sub ecx, edx
jns 0x14000efbb
jmp 0x14000efc6
cmp r8, rsi
je 0x14000eff7
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14000efc6
xor al, 1
cmp rdi, rsi
jne 0x14000ef80
jmp 0x14000efc6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400d9350
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400d90d0
lea rcx, [0x1404e3b7a]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400d9150
int3

Function at 0x140010ab5
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push rdi
sub rsp, 0x28
not ecx
lea rax, [0x140488828]
cmp r8, 0x40
jb 0x140010bea
add rdx, 0x10
xor r10d, r10d
mov r9d, 0xff
Function at 0x140010c2f
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 0x140010e31
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 [0x1400de080]
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 0x140010c95
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm5, xmmword [0x1400de090]
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 0x140010db3
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 0x140010d89
movdqa xmm1, xmmword [0x1400de090]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pxor xmm2, xmm2
movss xmm2, xmm0
movabs rax, 0x163cd6124
movq xmm3, rax
fsub dword [rsi + 0xf]
cmp al, byte [rdx + rbx*8]
psrldq xmm0, 4
pxor xmm0, xmm3
xorps xmm2, xmm2
movss xmm2, xmm0
pclmulqdq xmm2, xmmword [0x1400de0a0], 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 0x140010e4f
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
add rsp, 0x48
jmp fcn.140010ab5
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 0x1400110f5
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 0x14001114f
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call r12
test al, al
je 0x14001115b
add rdi, rbx
sub rsi, rbx
jne 0x14001111d
xor ebp, ebp
jmp 0x140011161
add ebp, 0x80000000
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x1400128f4
Capabilities:
Encrypt data using speck
Parse credit card information

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x268
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1d0], xmm6
mov qword [rbp + 0x1c8], 0xfffffffffffffffe
mov qword [rbp + 0x190], rdx
mov qword [rbp + 0x60], rcx
test r9, r9

Function at 0x140019fd6
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 0x140019fe1
test byte [0x14053232b], 1
je 0x14001a006
test byte [0x14053232c], 2
jne 0x14001a07a
mov rdx, qword [rsi + 0x10]
movdqa xmm0, xmmword [rsi]
movq rax, xmm0
bswap rax
pshufd xmm0, xmm0, 0xee
movq rcx, xmm0
bswap rcx
mov r8, qword [rsi + 0x18]
lea rdi, [rsp + 0x30]
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov rcx, rdi
call fcn.14001a419
pshufd xmm0, xmmword [rdi], 0x4e
lea rax, [rsp + 0x40]
movdqa xmmword [rax], xmm0
mov cl, 1
xor edx, edx
mov r8, qword [rax]
add rax, 8
bswap r8
mov qword [rsp + rdx*8 + 0x20], r8
mov edx, 1
test cl, 1
mov ecx, 0
jne 0x14001a04d
movaps xmm0, xmmword [rsp + 0x20]
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 0x1400b30f0
movdqu xmm0, xmmword [rcx]
movdqa xmm5, xmmword [0x1404e8f80]
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 0x14001a08c
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
movdqa xmm0, xmmword [rsp + 0x1a0]
psllq xmm0, 3
lea rax, [rsp + 0x20]
movdqa xmmword [rax], xmm0
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 0x14001a0bf
lea rdx, [rsp + 0x40]
movaps xmm0, xmmword [rdx]
movaps xmmword [rdx], xmm0
mov rcx, r14
call fcn.140019fd6
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 [0x14053232c]
bt eax, 9
mov ecx, 2
sbb rcx, 0xffffffffffffffff
bt eax, 0x19
mov eax, 1
cmovae rax, rcx
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov r8, rdi
cmp rax, 1
je 0x14001a14b
cmp rax, 2
jne 0x14001a152
call fcn.1400b17a0
jmp 0x14001a157
call fcn.1400b1b40
jmp 0x14001a157
call fcn.1400cfb30
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 0x14001a163
movaps xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
add rsp, 0x158
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140023bc2
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 r14, r8
mov r12, rdx
mov rsi, rcx
mov rbx, qword [rsp + 0x230]
mov al, byte [0x140532320]
cmp al, 2
jne 0x140023ce0
movups xmm0, xmmword [0x14049e410]
lea r15, [rsp + 0x28]
movups xmmword [r15 + 0x38], xmm0
movups xmm0, xmmword [0x14049e400]
movups xmmword [r15 + 0x28], xmm0
movups xmm0, xmmword [0x14049e3f0]
movups xmmword [r15 + 0x18], xmm0
movups xmm0, xmmword [0x14049e3e0]
movups xmmword [r15 + 8], xmm0
lea rax, [0x14049e3b0]
xorps xmm0, xmm0
movups xmmword [r15 + 0x50], xmm0
movups xmmword [r15 + 0x60], xmm0
movups xmmword [r15 + 0x70], xmm0
movups xmmword [r15 + 0x80], xmm0
movups xmmword [r15 + 0x90], xmm0
movups xmmword [r15 + 0xa0], xmm0
movups xmmword [r15 + 0xb0], xmm0
movups xmmword [r15 + 0xc0], xmm0
mov qword [r15], rax
xor eax, eax
mov qword [r15 + 0x48], rax
mov qword [r15 + 0xd0], rax
mov r8d, 0x20
mov rcx, r15
mov rdx, r12
call fcn.14001e9f6
mov r8d, 0x20
mov rcx, r15
mov rdx, r14
call fcn.14001e9f6
mov rcx, r15
mov rdx, rdi
mov r8, rbx
call fcn.14001e9f6
lea rdi, [rsp + 0x100]
mov r8d, 0xd8
mov rcx, rdi
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rsi
mov rdx, rdi
call fcn.14001ec50
nop
add rsp, 0x1d8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400d9b47
jmp 0x140023bf4
Function at 0x140029b70
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140009740
cmp rax, rcx
je 0x140029b95
cmp rdx, 4
jae 0x140029b98
xor eax, eax
xor r8d, r8d
jmp 0x140029c30
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400de000]
movdqa xmm3, xmmword [0x1400de010]
pxor xmm1, xmm1
nop dword [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 0x140029bc0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140029c47
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140029c30
ret

Function at 0x140031eb5
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
and al, 0x20
movaps xmmword [rdx], xmm0
xor ecx, ecx
leave
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140031ee8
invalid
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140031eed
call fcn.140072b20
mov ecx, dword [0x140532338]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov byte [rcx + 0x60], 1
mov qword [rcx + 0x68], rax
mov qword [rcx + 0x70], rdx
add rsp, 0x38
ret

Function at 0x140068990
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1404a8648]
movaps xmmword [rsp + 0x60], xmm0
sub dword [rsp + 0x60], eax

Function at 0x14006ce50
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]
lodsb al, byte [rsi]
and al, 0x80
add byte [rax], al
add byte [rax - 0x39], cl
mov dword [rbp + 0x420], 0xfffffffe
Function at 0x140071ab0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
test dx, dx
mov eax, 2
mov edi, 0x17
cmove edi, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x140071aff
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140071b73
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x140071b13
cmp eax, 0x2739
jne 0x140071b60
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x140071b5a
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
je 0x140071b7a
mov qword [rsi + 8], rdi
jmp 0x140071af6
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0x38
pop rdi
pop rsi
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
add rsp, 0x38
pop rdi
pop rsi
jmp qword [sym.imp.ws2_32.dll_closesocket]

Function at 0x140071c20
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x140071c7e
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x140071c7e
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x140071c7e
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x140071c7e
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x140071cbd
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 0x140071caa
xor eax, eax
jmp 0x140071cb8
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
jmp 0x140071cb8

Function at 0x140071cd0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x140071d2e
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x140071d2e
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x140071d2e
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x140071d2e
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x140071d6d
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
and al, 0x20
add al, 0
add byte [rax], al
lea rax, str.cannot_set_a_0_duration_timeout
jmp 0x140071d68
Function at 0x140071eb0
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 qword [sym.imp.ws2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x140071f02
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140071f19
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 0x1400721d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0xb0
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x2c], 0x80
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x2c]
mov rcx, rax
call qword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x140072275
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x30]
cmp ecx, 2
je case.0x14006aaec.200
cmp ecx, 0x17
jne 0x1400722a5
cmp eax, 0x1b
jbe 0x1400722be
movzx eax, word [rsp + 0x32]
rol ax, 8
movups xmm0, xmmword [rsp + 0x38]
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x48]
mov word [rsi], 1
movups xmmword [rsi + 4], xmm0
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
lea rax, str.invalid_argument0
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x1404a9318]
mov edx, 0x43

Function at 0x140072440
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
movzx eax, dl
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
call qword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x140072464
xor eax, eax
jmp 0x140072472
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x28
ret

Function at 0x140072480
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
ror dword [rax - 0x77], 0xc2

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov esi, ecx
Function at 0x140072810
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x140532321]
mov ecx, 0x10
mov edx, 8
call fcn.140008450
test rax, rax
je 0x140072906
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400729c0]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400728f8
mov rcx, qword [rbx]
mov qword [rbp - 0x20], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x10], rcx
mov qword [rbp - 0x18], rax
call qword [rax]
mov rax, qword [rbp - 0x18]
cmp qword [rax + 8], 0
mov rsi, qword [rbp - 0x20]
je 0x1400728d1
cmp qword [rax + 0x10], 0x11
jae 0x1400728ba
mov r8, qword [rbp - 0x10]
jmp 0x1400728c2
mov r8, qword [rbp - 0x10]
mov r8, qword [r8 - 8]
mov rcx, qword [0x140532288]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x140532288]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.1400d8e40
ud2

Function at 0x140072b20
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x140072b63
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [fcn.14006da60]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.1400d8f90
ud2
Function at 0x1400765e0
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x140076602
mov qword [rsi + 8], rbx
mov qword [rsi], 1
jmp 0x1400766d1
mov rax, qword [0x140532290]
cmp rax, 3
jne 0x1400766da
movzx edx, word [rbx]
lea rcx, [rsp + 0x20]
call fcn.140071ab0
cmp qword [rsp + 0x20], 0
mov rdi, qword [rsp + 0x28]
je 0x14007663d
mov qword [rsi + 8], rdi
mov qword [rsi], 1
jmp 0x1400766d1
cmp word [rbx], 0
je 0x14007665e
movups xmm0, xmmword [rbx + 4]
mov eax, dword [rbx + 0x14]
mov edx, dword [rbx + 0x18]
movzx ecx, word [rbx + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x140076673
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
mov r8d, 0x10
mov r9w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x20], r9w
mov word [rsp + 0x22], cx
mov dword [rsp + 0x24], eax
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x20]
call fcn.1400dac20
jmp 0x140076613
invalid
invalid
invalid
invalid