joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003296b
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x668
movaps xmmword [rsp + 0x650], xmm6
mov rsi, rcx
mov rax, r8
shr rax, 0x3d
jne 0x1400329fa
movzx ebx, r9b
shl rbx, 7
sub rbx, 0xffffffffffffff80
shl r8, 3
cmp r8, rbx
jne 0x1400329fa
mov rdi, rdx
lea rcx, [rsp + 0x140]
mov r8d, 0xf4
xor edx, edx
call sub.msvcrt.dll_memset
call fcn.140032916
cmp eax, 3
je 0x1400329dd
mov eax, eax
lea r8, [rsp + 0x140]
mov rcx, rdi
mov edx, ebx
cmp eax, 2
jne 0x1400329f1
call fcn.1400e1100
jmp 0x1400329f6
lea r8, [rsp + 0x140]
mov rcx, rdi
mov edx, ebx
call fcn.140101010
jmp 0x1400329f6
call fcn.1400e0490
test eax, eax
je 0x140032a18
mov dword [rsi], 2
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x650]
add rsp, 0x668
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdi, [rsp + 0x358]
lea rbx, [rsp + 0x140]
mov r8d, 0xf4
mov rcx, rdi
mov rdx, rbx
call sub.msvcrt.dll_memcpy
xorps xmm6, xmm6
movaps xmmword [rbx], xmm6
lea rbx, [rsp + 0x30]
lea r8, [rsp + 0x140]
mov rcx, rbx
mov rdx, rdi
call fcn.14003288f
mov r14, qword [rbx]
mov rdi, qword [rbx + 8]
bswap r14
bswap rdi
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x28], rdi
xor eax, eax
cmp rax, 0x100
je 0x140032a8c
lea rcx, [rsp + rax]
add rcx, 0x140
movups xmmword [rcx], xmm6
add rax, 0x10
jmp 0x140032a70
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x140]
mov r8d, 0x100
call sub.msvcrt.dll_memcpy
call fcn.140034496
test al, al
je 0x140032ada
mov rax, r14
shld rax, rdi, 1
shld rdi, r14, 1
sar r14, 0x3f
movabs rcx, 0xc200000000000000
and rcx, r14
xor rcx, rax
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdi
jmp 0x140032b03
mov rax, qword [0x140175ef0]
mov eax, dword [rax + 4]
not eax
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x20]
test eax, 0x10400000
jne 0x140032afe
call fcn.1400ee1e0
jmp 0x140032b03
call fcn.1400ed7c0
lea rdi, [rsp + 0x450]
lea rdx, [rsp + 0x40]
mov r8d, 0x100
mov rcx, rdi
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x550]
lea rdx, [rsp + 0x358]
mov r8d, 0xf4
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x14c]
mov r8d, 0x200
mov rdx, rdi
call sub.msvcrt.dll_memcpy
and dword [rsi], 0
mov rcx, rsi
add rcx, 4
lea rdx, [rsp + 0x140]
mov r8d, 0x20c
call sub.msvcrt.dll_memcpy
jmp 0x140032a00

Function at 0x140038667
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rbx, rcx
xor edi, edi
lea r14, str..cargo_registry_srcindex.crates.io_6f17d22bba15001f_ring_0.16.20_src_rand.rs
mov r12d, 0xffffffff
cmp rdi, rsi
jae 0x1400386d7
mov rcx, rbx
mov rdx, rsi
mov r8, rdi
mov r9, r14
call fcn.140031350
mov r15, rdx
cmp rdx, r12
cmovae r15, r12
mov rcx, rax
mov edx, r15d
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x1400386d7
add rdi, r15
jae 0x140038689
lea rcx, str.attempt_to_add_with_overflow__
lea r8, str..cargo_registry_srcindex.crates.io_6f17d22bba15001f_ring_0.16.20_src_rand.rs
mov edx, 0x1c
call fcn.14000e3b0
ud2
cmp rdi, rsi
setb al
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14003e870
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x14003e8cb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14003e8cb
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x14003e8e6
cmp eax, 0x42
jne 0x14003e8cb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14003e996
cmp byte [r9 + r11], 0x5f
jne 0x14003e996
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14003e9fe
mov rcx, rsi
xor edx, edx
call fcn.14003d4d0
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.14003d4d0
test al, al
jne 0x14003ea91
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14003e922
lea rdx, [0x140128df3]
mov r8d, 1
call fcn.140011280
test al, al
jne 0x14003ea91
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14003e8da
xor r14d, r14d
lea rbx, [0x14012923e]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14003e954
cmp byte [rax + rcx], 0x45
je 0x14003eab3
sub r14, 1
jb 0x14003e979
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14003e979
mov r8d, 2
mov rdx, rbx
call fcn.140011280
test al, al
jne 0x14003ea91
mov rcx, rsi
call fcn.14003dc90
test al, al
jne 0x14003ea91
mov rax, qword [rsi]
test rax, rax
jne 0x14003e940
jmp 0x14003e8da
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x14003ea58
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x14003e9f2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14003e9dc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14003e9cb
add dl, 0xa9
jmp 0x14003e9da
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14003ea58
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14003ea58
movzx edx, bl
add rax, rdx
jae 0x14003e9a0
jmp 0x14003ea58
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14003ea58
cmp rax, rcx
jae 0x14003ea55
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14003eaab
cmp qword [rsi + 0x20], 0
je 0x14003eabf
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.14003e870
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14003e8dc
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14003ea99
lea rax, [0x140129209]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.140011280
test al, al
je 0x14003ea99
mov dil, 2
jmp 0x14003e8da
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14003e8da
mov dil, 1
xor r8d, r8d
jmp 0x14003ea5a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14003e8da
xor edi, edi
jmp 0x14003e8da
Function at 0x140075ff5
Capabilities:
Hash data using sha256 via x86 extensions

Disassembly:
mov rax, rcx
movaps xmm0, xmmword [rdx]
sha256msg1 xmm0, xmmword [r8]
movaps xmmword [rcx], xmm0
ret

Function at 0x140076004
Capabilities:
Hash data using sha256 via x86 extensions

Disassembly:
mov rax, rcx
movaps xmm0, xmmword [rdx]
sha256msg2 xmm0, xmmword [r8]
movaps xmmword [rcx], xmm0
ret
Function at 0x14007846c
Capabilities:
Hash data using murmur3

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
mov r8d, dword [r8 + 0xc]
mov eax, r8d
rol eax, 0x19
mov r10d, dword [rdx]
mov ebx, r10d
rol ebx, 0x19
mov r11d, dword [rdx + 4]
mov ebp, r11d
rol ebp, 0x19
mov esi, dword [rdx + 8]
mov r14d, esi
rol r14d, 0x19
mov rdi, qword [rsp + 0x58]
mov r15d, r8d
rol r15d, 0xe
xor r15d, eax
mov eax, r10d
rol eax, 0xe
xor eax, ebx
mov ebx, r11d
rol ebx, 0xe
xor ebx, ebp
mov ebp, esi
rol ebp, 0xe
xor ebp, r14d
shr r8d, 3
xor r8d, r15d
add r8d, r10d
shr r10d, 3
xor r10d, eax
add r10d, r11d
shr r11d, 3
xor r11d, ebx
add r11d, esi
shr esi, 3
xor esi, ebp
add esi, dword [rdx + 0xc]
add r8d, dword [rdi + 0xc]
add r10d, dword [r9]
add r11d, dword [r9 + 4]
mov rax, rcx
add esi, dword [r9 + 8]
mov edx, dword [rdi]
mov ecx, dword [rdi + 4]
mov r9d, ecx
rol r9d, 0xf
mov edi, ecx
rol edi, 0xd
xor edi, r9d
shr ecx, 0xa
mov r9d, edx
rol r9d, 0xf
xor ecx, edi
mov edi, edx
rol edi, 0xd
add ecx, esi
xor edi, r9d
shr edx, 0xa
xor edx, edi
add edx, r11d
mov r9d, ecx
rol r9d, 0xf
mov r11d, ecx
rol r11d, 0xd
xor r11d, r9d
mov r9d, ecx
shr r9d, 0xa
xor r9d, r11d
add r9d, r10d
mov r10d, edx
rol r10d, 0xf
mov r11d, edx
rol r11d, 0xd
xor r11d, r10d
mov r10d, edx
shr r10d, 0xa
xor r10d, r11d
add r10d, r8d
mov dword [rax], r10d
mov dword [rax + 4], r9d
mov dword [rax + 8], edx
mov dword [rax + 0xc], ecx
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14008e7b0
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 0x14008e830
jmp 0x14008e81f
jae 0x14008e8d4
cmp r8, 0x201
jae 0x14008e830
lea r12, [rsp + 0x68]
mov r13d, 0x200
mov rbp, r8
jmp 0x14008e877
sub r8, r15
sub rdi, r15
cmp rdi, r8
jae 0x14008e857
lea rcx, [rsp + 0x30]
mov rdx, r15
call fcn.14007e220
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, qword [rsp + 0x20]
mov r13, r15
mov rbp, r15
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov ecx, ebp
mov rdx, r12
call sub.kernel32.dll_GetCurrentDirectoryW
mov ebx, eax
test eax, eax
jne 0x14008e89b
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x14008e92f
mov r8d, ebx
cmp rbp, r8
jne 0x14008e810
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x14008e94f
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x14008e81f
jmp 0x14008e830
cmp r13, r8
jb 0x14008e969
lea rcx, [rsp + 0x48]
mov rdx, r12
call fcn.140092740
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 0x14008e918
mov rcx, qword [0x1401c3168]
xor edx, edx
mov r8, qword [rsp + 0x20]
call sub.kernel32.dll_HeapFree
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 0x14008e905
jmp 0x14008e918
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14000e3b0
jmp 0x14008e97e
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r13
mov r8, rax
call fcn.140012dc0
ud2
Function at 0x14008eab0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov rsi, rcx
lea rcx, [rsp + 0xa8]
call fcn.14009c4d0
mov r15, qword [rsp + 0xa8]
test r15, r15
je 0x14008ec18
mov qword [rsp + 0x68], rsi
movups xmm0, xmmword [rsp + 0xb0]
movups xmmword [rsp + 0x78], xmm0
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x28], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor edi, edi
xor r14d, r14d
xor esi, esi
cmp r8, 0x201
jae 0x14008eb60
jmp 0x14008eb42
mov r15, rbx
jae 0x14008ec2b
cmp r8, 0x201
jae 0x14008eb60
lea rbp, [rsp + 0xa8]
mov r12d, 0x200
mov r13, r8
jmp 0x14008ebab
sub r8, rsi
sub r14, rsi
cmp r14, r8
jae 0x14008eb87
lea rcx, [rsp + 0x28]
mov rdx, rsi
call fcn.14007e220
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov rdi, qword [rsp + 0x30]
mov eax, 0xffffffff
cmp rdi, rax
mov esi, 0xffffffff
cmovb rsi, rdi
mov qword [rsp + 0x38], rsi
mov r14, rdi
mov rbp, qword [rsp + 0x20]
mov r12, rsi
mov r13, rsi
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rbx, r15
mov rcx, r15
mov rdx, rbp
mov r8d, r13d
call sub.kernel32.dll_GetEnvironmentVariableW
mov r15d, eax
test eax, eax
jne 0x14008ebd7
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x14008ecdb
mov r8d, r15d
cmp r13, r8
jne 0x14008eb30
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x14008ed03
mov r15, rbx
add r13, r13
mov eax, 0xffffffff
cmp r13, rax
cmovae r13, rax
mov r8, r13
cmp r8, 0x201
jb 0x14008eb42
jmp 0x14008eb60
lea rcx, [rsp + 0xb0]
call fcn.14007a040
mov byte [rsi + 0x18], 2
jmp 0x14008eca9
cmp r12, r8
jb 0x14008ed1d
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.140092740
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
test rdi, rdi
je 0x14008ec76
mov rcx, qword [0x1401c3168]
xor edx, edx
mov r8, qword [rsp + 0x20]
call sub.kernel32.dll_HeapFree
cmp byte [rsp + 0x58], 2
mov rsi, qword [rsp + 0x68]
jne 0x14008ecc0
mov byte [rsi + 0x18], 2
lea rcx, [rsp + 0x40]
call fcn.14007a040
cmp qword [rsp + 0x78], 0
je 0x14008eca9
mov rcx, qword [0x1401c3168]
xor edx, edx
mov r8, r15
call sub.kernel32.dll_HeapFree
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movaps xmm0, xmmword [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x50]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rsp + 0x78], 0
jne 0x14008ec98
jmp 0x14008eca9
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x58], 2
mov r15, rbx
test rdi, rdi
jne 0x14008ec63
jmp 0x14008ec76
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14000e3b0
jmp 0x14008ed32
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r12
mov r8, rax
call fcn.140012dc0
ud2
Function at 0x140091f70
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x140091fd1
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x140091fd1
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x140091fd1
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x140091fd1
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x14009200e
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 0x140091ffc
xor eax, eax
jmp 0x140092009
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
jmp 0x140092009

Function at 0x140092020
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x140092081
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x140092081
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x140092081
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x140092081
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x1400920be
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 0x1400920ac
xor eax, eax
jmp 0x1400920b9
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
jmp 0x1400920b9

Function at 0x1400920d0
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 0x140092106
cdqe
jmp 0x140092114
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14009211c
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14009212d
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 0x140092140
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 0x140092174
xor eax, eax
jmp 0x140092181
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
Function at 0x140092190
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 0x14009220a
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 0x1400921eb
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 0x140092203
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x1400921fb
xor eax, eax
jmp 0x140092203
shl rax, 0x20
or rax, 2
add rsp, 0x28
pop rdi
pop rsi
ret
lea r8, str.library_std_srcio_readbuf.rs
mov rcx, rsi
call fcn.140012d40
ud2

Function at 0x1400922b0
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 0x140092301
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140092317
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 0x140092330
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 0x1400923ad
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 0x14009238e
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 0x1400923a6
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14009239e
xor eax, eax
jmp 0x1400923a6
shl rax, 0x20
or rax, 2
add rsp, 0x28
pop rdi
pop rsi
ret
lea r8, str.library_std_srcio_readbuf.rs
mov rcx, rsi
call fcn.140012d40
ud2

Function at 0x1400925f0
Capabilities:
Set socket configuration

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

Function at 0x140092670
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 sub.ws2_32.dll_send
cmp eax, 0xffffffff
je 0x1400926a9
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400926bf
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, 0x20
pop rsi
ret
Function at 0x1400926d0
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 sub.ws2_32.dll_recv
cmp eax, 0xffffffff
je 0x140092703
cdqe
jmp 0x140092711
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x140092719
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14009272a
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 0x140093180
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x1400931b0
test ecx, ecx
jne 0x140093200
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1400931bc
test ecx, ecx
jne 0x140093200
mov rcx, rdi
call fcn.140093060
movzx eax, al
test bpl, bpl
jne 0x140093207
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x1400931f3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140093378]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x1400931f3.2
xor eax, eax
test bpl, bpl
je 0x1400931cc
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140093359
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14009323a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x1400932b9
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x140093280
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x14009329b
inc rax
dec rdi
cmp rax, 1
jne 0x140093260
jmp 0x1400932b9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14009329b
cmp ebx, 0x5c
je 0x14009329b
inc rax
dec rdi
cmp rax, 1
jne 0x140093280
jmp 0x1400932b9
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140093367
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x1400932e3
mov al, 9
cmp rdx, 2
je 0x1400932e7
cmp rdx, 1
jne 0x1400932f7
cmp byte [r8], 0x2e
jne 0x1400932f7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x1400932f7
mov al, 0xa
jmp 0x1400932f7
cmp byte [r8], 0x2e
jne 0x1400932f7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x1400931f3.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x1400931f3.2
mov ecx, 2
jmp case.0x1400931f3.2
lea r8, [0x1401362c0]
call fcn.140012d40
ud2
lea r8, [0x1401362d8]
call fcn.140012d40
ud2
Function at 0x140094f00
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.1400043b0
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x140094f5e
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
cmp qword [rsp + 0x38], 0
je 0x140094fea
mov rcx, qword [0x1401c3168]
xor edx, edx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp sub.kernel32.dll_HeapFree
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x140094fbb
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x140094fce
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bx
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test r14, r14
je 0x140094fea
mov rcx, qword [0x1401c3168]
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_HeapFree
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret