joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005245c
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x50
xorps xmm0, xmm0
lea rsi, [rsp + 0x20]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [rsi + 0x20]
add rsp, 0x50
pop rsi
ret

Function at 0x14008a8c9
Capabilities:
Decrypt data via sspi

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rdi, rdx
mov rsi, rcx
lea rbx, [rdx + 0x80]
mov rdx, qword [rdx + 0x98]
lea r8, str.C:Userskalin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov rcx, rbx
call fcn.140088494
xor ecx, ecx
test rax, rax
cmove edx, ecx
xorps xmm0, xmm0
lea rcx, [rsp + 0x28]
movups xmmword [rcx + 0x30], xmm0
mov dword [rcx], edx
mov dword [rcx + 4], 1
mov qword [rcx + 8], rax
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x68]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
lea rcx, [rdi + 0xc0]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x80090318
je 0x14008a9a5
test eax, eax
je 0x14008a9c1
cmp eax, 0x90317
je 0x14008aa33
cmp eax, 0x90321
jne 0x14008aa3b
mov dword [rdi + 0x40], 0x10000
xor ebx, ebx
mov byte [rdi + 0x44], bl
cmp dword [rsp + 0x5c], 5
mov rdx, qword [rdi + 0x98]
mov eax, 0
cmove eax, dword [rsp + 0x58]
sub rdx, rax
mov rcx, rdi
call fcn.140089f27
and qword [rdi + 0xf8], 0
mov byte [rsi + 1], bl
jmp 0x14008aa49
cmp dword [rsp + 0x3c], 4
mov eax, 1
cmove eax, dword [rsp + 0x38]
mov qword [rdi + 0xf8], rax
mov byte [rsi + 1], 0
jmp 0x14008aa37
mov rdx, qword [rsp + 0x40]
sub rdx, qword [rdi + 0x80]
mov r8d, dword [rsp + 0x38]
add r8, rdx
lea r14, [rdi + 0x60]
and qword [rdi + 0x70], 0
mov rcx, rbx
call fcn.140087d88
lea r8, [rdx + rax]
mov rcx, r14
mov rdx, rax
call fcn.1400c33a4
and qword [rdi + 0x78], 0
xor ebx, ebx
cmp dword [rsp + 0x5c], 5
mov rdx, qword [rdi + 0x98]
mov eax, dword [rsp + 0x58]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.140089f27
xor eax, eax
cmp qword [rdi + 0x98], rbx
sete al
mov qword [rdi + 0xf8], rax
mov byte [rsi + 1], 0
jmp 0x14008aa49
mov byte [rsi + 1], 1
xor ebx, ebx
jmp 0x14008aa49
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
mov byte [rsi], bl
mov rax, rsi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14008aa58
Capabilities:
Decrypt data via sspi

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rdi, rdx
mov rsi, rcx
lea rbx, [rdx + 0x180]
mov rdx, qword [rdx + 0x198]
lea r8, str.C:Userskalin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov rcx, rbx
call fcn.140088494
xor ecx, ecx
test rax, rax
cmove edx, ecx
xorps xmm0, xmm0
lea rcx, [rsp + 0x28]
movups xmmword [rcx + 0x30], xmm0
mov dword [rcx], edx
mov dword [rcx + 4], 1
mov qword [rcx + 8], rax
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x68]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
lea rcx, [rdi + 0x1c0]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x80090318
je 0x14008ab3a
test eax, eax
je 0x14008ab56
cmp eax, 0x90317
je 0x14008abd1
cmp eax, 0x90321
jne 0x14008abd9
mov dword [rdi + 0x140], 0x10000
xor ebx, ebx
mov byte [rdi + 0x144], bl
cmp dword [rsp + 0x5c], 5
mov rdx, qword [rdi + 0x198]
mov eax, 0
cmove eax, dword [rsp + 0x58]
sub rdx, rax
mov rcx, rdi
call fcn.140089f87
and qword [rdi + 0x1f8], 0
mov byte [rsi + 1], bl
jmp 0x14008abe7
cmp dword [rsp + 0x3c], 4
mov eax, 1
cmove eax, dword [rsp + 0x38]
mov qword [rdi + 0x1f8], rax
mov byte [rsi + 1], 0
jmp 0x14008abd5
mov rdx, qword [rsp + 0x40]
sub rdx, qword [rdi + 0x180]
mov r8d, dword [rsp + 0x38]
add r8, rdx
lea r14, [rdi + 0x160]
and qword [rdi + 0x170], 0
mov rcx, rbx
call fcn.140087d88
lea r8, [rdx + rax]
mov rcx, r14
mov rdx, rax
call fcn.1400c33a4
and qword [rdi + 0x178], 0
xor ebx, ebx
cmp dword [rsp + 0x5c], 5
mov rdx, qword [rdi + 0x198]
mov eax, dword [rsp + 0x58]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.140089f87
xor eax, eax
cmp qword [rdi + 0x198], rbx
sete al
mov qword [rdi + 0x1f8], rax
mov byte [rsi + 1], 0
jmp 0x14008abe7
mov byte [rsi + 1], 1
xor ebx, ebx
jmp 0x14008abe7
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
mov byte [rsi], bl
mov rax, rsi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14008abf6
Capabilities:
Encrypt data via sspi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov eax, dword [r9 + 8]
cmp rax, r8
jb 0x14008ad73
mov r15, r8
mov r12, rdx
mov rsi, rcx
mov r14d, dword [r9]
mov edx, dword [r9 + 4]
lea rdi, [r14 + r8]
add rdx, rdi
lea rbx, [rcx + 0x1a0]
cmp qword [rcx + 0x1b0], rdx
jae 0x14008ac45
mov rcx, rbx
xor r8d, r8d
call fcn.140002d2c
lea r9, str.C:Userskalin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov rcx, rbx
mov rdx, r14
mov r8, rdi
call fcn.1400884a9
lea rcx, str.C:Userskalin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov r8, r12
mov r9, r15
call fcn.1400a0f94
lea r8, str.C:Userskalin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov rcx, rbx
mov rdx, r14
call fcn.140088494
mov r15, rax
mov r12, rdx
xor ebp, ebp
test rax, rax
cmove r12d, ebp
lea r9, str.C:Userskalin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov rcx, rbx
mov rdx, r14
mov r8, rdi
call fcn.1400884a9
mov r14, rax
mov r13, rdx
test rax, rax
cmove r13d, ebp
lea r8, str.C:Userskalin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov rcx, rbx
mov rdx, rdi
call fcn.140087d4a
test rax, rax
cmove edx, ebp
xorps xmm0, xmm0
lea rcx, [rsp + 0x28]
movups xmmword [rcx + 0x30], xmm0
mov dword [rcx], r12d
mov dword [rcx + 4], 7
mov qword [rcx + 8], r15
mov dword [rcx + 0x10], r13d
mov dword [rcx + 0x14], 1
mov qword [rcx + 0x18], r14
mov dword [rcx + 0x20], edx
mov dword [rcx + 0x24], 6
mov qword [rcx + 0x28], rax
movabs rax, 0x400000000
lea r8, [rsp + 0x68]
mov qword [r8], rax
mov qword [r8 + 8], rcx
lea rcx, [rsi + 0x1c0]
xor edx, edx
xor r9d, r9d
call qword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x14008ad3c
shl rax, 0x20
or rax, 2
jmp 0x14008ad62
mov eax, dword [rsp + 0x38]
add eax, dword [rsp + 0x28]
add eax, dword [rsp + 0x48]
cmp qword [rsi + 0x1b0], rax
jb 0x14008ad58
mov qword [rsi + 0x1b0], rax
and qword [rsi + 0x1b8], 0
xor eax, eax
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.assertion_failed:_buf.len_____sizes.cbMaximumMessage_as_usize
lea r8, str.C:Userskalin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov edx, 0x3e
call fcn.1400cbea0
ud2
Function at 0x14008ad8d
Capabilities:
Encrypt data via sspi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov eax, dword [r9 + 8]
cmp rax, r8
jb 0x14008af0a
mov r15, r8
mov r12, rdx
mov rsi, rcx
mov r14d, dword [r9]
mov edx, dword [r9 + 4]
lea rdi, [r14 + r8]
add rdx, rdi
lea rbx, [rcx + 0xa0]
cmp qword [rcx + 0xb0], rdx
jae 0x14008addc
mov rcx, rbx
xor r8d, r8d
call fcn.140002d2c
lea r9, str.C:Userskalin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov rcx, rbx
mov rdx, r14
mov r8, rdi
call fcn.1400884a9
lea rcx, str.C:Userskalin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov r8, r12
mov r9, r15
call fcn.1400a0f94
lea r8, str.C:Userskalin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov rcx, rbx
mov rdx, r14
call fcn.140088494
mov r15, rax
mov r12, rdx
xor ebp, ebp
test rax, rax
cmove r12d, ebp
lea r9, str.C:Userskalin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov rcx, rbx
mov rdx, r14
mov r8, rdi
call fcn.1400884a9
mov r14, rax
mov r13, rdx
test rax, rax
cmove r13d, ebp
lea r8, str.C:Userskalin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov rcx, rbx
mov rdx, rdi
call fcn.140087d4a
test rax, rax
cmove edx, ebp
xorps xmm0, xmm0
lea rcx, [rsp + 0x28]
movups xmmword [rcx + 0x30], xmm0
mov dword [rcx], r12d
mov dword [rcx + 4], 7
mov qword [rcx + 8], r15
mov dword [rcx + 0x10], r13d
mov dword [rcx + 0x14], 1
mov qword [rcx + 0x18], r14
mov dword [rcx + 0x20], edx
mov dword [rcx + 0x24], 6
mov qword [rcx + 0x28], rax
movabs rax, 0x400000000
lea r8, [rsp + 0x68]
mov qword [r8], rax
mov qword [r8 + 8], rcx
lea rcx, [rsi + 0xc0]
xor edx, edx
xor r9d, r9d
call qword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x14008aed3
shl rax, 0x20
or rax, 2
jmp 0x14008aef9
mov eax, dword [rsp + 0x38]
add eax, dword [rsp + 0x28]
add eax, dword [rsp + 0x48]
cmp qword [rsi + 0xb0], rax
jb 0x14008aeef
mov qword [rsi + 0xb0], rax
and qword [rsi + 0xb8], 0
xor eax, eax
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.assertion_failed:_buf.len_____sizes.cbMaximumMessage_as_usize
lea r8, str.C:Userskalin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov edx, 0x3e
call fcn.1400cbea0
ud2
Function at 0x14009acf0
Capabilities:
Encode data using xor

Disassembly:
test rdx, rdx
je 0x14000de05
cmp rdx, 4
jae 0x14000de08
xor eax, eax
xor r8d, r8d
jmp 0x14000dea0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400d2580]
movdqa xmm3, xmmword [0x1400d2590]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000de30
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000deb7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000dea0
ret
sub rdx, rcx
cmp rdx, 0x20
jb 0x14000ddf0
jmp fcn.14000d7f0
Function at 0x14009ec20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x14009ec7b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14009ec7b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x14009ec96
cmp eax, 0x42
jne 0x14009ec7b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14009ed46
cmp byte [r9 + r11], 0x5f
jne 0x14009ed46
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14009edae
mov rcx, rsi
xor edx, edx
call fcn.14009d950
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.14009d950
test al, al
jne 0x14009ee41
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14009ecd2
lea rdx, [0x14012b084]
mov r8d, 1
call fcn.14000bc10
test al, al
jne 0x14009ee41
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14009ec8a
xor r14d, r14d
lea rbx, [0x14012b468]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14009ed04
cmp byte [rax + rcx], 0x45
je 0x14009ee63
sub r14, 1
jb 0x14009ed29
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14009ed29
mov r8d, 2
mov rdx, rbx
call fcn.14000bc10
test al, al
jne 0x14009ee41
mov rcx, rsi
call fcn.14009e0a0
test al, al
jne 0x14009ee41
mov rax, qword [rsi]
test rax, rax
jne 0x14009ecf0
jmp 0x14009ec8a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x14009ee08
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x14009eda2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14009ed8c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14009ed7b
add dl, 0xa9
jmp 0x14009ed8a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14009ee08
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14009ee08
movzx edx, bl
add rax, rdx
jae 0x14009ed50
jmp 0x14009ee08
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14009ee08
cmp rax, rcx
jae 0x14009ee05
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14009ee5b
cmp qword [rsi + 0x20], 0
je 0x14009ee54
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.14009ec20
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14009ec8c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14009ee49
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x14012b428]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.14000bc10
test al, al
je 0x14009ee49
mov dil, 2
jmp 0x14009ec8a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14009ec8a
mov dil, 1
xor r8d, r8d
jmp 0x14009ee0a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14009ec8a
Function at 0x1400a1871
Capabilities:
Get client handle via schannel
Get inbound credentials handle via credssp
Get outbound credentials handle via credssp

Disassembly:
push rsi
push rdi
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rsi, rcx
mov byte [rsp + 0x4f], dl
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0xa8], xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x78], xmm0
mov dword [rsp + 0x68], 4
mov dword [rsp + 0xb0], 0x400010
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x1400a18dc
mov ecx, dword [rsi + 0x28]
mov dword [rsp + 0x90], ecx
mov qword [rsp + 0x98], rax
mov rax, qword [rsi + 0x30]
test rax, rax
je 0x1400a1912
mov rdx, qword [rsi + 0x40]
add rdx, rax
lea rcx, [rsp + 0xb8]
mov qword [rcx], rax
mov qword [rcx + 8], rdx
lea rax, [rsp + 0x4f]
mov qword [rcx + 0x10], rax
xor edx, edx
call fcn.1400a0a9b
mov dword [rsp + 0xa0], eax
mov rdx, qword [rsi]
mov rax, qword [rsi + 0x10]
lea r8, [rdx + rax*8]
lea rsi, [rsp + 0xb8]
mov rcx, rsi
call fcn.1400a0d58
mov eax, dword [rsi + 0x10]
lea rcx, [rsp + 0x68]
mov dword [rcx + 4], eax
mov rax, qword [rsi]
cmp byte [rsp + 0x4f], 1
mov qword [rcx + 8], rax
mov r8d, 2
sbb r8d, 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rcx
and qword [rsp + 0x40], 0
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.secur32.dll_AcquireCredentialsHandleA]
test eax, eax
je 0x1400a1992
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov edi, 1
jmp 0x1400a19b6
movaps xmm6, xmmword [rsp + 0x50]
mov ecx, 0x20
call fcn.140002d5a
mov rsi, rax
mov eax, 1
mov qword [rsi], rax
mov qword [rsi + 8], rax
movups xmmword [rsi + 0x10], xmm6
xor edi, edi
lea rcx, [rsp + 0xb8]
call fcn.14005078c
mov rax, rdi
mov rdx, rsi
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rdi
pop rsi
ret

Function at 0x1400a207c
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 0x1400a209d
add rsp, 0x28
jmp fcn.14004f58f
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400a20a4
Capabilities:
Set socket configuration

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

Function at 0x1400a20ba
Capabilities:
Set socket configuration

Disassembly:
mov rcx, qword [rcx]
movzx r9d, dl
mov edx, 0xffff
mov r8d, 4
jmp 0x1400a20e7
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 0x1400a210d
xor eax, eax
jmp 0x1400a2112
call fcn.14004f58f
nop
add rsp, 0x38
ret

Function at 0x1400a20d1
Capabilities:
Set socket configuration

Disassembly:
mov r9, rdx
mov rcx, qword [rcx]
mov edx, 0xffff
mov r8d, 0x1001
jmp 0x1400a20e7
Function at 0x1400a20e7
Capabilities:
Set socket configuration

Disassembly:
mov rcx, qword [rcx]
movzx r9d, dl
mov edx, 0xffff
mov r8d, 4
jmp 0x1400a20e7
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 0x1400a210d
xor eax, eax
jmp 0x1400a2112
call fcn.14004f58f
nop
add rsp, 0x38
ret

Function at 0x1400a253f
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 sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x1400a2564
xor eax, eax
jmp 0x1400a2569
call fcn.14004f58f
nop
add rsp, 0x28
ret

Function at 0x1400a256f
Capabilities:
Set socket configuration

Disassembly:
mov rcx, qword [rcx]
movzx r9d, dl
mov edx, 0xffff
mov r8d, 8
jmp 0x1400a2693
sub rsp, 0x38
lea rax, [rsp + 0x34]
mov dword [rax], r9d
mov dword [rsp + 0x20], 4
mov r9, rax
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400a26b8
xor eax, eax
jmp 0x1400a26bd
call fcn.14004f58f
nop
add rsp, 0x38
ret

Function at 0x1400a2693
Capabilities:
Set socket configuration

Disassembly:
mov rcx, qword [rcx]
movzx r9d, dl
mov edx, 0xffff
mov r8d, 8
jmp 0x1400a2693
sub rsp, 0x38
lea rax, [rsp + 0x34]
mov dword [rax], r9d
mov dword [rsp + 0x20], 4
mov r9, rax
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400a26b8
xor eax, eax
jmp 0x1400a26bd
call fcn.14004f58f
nop
add rsp, 0x38
ret
Function at 0x1400a5270
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 r14d, r14d
cmp r8, 0x201
jae 0x1400a5300
jmp 0x1400a52ef
jae 0x1400a53bf
cmp r8, 0x201
jae 0x1400a5300
mov r15d, 0x200
lea r12, [rbp - 0x58]
mov r13, r8
jmp 0x1400a5358
sub r8, r14
sub rbx, r14
cmp rbx, r8
jae 0x1400a532f
lea rcx, [rbp + 0x3c8]
mov rdx, r14
call fcn.1400cf500
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r14d, 0xffffffff
cmovb r14, rdi
mov qword [rbp + 0x3d8], r14
mov rbx, rdi
mov r15, r14
mov r12, qword [rbp + 0x3e8]
mov r13, r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r13d
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x1400a5380
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400a5425
mov r8d, esi
cmp r13, r8
jne 0x1400a52e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400a5448
add r13, r13
mov eax, 0xffffffff
cmp r13, rax
cmovae r13, rax
mov r8, r13
cmp r8, 0x201
jb 0x1400a52ef
jmp 0x1400a5300
cmp r15, r8
jb 0x1400a5462
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.1400a8db0
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 0x1400a540e
mov rcx, qword [0x140162918]
xor edx, edx
mov r8, qword [rbp + 0x3e8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
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 0x1400a53f8
jmp 0x1400a540e
lea rcx, str.internal_error:_entered_unreachable_code_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400cbea0
jmp 0x1400a5477
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.1400cc2f0
ud2
Function at 0x1400a8b80
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 0x1400a8bb5
xor eax, eax
jmp 0x1400a8bc3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
push rbx
sub rsp, 0x20
mov ebx, edx
call fcn.1400b909e
mov rcx, rax
mov edx, ebx
add rsp, 0x20
pop rbx
jmp 0x1400a8b80

Function at 0x1400a8bd0
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 0x1400a8c07
cdqe
jmp 0x1400a8c16
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x1400a8c1e
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400a8c2f
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 0x1400a8c40
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 0x1400a8c7d
invalid
cdqe
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20

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

Disassembly:
push rsi
sub rsp, 0x40
in al, dx
mov rax, r8

Function at 0x1400a9650
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rax, rdx
movzx r11d, byte [rdx + 0x38]
cmp r11b, 1
ja 0x1400a96b9
movzx r9d, byte [rax + 0x10]
movzx r8d, byte [rax + 0x3a]
xor edx, edx
test r8b, r8b
jne 0x1400a9808
cmp r9b, 5
jb 0x1400a9808
xor r10d, r10d
mov rsi, qword [rax]
mov rdx, qword [rax + 8]
test r11b, r11b
jne 0x1400a96a9
cmp r9b, 6
je 0x1400a96a9
mov r10d, 2
cmp rdx, 2
jb 0x1400a98b0
cmp r10, rdx
jne 0x1400a97c8
xor edx, edx
jmp 0x1400a9808
xor edx, edx
xor r8d, r8d
xor r10d, r10d
add rdx, rsi
lea rdi, [rsi + r10]
cmp al, 0x16
lea r8, str.library_std_srcpath.rs
mov ecx, 2
call fcn.1400cc280
ud2