joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000def0
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
invalid
jg 0x14000df4a
mov eax, 0x7fffffff
invalid
invalid
jg 0x14000df5c
cmovb eax, ecx

Function at 0x1400123e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.140185820
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov rbx, rcx
lea rsi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xfec], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r14, [rbp + 0xfec]
mov qword [rbp + 0xfc8], r14
lea r15, [0x140019c10]
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0xfb0]
mov rcx, rbx
mov rdx, rsi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x1400125d1
mov r12, qword [sym.imp.KERNEL32.dll_SleepEx]
lea rsi, [rbp + 0xfb0]
mov r13, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], rbx
mov ecx, 0xffffffff
mov edx, 1
call r12
cmp dword [rbp + 0xfec], 0
je 0x1400124a7
cmp dword [rbp + 0xff0], 0
jne 0x1400125e6
mov eax, dword [rbp + 0xff4]
test rax, rax
je 0x1400125e6
cmp eax, 0x1000
ja 0x140012631
xor ebx, ebx
nop word cs:[rax + rax]
cmp rbx, rax
ja 0x140012616
lea rdx, [rbx + rbp]
add rdx, 0xffffffffffffffb0
mov rdi, rax
mov r8d, eax
sub r8d, ebx
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r14
mov qword [rsp + 0x20], r15
mov rcx, qword [rbp + 0xfd8]
mov r9, rsi
call r13
test eax, eax
je 0x1400125d9
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r12
cmp dword [rbp + 0xfec], 0
je 0x140012550
cmp dword [rbp + 0xff0], 0
jne 0x1400125df
mov eax, dword [rbp + 0xff4]
add rbx, rax
mov rax, rdi
cmp rbx, rdi
jne 0x1400124f0
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r14
mov qword [rsp + 0x20], r15
mov rbx, qword [rbp + 0xfe0]
mov rcx, rbx
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x1400124a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400125e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rbp + 0xfe0]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, rbx
mov qword [rbp + 0xfd0], rax
mov rdx, rax
call fcn.140187820
jmp 0x14001264c
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov qword [rbp + 0xfd0], rax
mov rcx, rax
call fcn.1401877b0
ud2
Function at 0x140016340
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140020960
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x1400163f5
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.1400185c0
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x1400163f5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
sub byte [rsi + 0x17], ch
invalid
test eax, eax
je 0x1400163c9
test rsi, rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x1400163f2
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.140001290
mov rsi, rbx

Function at 0x140016ff0
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 [0x140190ca8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140017034
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 0x140017093
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1400170a2
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400170da
cmp eax, 0x103
je 0x1400170e4
test eax, eax
js 0x1400170bf
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400170da
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 byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, [0x140190d10]
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.140001bc0
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.14000d420
mov rcx, rax
call fcn.140003010
mov ecx, 7
int 0x29
ud2
Function at 0x140017140
Capabilities:
Write 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 [0x140190ca8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140017184
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_NtWriteFile]
cmp eax, 0x103
jne 0x1400171ea
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140017221
test eax, eax
js 0x1400171fb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140017214
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, [0x140190d10]
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.140001bc0
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.14000d420
mov rcx, rax
call fcn.140003010
mov ecx, 7
int 0x29
ud2

Function at 0x140017280
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, r8d
mov rsi, rcx
cmp word [rdx], 0
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1400172d5
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140017371
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x1400172e9
cmp eax, 0x2739
jne 0x14001733a
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x140017334
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x14001734f
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x140017371
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140017371
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
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x140018d00
Capabilities:
Create pipe
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x128
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x90], xmm6
mov qword [rbp + 0x88], 0xfffffffffffffffe
mov qword [rbp + 0x38], rcx
mov byte [rbp + 0x85], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x34], ecx
xor edi, edi
mov ebx, 8
mov sil, 1
xorps xmm6, xmm6
mov r14, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor eax, eax
mov qword [rbp - 0x18], rax
nop

Function at 0x14001a0c0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14001a1cf
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x14001a0f8
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14001a192
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14001a1b1
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001a14e
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x14001a16b
jmp 0x14001a160
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14001a166
cmp eax, 0x6d
jne 0x14001a182
mov byte [rsi + 1], 0
jmp 0x14001a176
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x14001a178
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.140186800
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14001a105
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140186800
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x14001a105
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140186560
ud2
Function at 0x14001ec90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.140020960
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx

Function at 0x14001f8e0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, reloc.WS2_32.dll_recv
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x14001f918
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.14001f930
nop
add rsp, 0x38
ret

Function at 0x14001f930
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, reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14001f973
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.14000a8e0]
mov qword [rbp - 0x28], rax
lea rax, [0x1401911b8]
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.1401872a0
ud2

Function at 0x140021af0
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1f0
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x14029d160]
cmp rax, 3
jne 0x140021be6
cmp rbx, 0x17f
ja 0x140021bf8
lea r15, [rsp + 0x70]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x70], 0
inc rbx
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8, rbx
call fcn.140026480
cmp qword [rsp + 0x28], 0
je 0x140021b74
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140021c09
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140021bce
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
jmp 0x140021c09
mov rax, qword [rsp + 0x20]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
jmp 0x140021c09
call fcn.140186900
cmp rbx, 0x17f
jbe 0x140021b2a
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
call fcn.1401869e0
mov rax, rsi
add rsp, 0x1f0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140021d60
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 0x140021e10
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x30]
cmp ecx, 2
je 0x140021e20
cmp ecx, 0x17
jne 0x140021e47
cmp eax, 0x1c
jb 0x140021e60
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
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
add rsp, 0xb0
pop rsi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x140021e4e
cmp eax, 0x10
jb 0x140021e7a
movzx eax, word [rsp + 0x32]
rol ax, 8
mov ecx, dword [rsp + 0x34]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
add rsp, 0xb0
pop rsi
ret
lea rax, str.invalid_argument
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb0
pop rsi
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x140191ac8]
mov edx, 0x43
call fcn.140187340
ud2
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x140191a68]
mov edx, 0x42
call fcn.140187340
ud2
Function at 0x14002e860
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14002e8da
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14002e8d0
cmp r11, r10
ja 0x14002e973
cmp r10, rdx
ja 0x14002e987
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14002e8d2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14002e8b0
jmp 0x14002e947
ja 0x14002e8da
mov r11, r10
cmp rax, r8
jne 0x14002e882
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14002e94b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14002e920
mov r8, r10
sub ecx, r9d
jns 0x14002e93e
jmp 0x14002e94d
cmp r10, rdx
je 0x14002e959
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002e94d
xor al, 1
cmp r8, rdx
jne 0x14002e900
jmp 0x14002e94d
xor eax, eax
jmp 0x14002e94d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valueassertion_failed:__buf.is_empty__
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140187340
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140187820
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1401877b0
ud2
Function at 0x140040ba0
Capabilities:
Hash data using sha256

Disassembly:
push rsi
sub rsp, 0x20
mov rax, qword [rcx]
mov rsi, qword [rax]
mov rcx, rdx
call fcn.1400cb0eb
mov r8, rdx
mov rcx, rsi
mov rdx, rax
add rsp, 0x20
pop rsi
jmp 0x1401079a6
Function at 0x14004e4b0
Capabilities:
Encode data using xor

Disassembly:
test rdx, rdx
je 0x14002cee5
cmp rdx, 4
jae 0x14002cee8
xor eax, eax
xor r8d, r8d
jmp 0x14002cf80
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140193540]
movdqa xmm3, xmmword [0x140193550]
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 0x14002cf10
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14002cf97
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14002cf80
ret
sub rdx, rcx
cmp rdx, 0x20
jb 0x14002ced0
jmp fcn.14002c8a0
Function at 0x1400bd4f0
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 rdi, rcx
xor r15d, r15d
lea rbx, str.C:UsersAdministrator.cargo_registry_src_rsproxy.cn_0dccff568467c15b_ring_0.16.20_src_rand.rs
mov r12d, 0xffffffff
mov r14, r15
cmp r15, rsi
jae 0x1400bd548
mov rcx, rdi
mov rdx, rsi
mov r8, r14
mov r9, rbx
call fcn.14003636d
mov r15, rdx
cmp rdx, r12
cmovae r15, r12
mov rcx, rax
mov edx, r15d
call sub.ADVAPI32.dll_SystemFunction036
add r15, r14
test al, al
jne 0x1400bd513
cmp r14, rsi
setb al
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400c4c61
Capabilities:
Encrypt data using curve25519

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xe0
mov rsi, rcx
and byte [rdx], 0xf8
mov al, byte [rdx + 0x1f]
and al, 0x3f
or al, 0x40
mov byte [rdx + 0x1f], al
movups xmm0, xmmword [rdx]
mov rax, qword [rdx + 0x10]
mov ecx, dword [rdx + 0x18]
movzx r8d, word [rdx + 0x1c]
mov r9b, byte [rdx + 0x1e]
mov r10b, byte [rdx + 0x1f]
lea rdx, [rsp + 0x40]
mov qword [rdx + 0x10], rax
mov dword [rdx + 0x18], ecx
mov word [rdx + 0x1c], r8w
mov byte [rdx + 0x1e], r9b
mov byte [rdx + 0x1f], r10b
movups xmmword [rdx], xmm0
lea rdi, [rsp + 0x20]
mov rcx, rdi
call fcn.1400bf937
lea r8, [0x1401cac30]
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov rdx, rdi
call fcn.1400c16fa
mov rcx, rsi
mov rdx, rbx
call fcn.1400c11aa
mov rcx, rsi
add rcx, 0x20
mov r8d, 0xa0
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, rsi
add rsp, 0xe0
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400c4e95
Capabilities:
Encrypt data using curve25519

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x2a8
mov r14, rdx
mov rsi, rcx
lea r12, [rsp + 0x1d0]
mov rcx, r12
call fcn.140169a8b
xorps xmm0, xmm0
lea r15, [rsp + 0x70]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea rbx, [rsp + 0x30]
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdi, [rsp + 0x50]
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
mov rcx, r12
mov rdx, r14
call fcn.1400c4947
lea r14, [rsp + 0xf8]
mov r8d, 0xd8
mov rcx, r14
mov rdx, r12
call sub.VCRUNTIME140.dll_memcpy
lea r12, [rsp + 0xb8]
mov rcx, r12
mov rdx, r14
call fcn.1400c47e6
lea rax, str.C:UsersAdministrator.cargo_registry_src_rsproxy.cn_0dccff568467c15bed25519_dalek_1.0.1_src_secret.rs0_
mov qword [rsp + 0x20], rax
mov edx, 0x40
mov r9d, 0x40
mov rcx, r15
mov r8, r12
call fcn.1400b2654
lea r9, str.C:UsersAdministrator.cargo_registry_src_rsproxy.cn_0dccff568467c15bed25519_dalek_1.0.1_src_secret.rs0_
mov r8d, 0x20
mov rcx, r15
xor edx, edx
call fcn.1400c48db
mov r9, rdx
lea rcx, str.C:UsersAdministrator.cargo_registry_src_rsproxy.cn_0dccff568467c15bed25519_dalek_1.0.1_src_secret.rs0_
mov qword [rsp + 0x20], rcx
mov edx, 0x20
mov rcx, rbx
mov r8, rax
call fcn.1400b2654
lea r9, str.C:UsersAdministrator.cargo_registry_src_rsproxy.cn_0dccff568467c15bed25519_dalek_1.0.1_src_secret.rs0_
mov edx, 0x20
mov r8d, 0x40
mov rcx, r15
call fcn.1400c48db
mov r9, rdx
lea rcx, str.C:UsersAdministrator.cargo_registry_src_rsproxy.cn_0dccff568467c15bed25519_dalek_1.0.1_src_secret.rs0_
mov qword [rsp + 0x20], rcx
mov edx, 0x20
mov rcx, rdi
mov r8, rax
call fcn.1400b2654
and byte [rbx], 0xf8
mov al, byte [rbx + 0x1f]
and al, 0x3f
or al, 0x40
mov byte [rbx + 0x1f], al
movaps xmm0, xmmword [rbx]
mov rax, qword [rbx + 0x10]
mov qword [r14 + 0x10], rax
mov eax, dword [rbx + 0x18]
mov dword [r14 + 0x18], eax
movzx eax, word [rbx + 0x1c]
mov word [r14 + 0x1c], ax
mov al, byte [rbx + 0x1e]
mov byte [r14 + 0x1e], al
mov al, byte [rbx + 0x1f]
mov byte [r14 + 0x1f], al
movups xmmword [r14], xmm0
lea rdx, [rsp + 0xf8]
mov rcx, rsi
call fcn.1400bf937
movaps xmm0, xmmword [rdi]
movaps xmm1, xmmword [rdi + 0x10]
movups xmmword [rsi + 0x30], xmm1
movups xmmword [rsi + 0x20], xmm0
mov rax, rsi
add rsp, 0x2a8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400c5ade
Capabilities:
Hash data using sha512

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, qword [rdx]
movzx r8d, al
lea r9, [r8 - 0x41]
cmp r9, 0xffffffffffffffc0
jb 0x1400c5c70
mov r9d, eax
and r9d, 0xff00
cmp r9d, 0x4000
ja 0x1400c5c85
movabs r9, 0xbb67ae8584caa73b
xor r9, qword [rdx + 8]
movabs r10, 0x3c6ef372fe94f82b
xor r10, qword [rdx + 0x10]
movabs r11, 0xa54ff53a5f1d36f1
xor r11, qword [rdx + 0x18]
movabs rsi, 0x510e527fade682d1
xor rsi, qword [rdx + 0x20]
movabs rbx, 0x6a09e667f3bcc908
movabs rdi, 0x9b05688c2b3e6c1f
xor rdi, qword [rdx + 0x28]
xor rax, rbx
movabs rbx, 0x1f83d9abfb41bd6b
xor rbx, qword [rdx + 0x30]
movabs r14, 0x5be0cd19137e2179
xor r14, qword [rdx + 0x38]
xorps xmm0, xmm0
movups xmmword [rcx + 0x70], xmm0
movups xmmword [rcx + 0x60], xmm0
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x80], xmm0
movups xmmword [rcx + 0x90], xmm0
movups xmmword [rcx + 0xa0], xmm0
movups xmmword [rcx + 0xb0], xmm0
movups xmmword [rcx + 0xc0], xmm0
movups xmmword [rcx + 0xd0], xmm0
movups xmmword [rcx + 0xe0], xmm0
movups xmmword [rcx + 0xf0], xmm0
mov qword [rcx + 0x100], rax
mov qword [rcx + 0x108], r9
mov qword [rcx + 0x110], r10
mov qword [rcx + 0x118], r11
mov qword [rcx + 0x120], rsi
mov qword [rcx + 0x128], rdi
mov qword [rcx + 0x130], rbx
mov qword [rcx + 0x138], r14
and qword [rcx + 0x180], 0
mov qword [rcx + 0x188], r8
mov qword [rcx + 0x140], rax
mov qword [rcx + 0x148], r9
mov qword [rcx + 0x150], r10
mov qword [rcx + 0x158], r11
mov qword [rcx + 0x160], rsi
mov qword [rcx + 0x168], rdi
mov qword [rcx + 0x170], rbx
mov qword [rcx + 0x178], r14
and qword [rcx + 0x190], 0
mov rax, rcx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1401d2936]
lea r8, str.C:UsersAdministrator.cargo_registry_src_rsproxy.cn_0dccff568467c15b_blake2_0.9.2_src_blake2b.rs
mov edx, 0x32
jmp 0x1400c5c98
lea rcx, [0x1401d290f]
lea r8, str.C:UsersAdministrator.cargo_registry_src_rsproxy.cn_0dccff568467c15b_blake2_0.9.2_src_blake2b.rs
mov edx, 0x27
call fcn.140187340
ud2