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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
cmp byte [rcx + 0x79], 0
je 0x140042bc4
xor esi, esi
jmp 0x140042d6d
mov rdi, rcx
mov rsi, qword [rcx + 0x48]
cmp qword [rcx], 0
je 0x140042c0b
lea rdx, [rdi + 8]
mov r9, qword [rdi + 0x50]
movups xmm0, xmmword [rdi + 0x58]
cmp qword [rdi + 0x38], 0xffffffffffffffff
sete byte [rsp + 0x30]
movups xmmword [rsp + 0x20], xmm0
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov r8, rsi
call fcn.140042d91
cmp qword [rbx], 0
jne 0x140042d19
jmp 0x140042d37
mov al, byte [rdi + 0x1a]
mov r8, qword [rdi + 8]
mov rdx, qword [rdi + 0x50]
mov cl, byte [rdi + 0x18]
test al, al
jne 0x140042d37
mov r9d, ecx
xor r9b, 1
mov byte [rdi + 0x18], r9b
mov r9, rdx
test r8, r8
je 0x140042c4e
mov r9, rdx
sub r9, r8
jbe 0x140042c48
cmp byte [rsi + r8], 0xbf
jg 0x140042c4e
jmp 0x140042d78
jne 0x140042d78
test r9, r9
je 0x140042d0b
mov r11b, byte [rsi + r8]
movzx r9d, r11b
test r9b, r9b
jns 0x140042cc4
mov r10d, r9d
and r10d, 0x1f
movzx ebx, byte [rsi + r8 + 1]
and ebx, 0x3f
cmp r9b, 0xdf
jbe 0x140042cb1
movzx r9d, byte [rsi + r8 + 2]
shl ebx, 6
and r9d, 0x3f
or r9d, ebx
cmp r11b, 0xf0
jb 0x140042cbd
movzx r11d, byte [rsi + r8 + 3]
and r10d, 7
shl r10d, 0x12
shl r9d, 6
and r11d, 0x3f
or r11d, r9d
or r11d, r10d
mov r9d, r11d
jmp 0x140042cc4
shl r10d, 6
or r10d, ebx
mov r9d, r10d
jmp 0x140042cc4
shl r10d, 0xc
or r9d, r10d
test cl, cl
jne 0x140042d0f
cmp r9d, 0x110000
je 0x140042d33
mov ecx, 1
cmp r9d, 0x80
jb 0x140042cfd
mov ecx, 2
cmp r9d, 0x800
jb 0x140042cfd
cmp r9d, 0x10000
mov ecx, 4
sbb rcx, 0
add r8, rcx
mov qword [rdi + 8], r8
mov cl, 1
jmp 0x140042c19
test cl, cl
je 0x140042d33
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], r8
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rdi + 0x68]
add rsi, rcx
sub rdx, rcx
mov qword [rdi + 0x68], rax
jmp 0x140042d6d
mov byte [rdi + 0x1a], 1
cmp byte [rdi + 0x79], 0
jne 0x140042bbd
mov byte [rdi + 0x79], 1
cmp byte [rdi + 0x78], 0
je 0x140042d55
mov rsi, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
jmp 0x140042d66
mov rsi, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
cmp rdx, rsi
je 0x140042bbd
sub rdx, rsi
add rsi, qword [rdi + 0x48]
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rax, str._rustc_a57770440f1ebe5b992551d3bcc489ae211908d4librarycore_src_strpattern.rs
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov r9, rdx
call fcn.14010e230
ud2
Function at 0x140045a95
Capabilities:
Get disk size

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x278
mov r14, r8
mov r15, rdx
mov rsi, rcx
xor ebx, ebx
lea r12, [rsp + 0x6e]
mov r8d, 0x20a
mov rcx, r12
xor edx, edx
call fcn.140100240
add r14, r15
lea rdi, [rsp + 0x48]
mov qword [rdi], r15
mov qword [rdi + 8], r14
and word [rdi + 0x10], 0
mov dword [rdi + 0x18], 1
lea r14, [rsp + 0x30]
mov rcx, r14
mov rdx, rdi
call fcn.1400457d8
mov r14, qword [r14]
mov rcx, r14
mov rdx, r12
mov r8d, 0x105
call sub.KERNEL32.dll_GetVolumePathNameW
test eax, eax
jne 0x140045b10
call fcn.140045bb3
mov rbx, rax
mov rdx, qword [rsp + 0x38]
mov rcx, r14
call fcn.140045a85
test rbx, rbx
je 0x140045b2f
mov qword [rsi + 8], rbx
mov qword [rsi], 1
jmp 0x140045ba2
lea rdx, [rsp + 0x28]
and dword [rdx], 0
lea r8, [rsp + 0x2c]
and dword [r8], 0
lea r9, [rsp + 0x30]
and dword [r9], 0
and dword [rsp + 0x48], 0
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x6e]
call sub.KERNEL32.dll_GetDiskFreeSpaceW
test eax, eax
je 0x140045b91
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x2c]
imul rcx, rax
mov eax, dword [rsp + 0x30]
imul rax, rcx
mov edx, dword [rsp + 0x48]
imul rdx, rcx
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x20], rcx
xor eax, eax
jmp 0x140045b9f
call fcn.140045bb3
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140054a6b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
sub esp, 0xc8

Function at 0x140055469
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rsi, r8
mov rbx, rdx
mov qword [rsp + 0x38], rcx
mov r12, qword [rcx]
xorps xmm6, xmm6
lea rbp, [rsp + 0x2c]
lea r15, case.0x140096e07.313
lea r14, [rsp + 0x40]
mov rdi, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov r13, qword [sym.imp.KERNEL32.dll_SleepEx]
test rsi, rsi
je 0x140055553
mov rcx, qword [r12]
mov eax, 0xffffffff
cmp rsi, rax
mov r8d, 0xffffffff
cmovb r8, rsi
and dword [rsp + 0x2c], 0
movaps xmmword [rsp + 0x40], xmm6
and qword [rsp + 0x50], 0
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r15
mov rdx, rbx
mov r9, r14
call rdi
test eax, eax
je 0x140055528
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rsp + 0x2c], 0
je 0x1400554f3
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x14005552d
mov ecx, dword [rsp + 0x34]
test rcx, rcx
je 0x14005553a
mov rax, rsi
sub rax, rcx
jb 0x14005556f
add rbx, rcx
mov rsi, rax
jmp 0x1400554ae
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rbx, rax
jmp 0x140055541
lea rbx, [0x1401698b0]
mov rdi, qword [rsp + 0x38]
mov rcx, qword [rdi + 8]
call fcn.140055456
mov qword [rdi + 8], rbx
test rsi, rsi
setne al
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str._rustc_a57770440f1ebe5b992551d3bcc489ae211908d4library_std_srciomod.rs
mov rdx, rsi
call fcn.14010db40
ud2
Function at 0x140056e12
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
call fcn.140058fc1
test rax, rax
je 0x140056e4a
mov edx, 4
mov rcx, rax
call fcn.14002fd20
jmp 0x140056e83
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
lea rdx, [rsp + 0x40]
movups xmmword [rdx + 0x10], xmm1
movups xmmword [rdx], xmm0
lea rbx, [rsp + 0x70]
mov rcx, rbx
call fcn.14005628f
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movaps xmmword [rdi + 0x20], xmm2
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi], xmm0
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, 0xa0
pop rbx
pop rdi
pop rsi
jmp fcn.1400562e4
Function at 0x140058fc1
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rcx
mov r12d, 0x20
mov r13d, 0xffffffff
mov rbp, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov rsi, qword [sym.imp.advapi32.dll_SystemFunction036]
test r12, r12
je 0x140059054
mov r14, rdi
cmp r12, r13
mov r15d, 0xffffffff
cmovb r15, r12
add rdi, r15
sub r12, r15
xor ecx, ecx
mov rdx, r14
mov r8d, r15d
mov r9d, 2
call rbp
cmp eax, 0xc0000000
jb 0x140058fee
mov ebx, eax
mov rcx, r14
mov edx, r15d
call rsi
test al, al
jne 0x140058fee
xor ebx, 0x80000000
je 0x140059054
mov al, byte [0x1401c4ce0]
mov ecx, 4
mov edx, 4
call fcn.14002fc90
test rax, rax
je 0x140059067
mov dword [rax], ebx
jmp 0x140059056
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 4
mov edx, 4
call fcn.14010d920
ud2
Function at 0x14005cab5
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
call fcn.14005ca7e
cmp eax, 1
je 0x14005caeb
mov eax, eax
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
cmp eax, 2
jne 0x14005cb00
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x1400d7560
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x1400d7b80
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x1400f4800
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
lea rsp, [rsp - 0xb8]
movaps xmmword [rsp + 0x10], xmm6
movaps xmmword [rsp + 0x20], xmm7
movaps xmmword [rsp + 0x30], xmm8
movaps xmmword [rsp + 0x40], xmm9
movaps xmmword [rsp + 0x50], xmm10
movaps xmmword [rsp + 0x60], xmm11
movaps xmmword [rsp + 0x70], xmm12
movaps xmmword [rsp + 0x80], xmm13
movaps xmmword [rsp + 0x90], xmm14
movaps xmmword [rsp + 0xa0], xmm15
movdqu xmm0, xmmword [rdi]
call fcn.1400d77c0
call fcn.1400d6e40
movdqu xmmword [rsi], xmm0
movaps xmm6, xmmword [rsp + 0x10]
movaps xmm7, xmmword [rsp + 0x20]
movaps xmm8, xmmword [rsp + 0x30]
movaps xmm9, xmmword [rsp + 0x40]
movaps xmm10, xmmword [rsp + 0x50]
movaps xmm11, xmmword [rsp + 0x60]
movaps xmm12, xmmword [rsp + 0x70]
movaps xmm13, xmmword [rsp + 0x80]
movaps xmm14, xmmword [rsp + 0x90]
movaps xmm15, xmmword [rsp + 0xa0]
lea rsp, [rsp + 0xb8]
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
repz ret
movups xmm2, xmmword [rcx]
mov eax, dword [r8 + 0xf0]
movups xmm0, xmmword [r8]
movups xmm1, xmmword [r8 + 0x10]
lea r8, [r8 + 0x20]
xorps xmm2, xmm0
aesenc xmm2, xmm1
dec eax
movups xmm1, xmmword [r8]
lea r8, [r8 + 0x10]
jne 0x1400d7b9a
aesenclast xmm2, xmm1
pxor xmm0, xmm0
pxor xmm1, xmm1
movups xmmword [rdx], xmm2
pxor xmm2, xmm2
repz ret
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x430
mov rax, qword [0x1401c40c8]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
xor ebx, ebx
nop dword [rax]
lea eax, [rbx*4]
mov edx, ebx
movups xmm0, xmmword [rdi + rax*4]
shl rdx, 6
lea r8, [rsp + 0x60]
add r8, rdx
movq rcx, xmm0
psrldq xmm0, 8
unpcklpd xmm0, xmm0
mov qword [r8], rcx
movups xmmword [r8 + 0x20], xmm0
mov qword [r8 + 8], rcx
mov qword [r8 + 0x10], rcx
movups xmmword [r8 + 0x30], xmm0
mov qword [r8 + 0x18], rcx
mov rcx, r8
call fcn.1400f5a30
inc ebx
cmp ebx, dword [rdi + 0xf0]
jbe 0x1400f4830
mov r8d, 1
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.1400f58c0
mov edx, dword [rdi + 0xf0]
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.1400f4ba0
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbp
call fcn.1400f4ef0
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.1400ff0e0
mov rbx, qword [rsp + 0x468]
add rsp, 0x430
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005d09a
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 0x14005d129
movzx ebx, r9b
shl rbx, 7
sub rbx, 0xffffffffffffff80
shl r8, 3
cmp r8, rbx
jne 0x14005d129
mov rdi, rdx
lea rcx, [rsp + 0x140]
mov r8d, 0xf4
xor edx, edx
call fcn.140100240
call fcn.14005ca7e
cmp eax, 3
je 0x14005d10c
mov eax, eax
lea r8, [rsp + 0x140]
mov rcx, rdi
mov edx, ebx
cmp eax, 2
jne 0x14005d120
call fcn.1400d7480
jmp 0x14005d125
lea r8, [rsp + 0x140]
mov rcx, rdi
mov edx, ebx
call fcn.1400f48e0
jmp 0x14005d125
call fcn.1400d8950
test eax, eax
je 0x14005d144
mov dword [rsi], 2
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 fcn.1400ffba0
xorps xmm6, xmm6
movaps xmmword [rbx], xmm6
lea rbx, [rsp + 0x30]
lea r8, [rsp + 0x140]
mov rcx, rbx
mov rdx, rdi
call fcn.14005cab5
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 0x14005d1b2
movups xmmword [rsp + rax + 0x140], xmm6
add rax, 0x10
jmp 0x14005d19c
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x140]
mov r8d, pe_nt_image_headers64
call fcn.1400ffba0
call fcn.14005ca9d
test al, al
je 0x14005d200
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 0x14005d225
mov eax, dword [0x1401c4cec]
not eax
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x20]
test eax, 0x10400000
jne 0x14005d220
call fcn.1400d64a0
jmp 0x14005d225
call fcn.1400d5a80
lea rdi, [rsp + 0x450]
lea rdx, [rsp + 0x40]
mov r8d, pe_nt_image_headers64
mov rcx, rdi
call fcn.1400ffba0
lea rcx, [rsp + 0x550]
lea rdx, [rsp + 0x358]
mov r8d, 0xf4
call fcn.1400ffba0
lea rcx, [rsp + 0x14c]
mov r8d, 0x200
mov rdx, rdi
call fcn.1400ffba0
and dword [rsi], 0
add rsi, 4
lea rdx, [rsp + 0x140]
mov r8d, 0x20c
mov rcx, rsi
call fcn.1400ffba0
jmp 0x14005d12f

Function at 0x140061c2b
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
xor r15d, r15d
lea rbx, str.Z:WorkspaceDevelopTools.cargo_registry_srcindex.crates.io_6f17d22bba15001f_ring_0.16.20_src_rand.rsx
mov r12d, 0xffffffff
mov r13, qword [sym.imp.advapi32.dll_SystemFunction036]
mov r14, r15
cmp r15, rsi
jae 0x140061c8a
mov rcx, rdi
mov rdx, rsi
mov r8, r14
mov r9, rbx
call fcn.140033f8f
mov r15, rdx
cmp rdx, r12
cmovae r15, r12
mov rcx, rax
mov edx, r15d
call r13
add r15, r14
test al, al
jne 0x140061c57
cmp r14, rsi
setb al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400678e0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140034d50
cmp rax, rcx
je 0x140067905
cmp rdx, 4
jae 0x140067908
xor eax, eax
xor r8d, r8d
jmp 0x1400679a0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140114610]
movdqa xmm3, xmmword [0x140114620]
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 0x140067930
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x1400679b7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x1400679a0
ret

Function at 0x14008e96b
Capabilities:
Hash data using murmur3

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
mov rsi, qword [rsp + 0x58]
mov eax, dword [rdx]
mov edi, r8d
rol edi, 0x19
mov r10d, dword [rdx + 4]
mov ebx, eax
rol ebx, 0x19
mov r11d, dword [rdx + 8]
mov ebp, r10d
rol ebp, 0x19
mov r14d, r11d
rol r14d, 0x19
mov r15d, r8d
rol r15d, 0xe
xor r15d, edi
mov edi, eax
rol edi, 0xe
xor edi, ebx
mov ebx, r10d
rol ebx, 0xe
xor ebx, ebp
mov ebp, r11d
rol ebp, 0xe
xor ebp, r14d
shr r8d, 3
xor r8d, r15d
add r8d, eax
shr eax, 3
xor eax, edi
add eax, r10d
shr r10d, 3
xor r10d, ebx
add r10d, r11d
shr r11d, 3
xor r11d, ebp
add r11d, dword [rdx + 0xc]
add r8d, dword [rsi + 0xc]
add eax, dword [r9]
add r10d, dword [r9 + 4]
add r11d, dword [r9 + 8]
mov edx, dword [rsi + 4]
mov edi, edx
rol edi, 0xf
mov r9d, dword [rsi]
mov esi, edx
rol esi, 0xd
xor esi, edi
shr edx, 0xa
xor edx, esi
add edx, r11d
mov r11d, r9d
rol r11d, 0xf
mov esi, r9d
rol esi, 0xd
xor esi, r11d
shr r9d, 0xa
xor r9d, esi
mov r11d, edx
rol r11d, 0xf
add r9d, r10d
mov r10d, edx
rol r10d, 0xd
xor r10d, r11d
mov r11d, edx
shr r11d, 0xa
xor r11d, r10d
add r11d, eax
mov eax, r9d
rol eax, 0xf
mov r10d, r9d
rol r10d, 0xd
xor r10d, eax
mov eax, r9d
shr eax, 0xa
xor eax, r10d
add eax, r8d
mov dword [rcx], eax
mov dword [rcx + 4], r11d
mov dword [rcx + 8], r9d
mov dword [rcx + 0xc], edx
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14008f2ab
Capabilities:
Hash data using sha256 via x86 extensions

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

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

Disassembly:
movaps xmm0, xmmword [rdx]
sha256msg2 xmm0, xmmword [r8]
movaps xmmword [rcx], xmm0
ret

Function at 0x140091380
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
sub esp, 0xa8

Function at 0x140094aa0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
add byte [rax], al

Function at 0x140098300
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
sub esp, 0x50
Function at 0x14009b1d0
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, r8d
mov rsi, rcx
test dx, dx
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 sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x14009b220
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14009b28d
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x14009b233
cmp eax, 0x2739
jne 0x14009b27a
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x14009b275
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
je 0x14009b295
mov qword [rsi + 8], rdi
jmp 0x14009b217
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.ws2_32.dll_closesocket]

Function at 0x14009b2c0
Capabilities:
Set socket configuration

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

Function at 0x14009b370
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14009b3ce
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14009b3ce
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14009b3ce
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x14009b3ce
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x14009b40b
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 0x14009b3f9
xor eax, eax
jmp 0x14009b406
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 0x14009b406
Function at 0x14009b420
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 0x14009b49a
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 0x14009b47b
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 0x14009b493
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14009b48b
xor eax, eax
jmp 0x14009b493
shl rax, 0x20
or rax, 2
add rsp, 0x28
pop rdi
pop rsi
ret
lea r8, str._rustc_a57770440f1ebe5b992551d3bcc489ae211908d4librarycore_srcio_borrowed_buf.rs
mov rcx, rsi
call fcn.14010db40
ud2

Function at 0x14009b540
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x40
in al, dx
mov rax, r8

Function at 0x14009b860
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0xb0
add byte [rax], al
add byte [rax - 0x77], cl
ror byte [rax - 0x77], 1
invalid
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 sub.ws2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x14009b904
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x30]
cmp ecx, 2
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
shl eax, 0x20

Function at 0x14009b9c0
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
or cl, byte [rcx - 0x7f]
stc
invalid
invalid
invalid
jg 0x14009ba17
mov eax, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call sub.ws2_32.dll_send
xor eax, dword [rsi]
add byte [rbx + 0xa74fff8], al
cmp eax, 0xffffffff
je case.0x140098775.107
invalid
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
shl eax, 0x20
invalid

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov eax, eax
Function at 0x1400a57c0
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 [0x1401c4ce0]
mov ecx, 0x10
mov edx, 8
call fcn.14002fc90
test rax, rax
je 0x1400a5896
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400a5980]
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 0x1400a5888
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
cmp qword [rax + 8], 0
je 0x1400a5866
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.14002fd20
mov edx, 8
mov rcx, qword [rbp - 0x18]
call fcn.14002fd20
call sub.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 - 0x18], r14
mov qword [rbp - 0x10], rdi
mov ecx, 8
mov edx, 0x10
call fcn.14010d920
ud2