joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140052015
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp dword [rcx], 2
jne 0x140052027
add rcx, 8
jmp fcn.1400adaca
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, r8
mov rsi, rcx
mov qword [rcx + 0x38], rdx
mov rcx, r8
call fcn.1400521b9
mov rbx, rax
mov r14, rdx
lea r15, [rsp + 0x28]
mov rcx, rsi
call fcn.140052290
test rdx, rdx
jne 0x1400520ca
mov rcx, r15
mov rdx, rsi
call fcn.140050ba7
mov eax, dword [rsp + 0x28]
cmp eax, 2
je 0x140052159
test eax, eax
je 0x1400520ca
cmp qword [rsi + 0xf8], 0
je 0x1400520ad
mov rcx, r15
mov rdx, rsi
call fcn.140051819
cmp qword [rsp + 0x28], 0
jne 0x140052159
cmp qword [rsp + 0x30], 0
je 0x1400520ca
and qword [rsi + 0xf8], 0
mov rcx, r15
mov rdx, rsi
call fcn.140051a3c
cmp byte [rsp + 0x28], 0
jne 0x140052159
cmp byte [rsp + 0x29], 0
je 0x140052053
mov rcx, rsi
call fcn.140052290
mov r15, rdx
test rax, rax
je 0x14005215e
mov r13, rax
cmp r14, r15
mov r12, r15
cmovb r12, r14
lea r9, str.C:Usersmdool.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov rcx, r12
mov rdx, rbx
mov r8, r14
call fcn.140050874
mov rbx, rax
mov r14, rdx
lea r9, str.C:Usersmdool.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov rcx, r13
mov rdx, r15
mov r8, r12
call fcn.140030b4f
mov r9, rdx
lea rcx, str.C:Usersmdool.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov qword [rsp + 0x20], rcx
mov rcx, rbx
mov rdx, r14
mov r8, rax
call fcn.140034a28
mov rax, qword [rsi + 0x78]
add rax, r12
cmp rax, qword [rsi + 0x70]
ja 0x14005219f
mov qword [rsi + 0x78], rax
mov rcx, rdi
mov rdx, r12
call fcn.140052226
xor r15d, r15d
jmp 0x140052185
mov r15, qword [rsp + 0x30]
mov qword [rsp + 0x28], r15
mov rcx, r15
call fcn.14004fb68
cmp al, 0xd
jne 0x140052185
and qword [rsi + 0x38], 0
lea rcx, [rsp + 0x28]
call fcn.14003ef26
mov eax, 1
jmp 0x14005218c
and qword [rsi + 0x38], 0
xor eax, eax
mov rdx, r15
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.assertion_failed:_pos___self.dec_in.get_ref__.len___as_u64
lea r8, str.C:Usersmdool.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rs
mov edx, 0x3b
call fcn.1400bd250
ud2
Function at 0x140080173
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rax, r8
mov r14, rdx
mov rsi, rcx
lea rdi, [rsp + 0x50]
mov r8d, 0xb
mov rcx, rdi
mov rdx, rax
call fcn.1400802a1
lea r13, [rsp + 0x30]
mov dword [r13], 0x800
lea r15, [rsp + 0x34]
and dword [r15], 0
mov ecx, 0x800
call fcn.1400891f1
mov rbx, rax
lea r12, [rsp + 0x38]
mov qword [r12], rax
mov qword [r12 + 8], rdx
and qword [r12 + 0x10], 0
mov rdi, qword [rdi]
mov rbp, qword [sym.imp.advapi32.dll_RegQueryValueExW]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rbx
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call rbp
cmp eax, 0xea
jne 0x140080215
mov edx, dword [rsp + 0x30]
mov rcx, r12
call fcn.140007b86
mov rbx, qword [rsp + 0x38]
jmp 0x1400801e3
test eax, eax
jne 0x140080237
mov eax, dword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x34]
cmp eax, 0xb
jbe 0x140080255
movabs rax, 0xde00000002
jmp 0x14008023f
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov byte [rsi + 0x18], 0xc
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.140008c25
jmp 0x140080269
mov rcx, qword [rsp + 0x48]
mov qword [rsi + 0x10], rcx
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rsi], xmm0
mov byte [rsi + 0x18], al
mov rdx, qword [rsp + 0x58]
mov rcx, rdi
call fcn.1400b7ac3
nop
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140085b70
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 0x140085bcb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x140085bcb
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140085be6
cmp eax, 0x42
jne 0x140085bcb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140085c96
cmp byte [r9 + r11], 0x5f
jne 0x140085c96
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x140085cfe
mov rcx, rsi
xor edx, edx
call fcn.140081280
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.140081280
test al, al
jne 0x140085d91
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140085c22
lea rdx, [0x1400fb0cb]
mov r8d, 1
call fcn.14000a610
test al, al
jne 0x140085d91
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140085bda
xor r14d, r14d
lea rbx, [0x1400fb480]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140085c54
cmp byte [rax + rcx], 0x45
je 0x140085db3
sub r14, 1
jb 0x140085c79
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140085c79
mov r8d, 2
mov rdx, rbx
call fcn.14000a610
test al, al
jne 0x140085d91
mov rcx, rsi
call fcn.140082b50
test al, al
jne 0x140085d91
mov rax, qword [rsi]
test rax, rax
jne 0x140085c40
jmp 0x140085bda
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x140085d58
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140085cf2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x140085cdc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x140085ccb
add dl, 0xa9
jmp 0x140085cda
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140085d58
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140085d58
movzx edx, bl
add rax, rdx
jae 0x140085ca0
jmp 0x140085d58
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140085d58
cmp rax, rcx
jae 0x140085d55
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x140085dab
cmp qword [rsi + 0x20], 0
je 0x140085da4
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.140085b70
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140085bdc
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140085d99
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x1400fb440]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.14000a610
test al, al
je 0x140085d99
mov dil, 2
jmp 0x140085bda
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x140085bda
mov dil, 1
xor r8d, r8d
jmp 0x140085d5a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140085bda
Function at 0x14008840b
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
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 0x14008846e
mov edx, dword [rcx + 0x28]
mov dword [rsp + 0x90], edx
mov qword [rsp + 0x98], rax
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x1400884ab
mov rdx, qword [rcx + 0x40]
test rdx, rdx
je 0x1400884a0
xor r9d, r9d
lea r10, [0x1401286f0]
xor r8d, r8d
movzx r11d, byte [rax + r9]
or r8d, dword [r10 + r11*4]
inc r9
cmp rdx, r9
jne 0x14008848d
jmp 0x1400884a3
xor r8d, r8d
mov dword [rsp + 0xa0], r8d
mov r15, qword [rcx + 0x10]
lea rsi, [r15*8]
test r15, r15
je 0x140088505
xor ebx, ebx
mov rax, r15
shr rax, 0x3c
sete al
jne 0x1400885c7
mov r14, qword [rcx]
mov bl, al
shl rbx, 3
mov rcx, rbx
mov rdx, rsi
call fcn.140007c46
test rax, rax
je 0x1400885ce
mov rdi, rax
xor eax, eax
mov rcx, qword [r14 + rax*8]
mov qword [rdi + rax*8], rcx
inc rax
cmp r15, rax
jne 0x1400884f0
mov eax, r15d
jmp 0x14008850c
xor eax, eax
mov edi, 8
lea rcx, [rsp + 0x68]
mov dword [rcx + 4], eax
mov qword [rcx + 8], rdi
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
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.secur32.dll_AcquireCredentialsHandleA]
test eax, eax
je 0x140088563
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov r14d, 1
jmp 0x14008859b
mov r14, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov ecx, 8
mov edx, 0x20
call fcn.140007c46
test rax, rax
je 0x1400885d6
mov rbx, rax
mov eax, 1
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r12
xor r14d, r14d
test r15, r15
je 0x1400885b0
mov edx, 8
mov rcx, rdi
mov r8, rsi
call fcn.1400017b6
mov rax, r14
mov rdx, rbx
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.140006a30
ud2
mov rcx, rbx
mov rdx, rsi
jmp 0x1400885e0
mov ecx, 8
mov edx, 0x20
call fcn.1400bcda0
ud2

Function at 0x140088c04
Capabilities:
Get remote cert context via schannel

Disassembly:
sub rsp, 0x28
lea r8, [rsp + 0x20]
and qword [r8], 0
mov edx, 0x53
call qword [sym.imp.secur32.dll_QueryContextAttributesW]
mov edx, eax
xor eax, eax
test edx, edx
setne cl
jne 0x140088c2e
mov rdx, qword [rsp + 0x20]
jmp 0x140088c36
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret
Function at 0x1400899a4
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov eax, edx
lea r9, [rsp + 0x34]
mov dword [r9], r8d
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, eax
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400899d0
xor eax, eax
jmp 0x1400899d5
call fcn.140034f74
nop
add rsp, 0x38
ret

Function at 0x14008beb0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1400fe078]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14008bf23
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14008bf5a
test eax, eax
js 0x14008bf34
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14008bf4d
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 byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x1400fe0e0]
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.140089f40
mov rcx, rax
call fcn.14008a080
mov ecx, 7
int 0x29
ud2
Function at 0x14008f420
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x14008f450
test ecx, ecx
jne 0x14008f4a0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x14008f45c
test ecx, ecx
jne 0x14008f4a0
mov rcx, rdi
call fcn.14008f300
movzx eax, al
test bpl, bpl
jne 0x14008f4a7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x14008f493.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x14008f618]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x14008f493.2
xor eax, eax
test bpl, bpl
je 0x14008f46c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x14008f5f9
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14008f4da
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x14008f559
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x14008f520
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x14008f53b
inc rax
dec rdi
cmp rax, 1
jne 0x14008f500
jmp 0x14008f559
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14008f53b
cmp ebx, 0x5c
je 0x14008f53b
inc rax
dec rdi
cmp rax, 1
jne 0x14008f520
jmp 0x14008f559
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x14008f607
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x14008f583
mov al, 9
cmp rdx, 2
je 0x14008f587
cmp rdx, 1
jne 0x14008f597
cmp byte [r8], 0x2e
jne 0x14008f597
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x14008f597
mov al, 0xa
jmp 0x14008f597
cmp byte [r8], 0x2e
jne 0x14008f597
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x14008f493.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x14008f493.2
mov ecx, 2
jmp case.0x14008f493.2
lea r8, str.library_std_srcpath.rs
call fcn.1400bd150
ud2
lea r8, str.library_std_srcpath.rs
call fcn.1400bd150
ud2
Function at 0x140093c80
Capabilities:
Create directory

Disassembly:
test cl, cl
je 0x140093c8f
mov rcx, rdx
mov rdx, r8
jmp fcn.140093d50
mov rcx, rdx
mov rdx, r8
jmp fcn.140093ca0

Function at 0x140093ca0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.14008cae0
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x140093d45
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.140092840
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x140093d45
mov rcx, rdi
xor edx, edx
call qword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x140093d20
test rsi, rsi
je 0x140093d1c
mov edx, 2
mov rcx, rdi
call fcn.140006780
xor esi, esi
jmp 0x140093d45
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x140093d42
mov edx, 2
mov rcx, rdi
call fcn.140006780
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x14009eaf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.14008cae0
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x14009eb66
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.14009eca0
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x14009eb74
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14009eb94
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x14009eb85
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
call fcn.14008ccd0
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
ret
mov qword [rsi], 0
movq rax, xmm6
test rax, rax
je 0x14009eb85
mov edx, 2
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp fcn.140006780
Function at 0x1400a0910
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 [0x140131ee8]
mov ecx, 0x10
mov edx, 8
call fcn.1400066f0
test rax, rax
je 0x1400a09e7
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400a0dc0]
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 0x1400a09d9
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]
cmp qword [rax + 8], 0
je 0x1400a09b6
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.140006780
mov edx, 8
mov rcx, qword [rbp - 0x18]
call fcn.140006780
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], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.1400bcda0
ud2
Function at 0x1400a1250
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.1400bbfa0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov r14, rcx
lea rsi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xfe8], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r15, [rbp + 0xfe8]
mov qword [rbp + 0xfc8], r15
lea r12, [0x140097e70]
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0xfb0]
mov rcx, r14
mov rdx, rsi
mov r8d, 0x1000
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x1400a143e
mov r13, qword [sym.imp.kernel32.dll_SleepEx]
lea rsi, [rbp + 0xfb0]
mov rdi, qword [sym.imp.kernel32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], r14
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfe8], 0
je 0x1400a1317
cmp dword [rbp + 0xfec], 0
jne 0x1400a1453
mov ebx, dword [rbp + 0xff0]
test rbx, rbx
je 0x1400a1453
cmp ebx, 0x1000
ja 0x1400a1497
xor r14d, r14d
nop dword [rax + rax]
cmp r14, rbx
ja 0x1400a1483
lea rdx, [r14 + rbp]
add rdx, 0xffffffffffffffb0
mov r8d, ebx
sub r8d, r14d
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov rcx, qword [rbp + 0xfd8]
mov r9, rsi
call rdi
test eax, eax
je 0x1400a1446
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfe8], 0
je 0x1400a13c0
cmp dword [rbp + 0xfec], 0
jne 0x1400a144c
mov eax, dword [rbp + 0xff0]
add r14, rax
cmp r14, rbx
jne 0x1400a1360
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov r14, qword [rbp + 0xfe0]
mov rcx, r14
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rsi
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x1400a1317
call qword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1400a1453
call qword [sym.imp.kernel32.dll_GetLastError]
mov r14, qword [rbp + 0xfe0]
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, r14
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r14
mov rdx, rbx
call fcn.1400bd460
jmp 0x1400a14ab
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, rbx
call fcn.1400bd1d0
ud2
Function at 0x1400a1530
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 0x1400a1573
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.140090890]
mov qword [rbp - 0x28], rax
lea rax, [0x1400fe558]
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_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.1400bd090
ud2

Function at 0x1400a6fc0
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 0x1400a6ff5
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400a6ffa
call fcn.1400a1530
nop
add rsp, 0x38
ret

Function at 0x1400ad10b
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 0x1400ad112
test al, 1
je 0x1400ad131
test al, 2
jne 0x1400ad146
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140101fb0]
mov edx, 0x23
jmp 0x1400ad159
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140101f70]
mov edx, 0x25
call fcn.1400bd250
ud2

Function at 0x1400ada7b
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.1400ac83d
mov rcx, qword [rax]
movzx eax, bl
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400adab6
xor eax, eax
jmp 0x1400adac4
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x1400add21
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0xc0]
lea rbp, [rsp + 0x3a]
lea r13, [rsp + 0x52]
lea r15, [rdx + 0x18]
xor ecx, ecx
cmp qword [rdx + 0x18], 0xffffffffffffffff
cmove r15, rcx
mov r12d, 0x7fffffff
cmp rax, r12
cmovb r12, rax
lea rsi, [rsp + 0x30]
mov qword [rsp + 0x40], r15
mov rdx, qword [r14 + 0x10]
mov rcx, rsi
mov r8, rbx
call fcn.1400ada73
mov al, byte [rsp + 0x39]
cmp al, 3
je 0x1400ade92
mov rcx, qword [rsp + 0x30]
cmp al, 2
je 0x1400adea0
mov dl, byte [rsp + 0x38]
movzx r8d, word [rbp + 4]
mov word [r13 + 4], r8w
mov r8d, dword [rbp]
mov dword [r13], r8d
mov qword [rsp + 0x48], rcx
mov byte [rsp + 0x50], dl
mov byte [rsp + 0x51], al
mov rcx, r15
lea rdx, str.C:Usersmdool.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.32.0_srciopoll_evented.rs
call fcn.140027d81
mov rcx, qword [r15]
mov rdx, rdi
mov r8d, r12d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x1400adeb2
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.14001746c
cmp al, 0xd
jne 0x1400ade62
mov rax, qword [r15 + 8]
test rax, rax
je 0x1400ade62
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x1400adee4
mov r15, r14
mov r14, rbx
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.140035820
mov rbx, rax
xor ecx, ecx
call fcn.140089407
test rbx, rbx
je 0x1400ade57
mov ecx, 1
mov rdx, rsi
call fcn.140035948
mov rsi, rbx
mov rbx, r14
mov r14, r15
mov r15, qword [rsp + 0x40]
mov rcx, rsi
call fcn.14004fb68
cmp al, 0xd
jne 0x1400adec3
mov qword [rsp + 0x30], rsi
mov rcx, r14
lea rdx, [rsp + 0x48]
call fcn.1400ad837
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.1400a7f8d
jmp 0x1400add77
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x1400aded3
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rcx
jmp 0x1400aded3
cdqe
mov rcx, qword [rsp + 0x28]
and qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x1400aded3
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2