joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140138fd0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rax
add qword [rdx + 0x30], 8
mov rcx, qword [rcx]
mov qword [rsp], rcx
mov r9, qword [rdx + 0x40]
test r9, r9
je 0x140139077
mov eax, 8
mov r11d, 8
sub r11, r9
cmp r11, 8
cmovb rax, r11
xor r10d, r10d
xor r8d, r8d
cmp rax, 4
mov ecx, ecx
cmovae r10, rcx
setae r8b
lea rcx, [r8*4 + 1]
shl r8, 2
cmp rcx, rax
jae 0x14013903e
movzx esi, word [rsp + r8]
lea ecx, [r8*8]
shl rsi, cl
or r10, rsi
or r8, 2
cmp r8, rax
jae 0x140139055
movzx eax, byte [rsp + r8]
shl r8d, 3
mov ecx, r8d
shl rax, cl
or r10, rax
lea ecx, [r9*8]
shl r10, cl
or r10, qword [rdx + 0x38]
mov qword [rdx + 0x38], r10
cmp r9, 8
jbe 0x14013907c
add r9, 8
jmp 0x1401391ba
xor r11d, r11d
jmp 0x1401390d0
mov rsi, qword [rdx + 0x18]
mov rcx, qword [rdx + 0x10]
mov r8, qword [rdx]
add r8, rcx
rol rcx, 0xd
xor rsi, r10
xor rcx, r8
rol r8, 0x20
mov rax, qword [rdx + 8]
add rax, rsi
rol rsi, 0x10
xor rsi, rax
add r8, rsi
rol rsi, 0x15
xor rsi, r8
add rax, rcx
rol rcx, 0x11
mov qword [rdx + 0x18], rsi
xor rcx, rax
rol rax, 0x20
mov qword [rdx + 0x10], rcx
mov qword [rdx + 8], rax
xor r8, r10
mov qword [rdx], r8
mov r8d, 8
sub r8, r11
mov r9d, r8d
and r9d, 7
and r8, 0xfffffffffffffff8
cmp r11, r8
jae 0x140139152
mov rcx, qword [rdx + 0x18]
mov rax, qword [rdx]
mov r10, qword [rdx + 8]
mov rsi, qword [rdx + 0x10]
nop dword [rax + rax]
add rax, rsi
rol rsi, 0xd
mov rdi, qword [rsp + r11]
xor rsi, rax
rol rax, 0x20
xor rcx, rdi
add r10, rcx
rol rcx, 0x10
xor rcx, r10
add rax, rcx
rol rcx, 0x15
add r10, rsi
rol rsi, 0x11
xor rsi, r10
rol r10, 0x20
xor rcx, rax
xor rax, rdi
add r11, 8
cmp r11, r8
jb 0x140139100
mov qword [rdx + 0x18], rcx
mov qword [rdx], rax
mov qword [rdx + 0x10], rsi
mov qword [rdx + 8], r10
cmp r9d, 3
jbe 0x140139170
mov r10d, dword [rsp + r11]
mov r8d, 4
mov rax, r8
or rax, 1
cmp rax, r9
jb 0x140139182
jmp 0x14013919c
xor r8d, r8d
xor r10d, r10d
mov rax, r8
or rax, 1
cmp rax, r9
jae 0x14013919c
lea rax, [r8 + r11]
movzx eax, word [rsp + rax]
lea ecx, [r8*8]
shl rax, cl
or r10, rax
or r8, 2
cmp r8, r9
jae 0x1401391b6
add r11, r8
movzx eax, byte [rsp + r11]
shl r8d, 3
mov ecx, r8d
shl rax, cl
or r10, rax
mov qword [rdx + 0x38], r10
mov qword [rdx + 0x40], r9
add rsp, 8
pop rdi
pop rsi
ret
Function at 0x14014ae70
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, qword [rcx + 0x50]
test rsi, rsi
je 0x14014ae98
mov rax, rsi
add rsp, 0x60
pop rbx
pop rsi
pop rbp
ret
lea rdx, str.RAYON_NUM_THREADSRAYON_RS_NUM_CPUSThreadPoolBuildErrorkind
lea rcx, [rbp - 0x38]
mov r8d, 0x11
call fcn.1401577b0
movzx eax, byte [rbp - 0x20]
mov rdx, qword [rbp - 0x38]
cmp al, 3
jne 0x14014af08
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x14014af24
mov qword [rbp - 0x18], rdx
mov r8, qword [rbp - 0x28]
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x10], rax
mov rdx, rax
call fcn.14017b930
movzx ebx, byte [rbp - 0x38]
mov rsi, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x14014aeff
mov r8, rdx
not r8
shr r8, 0x3f
mov rcx, qword [rbp - 0x10]
call fcn.14000e8c0
test bl, bl
jne 0x14014af24
jmp 0x14014af8f
cmp al, 2
je 0x14014af24
test rdx, rdx
je 0x14014af24
mov rcx, qword [rbp - 0x30]
mov r8, rdx
not r8
shr r8, 0x3f
call fcn.14000e8c0
lea rdx, [0x140223a09]
lea rcx, [rbp - 0x38]
mov r8d, 0x11
call fcn.1401577b0
movzx eax, byte [rbp - 0x20]
mov rdx, qword [rbp - 0x38]
cmp al, 3
jne 0x14014af9a
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x14014afb6
mov qword [rbp - 0x18], rdx
mov r8, qword [rbp - 0x28]
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x10], rax
mov rdx, rax
call fcn.14017b930
movzx ebx, byte [rbp - 0x38]
mov rsi, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x14014af8b
mov r8, rdx
not r8
shr r8, 0x3f
mov rcx, qword [rbp - 0x10]
call fcn.14000e8c0
test bl, bl
jne 0x14014afb6
test rsi, rsi
jne 0x14014ae8d
jmp 0x14014afb6
cmp al, 2
je 0x14014afb6
test rdx, rdx
je 0x14014afb6
mov rcx, qword [rbp - 0x30]
mov r8, rdx
not r8
shr r8, 0x3f
call fcn.14000e8c0
nop
add rsp, 0x60
pop rbx
pop rsi
pop rbp
jmp 0x140150f30
sub rsp, 0x58
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x140150f30
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, qword [rcx + 0x50]
test rsi, rsi
je 0x14014ae98
mov rax, rsi
add rsp, 0x60
pop rbx
pop rsi
pop rbp
ret
lea rdx, str.RAYON_NUM_THREADSRAYON_RS_NUM_CPUSThreadPoolBuildErrorkind
lea rcx, [rbp - 0x38]
mov r8d, 0x11
call fcn.1401577b0
movzx eax, byte [rbp - 0x20]
mov rdx, qword [rbp - 0x38]
cmp al, 3
jne 0x14014af08
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x14014af24
mov qword [rbp - 0x18], rdx
mov r8, qword [rbp - 0x28]
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x10], rax
mov rdx, rax
call fcn.14017b930
movzx ebx, byte [rbp - 0x38]
mov rsi, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x14014aeff
mov r8, rdx
not r8
shr r8, 0x3f
mov rcx, qword [rbp - 0x10]
call fcn.14000e8c0
test bl, bl
jne 0x14014af24
jmp 0x14014af8f
cmp al, 2
je 0x14014af24
test rdx, rdx
je 0x14014af24
mov rcx, qword [rbp - 0x30]
mov r8, rdx
not r8
shr r8, 0x3f
call fcn.14000e8c0
lea rdx, [0x140223a09]
lea rcx, [rbp - 0x38]
mov r8d, 0x11
call fcn.1401577b0
movzx eax, byte [rbp - 0x20]
mov rdx, qword [rbp - 0x38]
cmp al, 3
jne 0x14014af9a
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x14014afb6
mov qword [rbp - 0x18], rdx
mov r8, qword [rbp - 0x28]
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x10], rax
mov rdx, rax
call fcn.14017b930
movzx ebx, byte [rbp - 0x38]
mov rsi, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x14014af8b
mov r8, rdx
not r8
shr r8, 0x3f
mov rcx, qword [rbp - 0x10]
call fcn.14000e8c0
test bl, bl
jne 0x14014afb6
test rsi, rsi
jne 0x14014ae8d
jmp 0x14014afb6
cmp al, 2
je 0x14014afb6
test rdx, rdx
je 0x14014afb6
mov rcx, qword [rbp - 0x30]
mov r8, rdx
not r8
shr r8, 0x3f
call fcn.14000e8c0
nop
add rsp, 0x60
pop rbx
pop rsi
pop rbp
jmp 0x140150f30
sub rsp, 0x58
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x140156e70
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
test rcx, rcx
je 0x140156e91
mov r8, qword [rcx]
mov rax, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
mov qword [rcx], 0
cmp r8, 1
je 0x140156ec9
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 0x140156ec2
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140156ec9
mov ecx, eax
call fcn.140168a60
mov r8d, dword [0x14026d4b8]
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx + r8*8]
mov qword [rcx + 0x60], 1
mov qword [rcx + 0x68], rax
mov qword [rcx + 0x70], rdx
add rsp, 0x38
ret
Function at 0x140157540
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 r12d, r12d
xor r13d, r13d
xor edi, edi
cmp r8, 0x201
jae 0x1401575e0
jmp 0x1401575cf
jae 0x14015769e
cmp r8, 0x201
jae 0x1401575e0
lea rbx, [rbp - 0x58]
mov r14d, 0x200
mov rsi, r8
jmp 0x140157637
sub r8, rdi
sub r13, rdi
cmp r13, r8
jae 0x14015760f
lea rcx, [rbp + 0x3c8]
mov rdx, rdi
call fcn.14018e9a0
mov r12, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp r12, rax
mov edi, 0xffffffff
cmovb rdi, r12
mov qword [rbp + 0x3d8], rdi
mov r13, r12
mov rbx, qword [rbp + 0x3e8]
mov r14, rdi
mov rsi, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, esi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r15d, eax
test eax, eax
jne 0x14015765f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140157706
mov r8d, r15d
cmp rsi, r8
jne 0x1401575c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140157729
add rsi, rsi
mov eax, 0xffffffff
cmp rsi, rax
cmovae rsi, rax
mov r8, rsi
cmp r8, 0x201
jb 0x1401575cf
jmp 0x1401575e0
cmp r14, r8
jb 0x140157743
lea rcx, [rbp + 0x3a8]
mov rdx, rbx
call fcn.14015f950
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 r12, r12
je 0x1401576ef
add r12, r12
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, r12
call fcn.14000e8c0
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], rax
mov byte [rsi + 0x18], 2
test r12, r12
jne 0x1401576d7
jmp 0x1401576ef
lea rcx, [0x140224d83]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14018feb0
jmp 0x140157758
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.1401902b0
ud2
Function at 0x14015f1a0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14015f213
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14015f213
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14015f213
imul edx, edx, 0xf4240
sub r8d, edx
mov rdx, rax
inc rdx
sete r10b
test r8d, r8d
setne r8b
cmove rdx, rax
and r8b, r10b
test r8b, 1
jne 0x14015f213
mov r9d, 0xffffffff
cmp rdx, r9
cmovb r9, rdx
test r9, r9
je 0x14015f255
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1006
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14015f242
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
lea rax, str.cannot_set_a_0_duration_timeout
add rsp, 0x38
ret

Function at 0x14015f270
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14015f2e3
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14015f2e3
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14015f2e3
imul edx, edx, 0xf4240
sub r8d, edx
mov rdx, rax
inc rdx
sete r10b
test r8d, r8d
setne r8b
cmove rdx, rax
and r8b, r10b
test r8b, 1
jne 0x14015f2e3
mov r9d, 0xffffffff
cmp rdx, r9
cmovb r9, rdx
test r9, r9
je 0x14015f325
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1005
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14015f312
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
lea rax, str.cannot_set_a_0_duration_timeout
add rsp, 0x38
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
mov r9d, 2
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x14015f382
cdqe
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14015f3aa
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x14015f397
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14015f3aa
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x14015f3c0
Capabilities:
Set socket configuration

Disassembly:
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 0x14015f3f8
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 0x14015f4b0
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 qword [sym.imp.ws2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x14015f502
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14015f519
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 0x14015f530
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 0x14015f572
cdqe
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14015f59a
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x14015f587
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14015f59a
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x14015f800
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
call qword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x14015f82a
xor eax, eax
add rsp, 0x28
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x28
ret

Function at 0x14015f880
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
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x14015f8ba
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14015f8d1
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 0x14015f8e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
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 0x14015f91f
cdqe
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14015f947
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x14015f934
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14015f947
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x20
pop rsi
ret
Function at 0x1401602a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
movzx ebx, byte [rdx + 0x38]
xor r15d, r15d
cmp bl, 1
setne dl
mov eax, 0
sbb eax, eax
mov r14, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x1401602d3
test ecx, ecx
jne 0x140160322
movzx r15d, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1401602e0
test ecx, ecx
jne 0x140160322
mov rcx, rdi
call fcn.140160180
movzx r10d, al
test bl, bl
jne 0x140160329
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x140160316.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x14016049c]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x140160316.2
xor r10d, r10d
test bl, bl
je 0x1401602f0
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x14016047e
mov r11, qword [rdi]
lea r9, [r11 + rcx]
movzx r8d, byte [rdi + 0x10]
cmp rdx, rcx
jne 0x14016035b
xor edi, edi
jmp 0x1401603d8
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x1401603a0
nop word cs:[rax + rax]
cmp byte [rax], 0x5c
je 0x1401603bb
inc rsi
dec rax
cmp rsi, 1
jne 0x140160380
jmp 0x1401603d8
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x1401603bb
cmp ebx, 0x5c
je 0x1401603bb
inc rsi
dec rax
cmp rsi, 1
jne 0x1401603a0
jmp 0x1401603d8
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x14016048c
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x140160402
mov al, 9
cmp rdx, 2
je 0x140160406
cmp rdx, 1
jne 0x140160416
cmp byte [r9], 0x2e
jne 0x140160416
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140160416
mov al, 0xa
jmp 0x140160416
cmp byte [r9], 0x2e
jne 0x140160416
cmp byte [r9 + 1], 0x2e
sete al
xor al, 9
add rdi, rdx
mov qword [r14], rdi
mov qword [r14 + 8], r9
mov qword [r14 + 0x10], rdx
mov byte [r14 + 0x18], al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 8
jmp case.0x140160316.2
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 2
jmp case.0x140160316.2
mov esi, 2
jmp case.0x140160316.2
lea r8, str.library_std_srcpath.rs
call fcn.1401902a0
ud2
lea r8, str.library_std_srcpath.rs
call fcn.1401902a0
ud2
Function at 0x140166cb0
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 0x140166d05
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140166da1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x140166d19
cmp eax, 0x2739
jne 0x140166d6a
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 0x140166d64
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x140166d7f
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x140166da1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140166da1
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 0x140168a60
Capabilities:
Generate random numbers via winapi

Disassembly:
push rsi
sub rsp, 0x80
mov dword [rsp + 0x28], ecx
mov rsi, qword [0x14026d420]
mov qword [rsp + 0x30], rsi
test rsi, rsi
jne 0x140168ac2
lea rdx, [0x1402272c0]
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x140168af8
mov rcx, qword [rsp + 0x30]
xor eax, eax
lock cmpxchg qword [0x14026d420], rcx
jne 0x140168ab2
mov rsi, qword [rsp + 0x30]
jmp 0x140168ac2
mov rsi, rax
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x10
xor r9d, r9d
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140168af8
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
mov dword [rsp + 0x2c], eax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x60], rax
lea rax, [0x14017bd60]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x2c]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rax
lea rax, [0x140227310]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
lea rax, [0x140227330]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 2
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 2
lea rdx, str.library_std_src_syswindows_rand.rsRNG_broken:___fallback_RNG_broken:
lea rcx, [rsp + 0x30]
call fcn.14018fdd0
ud2

Function at 0x1401699f0
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 rbx, rdx
mov r14, rcx
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], r8
mov ecx, 0x10
mov edx, 8
call fcn.14000e8b0
mov rsi, rax
test rax, rax
je 0x140169aca
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140169b50]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140169abc
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov qword [rbp - 0x10], rsi
call qword [rax]
mov rsi, qword [rbp - 0x10]
mov rax, qword [rsi + 8]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140169a94
mov r8, qword [rax + 0x10]
mov rcx, qword [rsi]
call fcn.14000e8c0
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call fcn.14000e8c0
call qword [sym.imp.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 - 0x10], rsi
mov ecx, 0x10
mov edx, 8
call fcn.14018fcb0
ud2