joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140076990
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 0x1400769d2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x1400769da
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x1400769eb
jmp 0x140076a02
xor r10d, r10d
jmp 0x140076a8d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140076a02
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140076a19
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 0x140076a39
add r11, r8
jmp 0x140076b6b
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 0x140076b02
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 0x140076ab0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x140076b20
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x140076b32
jmp 0x140076b4d
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x140076b4d
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x140076b67
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 0x1400bc360
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x1400bc3f9
movzx r9d, word [rcx]
test r8b, 1
jne 0x1400bc37e
mov rax, rdx
cmp r8, 1
jne 0x1400bc3a7
jmp 0x1400bc3f5
lea rax, [rdx + 1]
movzx r9d, r9w
movzx r10d, byte [rdx]
xor r10b, r9b
shr r9d, 8
movzx r10d, r10b
lea r11, [0x1402f04f8]
xor r9w, word [r11 + r10*2]
cmp r8, 1
je 0x1400bc3f5
add rdx, r8
lea r8, [0x1402f04f8]
nop word cs:[rax + rax]
movzx r10d, r9w
movzx r9d, byte [rax]
xor r9b, r10b
shr r10d, 8
movzx r9d, r9b
movzx r9d, word [r8 + r9*2]
xor r10d, r9d
xor r10b, byte [rax + 1]
shr r9d, 8
movzx r10d, r10b
xor r9w, word [r8 + r10*2]
add rax, 2
cmp rax, rdx
jne 0x1400bc3c0
mov word [rcx], r9w
ret

Function at 0x1400bc8b0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rax, rcx
movzx ecx, byte [rdx]
xor ecx, 0x811c9dc5
imul ecx, ecx, 0x1000193
movzx edx, byte [rdx + 1]
xor edx, ecx
imul r8d, edx, 0x1000193
mov r10d, r8d
shr r10d, 0x10
mov ecx, r10d
and ecx, 0x3fff
mov r9d, ecx
shr r9d, 6
mov rdx, qword [rax + 8]
cmp r9, rdx
jae 0x1400bc94b
mov esi, 1
mov edi, 1
shl rdi, cl
lea ecx, [r10 + r8]
mov r11, qword [rax]
or qword [r11 + r9*8], rdi
and ecx, 0x3fff
mov eax, ecx
shr eax, 6
cmp rax, rdx
jae 0x1400bc95a
shl rsi, cl
lea ecx, [r10 + r8*2]
or qword [r11 + rax*8], rsi
and ecx, 0x3fff
mov eax, ecx
shr eax, 6
cmp rax, rdx
jae 0x1400bc969
mov edx, 1
shl rdx, cl
or qword [r11 + rax*8], rdx
add rsp, 0x28
pop rdi
pop rsi
ret
lea r8, str._home_zuzu_.cargo_registry_src_index.crates.io_6f17d22bba15001f_symphonia_core_0.5.4_src_probe.rs
mov rcx, r9
call fcn.1401ac3e0
lea r8, str._home_zuzu_.cargo_registry_src_index.crates.io_6f17d22bba15001f_symphonia_core_0.5.4_src_probe.rs
mov rcx, rax
call fcn.1401ac3e0
lea r8, str._home_zuzu_.cargo_registry_src_index.crates.io_6f17d22bba15001f_symphonia_core_0.5.4_src_probe.rs
mov rcx, rax
call fcn.1401ac3e0
int3

Function at 0x1400bc980
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x28
movzx eax, byte [rdx]
xor eax, 0x811c9dc5
imul eax, eax, 0x1000193
movzx edx, byte [rdx + 1]
xor edx, eax
imul r8d, edx, 0x1000193
mov r9d, r8d
shr r9d, 0x10
mov r11d, r9d
and r11d, 0x3fff
mov eax, r11d
shr eax, 6
mov rdx, qword [rcx + 8]
cmp rax, rdx
jae 0x1400bca13
mov r10, qword [rcx]
mov rax, qword [r10 + rax*8]
bt rax, r11
jae 0x1400bca0c
lea eax, [r9 + r8]
and eax, 0x3fff
mov ecx, eax
shr ecx, 6
cmp rcx, rdx
jae 0x1400bca22
mov rcx, qword [r10 + rcx*8]
bt rcx, rax
jae 0x1400bca0c
lea eax, [r9 + r8*2]
and eax, 0x3fff
mov ecx, eax
shr ecx, 6
cmp rcx, rdx
jae 0x1400bca2e
mov rcx, qword [r10 + rcx*8]
bt rcx, rax
setb al
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
lea r8, str._home_zuzu_.cargo_registry_src_index.crates.io_6f17d22bba15001f_symphonia_core_0.5.4_src_probe.rs
mov rcx, rax
call fcn.1401ac3e0
lea r8, str._home_zuzu_.cargo_registry_src_index.crates.io_6f17d22bba15001f_symphonia_core_0.5.4_src_probe.rs
call fcn.1401ac3e0
lea r8, str._home_zuzu_.cargo_registry_src_index.crates.io_6f17d22bba15001f_symphonia_core_0.5.4_src_probe.rs
call fcn.1401ac3e0
int3
Function at 0x1400cffc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
test rdx, rdx
je 0x1400ccc4c
mov eax, dword [rdx + 4]
cmp dword [rdx], 0
mov dword [rdx], 0
jne 0x1400ccc63
xor ecx, ecx
mov edx, 2
call sub.ole32.dll_CoInitializeEx
test eax, eax
jns 0x1400ccc63
cmp eax, 0x80010106
jne 0x1400ccc8b
lea rdi, [rsi + 4]
mov ecx, dword [rsi + 4]
cmp dword [rsi], 0
mov dword [rsi], 1
mov dword [rsi + 4], eax
je 0x1400ccc81
test ecx, ecx
js 0x1400ccc81
call sub.ole32.dll_CoUninitialize
mov rax, rdi
add rsp, 0x68
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [fcn.140154ba0]
mov qword [rsp + 0x30], rax
lea rax, [0x1402f5818]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 1
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0x28]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 1
lea rdx, str._X__
lea rcx, [rsp + 0x38]
call fcn.1401ac1f0
ud2
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x1400cffef
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400d0004
cmp dword [rax + 8], 0
je 0x1400d0004
add rax, 0xc
jmp 0x1400d0088
mov rcx, rdi
call fcn.140176e50
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400cffe0
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x1400d0071
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400d0086
test rax, rax
jne 0x1400d005c
mov rax, qword [0x14032b618]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.14002f790
test rax, rax
je 0x1400d00a1
mov qword [rax], rdi
mov dword [rax + 8], 0
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x1400d008f
dec ecx
mov rdx, rax
mov rdi, rax
call sub.kernel32.dll_TlsSetValue
mov rax, rdi
add rax, 8
mov rcx, rax
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp 0x1400ccc30
mov rcx, rdi
call fcn.140176e50
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400d0018
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rdi
mov rdi, rax
call fcn.140176e50
mov ecx, eax
mov rax, rdi
jmp 0x1400d004e
mov ecx, 8
mov edx, 0x10
call fcn.14019eb20
int3

Function at 0x1400d1420
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [rcx]
mov rdi, qword [rsi]
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x1400d1437
dec ecx
jmp 0x1400d1441
mov rcx, rdi
call fcn.140176e50
mov ecx, eax
mov edx, 1
call sub.kernel32.dll_TlsSetValue
cmp dword [rsi + 8], 0
je 0x1400d145c
cmp dword [rsi + 0xc], 0
js 0x1400d145c
call sub.ole32.dll_CoUninitialize
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call fcn.14002f7a0
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x1400d147a
dec ecx
jmp 0x1400d1484
mov rcx, rdi
call fcn.140176e50
mov ecx, eax
xor esi, esi
xor edx, edx
call sub.kernel32.dll_TlsSetValue
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x14014f760
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x468
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3c8], rcx
mov qword [rbp + 0x3d0], 0
mov qword [rbp + 0x3d8], 2
mov qword [rbp + 0x3e0], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c0], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x14014f7f0
jmp 0x14014f7df
jae 0x14014f8ab
cmp r8, 0x201
jae 0x14014f7f0
mov r14d, 0x200
lea r15, [rbp - 0x60]
mov r12, r8
jmp 0x14014f847
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14014f81f
lea rcx, [rbp + 0x3d0]
mov rdx, rbx
call fcn.14013bd00
mov rsi, qword [rbp + 0x3d0]
mov rax, qword [rbp + 0x3d8]
mov qword [rbp + 0x3c0], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e0], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c0]
mov r12, rbx
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov ecx, r12d
mov rdx, r15
call sub.kernel32.dll_GetCurrentDirectoryW
mov r13d, eax
test eax, eax
jne 0x14014f86d
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x14014f917
mov r8d, r13d
cmp r12, r8
jne 0x14014f7d0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x14014f94a
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14014f7df
jmp 0x14014f7f0
cmp r14, r8
jb 0x14014f964
lea rcx, [rbp + 0x3a0]
mov rdx, r15
call fcn.14015cfd0
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
mov rsi, qword [rbp + 0x3c8]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d0]
test rdx, rdx
je 0x14014f900
mov rcx, qword [rbp + 0x3d8]
add rdx, rdx
mov r8d, 2
call fcn.14002f7a0
mov rax, rsi
add rsp, 0x468
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3c8]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d0]
test rdx, rdx
jne 0x14014f8eb
jmp 0x14014f900
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1401ac290
jmp 0x14014f979
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.1401b26f0
ud2
Function at 0x1401644f0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov r14, r9
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.14019f5b0
mov rdx, qword [rbp - 0x28]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x140164577
mov rdi, qword [rbp - 0x20]
mov rbx, qword [rbp - 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x58], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x60]
lea r9, [rbp - 8]
mov rcx, rdi
xor edx, edx
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x1401645aa
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1401645be
lea rax, [0x14030bd78]
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdx, rdx
je 0x1401645de
mov rcx, qword [rbp - 0x20]
mov r8d, 1
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.14002f7a0
mov rcx, qword [r14]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test rbx, rbx
je 0x1401645de
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.14002f7a0
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x140164ec0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10a8
call fcn.1401c2150
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1010], xmm6
mov rsi, rdx
mov rdi, rcx
lea r15, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r15
xor edx, edx
call sub.msvcrt.dll_memset
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea r14, [0x1401708b0]
lea r12, [rbp + 0xfb0]
mov qword [rbp + 0x1008], rdi
mov r8d, 0x1000
mov rcx, rdi
mov rdx, r15
call case.0x1401704a6.118
mov r13, rdx
mov qword [rbp + 0xfd8], rax
mov qword [rbp + 0xfe0], rdx
test rax, rax
jne 0x14016508c
test r13, r13
je 0x140165061
cmp r13, 0x1000
ja 0x1401650ae
mov rdi, r15
xor r15d, r15d
nop dword [rax + rax]
mov r8d, r13d
sub r8d, r15d
lea rdx, [r15 + rbp]
add rdx, 0xffffffffffffffb0
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov r9, r12
call sub.kernel32.dll_WriteFileEx
test eax, eax
je 0x14016502f
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.kernel32.dll_SleepEx
cmp dword [rbp + 0xffc], 0
je 0x140164fc0
mov ecx, dword [rbp + 0x1000]
mov eax, dword [rbp + 0x1004]
mov rdx, rcx
shl rdx, 0x20
or rdx, 2
xor r8d, r8d
test ecx, ecx
setne r8b
cmove rdx, rax
mov qword [rbp + 0xfe8], r8
mov qword [rbp + 0xff0], rdx
jne 0x14016504e
add r15, rax
cmp r15, r13
je 0x140165020
jbe 0x140164f70
jmp 0x14016509a
mov r15, rdi
mov rdi, qword [rbp + 0x1008]
jmp 0x140164f21
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe8], 1
mov qword [rbp + 0xff0], rax
lea rcx, [rbp + 0xff0]
call fcn.140132360
mov rdi, qword [rbp + 0x1008]
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
mov rcx, rsi
call sub.kernel32.dll_CloseHandle
movaps xmm6, xmmword [rbp + 0x1010]
add rsp, 0x10a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xfe0]
call fcn.140132360
jmp 0x140165061
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r15
mov rdx, r13
call fcn.1401b2770
jmp 0x1401650c2
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r13
call fcn.1401b26f0
ud2
Function at 0x14016a690
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov r8, rdx
mov rdx, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rbp - 0x10]
call fcn.140177530
mov rax, qword [rbp - 0x10]
mov rsi, qword [rbp - 8]
cmp rax, rbx
je 0x14016a6f0
mov rcx, qword [rbp]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov r8b, 1
call fcn.140179980
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp rdi, rbx
jne 0x14016a6fc
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
xor edx, edx
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
je 0x14016a727
test rdi, rdi
je 0x14016a752
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.14002f7a0
xor eax, eax
jmp 0x14016a6f3
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x14016a6f3
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.14002f7a0
jmp 0x14016a6f0
xor eax, eax
jmp 0x14016a6f3

Function at 0x14016d5b0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14030cfb8]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14016d5e8
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x14016d63d
mov rcx, rsi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x14016d64a
xor edx, edx
xor eax, eax
jmp 0x14016d673
cmp eax, 0x103
je 0x14016d67d
test eax, eax
js 0x14016d65d
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14016d673
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.14015aea0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140133250
mov ecx, 7
int 0x29
ud2
Function at 0x14016d6d0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14030cfb8]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14016d708
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x14016d764
mov rcx, rsi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14016d790
test eax, eax
js 0x14016d770
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14016d786
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.14015aea0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140133250
mov ecx, 7
int 0x29
ud2

Function at 0x14016dd70
Capabilities:
Create udp socket

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov edi, edx
cmp word [rcx], 0
mov eax, 2
mov r14d, 0x17
cmove r14d, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor ebx, ebx
mov ecx, r14d
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14016de4a
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x14016ddd6
mov esi, eax
cmp eax, 0x2726
jne 0x14016de3d
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, r14d
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x14016de36
mov rsi, rax
xor ebx, ebx
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
jne 0x14016de4a
call sub.kernel32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call sub.ws2_32.dll_closesocket
mov ebx, 1
mov rsi, rdi
jmp 0x14016de4a
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov ebx, 1
mov rax, rbx
mov rdx, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x14016def0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x448
lea rbp, [rsp + 0x80]
mov ebx, r9d
mov r14, r8
mov r15, rdx
mov rsi, rcx
mov dword [rbp + 0x1b0], 1
mov rdi, qword [rcx]
lea r8, [rbp + 0x1b0]
mov rcx, rdi
mov edx, 0x8004667e
call sub.ws2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x14016df5f
cmp word [r15], 0
je 0x14016df74
movups xmm0, xmmword [r15 + 4]
mov eax, dword [r15 + 0x14]
mov edx, dword [r15 + 0x18]
movzx ecx, word [r15 + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x14016df8b
call sub.ws2_32.dll_WSAGetLastError
mov r15d, eax
shl r15, 0x20
mov eax, dword [r15 + 2]
movzx ecx, word [r15 + 6]
xorps xmm0, xmm0
mov r8d, 0x10
mov r9w, 2
rol cx, 8
mov word [rbp + 0x1b0], r9w
Function at 0x14016e540
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xc0
lea rbp, [rsp + 0x80]
mov r10, r8
mov rsi, rcx
mov eax, dword [rbp + 0x80]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp + 0x3c], pe_nt_image_headers64
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
lea rcx, [rbp + 0x3c]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x20], rcx
mov rcx, rdx
mov rdx, r10
mov r9d, eax
call sub.ws2_32.dll_recvfrom
cmp eax, 0xffffffff
je 0x14016e5f4
mov ecx, dword [rbp + 0x3c]
movzx edx, word [rbp - 0x50]
cmp edx, 0x17
je 0x14016e648
cmp edx, 2
jne 0x14016e63f
cmp ecx, 0xf
jbe 0x14016e70e
mov ecx, dword [rbp - 0x4c]
movzx edx, word [rbp - 0x4e]
rol dx, 8
movzx edx, dx
shl rdx, 0x20
or rdx, rcx
xor edi, edi
jmp 0x14016e674
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14016e69e
mov eax, dword [rbp + 0x3c]
movzx ecx, word [rbp - 0x50]
cmp ecx, 0x17
je 0x14016e6b1
cmp ecx, 2
jne 0x14016e63f
cmp eax, 0xf
jbe 0x14016e70e
mov eax, dword [rbp - 0x4c]
movzx ecx, word [rbp - 0x4e]
rol cx, 8
movzx ecx, cx
shl rcx, 0x20
or rcx, rax
xor r11d, r11d
jmp 0x14016e6d9
lea rax, str.invalid_argument
jmp 0x14016e6a6
cmp ecx, 0x1b
jbe 0x14016e726
movzx ecx, word [rbp - 0x4e]
rol cx, 8
mov r9d, dword [rbp - 0x4c]
mov r8d, dword [rbp - 0x38]
mov edx, dword [rbp - 0x48]
shl rdx, 0x10
mov r11, qword [rbp - 0x44]
mov di, 1
mov r10d, dword [rbp - 0x3c]
cdqe
mov qword [rsi], rax
mov word [rsi + 8], di
mov dword [rsi + 0xa], edx
shr rdx, 0x20
mov word [rsi + 0xe], dx
mov qword [rsi + 0x10], r11
mov dword [rsi + 0x18], r10d
mov dword [rsi + 0x1c], r9d
mov dword [rsi + 0x20], r8d
mov word [rsi + 0x24], cx
jmp 0x14016e703
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov word [rsi + 8], 2
jmp 0x14016e703
cmp eax, 0x1b
jbe 0x14016e726
movzx eax, word [rbp - 0x4e]
rol ax, 8
mov r8d, dword [rbp - 0x4c]
mov edx, dword [rbp - 0x38]
mov ecx, dword [rbp - 0x48]
shl rcx, 0x10
mov r10, qword [rbp - 0x44]
mov r11w, 1
mov r9d, dword [rbp - 0x3c]
mov qword [rsi], 0
mov word [rsi + 8], r11w
mov dword [rsi + 0xa], ecx
shr rcx, 0x20
mov word [rsi + 0xe], cx
mov qword [rsi + 0x10], r10
mov dword [rsi + 0x18], r9d
mov dword [rsi + 0x1c], r8d
mov dword [rsi + 0x20], edx
mov word [rsi + 0x24], ax
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x14030e101]
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len___mem::size_of::_c::sockaddr_in___
mov edx, 0x39
call fcn.1401ac290
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in6___
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len___mem::size_of::_c::sockaddr_in___
mov edx, 0x3a
call fcn.1401ac290
int3