joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a6790
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov rbx, r8
inc rbx
sete bpl
je 0x1400a69f8
js 0x1400a6a12
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rsi, rcx
movzx eax, byte [0x1401d21e9]
mov rcx, qword [0x1401d2138]
test rcx, rcx
jne 0x1400a67eb
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x1400a69e9
mov rcx, rax
mov qword [0x1401d2138], rax
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400a69e9
mov r12, rax
mov rcx, rax
mov rdx, r15
mov r8, r14
call sub.msvcrt.dll_memcpy
cmp r14, 0x10
jae 0x1400a6838
test r14, r14
je 0x1400a68f3
xor eax, eax
cmp byte [r15 + rax], 0
je 0x1400a6974
inc rax
cmp r14, rax
jne 0x1400a6820
jmp 0x1400a68f3
lea rax, [r15 + 7]
and rax, 0xfffffffffffffff8
sub rax, r15
je 0x1400a687e
cmp rax, r14
cmovae rax, r14
test rax, rax
je 0x1400a687e
xor ecx, ecx
nop word cs:[rax + rax]
cmp byte [r15 + rcx], 0
je 0x1400a6974
inc rcx
cmp rax, rcx
jne 0x1400a6860
lea rcx, [r14 - 0x10]
cmp rax, rcx
jbe 0x1400a6884
jmp 0x1400a68ce
lea rcx, [r14 - 0x10]
xor eax, eax
movdqa xmm0, xmmword [0x140135ca0]
movabs rdx, 0x8080808080808080
nop word cs:[rax + rax]
movdqu xmm1, xmmword [r15 + rax]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r8, xmm2
test r8, rdx
jne 0x1400a68ce
add rax, 0x10
cmp rax, rcx
jbe 0x1400a68a0
cmp rax, r14
je 0x1400a68f3
nop word cs:[rax + rax]
cmp byte [r15 + rax], 0
je 0x1400a6974
inc rax
cmp r14, rax
jne 0x1400a68e0
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], r14
lea rcx, [rsp + 0x30]
call fcn.1400036c0
mov rbx, rax
mov r14, rdx
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
mov rcx, rax
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x1400a69aa
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 byte [rbx], 0
test r14, r14
jne 0x1400a69c8
jmp 0x1400a69d9
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test bpl, bpl
jne 0x1400a69d9
mov rcx, qword [0x1401d2138]
xor edx, edx
mov r8, r12
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.KERNEL32.dll_HeapFree
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
mov byte [rbx], 0
test r14, r14
je 0x1400a69d9
mov rcx, qword [0x1401d2138]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
nop
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, 1
mov rdx, rbx
call fcn.1400034d0
ud2
lea rcx, [0x1401950a8]
lea r8, str.library_alloc_src_ffic_str.rs
mov edx, 0x2b
call fcn.140006a00
ud2
call fcn.140003490
ud2
Function at 0x1400a72b0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
test dx, dx
mov eax, 2
mov edi, 0x17
cmove edi, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x1400a72fe
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400a736e
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x1400a7311
cmp eax, 0x2739
jne 0x1400a735b
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x1400a7356
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
je 0x1400a7375
mov qword [rsi + 8], rdi
jmp 0x1400a72f5
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0x38
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, 0x38
pop rdi
pop rsi
jmp fcn.14010ced4

Function at 0x1400a7430
Capabilities:
Set socket configuration

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

Function at 0x1400a74e0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x1400a753e
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x1400a753e
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x1400a753e
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x1400a753e
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x1400a757e
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 0x1400a756c
xor eax, eax
add rsp, 0x38
ret
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
add rsp, 0x38
ret
Function at 0x1400a7ac0
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], pe_nt_image_headers64
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x2c]
mov rcx, rax
call sub.ws2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x1400a7b6f
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x30]
cmp ecx, 2
je 0x1400a7b7e
cmp ecx, 0x17
jne 0x1400a7ba5
cmp eax, 0x1b
jbe 0x1400a7bbe
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 sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
jmp 0x1400a7bac
cmp eax, 0xf
jbe 0x1400a7bd8
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, [0x14015a4d8]
mov edx, 0x43
call fcn.140006a00
ud2
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x14015a478]
mov edx, 0x42
call fcn.140006a00
ud2

Function at 0x1400a8270
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, r8
mov rbx, rdx
mov r14, rcx
movzx eax, byte [0x1401d21e9]
mov rcx, qword [0x1401d2138]
test rcx, rcx
jne 0x1400a82ad
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x1400a835d
mov rcx, rax
mov qword [0x1401d2138], rax
mov r8d, 0x10
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400a835d
mov rsi, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400a83c0]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x1400a8350
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x1400a832b
cmp qword [rbx + 0x10], 0x11
jb 0x1400a831a
mov rdi, qword [rdi - 8]
mov rcx, qword [0x1401d2138]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
mov rcx, qword [0x1401d2138]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.1400034d0
ud2
Function at 0x1400a84a0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400a84d6
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [fcn.1400a3640]
mov qword [rsp + 0x48], rax
lea rax, str.fallback_RNG_broken:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.140005ca0
ud2

Function at 0x1400abc50
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x1400abc72
mov qword [rsi + 8], rbx
mov qword [rsi], 1
jmp 0x1400abd3e
mov rax, qword [0x1401d2140]
cmp rax, 3
jne 0x1400abd47
movzx edx, word [rbx]
lea rcx, [rsp + 0x20]
call fcn.1400a72b0
cmp qword [rsp + 0x20], 0
mov rdi, qword [rsp + 0x28]
je 0x1400abcad
mov qword [rsi + 8], rdi
mov qword [rsi], 1
jmp 0x1400abd3e
cmp word [rbx], 0
je 0x1400abcce
movups xmm0, xmmword [rbx + 4]
mov eax, dword [rbx + 0x14]
mov edx, dword [rbx + 0x18]
movzx ecx, word [rbx + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x1400abce3
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
mov r8d, 0x10
mov r9w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x20], r9w
mov word [rsp + 0x22], cx
mov dword [rsp + 0x24], eax
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.ws2_32.dll_connect
cmp eax, 0xffffffff
je 0x1400abd1e
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x1400abd3e
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call fcn.14010ced4
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
call fcn.1400a6720
jmp 0x1400abc83
Function at 0x1400abda0
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
mov ecx, dword [0x140130110]
test ecx, ecx
je 0x1400abdcd
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400abde6
cmp qword [rax + 8], 0
je 0x1400abde6
add rax, 0x10
add rsp, 0x30
pop rsi
ret
lea rcx, [0x1401300f8]
call fcn.14007f590
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400abdbc
mov ecx, dword [0x140130110]
test ecx, ecx
je 0x1400abecd
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400abeea
mov rsi, rax
test rax, rax
jne 0x1400abe7b
movzx eax, byte [0x1401d21e9]
mov rcx, qword [0x1401d2138]
test rcx, rcx
jne 0x1400abe38
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x1400abf05
mov rcx, rax
mov qword [0x1401d2138], rax
mov r8d, 0x20
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400abf05
mov rsi, rax
lea rax, [0x1401300f8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140130110]
test ecx, ecx
je 0x1400abef2
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x1400abeab
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400abeb3
call fcn.1400a84a0
mov rcx, rax
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
add rsp, 0x30
pop rsi
ret
lea rcx, [0x1401300f8]
call fcn.14007f590
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400abe05
xor eax, eax
add rsp, 0x30
pop rsi
ret
lea rcx, [0x1401300f8]
call fcn.14007f590
mov ecx, eax
jmp 0x1400abe73
mov ecx, 8
mov edx, 0x20
call fcn.1400034d0
ud2
Function at 0x1400af870
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x1400af8b2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x1400af8ba
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x1400af8cb
jmp 0x1400af8e2
xor r10d, r10d
jmp 0x1400af96d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x1400af8e2
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x1400af8f9
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x1400af919
add r11, r8
jmp 0x1400afa4a
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x1400af9e2
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x1400af990
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x1400afa00
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x1400afa12
jmp 0x1400afa2c
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x1400afa2c
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x1400afa46
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400b2f20
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x24]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x1400b3036
mov rdi, rax
mov qword [rsp + 0x40], rsi
movsxd rbp, dword [rsp + 0x24]
mov qword [rsp + 0x28], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
test rbp, rbp
je 0x1400b300c
shl rbp, 3
mov r15d, 8
xor esi, esi
lea rbx, [rsp + 0x60]
lea r14, [rsp + 0x48]
xor r12d, r12d
jmp 0x1400b2fb9
lea rax, [r12 + r12*2]
mov rcx, qword [rsp + 0x70]
mov qword [r15 + rax*8 + 0x10], rcx
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [r15 + rax*8], xmm0
inc r12
mov qword [rsp + 0x38], r12
add rsi, 8
cmp rbp, rsi
je 0x1400b300c
mov r13, qword [rdi + rsi]
mov rcx, r13
call sub.msvcrt.dll_wcslen
lea rax, [rax*2]
add rax, r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], rax
mov word [rsp + 0x58], 0
mov rcx, rbx
mov rdx, r14
call fcn.1400b12a0
cmp r12, qword [rsp + 0x30]
jne 0x1400b2f90
lea rcx, [rsp + 0x28]
mov rdx, r12
call fcn.14004a840
mov r15, qword [rsp + 0x28]
mov r12, qword [rsp + 0x38]
jmp 0x1400b2f90
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
test rax, rax
jne 0x1400b301e
call sub.KERNEL32.dll_GetLastError
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
jmp 0x1400b3044
mov qword [rsi], 8
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400b3b40
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [rcx + 0x18]
test rdi, rdi
je 0x1400b3bbf
mov rbx, qword [rsi]
lea r14, [rbx + 0x10]
movdqa xmm0, xmmword [rbx]
pmovmskb eax, xmm0
not eax
jmp 0x1400b3b93
tzcnt ecx, eax
shl rcx, 5
mov rdx, rbx
sub rdx, rcx
lea ebp, [rax - 1]
and ebp, eax
mov rcx, qword [rdx - 8]
call sub.pdh.dll_PdhRemoveCounter
mov eax, ebp
dec rdi
je 0x1400b3bbf
test ax, ax
jne 0x1400b3b70
nop dword [rax + rax]
movdqa xmm0, xmmword [r14]
pmovmskb eax, xmm0
add rbx, 0xfffffffffffffe00
add r14, 0x10
cmp eax, 0xffff
je 0x1400b3ba0
not eax
jmp 0x1400b3b70
mov rcx, qword [rsi + 0x38]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x1400b3bd6
call sub.KERNEL32.dll_CloseHandle
test eax, eax
je 0x1400b3bef
mov rcx, qword [rsi + 0x30]
lea rax, [rcx + 1]
cmp rax, 2
jae 0x1400b3c02
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rsi + 0x30]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x1400b3be4
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp 0x14010cf64
jmp qword [sym.imp.pdh.dll_PdhCloseQuery]
Function at 0x1400d1950
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rdi, rdx
mov rsi, rcx
mov eax, dword [rdx + 0xf0]
cmp eax, 0x3b9aca00
jne 0x1400d19f3
mov rcx, qword [rdi + 0xe8]
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], eax
call fcn.140081d90
mov r8d, edx
lea rcx, [rsp + 0x48]
mov rdx, rax
call fcn.140081f30
cmp edx, 0x3b9aca00
jne case.0x1400d115c.101
movzx eax, byte [0x1401d21e9]
mov rcx, qword [0x1401d2138]
test rcx, rcx
jne 0x1400d1a4b
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x1400d1d54
mov rcx, rax
mov qword [0x1401d2138], rax
mov r8d, 0x1a
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400d1d54
movups xmm0, xmmword [0x140180709]
movups xmmword [rax + 0xa], xmm0
movups xmm0, xmmword [0x1401806ff]
add eax, 0xaec8c
mov ecx, 1
mov edx, 0x1a
call fcn.1400034d0
ud2
Function at 0x1400d8aa0
Capabilities:
Send data
Send data on socket

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400d8af8
mov rdi, r8
mov rbx, rdx
mov r14, qword [rcx]
lea rsi, [0x14017e3f8]
nop
cmp rdi, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, rdi
mov rcx, r14
mov rdx, rbx
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
je 0x1400d8afc
test eax, eax
je 0x1400d8b0b
movsxd rcx, eax
cmp rdi, rcx
jb 0x1400d8b18
add rbx, rcx
sub rdi, rcx
jne 0x1400d8ac0
xor esi, esi
jmp 0x1400d8b0b
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea r8, str._rustc_a28077b28a02b92985b3a3faecf92813155f1ea1library_std_srciomod.rs
mov rdx, rdi
call fcn.140005ce0
ud2
Function at 0x1400d9060
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, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rbx, r8
mov qword [rsp + 0x28], rcx
mov r15, qword [r8 + 8]
mov rbp, qword [r8 + 0x10]
mov rax, qword [rdx]
mov qword [rsp + 0x38], rax
xor esi, esi
xorps xmm6, xmm6
mov rdi, r15
mov qword [rsp + 0x30], rbp
cmp rbp, rdi
je 0x1400d9191
mov r14, rbp
mov r12, rdi
sub r12, r14
mov rdx, qword [rbx]
add rdx, r14
cmp r12, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r12
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
je 0x1400d91af
movsxd rbp, eax
cmp rsi, rbp
cmovbe rsi, rbp
test rbp, rbp
je 0x1400d91bb
mov r13, rsi
sub r13, rbp
jb 0x1400d924f
cmp rsi, r12
ja 0x1400d9263
add rbp, r14
mov qword [rbx + 0x10], rbp
mov rsi, r13
cmp rdi, r15
jne 0x1400d909a
mov rsi, r13
cmp rbp, rdi
jne 0x1400d909a
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov r8d, 0x20
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
je 0x1400d91ec
movsxd r12, eax
test r12, r12
je 0x1400d91f8
cmp r12, 0x21
jae 0x1400d9239
mov rcx, rbx
mov rdx, r15
mov r8, r12
call fcn.140042f30
mov rdi, qword [rbx + 8]
mov rbp, qword [rbx + 0x10]
mov rcx, qword [rbx]
add rcx, rbp
lea rdx, [rsp + 0x40]
mov r8, r12
call sub.msvcrt.dll_memcpy
add rbp, r12
mov qword [rbx + 0x10], rbp
mov rsi, r13
jmp 0x1400d909a
mov r8d, 0x20
mov rcx, rbx
mov rdx, rdi
call fcn.140042f30
mov rdi, qword [rbx + 8]
mov r14, qword [rbx + 0x10]
jmp 0x1400d90a6
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x1400d91d2
sub r14, qword [rsp + 0x30]
mov rax, qword [rsp + 0x28]
mov qword [rax + 8], r14
mov qword [rax], 0
jmp 0x1400d920b
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov qword [rcx], 1
jmp 0x1400d920b
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x1400d9221
sub r15, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], r15
xor eax, eax
mov qword [rcx], rax
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
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov eax, 1
jmp 0x1400d9208
lea r8, str._rustc_a28077b28a02b92985b3a3faecf92813155f1ea1library_std_srciomod.rs
mov edx, 0x20
mov rcx, r12
call fcn.140006660
ud2
lea r8, str._rustc_a28077b28a02b92985b3a3faecf92813155f1ea1library_std_srcio_readbuf.rs
mov rcx, rbp
mov rdx, rsi
call fcn.140007110
ud2
lea r8, str._rustc_a28077b28a02b92985b3a3faecf92813155f1ea1library_std_srcio_readbuf.rs
mov rcx, rsi
mov rdx, r12
call fcn.140006660
ud2
Function at 0x1400f0590
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenc xmm4, xmm1
aesenc xmm5, xmm1
aesenc xmm6, xmm1
aesenc xmm7, xmm1
movups xmm1, xmmword [rcx + rax]
add rax, 0x20
aesenc xmm2, xmm0
aesenc xmm3, xmm0
aesenc xmm4, xmm0
aesenc xmm5, xmm0
aesenc xmm6, xmm0
aesenc xmm7, xmm0
movups xmm0, xmmword [rcx + rax - 0x10]
jne fcn.1400f0590
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenc xmm4, xmm1
aesenc xmm5, xmm1
aesenc xmm6, xmm1
aesenc xmm7, xmm1
aesenclast xmm2, xmm0
aesenclast xmm3, xmm0
aesenclast xmm4, xmm0
aesenclast xmm5, xmm0
aesenclast xmm6, xmm0
aesenclast xmm7, xmm0
ret

Function at 0x1400f069a
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenc xmm4, xmm1
aesenc xmm5, xmm1
aesenc xmm6, xmm1
aesenc xmm7, xmm1
aesenc xmm8, xmm1
aesenc xmm9, xmm1
movups xmm1, xmmword [rcx + rax]
add rax, 0x20
aesenc xmm2, xmm0
aesenc xmm3, xmm0
aesenc xmm4, xmm0
aesenc xmm5, xmm0
aesenc xmm6, xmm0
aesenc xmm7, xmm0
aesenc xmm8, xmm0
aesenc xmm9, xmm0
movups xmm0, xmmword [rcx + rax - 0x10]
jne 0x1400f0670
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenc xmm4, xmm1
aesenc xmm5, xmm1
aesenc xmm6, xmm1
aesenc xmm7, xmm1
aesenc xmm8, xmm1
aesenc xmm9, xmm1
aesenclast xmm2, xmm0
aesenclast xmm3, xmm0
aesenclast xmm4, xmm0
aesenclast xmm5, xmm0
aesenclast xmm6, xmm0
aesenclast xmm7, xmm0
aesenclast xmm8, xmm0
aesenclast xmm9, xmm0
ret