joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c9c40
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp], 0xfffffffffffffffe
mov r14, rdx
mov qword [rbp - 0x30], rcx
add r9, r8
mov qword [rbp - 0x28], r8
mov qword [rbp - 0x20], r9
mov word [rbp - 0x18], 0
mov dword [rbp - 0x10], 1
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x28]
call fcn.1400a1d50
mov dword [rbp - 4], 0x800
mov dword [rbp - 8], 0
movzx eax, byte [0x140320c61]
mov ecx, 0x800
mov edx, 1
call fcn.14000ac50
test rax, rax
je 0x1400c9dc6
mov rbx, rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], 0x800
mov qword [rbp - 0x18], 0
mov rdi, qword [rbp - 0x48]
lea r12, [rbp - 4]
lea r15, [rbp - 8]
mov rsi, qword [rbp - 0x20]
mov r13, qword [rbp - 0x18]
sub rsi, r13
nop word [rax + rax]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbx
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x1400c9d2d
mov r8d, dword [rbp - 4]
cmp rsi, r8
jae 0x1400c9cf0
lea rcx, [rbp - 0x28]
mov rdx, r13
call fcn.140204250
mov rbx, qword [rbp - 0x28]
jmp 0x1400c9cdf
test eax, eax
jne 0x1400c9d4c
mov eax, dword [rbp - 4]
mov qword [rbp - 0x18], rax
mov eax, dword [rbp - 8]
cmp eax, 0xb
jbe 0x1400c9da5
movabs rax, 0xde00000002
jmp 0x1400c9d54
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp - 0x30]
mov qword [rcx], rax
mov byte [rcx + 0x18], 0xc
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x1400c9d76
mov r8d, 1
mov rcx, rbx
call fcn.14000ac60
mov rdx, qword [rbp - 0x40]
test rdx, rdx
je 0x1400c9d90
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.14000ac60
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x30]
mov qword [rdx + 0x10], rcx
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rdx], xmm0
mov byte [rdx + 0x18], al
mov rdx, qword [rbp - 0x40]
test rdx, rdx
jne 0x1400c9d7f
jmp 0x1400c9d90
mov ecx, 1
mov edx, 0x800
call fcn.140207600
ud2
Function at 0x1401176b0
Capabilities:
Get remote cert context via schannel

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov edx, 0x53
call qword [sym.imp.secur32.dll_QueryContextAttributesW]
mov edx, eax
xor eax, eax
test edx, edx
setne cl
jne 0x1401176e4
mov rdx, qword [rsp + 0x20]
mov al, cl
add rsp, 0x28
ret
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret
Function at 0x1401261e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lea rdx, str.keep_aliveclose
mov r8d, 0xa
jmp fcn.140126200

Function at 0x140126200
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, 0x28
mov rsi, r8
mov rdi, rdx
call fcn.1401c5ed0
test rax, rax
je 0x1401263a6
mov rbx, rax
mov r14, rdx
mov qword [rsp + 0x20], rsi
lea r12, [rsi - 1]
xor r15d, r15d
xor r13d, r13d
jmp 0x140126250
mov r15, rsi
test bpl, bpl
je 0x1401263a6
nop word [rax + rax]
cmp r13, r14
ja 0x1401262da
mov r8, r14
sub r8, r13
lea rax, [rbx + r13]
cmp r8, 0x10
jae 0x1401262a0
xor edx, edx
test r8, r8
je 0x140126281
cmp byte [rax + rdx], 0x2c
je 0x1401262cd
inc rdx
cmp r8, rdx
jne 0x140126270
mov rdx, r8
xor eax, eax
cmp rax, 1
je 0x1401262b0
xor ebp, ebp
mov rsi, r15
mov r13, r14
jmp 0x1401262df
mov cl, 0x2c
mov rdx, rax
call fcn.1401fcfb0
cmp rax, 1
jne 0x140126289
lea rax, [rdx + r13]
add r13, rdx
inc r13
cmp rax, r14
jae 0x140126250
cmp byte [rbx + rax], 0x2c
jne 0x140126250
mov bpl, 1
mov rsi, r13
jmp 0x1401262e2
mov eax, 1
cmp rax, 1
je 0x1401262b0
jmp 0x140126289
xor ebp, ebp
mov rsi, r15
mov rax, r14
sub rax, r15
add r15, rbx
mov rcx, r15
mov rdx, rax
call fcn.140125630
mov r15, qword [rsp + 0x20]
cmp rdx, r15
jne 0x14012623b
mov rcx, rax
mov al, 1
test r15, r15
je 0x1401263a8
movzx edx, byte [rcx]
movzx r8d, byte [rdi]
lea r9d, [rdx - 0x41]
cmp r9b, 0x1a
setb r9b
shl r9b, 5
lea r10d, [r8 - 0x41]
cmp r10b, 0x1a
setb r10b
shl r10b, 5
or r9b, dl
or r10b, r8b
cmp r9b, r10b
jne 0x14012623b
xor edx, edx
nop word [rax + rax]
cmp r12, rdx
je 0x1401263a8
movzx r8d, byte [rcx + rdx + 1]
movzx r9d, byte [rdi + rdx + 1]
lea r10d, [r8 - 0x41]
cmp r10b, 0x1a
setb r10b
shl r10b, 5
lea r11d, [r9 - 0x41]
cmp r11b, 0x1a
setb r11b
shl r11b, 5
or r10b, r8b
or r11b, r9b
inc rdx
cmp r10b, r11b
je 0x140126350
cmp rdx, r15
setae al
jae 0x1401263a8
xor bpl, 1
mov r15, rsi
je 0x140126250
jmp 0x1401263a8
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14017fc20
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
movzx eax, dl
mov rcx, qword [rcx]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 4
call sub.ws2_32.dll_setsockopt
test eax, eax
je 0x14017fc61
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret
Function at 0x140183560
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp - 8], 0xfffffffffffffffe
mov r14, qword [rcx]
mov rbx, qword [r14]
test rbx, rbx
je 0x140183782
mov rsi, rdx
mov eax, dword [0x140320e70]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp byte [rax + 0xa8], 0
je 0x1401835b7
lea rax, [rax + 0xa9]
movzx ecx, byte [rax + 1]
cmp byte [rax], 0
jne 0x1401835e1
jmp 0x1401835eb
mov eax, dword [0x140320e70]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0xa8]
xor edx, edx
call fcn.140184d00
movzx ecx, byte [rax + 1]
cmp byte [rax], 0
je 0x1401835eb
test cl, cl
je 0x1401836e5
dec cl
movzx edx, word [rax]
mov byte [rax + 1], cl
mov byte [rbp - 0xa], dl
mov byte [rbp - 9], dh
mov rax, qword [rbx + 0x30]
test al, 2
jne 0x140183702
mov dil, 1
test al, 4
jne 0x14018370e
test al, 1
je 0x140183682
mov rcx, qword [rsi]
mov rax, qword [rcx + 8]
cmp rax, qword [rbx + 0x28]
jne 0x140183658
mov rax, qword [rbx + 0x20]
mov rcx, qword [rcx]
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rcx]
pcmpeqd xmm1, xmm0
pshufd xmm0, xmm1, 0xb1
pand xmm0, xmm1
movmskpd edx, xmm0
cmp edx, 3
jne 0x140183658
mov rdx, qword [rax + 0x10]
cmp rdx, qword [rcx + 0x10]
jne 0x140183658
mov rax, qword [rax + 0x18]
cmp rax, qword [rcx + 0x18]
je 0x1401836b3
mov rax, qword [rbx + 0x30]
nop dword [rax]
mov rcx, rax
and rcx, 0xfffffffffffffffe
lock cmpxchg qword [rbx + 0x30], rcx
jne 0x140183660
test al, 2
jne 0x1401836fc
mov rax, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x28]
call qword [rax + 0x18]
mov rax, qword [rsi]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
call qword [rdx]
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rdx
mov rax, qword [rbx + 0x30]
nop word [rax + rax]
mov rcx, rax
or rcx, 1
lock cmpxchg qword [rbx + 0x30], rcx
jne 0x1401836a0
test al, 2
jne 0x140183702
mov dil, 2
cmp byte [rbp - 0xa], 0
je 0x14018370e
movzx ebx, byte [rbp - 9]
mov eax, dword [0x140320e70]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp byte [rax + 0xa8], 0
je 0x140183721
lea rax, [rax + 0xa9]
jmp 0x140183742
mov rax, qword [rsi]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
call qword [rdx + 0x10]
mov dil, 2
test dil, dil
jne 0x140183713
jmp 0x14018374d
lock or qword [rbx + 0x30], 1
movzx edi, byte [rbx + 0x38]
mov byte [rbx + 0x38], 0
xor dil, 1
test dil, dil
je 0x14018374d
movzx eax, dil
cmp eax, 2
je 0x140183775
mov dil, 1
jmp 0x140183775
mov eax, dword [0x140320e70]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0xa8]
xor edx, edx
call fcn.140184d00
mov byte [rax], 1
mov byte [rax + 1], bl
test dil, dil
jne 0x140183713
mov rax, qword [r14]
test rax, rax
mov qword [rbp - 0x18], r14
je 0x140183768
lock dec qword [rax]
jne 0x140183768
mov rcx, qword [rbp - 0x18]
call fcn.140190c40
mov rax, qword [rbp - 0x18]
mov qword [rax], 0
xor edi, edi
mov eax, edi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.called_after_completeC:Usersuser.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_0.2.25_src_synconeshot.rs
lea r8, [0x1402734e8]
mov edx, 0x15
call fcn.1402055b0
ud2
Function at 0x14018c0b0
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 0x14018c0c0
test al, 1
je 0x14018c0df
test al, 2
jne 0x14018c0f9
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140274618]
mov edx, 0x23
call fcn.1402077f0
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1402745d8]
mov edx, 0x25
call fcn.1402077f0
ud2
Function at 0x140195fe0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov ebx, r8d
mov qword [rbp - 0x18], rdx
mov rsi, rcx
mov dil, 1
test r8b, r8b
je 0x1401960fe
lea rax, [rsi + 0x30]
mov qword [rbp - 0x10], rax
mov rax, qword [rsi + 0x30]
lea rdx, [rax - 3]
cmp rdx, 3
mov ecx, 1
cmovb rcx, rdx
cmp rcx, 1
je 0x14019604d
test rcx, rcx
jne 0x140196083
mov rax, qword [rsi + 0x38]
test rax, rax
je 0x140196083
lock dec qword [rax]
jne 0x140196083
lea rcx, [rsi + 0x38]
call fcn.140190f90
jmp 0x140196083
cmp eax, 2
je 0x140196083
test rax, rax
je 0x140196083
mov rcx, qword [rsi + 0x48]
mov rax, qword [rsi + 0x50]
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x20], rax
call qword [rax]
mov rax, qword [rbp - 0x20]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140196083
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x28]
call fcn.14000ac60
mov rdx, qword [rbp - 0x18]
mov rax, qword [rdx + 0x20]
mov rcx, qword [rbp - 0x10]
mov qword [rcx + 0x20], rax
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmmword [rcx], xmm0
mov rax, qword [rsi]
nop word cs:[rax + rax]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rsi], rdx
jne 0x1401960b0
test al, 1
je 0x140196193
test al, 2
jne 0x1401961b1
test al, 8
jne 0x1401960dd
mov byte [rbp - 1], 0
call fcn.140195350
jmp 0x1401960fc
test al, 0x10
je 0x1401960fc
mov rax, qword [rsi + 0x60]
test rax, rax
je 0x1401961cf
mov rax, qword [rax + 0x10]
mov rcx, qword [rsi + 0x68]
mov byte [rbp - 1], 0
call rax
xor edi, edi
mov edx, ebx
xor dl, 1
mov byte [rbp - 1], dil
mov rcx, rsi
xor r8d, r8d
call fcn.14018c120
cmp rax, 0x3f
ja 0x14019613b
mov dword [rbp - 0x20], edi
mov rcx, rsi
mov qword [rbp - 0x10], rsi
call fcn.140194e10
mov edx, 0x70
mov r8d, 8
mov rcx, qword [rbp - 0x10]
call fcn.14000ac60
test bl, bl
jne 0x140196189
mov rax, qword [rbp - 0x18]
mov rax, qword [rax]
cmp rax, 2
je 0x140196189
test rax, rax
je 0x140196189
mov rax, qword [rbp - 0x18]
mov rcx, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov qword [rbp - 0x10], rcx
mov qword [rbp - 0x18], rax
call qword [rax]
mov rax, qword [rbp - 0x18]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140196189
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop rbp
jmp fcn.14000ac60
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov byte [rbp - 1], 0
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140274618]
mov edx, 0x23
call fcn.1402077f0
jmp 0x1401961eb
mov byte [rbp - 1], 0
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1402745d8]
mov edx, 0x25
call fcn.1402077f0
jmp 0x1401961eb
mov byte [rbp - 1], 0
lea rcx, str.waker_missing
lea r8, str.0S_
mov edx, 0xd
call fcn.1402055b0
ud2
Function at 0x1401a0a40
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
cmp qword [rcx], 0
je 0x1401a0a57
add rcx, 8
add rsp, 0x28
jmp 0x1401a7370
lea rcx, [0x1402743e2]
lea r8, [0x140274478]
mov edx, 0x2b
call fcn.1402077f0
ud2
mov rcx, qword [rcx + 0x20]
jmp 0x1401d7dd0
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 0x1401d7e08
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 0x1401a0a80
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
cmp qword [rcx], 0
je 0x1401a0a97
add rcx, 8
add rsp, 0x28
jmp 0x1401a7380
lea rcx, [0x1402743e2]
lea r8, [0x140274478]
mov edx, 0x2b
call fcn.1402077f0
ud2
mov rcx, qword [rcx + 0x20]
jmp 0x1401aa460
push rsi
sub rsp, 0x30
mov rsi, rdx
call fcn.1401e0510
mov dword [rsp + 0x2c], esi
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rax
mov edx, 0xffff
mov r8d, 0x1002
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1401aa49e
xor eax, eax
add rsp, 0x30
pop rsi
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rsi
ret

Function at 0x1401a0ac0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
cmp qword [rcx], 0
je 0x1401a0ad7
add rcx, 8
add rsp, 0x28
jmp 0x1401a7390
lea rcx, [0x1402743e2]
lea r8, [0x140274478]
mov edx, 0x2b
call fcn.1402077f0
ud2
mov rcx, qword [rcx + 0x20]
jmp 0x1401aa4c0
push rsi
sub rsp, 0x30
mov rsi, rdx
call fcn.1401e0510
mov dword [rsp + 0x2c], esi
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rax
mov edx, 0xffff
mov r8d, 0x1001
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1401aa4fe
xor eax, eax
add rsp, 0x30
pop rsi
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rsi
ret

Function at 0x1401a1e90
Capabilities:
Get system information on windows

Disassembly:
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 0x1401a9f80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rsi, rcx
mov rdi, qword [rsp + 0x90]
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x50], r8
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x40], 0
mov rcx, rdx
call fcn.1401e0510
mov qword [rsp + 0x28], rdi
lea rcx, [rsp + 0x44]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x48]
lea r9, [rsp + 0x40]
mov rcx, rax
mov r8d, 1
call sub.ws2_32.dll_WSARecv
cmp eax, 0xffffffff
je 0x1401aa004
mov eax, dword [rsp + 0x40]
mov qword [rsi], 1
mov qword [rsi + 8], rax
jmp 0x1401aa028
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x3e5
jne 0x1401aa014
xor eax, eax
jmp 0x1401aa025
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 2
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x1401aa040
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rsi, rcx
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
mov rdi, qword [rsp + 0x90]
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x50], r8
mov dword [rsp + 0x44], 0
mov rcx, rdx
call fcn.1401e0510
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x48]
lea r9, [rsp + 0x44]
mov rcx, rax
mov r8d, 1
call sub.ws2_32.dll_WSASend
cmp eax, 0xffffffff
je 0x1401aa0ba
mov eax, dword [rsp + 0x44]
mov qword [rsi], 1
mov qword [rsi + 8], rax
jmp 0x1401aa0de
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x3e5
jne 0x1401aa0ca
xor eax, eax
jmp 0x1401aa0db
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 2
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x58
pop rdi
pop rsi
ret

Function at 0x1401aa140
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
call fcn.1401e0510
mov dword [rsp + 0x20], 0
xor esi, esi
mov rcx, rax
mov edx, 0xffff
mov r8d, 0x7010
xor r9d, r9d
call sub.ws2_32.dll_setsockopt
test eax, eax
je 0x1401aa17d
call sub.kernel32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x1401aa460
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
cmp qword [rcx], 0
je 0x1401a0a97
add rcx, 8
add rsp, 0x28
jmp 0x1401a7380
lea rcx, [0x1402743e2]
lea r8, [0x140274478]
mov edx, 0x2b
call fcn.1402077f0
ud2
mov rcx, qword [rcx + 0x20]
jmp 0x1401aa460
push rsi
sub rsp, 0x30
mov rsi, rdx
call fcn.1401e0510
mov dword [rsp + 0x2c], esi
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rax
mov edx, 0xffff
mov r8d, 0x1002
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1401aa49e
xor eax, eax
add rsp, 0x30
pop rsi
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rsi
ret

Function at 0x1401aa4c0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
cmp qword [rcx], 0
je 0x1401a0ad7
add rcx, 8
add rsp, 0x28
jmp 0x1401a7390
lea rcx, [0x1402743e2]
lea r8, [0x140274478]
mov edx, 0x2b
call fcn.1402077f0
ud2
mov rcx, qword [rcx + 0x20]
jmp 0x1401aa4c0
push rsi
sub rsp, 0x30
mov rsi, rdx
call fcn.1401e0510
mov dword [rsp + 0x2c], esi
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rax
mov edx, 0xffff
mov r8d, 0x1001
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1401aa4fe
xor eax, eax
add rsp, 0x30
pop rsi
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rsi
ret
Function at 0x1401cb470
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test rdx, rdx
je 0x1401cb4e2
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
mov r15, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov r12, qword [sym.imp.advapi32.dll_SystemFunction036]
jmp 0x1401cb4a8
add rdi, rbx
sub rsi, rbx
je 0x1401cb4e2
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
call r15
cmp eax, 0xbfffffff
jbe 0x1401cb4a0
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call r12
test al, al
jne 0x1401cb4a0
add ebp, 0x80000000
jmp 0x1401cb4e4
xor ebp, ebp
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x1401d34f0
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], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x1401d3580
jmp 0x1401d356f
jae 0x1401d3640
cmp r8, 0x201
jae 0x1401d3580
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x1401d35d8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x1401d35af
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140206430
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
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 0x1401d3601
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1401d36a8
mov r8d, r14d
cmp r15, r8
jne 0x1401d3560
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1401d36cb
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1401d356f
jmp 0x1401d3580
cmp rsi, r8
jb 0x1401d36e5
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1401d7f60
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 rdi, rdi
je 0x1401d3691
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.14000ac60
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 rdi, rdi
jne 0x1401d3679
jmp 0x1401d3691
lea rcx, [0x1402b0ba8]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1402077f0
jmp 0x1401d36fa
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140207c60
ud2
Function at 0x1401d7dd0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
cmp qword [rcx], 0
je 0x1401a0a57
add rcx, 8
add rsp, 0x28
jmp 0x1401a7370
lea rcx, [0x1402743e2]
lea r8, [0x140274478]
mov edx, 0x2b
call fcn.1402077f0
ud2
mov rcx, qword [rcx + 0x20]
jmp 0x1401d7dd0
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 0x1401d7e08
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 0x1401d7e20
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 0x1401d7e57
cdqe
jmp 0x1401d7e66
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x1401d7e6e
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1401d7e7f
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 0x1401d7f20
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 0x1401d7f4a
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