joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008dca6
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
call fcn.14008db90
mov rcx, rax
mov edx, ebx
add rsp, 0x20
pop rbx
jmp 0x14009737d
jmp 0x1400b7d40
sub rsp, 0x38
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 6
mov r8d, 1
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400b7d78
xor eax, eax
add rsp, 0x38
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x14008e0ab
Capabilities:
Set socket configuration

Disassembly:
jmp 0x14009440f
mov rcx, qword [rcx]
movzx r9d, dl
mov edx, 0xffff
mov r8d, 4
jmp 0x14009454a
sub rsp, 0x38
lea rax, [rsp + 0x34]
mov dword [rax], r9d
mov dword [rsp + 0x20], 4
mov r9, rax
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140094570
xor eax, eax
jmp 0x140094575
call fcn.140019f56
nop
add rsp, 0x38
ret

Function at 0x14008e0b0
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x140094426
mov r9, rdx
mov rcx, qword [rcx]
mov edx, 0xffff
mov r8d, 0x1001
jmp 0x14009454a

Function at 0x14008e0b7
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x1400943f9
mov r9, rdx
mov rcx, qword [rcx]
mov edx, 0xffff
mov r8d, 0x1002
jmp 0x14009454a

Function at 0x140091175
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x14009117c
test al, 1
je 0x14009119b
test al, 2
jne 0x1400911b3
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1401305f8]
mov edx, 0x23
call fcn.1400e5e40
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140130638]
mov edx, 0x25
call fcn.1400e5e40
int3

Function at 0x140094389
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
mov r8d, dword [rdx + 0x80]
call qword [sym.imp.ws2_32.dll_connect]
test eax, eax
je 0x1400943aa
add rsp, 0x28
jmp fcn.140019f56
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400943b1
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
movzx eax, dl
lea r8, [rsp + 0x24]
mov dword [r8], eax
mov edx, 0x8004667e
call qword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x1400943d7
xor eax, eax
jmp 0x1400943dc
call fcn.140019f56
nop
add rsp, 0x28
ret

Function at 0x1400943e2
Capabilities:
Set socket configuration

Disassembly:
mov rcx, qword [rcx]
movzx r9d, dl
mov edx, 0xffff
mov r8d, 8
jmp 0x14009454a

Function at 0x14009454a
Capabilities:
Set socket configuration

Disassembly:
jmp 0x14009440f
mov rcx, qword [rcx]
movzx r9d, dl
mov edx, 0xffff
mov r8d, 4
jmp 0x14009454a
sub rsp, 0x38
lea rax, [rsp + 0x34]
mov dword [rax], r9d
mov dword [rsp + 0x20], 4
mov r9, rax
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140094570
xor eax, eax
jmp 0x140094575
call fcn.140019f56
nop
add rsp, 0x38
ret
Function at 0x1400b56a0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x1400b5740
jmp 0x1400b572f
jae 0x1400b5800
cmp r8, 0x201
jae 0x1400b5740
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x1400b5798
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x1400b576f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1400e4e00
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x1400b57c1
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1400b5868
mov r8d, r14d
cmp r15, r8
jne 0x1400b5720
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400b5895
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400b572f
jmp 0x1400b5740
cmp rsi, r8
jb 0x1400b58af
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400b7f80
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x1400b5851
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.1400050a0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x1400b5839
jmp 0x1400b5851
lea rcx, [0x14016c0b0]
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.1400e5e40
jmp 0x1400b58c4
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1400e6310
ud2
Function at 0x1400b5a50
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.1400c9a20
mov rax, qword [rbp - 0x58]
movabs rdi, 0x8000000000000000
cmp rax, rdi
jne 0x1400b5aa6
lea rcx, [rbp - 0x50]
call fcn.1400af5e0
mov qword [rsi], rdi
jmp 0x1400b5c91
mov qword [rbp + 0x3c8], rsi
mov qword [rbp + 0x418], rax
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x408], rax
mov qword [rbp + 0x3f0], 0
mov qword [rbp + 0x3f8], 2
mov qword [rbp + 0x400], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor ebx, ebx
xor edi, edi
xor r13d, r13d
cmp r8, 0x201
jae 0x1400b5b30
jmp 0x1400b5b1f
jae 0x1400b5bf6
cmp r8, 0x201
jae 0x1400b5b30
mov r15d, 0x200
lea r14, [rbp - 0x58]
mov r12, r8
jmp 0x1400b5b88
sub r8, r13
sub rdi, r13
cmp rdi, r8
jae 0x1400b5b5f
lea rcx, [rbp + 0x3f0]
mov rdx, r13
call fcn.1400e4e00
mov rbx, qword [rbp + 0x3f0]
mov rax, qword [rbp + 0x3f8]
mov qword [rbp + 0x410], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rbp + 0x400], r13
mov rdi, rbx
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x1400b5bb7
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1400b5ccb
mov r8d, esi
cmp r12, r8
jne 0x1400b5b10
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400b5d06
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1400b5b1f
jmp 0x1400b5b30
cmp r15, r8
jb 0x1400b5d20
lea rcx, [rbp + 0x3a8]
mov rdx, r14
call fcn.1400b7f80
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
movaps xmmword [rbp + 0x3e0], xmm1
movaps xmmword [rbp + 0x3d0], xmm0
movabs rdi, 0x8000000000000000
test rbx, rbx
mov rsi, qword [rbp + 0x3c8]
je 0x1400b5c58
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rbx
call fcn.1400050a0
cmp qword [rbp + 0x3d0], rdi
jne 0x1400b5ca8
mov qword [rsi], rdi
lea rcx, [rbp + 0x3d8]
call fcn.1400af5e0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x1400b5c91
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.1400050a0
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3d0]
movaps xmm1, xmmword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x1400b5c7c
jmp 0x1400b5c91
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3d8], rax
movabs rdi, 0x8000000000000000
mov qword [rbp + 0x3d0], rdi
test rbx, rbx
mov rsi, qword [rbp + 0x3c8]
jne 0x1400b5c40
jmp 0x1400b5c58
lea rcx, [0x14016c0b0]
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.1400e5e40
jmp 0x1400b5d35
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.1400e6310
ud2
Function at 0x1400b7d40
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
call fcn.14008db90
mov rcx, rax
mov edx, ebx
add rsp, 0x20
pop rbx
jmp 0x14009737d
jmp 0x1400b7d40
sub rsp, 0x38
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 6
mov r8d, 1
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400b7d78
xor eax, eax
add rsp, 0x38
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1400b7dc7
cdqe
jmp 0x1400b7dd6
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x1400b7dde
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400b7def
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x1400b7e3d
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400b7e54
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
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 qword [sym.imp.ws2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x1400b7eb5
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400b7ecc
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x40
pop rsi
ret
Function at 0x1400bbd80
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.1400e17a0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x1400c2540]
lea r15, [rbp + 0xfb0]
mov r14, qword [sym.imp.kernel32.dll_WriteFileEx]
mov rdi, qword [sym.imp.kernel32.dll_SleepEx]
mov qword [rbp + 0x1010], r12
mov r9d, 0x1000
mov rdx, r12
mov r8, r13
call fcn.1400c1fc0
cmp qword [rbp + 0xfe8], 0
jne 0x1400bbf57
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x1400bbf23
cmp r12, 0x1000
ja 0x1400bbf79
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rbp + 0x1008]
mov r9, r15
call r14
test eax, eax
je 0x1400bbef7
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x1400bbea0
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x1400bbefd
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x1400bbee0
jbe 0x1400bbe50
jmp 0x1400bbf65
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x1400bbe05
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe0], rax
mov qword [rbp + 0xfd8], 1
lea rcx, [rbp + 0xfe0]
call fcn.1400af5e0
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xff0]
call fcn.1400af5e0
jmp 0x1400bbf23
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.1400e6390
jmp 0x1400bbf8d
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.1400e6310
ud2
Function at 0x1400bf9f0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14016e0d8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1400bfa34
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1400bfa93
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1400bfaa2
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400bfada
cmp eax, 0x103
je 0x1400bfae4
test eax, eax
js 0x1400bfabf
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400bfada
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, [0x14016e140]
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.1400b7590
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400afc70
mov ecx, 7
int 0x29
ud2

Function at 0x1400bfb50
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14016e0d8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1400bfb94
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400bfbfa
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400bfc31
test eax, eax
js 0x1400bfc0b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400bfc24
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x14016e140]
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.1400b7590
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400afc70
mov ecx, 7
int 0x29
ud2
Function at 0x1400bfd10
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, r8d
mov rsi, rcx
cmp word [rdx], 0
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1400bfd65
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400bfe01
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x1400bfd79
cmp eax, 0x2739
jne 0x1400bfdca
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1400bfdc4
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
je 0x1400bfddf
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x1400bfe01
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400bfe01
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400c15c0
Capabilities:
Create pipe
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp + 0x28], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x24], ecx
xor edi, edi
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
mov r12, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor eax, eax
mov qword [rbp - 0x10], rax
nop

Function at 0x1400c1fc0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x78
sub esp, 0x78
Function at 0x1400c2a00
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x1400c2b53
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x1400c2a37
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1400c2b18
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x1400c2b36
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x1400c2a99
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x1400c2acb
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x1400c2acf
call qword [sym.imp.kernel32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x3e5
je 0x1400c2ad3
cmp eax, 0x6d
jne 0x1400c2afe
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
jmp 0x1400c2ad8
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1400c2b04
lea rax, [rsp + 0x30]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.1400af5e0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x1400c2b0e
cmp rax, 1
je 0x1400c2a82
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x1400c2a8c
mov r8d, 0x10
mov rcx, rbx
call fcn.1400e4ec0
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x1400c2a44
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.1400e4ec0
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x1400c2a44
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400e4bb0
int3
Function at 0x1400c78b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.1400c9a20

Function at 0x1400c87f0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x1400c8828
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.1400c8840
nop
add rsp, 0x38
ret

Function at 0x1400c8840
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x1400c8883
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [fcn.1400b6420]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syspalwindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.1400e5d70
ud2

Function at 0x1400c8f10
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 [0x14017f001]
mov ecx, 0x10
mov edx, 8
call fcn.140005090
test rax, rax
je 0x1400c8fef
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400c90a0]
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 0x1400c8fe1
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]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400c8fb8
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.1400050a0
mov edx, 0x10
mov r8d, 8
add byte [rax], al
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], rdi
mov ecx, 8
mov edx, 0x10
call fcn.1400e5b00
ud2