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

Disassembly:
push rsi
push rdi
sub rsp, 0x78
cmp dword [rcx], 2
jne 0x1400aa986
movdqu xmm0, xmmword [rcx + 8]
pshufd xmm1, xmm0, 0x44
pxor xmm1, xmmword [str.uespemosarenegylmodnarodsetybdet]
pshufd xmm2, xmm0, 0xee
pxor xmm2, xmmword [0x14021c950]
movdqa xmmword [rsp + 0x30], xmm1
movdqa xmmword [rsp + 0x40], xmm2
movdqa xmmword [rsp + 0x50], xmm0
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
mov rsi, qword [rdx]
mov rdi, qword [rsi]
xor eax, eax
test rdi, rdi
setne al
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov r8d, 8
call fcn.14000ef60
test rdi, rdi
je 0x1400aaa15
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
lea rcx, [rsp + 0x30]
jmp 0x1400aaa2e
mov rcx, qword [rdx]
mov r8, qword [rcx]
xor edx, edx
test r8, r8
setne dl
movabs rax, 0xcbf29ce484222325
xor rax, rdx
movabs rdx, 0x1efac7090aef4a21
imul rax, rdx
test r8, r8
je 0x1400aab26
mov r9, qword [rcx + 0x10]
test r9, r9
je 0x1400aaba8
mov rcx, qword [rcx + 8]
movabs rdx, 0x100000001b3
mov r10, r9
and r10, 7
je 0x1400aab33
mov r11, rax
mov r8, rcx
nop word cs:[rax + rax]
movzx eax, byte [r8]
inc r8
xor rax, r11
imul rax, rdx
mov r11, rax
dec r10
jne 0x1400aa9f0
cmp r9, 8
jae 0x1400aab3c
jmp 0x1400aaba8
movzx eax, byte [rsi + 8]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov r8d, 8
call fcn.14000ef60
mov rcx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x60]
shl r9, 0x38
or r9, qword [rsp + 0x68]
mov rax, qword [rsp + 0x48]
mov r8, qword [rsp + 0x30]
add r8, rcx
rol rcx, 0xd
xor rax, r9
xor rcx, r8
rol r8, 0x20
mov rdx, qword [rsp + 0x38]
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rax, r8
xor rcx, rdx
rol rdx, 0x20
xor r8, r9
add r8, rcx
rol rcx, 0xd
xor rcx, r8
rol r8, 0x20
xor rdx, 0xff
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rcx, rdx
rol rdx, 0x20
xor rax, r8
add r8, rcx
rol rcx, 0xd
xor rcx, r8
rol r8, 0x20
add rdx, rax
rol rax, 0x10
xor rax, rdx
add r8, rax
rol rax, 0x15
add rdx, rcx
rol rcx, 0x11
xor rcx, rdx
rol rdx, 0x20
xor rax, r8
add r8, rcx
rol rcx, 0xd
xor rcx, r8
add rdx, rax
shl rax, 0x10
xor rax, rdx
shr rax, 0x2b
add rdx, rcx
shr rcx, 0x2f
xor rcx, rax
mov rax, rdx
shr rax, 0x20
xor rax, rdx
xor rax, rcx
jmp 0x1400aaba8
movzx ecx, byte [rcx + 8]
xor rax, rcx
imul rax, rdx
jmp 0x1400aaba8
mov r8, rcx
cmp r9, 8
jb 0x1400aaba8
add rcx, r9
nop
movzx r9d, byte [r8]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 1]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 2]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 3]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 4]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 5]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 6]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 7]
add r8, 8
xor rax, r9
imul rax, rdx
cmp r8, rcx
jne 0x1400aab40
and eax, 0x7fff
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x1400c19a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x28], 0
mov r14d, dword [rdx + 0x58]
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov edx, r14d
call fcn.1400c1270
test eax, eax
jne 0x1400c1b9c
mov eax, dword [rsp + 0x2c]
lea ecx, [r14 + rax]
shl rcx, 0x20
add r14d, eax
movabs rax, 0x300000001
cmovno rax, rcx
test al, al
jne 0x1400c1a00
shr rax, 0x20
mov dword [rsp + 0x2c], eax
mov rax, qword [0x1402df7b0]
mov rax, qword [rax]
test rax, rax
je 0x1400c1a6d
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi + 0x14], xmm0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi + 0x28], xmm0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi + 0x3c], xmm0
mov rax, qword [rdi + 0x38]
mov dword [rsi + 0x10], 0
mov dword [rsi + 0x24], 0
mov dword [rsi + 0x38], 0
mov rcx, qword [rsp + 0x28]
mov qword [rsi], rcx
mov dword [rsi + 0x58], 0
mov dword [rsi + 0x4c], 0
mov qword [rsi + 8], rax
mov rax, rsi
add rsp, 0xd8
pop rbx
pop rdi
pop rsi
pop r14
ret
movzx edx, byte [0x1402dea48]
test dl, dl
je 0x1400c1a0f
movzx eax, dl
cmp eax, 1
je 0x1400c1a8b
cmp eax, 2
jne 0x1400c1b81
mov dl, 2
mov rcx, qword [0x1402dea38]
call fcn.1400dcfd0
test al, al
je 0x1400c1a0f
mov rcx, qword [0x1402dea38]
mov rax, qword [rcx + 0x38]
test rax, rax
je 0x1400c1bcd
lea rdx, [rcx + 0x30]
mov r8, qword [rcx + 0x30]
movups xmm0, xmmword [rcx + 0x40]
mov qword [rsp + 0xb0], r8
mov qword [rsp + 0xb8], rax
movups xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0x30], rbx
lea rax, [0x1400c4ee0]
mov qword [rsp + 0x38], rax
lea rax, str.Prioritize::new__flow
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 1
mov qword [rsp + 0x88], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [0x140259698]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 1
mov qword [rsp + 0xa8], rdx
lea rdx, [rsp + 0x98]
call fcn.1400dd520
jmp 0x1400c1a0f
lea rcx, [0x1402dea38]
call fcn.140216530
mov edx, eax
test al, al
jne 0x1400c1a8b
jmp 0x1400c1a0f
mov dword [rsp + 0x68], 3
lea rax, [0x1402598f0]
mov qword [rsp + 0x20], rax
lea rcx, str.invalid_initial_window_sizeC:Usersdreye.cargo_registry_srcindex.crates.io_6f17d22bba15001fh2_0.3.26_srcproto_streamsprioritize.rs
lea r9, [0x140259278]
lea r8, [rsp + 0x68]
mov edx, 0x1b
call fcn.14021a390
lea rcx, str.FieldSet_corrupted__this_is_a_bug_C:Usersdreye.cargo_registry_srcindex.crates.io_6f17d22bba15001fh2_0.3.26_srcproto_streams_flow_control.rs
lea r8, [0x140259908]
mov edx, 0x22
call fcn.140219ea0
int3
Function at 0x1400df940
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
nop word [rax + rax]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1400df950
test al, 1
je 0x1400df96f
test al, 2
jne 0x1400df987
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140279840]
mov edx, 0x23
call fcn.140219fe0
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140279880]
mov edx, 0x25
call fcn.140219fe0
int3

Function at 0x1400e7320
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1400ec9a0
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, 0xffff
mov r8d, 4
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400ec9d8
xor eax, eax
add rsp, 0x38
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x1400e7330
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x1400ec9f0
sub rsp, 0x38
mov rcx, qword [rcx]
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1001
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400eca25
xor eax, eax
add rsp, 0x38
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x1400e7340
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x1400ec950
sub rsp, 0x38
mov rcx, qword [rcx]
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1002
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400ec985
xor eax, eax
add rsp, 0x38
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x1400ea930
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x10], 0xffffffffffffffff
je 0x1400ea948
add rcx, 0x10
add rsp, 0x28
jmp 0x1400ef000
lea rcx, str.C:Usersdreye.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.37.0_srciopoll_evented.rs
call fcn.140219e80
int3
jmp 0x140137d30
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 0x140137d68
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 0x1400ec8d0
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 0x1400ec8fa
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400ec910
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 0x1400ec93a
xor eax, eax
add rsp, 0x28
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x28
ret
Function at 0x1400ec950
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x1400ec950
sub rsp, 0x38
mov rcx, qword [rcx]
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1002
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400ec985
xor eax, eax
add rsp, 0x38
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x1400ec9a0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1400ec9a0
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, 0xffff
mov r8d, 4
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400ec9d8
xor eax, eax
add rsp, 0x38
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x1400ec9f0
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x1400ec9f0
sub rsp, 0x38
mov rcx, qword [rcx]
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1001
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400eca25
xor eax, eax
add rsp, 0x38
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x1400eca40
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rdi, rdx
mov rsi, qword [rcx]
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x48]
mov rcx, rsi
mov edx, 0xffff
mov r8d, 8
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400ecb67
mov r9d, dword [rdi + 8]
xor ecx, ecx
mov r8d, 0
cmp r9d, 0x3b9aca00
je 0x1400ecac8
mov eax, 0x3e8
mul qword [rdi]
mov r8d, r9d
imul r9, r8, 0x431bde83
shr r9, 0x32
add r9, rax
adc rdx, 0
mov eax, 0xffffffff
cmp r9, rax
cmovae r9, rax
xor r8d, r8d
neg rdx
sbb r8d, r8d
or r8d, r9d
mov r9d, dword [rdi + 0x18]
cmp r9d, 0x3b9aca00
je 0x1400ecb09
mov eax, 0x3e8
mul qword [rdi + 0x10]
mov ecx, r9d
imul r9, rcx, 0x431bde83
shr r9, 0x32
add r9, rax
adc rdx, 0
mov eax, 0xffffffff
cmp r9, rax
cmovae r9, rax
xor ecx, ecx
neg rdx
sbb ecx, ecx
or ecx, r9d
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x4c], r8d
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x54], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x48]
mov rcx, rsi
mov edx, 0x98000004
mov r9d, 0xc
call qword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x1400ecb67
xor eax, eax
jmp 0x1400ecb74
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x140112110
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
test r9, r9
je 0x140112154
mov rdi, r9
mov rbx, r8
mov r15d, 0xffffffff
nop
cmp rdi, r15
mov r14d, 0xffffffff
cmovb r14, rdi
mov rcx, rbx
mov edx, r14d
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x14011215a
add rbx, r14
sub rdi, r14
jne 0x140112130
mov byte [rsi + 0x20], 5
jmp 0x1401121ac
call sub.kernel32.dll_GetLastError
mov edi, eax
movzx eax, byte [0x1402dfa01]
mov ecx, 8
mov edx, 8
call fcn.140019a90
test rax, rax
je 0x1401121bb
shl rdi, 0x20
or rdi, 2
mov qword [rax], rdi
lea rcx, str.couldnt_generate_random_bytes
mov qword [rsi], rcx
mov qword [rsi + 8], 0x1e
mov qword [rsi + 0x10], rax
lea rax, [0x1402b6e60]
mov qword [rsi + 0x18], rax
mov byte [rsi + 0x20], 0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 8
mov edx, 8
call fcn.140219ca0
int3

Function at 0x1401126e0
Capabilities:
Encode data using xor

Disassembly:
movabs rdx, 0x67452301efcdab89
mov rax, qword [rcx]
movabs r10, 0x98badcfe10325476
xor r8d, r8d
xor r9d, r9d
nop dword [rax]
bt rax, r9
mov r11, rdx
cmovae r11, r8
xor r11, r10
rol r11, 1
lea r10d, [r9 + 1]
movzx r10d, r10b
bt rax, r10
mov r10, rdx
cmovae r10, r8
xor r10, r11
rol r10, 1
add r9, 2
cmp r9, 0x40
jne 0x140112700
xor r10, rax
mov qword [rcx], r10
ret
Function at 0x1401128a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x868
mov rdi, rcx
mov rbp, qword [rcx + 8]
call rbp
mov rsi, rax
xor r12d, r12d
lea rbx, [rsp + 0x58]
mov r8d, 0x800
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x858], rsi
mov qword [rsp + 0x860], 0
xor eax, eax
mov qword [rsp + 0x30], rax
xor eax, eax
mov qword [rsp + 0x38], rax
xor r15d, r15d
xor esi, esi
xor eax, eax
mov qword [rsp + 0x28], rax
mov r13, r12
cmp r12, 0x65
mov r12d, 0x64
cmovae r12, r13
inc r12
nop dword [rax]
cmp r13, 0x190
jae 0x1401129ea
call rbp
mov r14, rax
mov rcx, rdi
mov rdx, rbx
mov r8b, 1
call fcn.140112670
mov rcx, rdi
mov rdx, r14
mov r8b, 1
call fcn.140112560
mov rbp, qword [rdi + 8]
call rbp
xor edx, edx
test r14, r14
je 0x140112a5a
test rax, rax
je 0x140112a5a
mov ecx, eax
sub ecx, r14d
je 0x140112a58
inc r13
cmp r12, r13
jne 0x140112920
mov edx, dword [rsp + 0x860]
mov dword [rsp + 0x860], ecx
sub edx, ecx
sete r8b
cmp edx, dword [rsp + 0x864]
sete r9b
or r9b, r8b
movzx r8d, r9b
add qword [rsp + 0x30], r8
cmp r14, rax
sbb r15d, 0xffffffff
imul eax, ecx, 0xc28f5c29
add eax, 0x51eb850
ror eax, 2
cmp eax, 0x28f5c29
adc qword [rsp + 0x38], 0
mov eax, ecx
sub eax, esi
mov r8d, eax
neg r8d
cmovs r8d, eax
mov dword [rsp + 0x864], edx
movsxd rax, r8d
add qword [rsp + 0x28], rax
mov esi, ecx
jmp 0x140112905
movzx eax, byte [rsp + 0x58]
mov byte [rsp + 0x40], al
movzx eax, byte [rsp + 0x40]
mov dl, 2
cmp r15d, 3
jg 0x140112a5a
mov dl, 3
cmp qword [rsp + 0x28], 0x12c
jb 0x140112a5a
mov dl, 1
cmp qword [rsp + 0x38], 0x10e
ja 0x140112a5a
mov dl, 4
cmp qword [rsp + 0x30], 0x10e
ja 0x140112a5a
movabs rcx, 0x6d3a06d3a06d3a07
mov r8, qword [rsp + 0x28]
mov rax, r8
mul rcx
shr rdx, 7
cmp r8, 0x12bf
jbe 0x140112a70
test rdx, rdx
je 0x140112a83
bsr rax, rdx
xor rax, 0x3f
jmp 0x140112a88
mov dl, 1
mov al, 1
add rsp, 0x868
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movaps xmm0, xmmword [0x1402b6ec0]
movaps xmmword [rsp + 0x40], xmm0
movzx edx, byte [rsp + rdx + 0x40]
jmp 0x140112a97
mov eax, 0x40
mov cl, 0x40
sub cl, al
mov dl, 0xbf
sub dl, al
movzx eax, dl
div cl
mov edx, eax
xor eax, eax
jmp 0x140112a5c
Function at 0x140117400
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x2070
call fcn.1402102e0
sub rsp, rax
mov rsi, rcx
test rdx, rdx
je 0x14011742b
mov rdi, qword [rdx]
mov qword [rdx], 0
test rdi, rdi
jne 0x140117504
lea rdi, [rsp + 0x1050]
mov r8d, 0x1020
mov rcx, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rdi
mov edx, 0x800
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x140117538
xorps xmm0, xmm0
movups xmmword [rsp + 0x2060], xmm0
movups xmmword [rsp + 0x2050], xmm0
lea rcx, [rsp + 0x1050]
mov dl, 1
call fcn.140116c80
mov rbx, qword [rsp + 0x1050]
lea rdx, [rsp + 0x1058]
lea rcx, [rsp + 0x38]
mov r8d, 0x1018
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [0x1402dfa01]
mov ecx, 0x1048
mov edx, 8
call fcn.140019a90
test rax, rax
je 0x1401175a2
mov rdi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], rbx
mov rcx, rax
add rcx, 0x20
lea rdx, [rsp + 0x38]
mov r8d, 0x1018
call sub.VCRUNTIME140.dll_memcpy
mov qword [rdi + 0x1038], 0x8000
mov qword [rdi + 0x1040], 0
mov rcx, qword [rsi]
mov qword [rsi], rdi
test rcx, rcx
je 0x14011752a
dec qword [rcx]
jne 0x14011752a
dec qword [rcx + 8]
jne 0x14011752a
mov edx, 0x1048
mov r8d, 8
call fcn.140019aa0
mov rax, rsi
add rsp, 0x2070
pop rbx
pop rdi
pop rsi
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [fcn.140135ee0]
mov qword [rsp + 0x30], rax
lea rax, [0x1402b82e0]
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.C:Usersdreye.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rand_0.4.6_srcos.rscouldnt_generate_random_bytes:
lea rcx, [rsp + 0x38]
call fcn.140219f10
mov ecx, 8
mov edx, 0x1048
call fcn.140219ca0
int3
Function at 0x1401175c0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rdi
mov eax, 0x1088
call fcn.1402102e0
sub rsp, rax
mov rsi, rcx
mov rax, qword [rcx + 0x1028]
cmp rax, qword [rcx + 0x1020]
jb 0x140117645
lea rdi, [rsp + 0x68]
mov r8d, 0x1020
mov rcx, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rdi
mov edx, 0x800
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x140117686
xorps xmm0, xmm0
movups xmmword [rsp + 0x1078], xmm0
movups xmmword [rsp + 0x1068], xmm0
lea rcx, [rsp + 0x68]
mov dl, 1
call fcn.140116c80
mov rdi, qword [rsp + 0x68]
lea rdx, [rsp + 0x70]
lea rcx, [rsi + 8]
mov r8d, 0x1018
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsi], rdi
xor eax, eax
add rax, 8
mov qword [rsi + 0x1028], rax
mov rax, qword [rsi + 0x1000]
test rax, rax
jne 0x14011766b
mov rcx, rsi
call fcn.140117050
mov rax, qword [rsi + 0x1000]
dec rax
mov qword [rsi + 0x1000], rax
movzx eax, al
mov rax, qword [rsi + rax*8]
add rsp, 0x1088
pop rdi
pop rsi
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [fcn.140135ee0]
mov qword [rsp + 0x30], rax
lea rax, [0x1402b82e0]
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.C:Usersdreye.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rand_0.4.6_srcos.rscouldnt_generate_random_bytes:
lea rcx, [rsp + 0x38]
call fcn.140219f10
int3
Function at 0x14011c8e0
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x48]
cmp rax, 6
je 0x14011c96b
cmp eax, 5
je 0x14011c98e
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
lea rdx, [rax - 2]
cmp rdx, 3
mov ecx, 1
cmovb rcx, rdx
test rcx, rcx
je 0x14011c928
cmp rcx, 1
jne 0x14011c946
lea rcx, [rbx + 0x108]
jmp 0x14011c92c
lea rcx, [rbx + 0x50]
mov rdx, rdi
mov r8d, esi
call fcn.140137bd0
test rax, rax
jne 0x14011c96d
mov rax, qword [rbx + 0x48]
cmp rax, 5
je 0x14011c98e
add rax, 0xfffffffffffffffe
cmp rax, 3
mov ecx, 1
cmovb rcx, rax
test rcx, rcx
je 0x14011c975
cmp rcx, 1
jne 0x14011c96b
add rbx, 0x108
jmp 0x14011c979
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
add rbx, 0x50
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x140137c80
lea rcx, str.C:Usersdreye.cargo_registry_srcindex.crates.io_6f17d22bba15001f_bufstream_0.1.4_srclib.rs
call fcn.140219e80
int3
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x140137ce1
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x140137ce1
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x140137ce1
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x140137ce1
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x140137d23
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 0x140137d10
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 0x140123120
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rax
mov rax, rcx
add qword [rcx + 0x30], 8
mov qword [rsp], rdx
mov r10, qword [rcx + 0x40]
test r10, r10
je 0x1401231c7
mov esi, 8
mov r9d, 8
sub r9, r10
cmp r9, 8
cmovb rsi, r9
xor r11d, r11d
xor r8d, r8d
cmp rsi, 4
mov ecx, edx
cmovae r11, rcx
setae r8b
lea rcx, [r8*4 + 1]
shl r8, 2
cmp rcx, rsi
jae 0x14012318e
movzx edx, word [rsp + r8]
lea ecx, [r8*8]
shl rdx, cl
or r11, rdx
or r8, 2
cmp r8, rsi
jae 0x1401231a5
movzx edx, byte [rsp + r8]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r11, rdx
lea ecx, [r10*8]
shl r11, cl
or r11, qword [rax + 0x38]
mov qword [rax + 0x38], r11
cmp r10, 8
jbe 0x1401231cc
add r10, 8
jmp 0x140123306
xor r9d, r9d
jmp 0x140123220
mov r8, qword [rax + 0x18]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, rdx
rol rdx, 0xd
xor r8, r11
xor rdx, rcx
rol rcx, 0x20
mov r10, qword [rax + 8]
add r10, r8
rol r8, 0x10
xor r8, r10
add rcx, r8
rol r8, 0x15
xor r8, rcx
add r10, rdx
rol rdx, 0x11
mov qword [rax + 0x18], r8
xor rdx, r10
rol r10, 0x20
mov qword [rax + 0x10], rdx
mov qword [rax + 8], r10
xor rcx, r11
mov qword [rax], rcx
mov ecx, 8
sub rcx, r9
mov r10d, ecx
and r10d, 7
and rcx, 0xfffffffffffffff8
cmp r9, rcx
jae 0x1401232a2
mov rdx, qword [rax]
mov r8, qword [rax + 8]
mov rsi, qword [rax + 0x18]
mov r11, qword [rax + 0x10]
nop word [rax + rax]
add rdx, r11
rol r11, 0xd
mov rdi, qword [rsp + r9]
xor r11, rdx
rol rdx, 0x20
xor rsi, rdi
add r8, rsi
rol rsi, 0x10
xor rsi, r8
add rdx, rsi
rol rsi, 0x15
add r8, r11
rol r11, 0x11
xor r11, r8
rol r8, 0x20
xor rsi, rdx
xor rdx, rdi
add r9, 8
cmp r9, rcx
jb 0x140123250
mov qword [rax + 0x18], rsi
mov qword [rax + 0x10], r11
mov qword [rax + 8], r8
mov qword [rax], rdx
cmp r10d, 4
jb 0x1401232bf
mov r8d, dword [rsp + r9]
mov edx, 4
mov rcx, rdx
or rcx, 1
cmp rcx, r10
jb 0x1401232d0
jmp 0x1401232ea
xor r8d, r8d
xor edx, edx
mov rcx, rdx
or rcx, 1
cmp rcx, r10
jae 0x1401232ea
lea rcx, [rdx + r9]
movzx r11d, word [rsp + rcx]
lea ecx, [rdx*8]
shl r11, cl
or r8, r11
or rdx, 2
cmp rdx, r10
jae 0x140123302
add r9, rdx
movzx r9d, byte [rsp + r9]
shl edx, 3
mov ecx, edx
shl r9, cl
or r8, r9
mov qword [rax + 0x38], r8
mov qword [rax + 0x40], r10
add rsp, 8
pop rdi
pop rsi
ret