joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400010f0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x2c8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
lea r8, str._ACDELTREE_BF493F10_9A20_44E3_987D_F32EBC0562BC
xor edx, edx
mov ecx, 0x1f0001
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140001143
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x68], 3
mov eax, 0x614
mov word [rsp + 0x80], ax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x2d8]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x50], rax
xor edx, edx
mov eax, 0x208
mov ecx, 2
div rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x34], 0
cmp qword [rsp + 0x38], 0
je 0x1400011a1
cmp qword [rsp + 0x38], 0x7fffffff
jbe 0x1400011a9
mov dword [rsp + 0x34], 0x80070057
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x1400011df
mov qword [rsp + 0x20], 0x7ffffffe
mov r9, qword [rsp + 0x50]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0xa0]
call section..text
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0xa0]
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cdqe
shl rax, 1
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0x208
jae 0x140001214
jmp 0x140001219
call fcn.140001388
xor eax, eax
mov rcx, qword [rsp + 0x48]
mov word [rsp + rcx + 0xa0], ax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [rsp + 0x58], eax
xor eax, eax
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1400014d0
add rsp, 0x2c8
ret
Function at 0x140003ab4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003afe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003afe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003afe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003afe
cmp dword [rcx + 0x84], 0xe
jbe 0x140003afe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003b00
xor al, al
add rsp, 0x28
ret

Function at 0x14000cab4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000c8b0
Function at 0x140011cc8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140011cf8
xor eax, eax
jmp 0x140011dbb
mov rbp, rbx
cmp word [rax], si
je 0x140011d1d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140011d04
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140011d00
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140011be8
movsxd r14, eax
test eax, eax
jne 0x140011d5b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140011cf1
mov rcx, r14
call fcn.14000e1a0
mov rdi, rax
test rax, rax
jne 0x140011d74
xor ecx, ecx
call fcn.14000d528
jmp 0x140011d50
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140011be8
test eax, eax
jne 0x140011da5
mov rcx, rdi
call fcn.14000d528
jmp 0x140011daf
xor ecx, ecx
call fcn.14000d528
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140011dd8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140011e5f
mov rsi, rbx
cmp word [rax], bp
je 0x140011e1e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140011e08
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140011e04
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000e1a0
mov rdi, rax
test rax, rax
je 0x140011e4c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140008ac0
mov rbp, rdi
xor ecx, ecx
call fcn.14000d528
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001649c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400164b2
mov al, 1
jmp 0x140016512
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400164c3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140016510
mov ecx, dword [rcx + 0x18]
nop
call fcn.140012a28
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140016510
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140016510
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140016510
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140016512
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140017a98
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000b4b4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140017b22
cmp byte [rbp - 0x21], r15b
je 0x140017b1d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140017b58
call fcn.14000d778
test eax, eax
jne 0x140017b44
cmp byte [rbp - 0x21], r15b
je 0x140017b3c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140017b58
cmp byte [rbp - 0x21], r15b
je 0x140017b55
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140010334
test eax, eax
jne 0x140017bf8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000b4b4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140017b97
cmp byte [rbp - 0x21], r15b
je 0x140017bcc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140017bcc
call fcn.14000d778
test eax, eax
jne 0x140017bb8
cmp byte [rbp - 0x21], r15b
je 0x140017bb1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140017bcc
cmp byte [rbp - 0x21], r15b
je 0x140017bc9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140010334
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140017bf8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140017bfb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140017c09
mov rcx, rdi
call fcn.14000d528
cmp byte [rbp + 0x3f], r15b
je 0x140017c18
mov rcx, qword [rbp + 0x27]
call fcn.14000d528
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140019bf0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140019c18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140019c18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400054b0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x1400054e4
cmp word [rcx], 0x5a4d
jne 0x1400054e4
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x1400054e4
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400054e4
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.1400053f0
test eax, eax
jne 0x140005500
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140005460
test rax, rax
je 0x1400054f5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140005ca9
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140005bb0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140005b50
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140006004
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140540038]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140540034]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140006052
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000604a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140006139
inc ebx
add rax, 0x28
jmp 0x14000602a
mov rcx, r12
call fcn.140006831
mov rbp, rax
test rax, rax
jne 0x140006071
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140005fa0
movsxd rbx, ebx
mov rax, qword [0x140540038]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.1400068df
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140540038]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400060d3
mov rax, qword [0x140540038]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140005fa0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140006133
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140006133
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140540038]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140006133
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140005fa0
inc dword [0x140540034]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140006560
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1405400a0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140540080]
test rbx, rbx
je 0x1400065ac
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x1400065a6
test eax, eax
jne 0x1400065a6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x14000657e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140006760
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140006783
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140006783
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140006784
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x1400067be
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x1400067b5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400067c0
inc r8d
add rax, 0x28
jmp 0x14000679c
xor eax, eax
ret

Function at 0x140006831
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14053abb0]
mov r8, rcx
mov rcx, r9
call fcn.140006760
test eax, eax
je 0x14000685d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140006784
xor eax, eax
add rsp, 0x28
ret
Function at 0x19ea058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x19ea1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x19ea089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x19ea06f
add dl, dl
jne 0x19ea096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x19ea0f6
xor eax, eax
add dl, dl
jne 0x19ea0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x19ea1ad
add dl, dl
jne 0x19ea0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x19ea0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x19ea0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x19ea0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x19ea0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x19ea07e
mov eax, 1
add dl, dl
jne 0x19ea106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x19ea113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x19ea0fb
sub eax, ebx
mov ebx, 1
jne 0x19ea14c
mov ecx, 1
add dl, dl
jne 0x19ea12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x19ea13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x19ea123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x19ea07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x19ea168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x19ea175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x19ea15d
cmp eax, 0x7d00
jae 0x19ea19b
cmp eax, 0x500
jb 0x19ea196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x19ea07e
cmp eax, 0x7f
ja 0x19ea19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x19ea07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x19ea1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x19ea07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002a20
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002a6a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002a6a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002a6a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002a6a
cmp dword [rcx + 0x84], 0xe
jbe 0x140002a6a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002a6c
xor al, al
add rsp, 0x28
ret
Function at 0x140002ddb
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov r12d, 0x7fffffff
mov r13, qword [sym.imp.ws2_32.dll_send]
lea rsi, str.failed_to_write_whole_buffer
lea r15, str._rustc_9d79cd5f79e75bd0d2083260271307ce9acd9081library_std_srciomod.rs
test rbx, rbx
je 0x140002e4e
cmp rbx, r12
mov r8d, 0x7fffffff
cmovb r8, rbx
mov rcx, rdi
mov rdx, r14
xor r9d, r9d
call r13
cmp eax, 0xffffffff
je 0x140002e52
test eax, eax
je 0x140002e62
movsxd rcx, eax
mov rdx, r14
mov r8, rbx
mov r9, r15
call fcn.14001b136
mov r14, rax
mov rbx, rdx
jmp 0x140002e0e
xor esi, esi
jmp 0x140002e62
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140005896
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rax, rdx
add rdx, 8
cmp qword [rax], 0
je 0x1400058de
cmp qword [rax + 0x38], 0xffffffffffffffff
mov r8, qword [rax + 0x48]
mov r9, qword [rax + 0x50]
mov r10, qword [rax + 0x58]
mov rax, qword [rax + 0x60]
je 0x1400059d4
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r10
mov byte [rsp + 0x30], 0
jmp 0x1400059e3
mov bl, byte [rax + 0x1a]
mov r8, qword [rax + 8]
mov r10, qword [rax + 0x48]
mov r9, qword [rax + 0x50]
mov sil, byte [rax + 0x18]
xor r11d, r11d
test bl, bl
jne 0x140005a09
mov edi, esi
xor dil, 1
mov byte [rax + 0x18], dil
test r8, r8
je 0x140005922
cmp r8, r9
jae 0x14000591c
cmp byte [r10 + r8], 0xbf
jg 0x140005922
jmp 0x140005a19
jne 0x140005a19
cmp r8, r9
je 0x1400059ea
mov r14b, byte [r10 + r8]
movzx edi, r14b
test dil, dil
jns 0x140005990
mov ebp, edi
and ebp, 0x1f
movzx r15d, byte [r10 + r8 + 1]
and r15d, 0x3f
cmp dil, 0xdf
jbe 0x140005981
movzx edi, byte [r10 + r8 + 2]
shl r15d, 6
and edi, 0x3f
or edi, r15d
cmp r14b, 0xf0
jb 0x14000598b
movzx r14d, byte [r10 + r8 + 3]
and ebp, 7
shl ebp, 0x12
shl edi, 6
and r14d, 0x3f
or r14d, edi
or r14d, ebp
mov edi, r14d
jmp 0x140005990
shl ebp, 6
or ebp, r15d
mov edi, ebp
jmp 0x140005990
shl ebp, 0xc
or edi, ebp
test sil, sil
jne 0x1400059f8
cmp edi, 0x110000
je 0x1400059ef
mov esi, 1
cmp edi, 0x80
jb 0x1400059c6
mov esi, 2
cmp edi, 0x800
jb 0x1400059c6
cmp edi, 0x10000
mov esi, 4
sbb rsi, 0
add r8, rsi
mov qword [rdx], r8
mov sil, 1
jmp 0x1400058f4
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r10
mov byte [rsp + 0x30], 1
call fcn.140003f31
jmp 0x140005a0c
test sil, sil
jne 0x1400059fb
mov byte [rax + 0x1a], 1
xor r11d, r11d
jmp 0x140005a09
mov r9, r8
mov qword [rcx + 8], r9
mov qword [rcx + 0x10], r9
mov r11d, 1
mov qword [rcx], r11
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rax, str._rustc_9d79cd5f79e75bd0d2083260271307ce9acd9081librarycore_src_strpattern.rs
mov qword [rsp + 0x20], rax
mov rcx, r10
mov rdx, r9
call fcn.140057150
int3
Function at 0x1400063a4
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x488
mov rsi, rdx
mov rbx, rcx
lea rdi, [rsp + 0x88]
mov r8d, 0x400
mov rcx, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rsi
mov rdx, rdi
mov r8d, 0x400
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
mov qword [rsp + 0x20], rbx
je 0x140006417
movsxd r8, eax
cmp r8, 0x401
jb 0x14000642b
lea rax, [0x14005a870]
mov edx, 0x400
mov rcx, r8
mov r8, rax
call fcn.140056c60
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x140006548
xor r8d, r8d
lea rsi, [rsp + 0x58]
lea rdx, [rsp + 0x88]
mov rcx, rsi
call fcn.140004348
mov rdi, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
lea rsi, [rsp + 0x28]
mov rcx, rsi
call fcn.140006560
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x140006530
lea r15, [rsp + 0x70]
mov qword [r15], rdi
mov qword [r15 + 8], rbx
mov qword [r15 + 0x10], rax
xor r14d, r14d
lea r12, [rsp + 0x40]
mov rcx, r15
call fcn.140006226
test rax, rax
je 0x1400064d6
mov rsi, rax
mov rbp, rdx
mov rcx, r12
call fcn.140006560
mov r13, qword [rsp + 0x48]
cmp rbp, qword [rsp + 0x50]
jne 0x1400064c4
mov rcx, rsi
mov rdx, r13
mov r8, rbp
call sub.VCRUNTIME140.dll_memcmp
mov esi, eax
mov rcx, qword [rsp + 0x40]
mov rdx, r13
call fcn.140037dd5
test esi, esi
jne 0x1400064d1
jmp 0x1400064e7
mov rcx, qword [rsp + 0x40]
mov rdx, r13
call fcn.140037dd5
inc r14
jmp 0x14000647a
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
call fcn.140037dd5
jmp 0x1400064fe
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
call fcn.140037dd5
cmp rbx, r14
jb 0x14000654d
mov rbx, r14
mov rcx, qword [rsp + 0x20]
mov rdx, rdi
mov r8, rbx
call fcn.140004348
mov rcx, qword [rsp + 0x58]
mov rdx, rdi
call fcn.140037dd5
nop
add rsp, 0x488
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.window_size_must_be_non_zero
lea r8, [0x14005a888]
mov edx, 0x1c
call fcn.140057020
call fcn.140046fd0
lea r8, [0x14005a8a0]
mov rcx, r14
mov rdx, rbx
call fcn.140056c60
int3
Function at 0x140023ca0
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 0x140023d20
cmp r11, r10
ja 0x140023d97
cmp r10, rdx
ja 0x140023da9
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x140023d22
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140023d00
jmp 0x140023d84
ja 0x140023d2a
mov r11, r10
cmp rax, r8
jne 0x140023cce
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 0x140023d60
mov rdi, r8
sub ecx, edx
jns 0x140023d7b
jmp 0x140023d86
cmp r8, rsi
je 0x140023db8
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140023d86
xor al, 1
cmp rdi, rsi
jne 0x140023d40
jmp 0x140023d86
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.140056ea0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140056c60
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140057000
int3
Function at 0x140034477
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x50]
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
call fcn.14003737f
test rax, rax
je 0x1400344af
mov edx, 4
mov rcx, rax
call fcn.1400183a0
jmp 0x140034511
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
lea rdx, [rsp + 0x70]
movups xmmword [rdx + 0x10], xmm1
movups xmmword [rdx], xmm0
lea rbx, [rsp + 0x90]
mov rcx, rbx
call fcn.14003442a
mov rax, qword [rbx]
movups xmm0, xmmword [rbx + 8]
movaps xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rbx + 0x18]
movaps xmmword [rsp + 0x30], xmm0
mov rcx, qword [rbx + 0x28]
mov qword [rsp + 0x40], rcx
mov qword [rdi], rax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rdi + 8], xmm0
movups xmmword [rdi + 0x18], xmm1
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x28], rax
and qword [rdi + 0x40], 0
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov rdx, rsi
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
jmp fcn.140034b5c