joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140035780
Capabilities:
Hash data with crc32

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov r9, r8
mov rax, rdx
not ecx
lea rdi, [0x14010e4f0]
mov ebx, 0xff
lea rsi, str.Z:WorkspaceDevelopTools.cargo_registry_srcindex.crates.io_6f17d22bba15001fcrc32fast_1.3.2_src_baseline.rs
cmp r9, 0x40
jb 0x1400358b0
mov r14d, 4
sub r14, 1
jb 0x1400357a5
cmp r9, 0xf
jbe 0x1400358dd
movzx edx, byte [rax + 0xf]
movzx r8d, byte [rax + 0xe]
mov ebp, dword [rdi + r8*4 + 0x400]
xor ebp, dword [rdi + rdx*4]
movzx edx, byte [rax + 0xd]
xor ebp, dword [rdi + rdx*4 + 0x800]
movzx edx, byte [rax + 0xc]
xor ebp, dword [rdi + rdx*4 + 0xc00]
movzx edx, byte [rax + 0xb]
xor ebp, dword [rdi + rdx*4 + 0x1000]
movzx edx, byte [rax + 0xa]
xor ebp, dword [rdi + rdx*4 + 0x1400]
movzx edx, byte [rax + 9]
xor ebp, dword [rdi + rdx*4 + 0x1800]
movzx edx, byte [rax + 8]
xor ebp, dword [rdi + rdx*4 + 0x1c00]
movzx edx, byte [rax + 7]
xor ebp, dword [rdi + rdx*4 + 0x2000]
movzx edx, byte [rax + 6]
xor ebp, dword [rdi + rdx*4 + 0x2400]
movzx edx, byte [rax + 5]
xor ebp, dword [rdi + rdx*4 + 0x2800]
movzx edx, byte [rax + 4]
xor ebp, dword [rdi + rdx*4 + 0x2c00]
mov edx, ecx
shr edx, 0x18
movzx r8d, byte [rax + 3]
xor r8d, edx
xor ebp, dword [rdi + r8*4 + 0x3000]
mov edx, ecx
shr edx, 0x10
and edx, ebx
movzx r8d, byte [rax + 2]
xor r8d, edx
xor ebp, dword [rdi + r8*4 + 0x3400]
mov edx, ecx
shr edx, 8
and edx, ebx
movzx r8d, byte [rax + 1]
xor r8d, edx
xor ebp, dword [rdi + r8*4 + 0x3800]
and ecx, ebx
movzx edx, byte [rax]
xor edx, ecx
xor ebp, dword [rdi + rdx*4 + 0x3c00]
mov rcx, rax
mov rdx, r9
mov r8, rsi
call fcn.140035dc4
mov r9, rdx
mov ecx, ebp
jmp 0x1400357b5
xor edx, edx
cmp r9, rdx
je 0x1400358ce
mov r8b, byte [rax + rdx]
xor r8b, cl
movzx r8d, r8b
shr ecx, 8
xor ecx, dword [rdi + r8*4]
inc rdx
jmp 0x1400358b2
not ecx
mov eax, ecx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea r8, str.Z:WorkspaceDevelopTools.cargo_registry_srcindex.crates.io_6f17d22bba15001fcrc32fast_1.3.2_src_baseline.rs
mov ecx, 0xf
mov rdx, r9
call fcn.1400fe9c0
ud2
Function at 0x140038412
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.1400f1670
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.1400380a3
mov r14, qword [r14]
mov rcx, r14
mov rdx, r12
mov r8d, 0x105
call sub.kernel32.dll_GetVolumePathNameW
test eax, eax
jne 0x14003848d
call fcn.140038530
mov rbx, rax
mov rdx, qword [rsp + 0x38]
mov rcx, r14
call fcn.140038402
test rbx, rbx
je 0x1400384ac
mov qword [rsi + 8], rbx
mov qword [rsi], 1
jmp 0x14003851f
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 0x14003850e
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 0x14003851c
call fcn.140038530
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 0x14004659b
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 0x14004705b
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, [0x14008d510]
lea r14, [rsp + 0x40]
mov rdi, qword [sym.imp.kernel32.dll_WriteFileEx]
mov r13, qword [sym.imp.kernel32.dll_SleepEx]
test rsi, rsi
je 0x140047145
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 0x14004711a
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rsp + 0x2c], 0
je 0x1400470e5
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x14004711f
mov ecx, dword [rsp + 0x34]
test rcx, rcx
je 0x14004712c
mov rax, rsi
sub rax, rcx
jb 0x140047161
add rbx, rcx
mov rsi, rax
jmp 0x1400470a0
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rbx, rax
jmp 0x140047133
lea rbx, [0x140158200]
mov rdi, qword [rsp + 0x38]
mov rcx, qword [rdi + 8]
call fcn.140047048
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.1400fe940
ud2
Function at 0x14004ab84
Capabilities:
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdx, rcx
mov ebx, 0x20
xor esi, esi
mov r14d, 0xffffffff
mov r15, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test rbx, rbx
je 0x14004ac03
cmp rbx, r14
mov r8d, 0xffffffff
cmovb r8, rbx
sub rbx, r8
lea r12, [rdx + r8]
xor ecx, ecx
mov r9d, 2
call r15
mov rdx, r12
cmp eax, 0xc0000000
jb 0x14004aba8
mov edi, eax
xor edi, 0x80000000
je 0x14004ac01
mov al, byte [0x1401b2ce0]
mov ecx, 4
mov edx, 4
call fcn.140024ff0
test rax, rax
je 0x14004ac14
mov rsi, rax
mov dword [rax], edi
jmp 0x14004ac03
xor esi, esi
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, 4
mov edx, 4
call fcn.1400fe7a0
ud2
Function at 0x14004e5ab
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.14004e574
cmp eax, 1
je 0x14004e5e1
mov eax, eax
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
cmp eax, 2
jne 0x14004e5f6
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x1400c83e0
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x1400c8a00
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x1400e5610
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.1400c8640
call fcn.1400c7cc0
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 0x1400c8a1a
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 [0x1401b20c8]
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.1400e6840
inc ebx
cmp ebx, dword [rdi + 0xf0]
jbe 0x1400e5640
mov r8d, 1
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.1400e66d0
mov edx, dword [rdi + 0xf0]
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.1400e59b0
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbp
call fcn.1400e5d00
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.1400eff40
mov rbx, qword [rsp + 0x468]
add rsp, 0x430
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004ebba
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 0x14004ec49
movzx ebx, r9b
shl rbx, 7
sub rbx, 0xffffffffffffff80
shl r8, 3
cmp r8, rbx
jne 0x14004ec49
mov rdi, rdx
lea rcx, [rsp + 0x140]
mov r8d, 0xf4
xor edx, edx
call fcn.1400f1670
call fcn.14004e574
cmp eax, 3
je 0x14004ec2c
mov eax, eax
lea r8, [rsp + 0x140]
mov rcx, rdi
mov edx, ebx
cmp eax, 2
jne 0x14004ec40
call fcn.1400c8300
jmp 0x14004ec45
lea r8, [rsp + 0x140]
mov rcx, rdi
mov edx, ebx
call fcn.1400e56f0
jmp 0x14004ec45
call fcn.1400c97d0
test eax, eax
je 0x14004ec64
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.1400f0a00
xorps xmm6, xmm6
movaps xmmword [rbx], xmm6
lea rbx, [rsp + 0x30]
lea r8, [rsp + 0x140]
mov rcx, rbx
mov rdx, rdi
call fcn.14004e5ab
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 0x14004ecd2
movups xmmword [rsp + rax + 0x140], xmm6
add rax, 0x10
jmp 0x14004ecbc
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x140]
mov r8d, 0x100
call fcn.1400f0a00
call fcn.14004e593
test al, al
je 0x14004ed20
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 0x14004ed45
mov eax, dword [0x1401b2cec]
not eax
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x20]
test eax, 0x10400000
jne 0x14004ed40
call fcn.1400c7320
jmp 0x14004ed45
call fcn.1400c6900
lea rdi, [rsp + 0x450]
lea rdx, [rsp + 0x40]
mov r8d, 0x100
mov rcx, rdi
call fcn.1400f0a00
lea rcx, [rsp + 0x550]
lea rdx, [rsp + 0x358]
mov r8d, 0xf4
call fcn.1400f0a00
lea rcx, [rsp + 0x14c]
mov r8d, 0x200
mov rdx, rdi
call fcn.1400f0a00
and dword [rsi], 0
add rsi, 4
lea rdx, [rsp + 0x140]
mov r8d, 0x20c
mov rcx, rsi
call fcn.1400f0a00
jmp 0x14004ec4f

Function at 0x140053912
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.Z:WorkspaceDevelopTools.cargo_registry_srcindex.crates.io_6f17d22bba15001f_ring_0.16.20_src_rand.rs
mov r12d, 0xffffffff
mov r14, r15
cmp r15, rsi
jae 0x14005396a
mov rcx, rdi
mov rdx, rsi
mov r8, r14
mov r9, rbx
call fcn.1400291d6
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 0x140053935
cmp r14, rsi
setb al
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400595b0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140029f90
cmp rax, rcx
je 0x1400595d5
cmp rdx, 4
jae 0x1400595d8
xor eax, eax
xor r8d, r8d
jmp 0x140059670
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140104360]
movdqa xmm3, xmmword [0x140104370]
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 0x140059600
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140059687
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140059670
ret

Function at 0x14008073a
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 0x14008107a
Capabilities:
Hash data using sha256 via x86 extensions

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

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

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

Function at 0x140083140
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
test al, 0
add byte [rax], al

Function at 0x140086850
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x58]
call fcn.140083ac0
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x410], rax
test dword [rax], edx
add al, 0
add byte [rax - 0x7b], cl
ror byte [rdi], 0x84
invalid
add dword [rax], eax
invalid
mov qword [rbp + 0x3c8], rsi
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x408], rax
mov qword [rbp + 0x3f0], 2
lock add eax, dword [rax]
add byte [rdx], al
add al, byte [rax]
add byte [rax], al
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f8], xmm0
mov r8d, 0x200
add byte [rdx], al
add byte [rax], al
mov eax, 2
add byte [rax], al
mov qword [rbp + 0x418], rax
test dword [rax], ebx
add al, 0
add byte [rcx], dh
push qword [rcx]
fild dword [rbp + 0x31]
in al, 0x49
cmp eax, 0x201
add al, byte [rax]
add byte [rbx + 0x31], dh
jmp 0x1400868ff
lea rcx, [rbp - 0x50]
call fcn.140081950
mov byte [rsi + 0x18], 2
jmp 0x140086a89

Function at 0x140088a80
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140132f98]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x140088aec
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140088afb
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140088b33
cmp eax, 0x103
je 0x140088b3d
test eax, eax
js 0x140088b18
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140088b33
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 dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400825b0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140081a10
mov ecx, 7
int 0x29
ud2
Function at 0x14008c6a0
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 0x14008c6f0
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14008c75d
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x14008c703
cmp eax, 0x2739
jne 0x14008c74a
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 0x14008c745
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
je 0x14008c765
mov qword [rsi + 8], rdi
jmp 0x14008c6e7
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 0x14008c790
Capabilities:
Set socket configuration

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

Function at 0x14008c840
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14008c89e
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
mov ecx, 0xffffffff
jo 0x14008c89e
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14008c89e
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x14008c89e
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x14008c8db
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 0x14008c8c9
xor eax, eax
jmp 0x14008c8d6
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 0x14008c8d6
Function at 0x14008c8f0
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 0x14008c96a
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 0x14008c94b
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 0x14008c963
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14008c95b
xor eax, eax
jmp 0x14008c963
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.1400fe940
ud2

Function at 0x14008ca10
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 0x14008ca61
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14008ca77
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 0x14008cd30
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0xb0
mov rax, rdx
ror byte [rax - 0x77], 1
invalid
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0

Function at 0x14008ce50
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
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 0x14008ce73
xor eax, eax
jmp 0x14008ce80
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x28
ret

Function at 0x14008ce90
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
invalid
invalid
Function at 0x1400945e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
add byte [rax], al
add byte [rsi + 0xf], ah
jg 0x140094661
and al, 0x70
Function at 0x140096810
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 [0x1401b2ce0]
mov ecx, 0x10
mov edx, 8
call fcn.140024ff0
test rax, rax
je 0x1400968e6
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400969d0]
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 0x1400968d8
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 0x1400968b6
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.140025080
mov edx, 8
mov rcx, qword [rbp - 0x18]
call fcn.140025080
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.1400fe7a0
ud2