joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cd0d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0xa0
mov rbx, rdx
mov rbp, rcx
lea rdx, [0x14011d060]
mov ecx, 0xb0
mov rdi, r9
mov r14d, r8d
call fcn.1400d3ef0
mov rsi, rax
test rax, rax
je 0x1400cd2c1
lea rcx, [rax + 1]
xor edx, edx
mov r8d, 0xaf
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsi + 8]
mov byte [rsi], 1
mov edx, 2
call sub.MSVCP140.dll__Mtx_init_in_situ
lea rcx, [rsi + 0x58]
call sub.MSVCP140.dll__Cnd_init_in_situ
mov qword [0x140169458], rsi
xorps xmm0, xmm0
movups xmmword [rsi + 0xa0], xmm0
test r14d, r14d
je 0x1400cd178
test rdi, rdi
je 0x1400cd16e
cmp byte [rdi], 0
je 0x1400cd16e
mov rdx, rdi
mov rcx, rbp
call fcn.1400cd860
jmp 0x1400cd178
xor edx, edx
mov rcx, rbp
call fcn.1400cd7c0
call sub.KERNEL32.dll_GetCurrentProcessId
lea rcx, [0x140143ec0]
mov dword [0x140165248], eax
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x1400cd2f7
test rbx, rbx
je 0x1400cd1b7
movups xmm0, xmmword [rbx]
movups xmmword [0x140164fd0], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x140164fe0], xmm1
movups xmm0, xmmword [rbx + 0x20]
jmp 0x1400cd1d7
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [0x140164fd0], xmm0
movups xmmword [0x140164fe0], xmm0
movups xmmword [0x140164ff0], xmm0
lea rcx, [0x140143ec0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [0x140165000], xmm0
movups xmmword [0x140165010], xmm0
movups xmmword [0x140165020], xmm0
call sub.MSVCP140.dll__Mtx_unlock
cmp qword [0x140144f78], 0
jne 0x1400cd2ca
mov rcx, rbp
call fcn.1400d26e0
mov qword [0x140144f78], rax
lea rcx, [0x1400cb8a0]
mov qword [rax + 0x10], rcx
lea rcx, [0x1400cb8b0]
mov rax, qword [0x140144f78]
mov qword [rax + 0x18], rcx
mov eax, 1
mov rdi, qword [0x140169458]
mov ecx, 8
xchg byte [rdi], al
call fcn.1400d341c
xor ebx, ebx
test rax, rax
je 0x1400cd275
mov qword [rax], rdi
jmp 0x1400cd278
mov rax, rbx
lea rcx, [rsp + 0x38]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x1400cb900]
xor ecx, ecx
mov dword [rsp + 0x20], ebx
xor edx, edx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400cd2e8
cmp dword [rdi + 0xa8], ebx
jne 0x1400cd2ba
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rdi + 0xa0], xmm1
jmp 0x1400cd2ca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
xor ebx, ebx
mov qword [0x140169458], rbx
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov ecx, 6
mov dword [rsp + 0x38], ebx
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov ecx, eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
int3
Function at 0x1400cd860
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0xae0
mov rax, qword [0x14013bf80]
xor rax, rsp
mov qword [rsp + 0xad0], rax
mov rbx, rdx
mov dword [rsp + 0x28], 0x20
lea rax, [rsp + 0x80]
mov r8, rcx
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 0x20
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareValveSteam
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400cd913
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Error_opening_Steam_key_n
jmp 0x1400cd9da
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.SteamExe
lea rax, [rsp + 0xc0]
mov dword [rsp + 0x30], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400cd9c8
mov ecx, dword [rsp + 0x30]
cmp ecx, 1
jb 0x1400cd9c8
shr ecx, 1
je 0x1400cd986
lea rax, [rsp + 0xc0]
lea edx, [rbx + 0x5c]
cmp word [rax], 0x2f
jne 0x1400cd97c
mov word [rax], dx
add rax, 2
sub rcx, 1
jne 0x1400cd973
lea rax, [rsp + 0x40]
mov edx, 0x800
lea r9, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r8, str.__s__steam:__rungameid__s
lea rcx, [rsp + 0x2d0]
call fcn.1400cd6f0
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x80]
call fcn.1400cd390
jmp 0x1400cd9e2
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Error_reading_SteamExe_key_n
mov rcx, rax
call fcn.1400cda00
mov rcx, qword [rsp + 0xad0]
xor rcx, rsp
call fcn.1400d3570
add rsp, 0xae0
pop rbx
ret
Function at 0x1400cdaa0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14013bf80]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov eax, dword [0x14011c0d0]
xor edi, edi
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov dword [rsp + 0x68], eax
mov rbx, rcx
movzx eax, word [0x14011c0d4]
lea rcx, [rsp + 0x40]
movups xmm1, xmmword [0x14011c0b8]
mov word [rsp + 0x6c], ax
mov eax, gethostbyname
movups xmmword [rsp + 0x40], xmm0
xor r9d, r9d
mov qword [rsp + 0x30], rdi
movsd xmm0, qword [0x14011c0c8]
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov edx, 0xc0000000
movsd qword [rsp + 0x60], xmm0
mov word [rsp + 0x6a], ax
movups xmmword [rsp + 0x50], xmm1
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x1400cdba4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400cdb58
movzx eax, word [rsp + 0x6a]
cmp ax, 0x39
jae 0x1400cdbc7
inc ax
mov word [rsp + 0x6a], ax
jmp 0x1400cdb73
cmp eax, 0xe7
jne 0x1400cdbc7
mov edx, 0x2710
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x1400cdbc7
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], edi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1400cdb38
mov byte [rbx], 1
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400d3570
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
xor al, al
jmp 0x1400cdba9

Function at 0x1400cdbd0
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
je 0x1400cdc91
test rcx, rcx
je 0x1400cdc91
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400cdc91
xor ebp, ebp
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rbp
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
mov dword [rsp + 0x58], ebp
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1400cdc7c
mov eax, dword [rsp + 0x58]
cmp rax, rdi
jb 0x1400cdc91
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x68]
mov r8d, edi
mov dword [rsp + 0x68], ebp
mov rdx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x1400cdc65
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbx
call fcn.1400cda50
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
mov byte [rbx], bpl
mov rbx, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400cdca0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, r8
test r8, r8
jne 0x1400cdcb6
mov al, 1
add rsp, 0x30
pop rbx
ret
test rcx, rcx
je 0x1400cdceb
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400cdceb
test rdx, rdx
je 0x1400cdceb
xor eax, eax
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x1400cdceb
cmp dword [rsp + 0x50], ebx
je 0x1400cdcae
xor al, al
add rsp, 0x30
pop rbx
ret

Function at 0x1400d4234
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d427e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400d427e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400d427e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400d427e
cmp dword [rcx + 0x84], 0xe
jbe 0x1400d427e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400d4280
xor al, al
add rsp, 0x28
ret
Function at 0x14001c5bc
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call fcn.14014b300
mov rcx, rax
add rsp, 0x28
jmp 0x140140f10
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.14014a4e0
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x140140f75
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov r8b, 1
call fcn.14014bde0
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rdi, rbx
jne 0x140140f80
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
call qword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
je 0x140140faa
test rdi, rdi
je 0x140140fd6
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.14001cd60
xor eax, eax
jmp 0x140140f78
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x140140f78
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.14001cd60
jmp 0x140140f75
xor eax, eax
jmp 0x140140f78

Function at 0x14001ce46
Capabilities:
Get hostname

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rcx
lea rdi, [rbp - 0xc]
and dword [rdi], 0
push 5
pop rcx
xor edx, edx
mov r8, rdi
call sub.kernel32.dll_GetComputerNameExW
mov edx, dword [rdi]
lea rdi, [rbp - 0x48]
mov rcx, rdi
xor r8d, r8d
call fcn.14001cd98
cmp qword [rdi], 0
jne 0x14001cf07
mov rax, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x38]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rdi
and qword [rbp - 0x18], 0
push 5
pop rcx
lea r8, [rbp - 0xc]
mov rdx, rdi
call sub.kernel32.dll_GetComputerNameExW
test eax, eax
je 0x14001ced5
mov r8d, dword [rbp - 0xc]
mov qword [rbp - 0x18], r8
lea rcx, [rbp - 0x48]
mov rdx, rdi
call fcn.1401388b0
movups xmm0, xmmword [rbp - 0x48]
movups xmm1, xmmword [rbp - 0x38]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x14001cef3
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
lea rcx, [rbp - 0x28]
call fcn.14001ce2b
mov rax, rsi
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rbp - 0x40]
test rcx, rcx
jne 0x14001cf15
call fcn.140154830
mov rdx, qword [rbp - 0x38]
call fcn.14016bf60
int3
Function at 0x140063c4c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rbx, rdx
mov rsi, rcx
lea rcx, [rbp - 0x40]
mov rdx, r8
mov r8, r9
call fcn.1400381a5
mov dword [rbp - 0xc], 0x800
and dword [rbp - 0x10], 0
lea rcx, [rbp - 0x28]
mov edx, 0x800
xor r8d, r8d
call fcn.14010aa98
cmp qword [rbp - 0x28], 0
jne 0x140063d67
lea rdi, [rbp - 0x28]
movups xmm0, xmmword [rdi + 8]
movups xmmword [rdi], xmm0
and qword [rdi + 0x10], 0
mov rbx, qword [rbx]
lea r15, [rbp - 0xc]
lea r14, [rbp - 0x10]
mov r12, qword [sym.imp.advapi32.dll_RegQueryValueExW]
mov rdx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
mov rcx, rbx
xor r8d, r8d
mov r9, r14
call r12
cmp eax, 0xea
jne 0x140063cf7
mov edx, dword [rbp - 0xc]
mov rcx, rdi
call fcn.140111560
jmp 0x140063cc5
test eax, eax
jne 0x140063d16
mov eax, dword [rbp - 0xc]
mov qword [rbp - 0x18], rax
mov eax, dword [rbp - 0x10]
cmp eax, 0xb
jbe 0x140063d3a
movabs rax, 0xde00000002
jmp 0x140063d1e
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
lea rcx, [rbp - 0x28]
call fcn.140001650
jmp 0x140063d4c
mov rcx, qword [rbp - 0x18]
mov qword [rsi + 0x10], rcx
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rsi], xmm0
mov byte [rsi + 0x18], al
lea rcx, [rbp - 0x40]
call fcn.14001b784
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
mov rcx, qword [rbp - 0x20]
test rcx, rcx
jne 0x140063d77
call fcn.140154830
jmp 0x140063d80
mov rdx, qword [rbp - 0x18]
call fcn.14016bf60
ud2
Function at 0x140065e1a
Capabilities:
Decrypt data via sspi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rdi, rdx
mov rsi, rcx
lea rbx, [rdx + 0x60]
mov rdx, qword [rdx + 0x78]
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rs
mov rcx, rbx
call fcn.1400648e1
mov r9, rdx
lea r14, [rsp + 0x78]
mov ebp, 1
mov rcx, r14
mov edx, 1
mov r8, rax
call fcn.1400ae2f2
lea r15, [rsp + 0x88]
mov rcx, r15
xor edx, edx
xor r8d, r8d
call fcn.1400ae2f2
lea r12, [rsp + 0x68]
mov rcx, r12
xor edx, edx
xor r8d, r8d
call fcn.1400ae2f2
lea r13, [rsp + 0x50]
mov rcx, r13
xor edx, edx
xor r8d, r8d
call fcn.1400ae2f2
movups xmm0, xmmword [r14]
movaps xmmword [r13 - 0x30], xmm0
movups xmm0, xmmword [r15]
movaps xmmword [r13 - 0x20], xmm0
movups xmm0, xmmword [r12]
movaps xmmword [r13 - 0x10], xmm0
lea r14, [rsp + 0x68]
lea rdx, [rsp + 0x20]
mov r8d, 4
mov rcx, r14
call fcn.1400ae309
lea rcx, [rdi + 0xf0]
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x80090318
je 0x140065fbd
test eax, eax
je 0x140065f4f
cmp eax, 0x90317
je 0x140065fb7
cmp eax, 0x90321
jne 0x140065fd6
mov dword [rdi + 0xd0], 0x10000
xor ebx, ebx
mov byte [rdi + 0xd4], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x78]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.1400650be
and qword [rdi + 0x110], 0
mov byte [rsi + 1], bl
jmp 0x140065fe4
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rdi + 0x68]
mov r8d, dword [rsp + 0x30]
add r8, rdx
lea r14, [rdi + 0x40]
and qword [rdi + 0x50], 0
mov rcx, rbx
call fcn.1400644ed
mov r8, rdx
mov rcx, r14
mov rdx, rax
call fcn.140111558
and qword [rdi + 0x58], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x78]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.1400650be
xor eax, eax
cmp qword [rdi + 0x78], rbx
sete al
mov qword [rdi + 0x110], rax
mov byte [rsi + 1], 0
jmp 0x140065fe4
mov byte [rsi + 1], 1
jmp 0x140065fd2
cmp dword [rsp + 0x34], 4
cmove ebp, dword [rsp + 0x30]
mov qword [rdi + 0x110], rbp
mov byte [rsi + 1], 0
xor ebx, ebx
jmp 0x140065fe4
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
mov byte [rsi], bl
mov rax, rsi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140065ffd
Capabilities:
Decrypt data via sspi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rdi, rdx
mov rsi, rcx
lea rbx, [rdx + 0x160]
mov rdx, qword [rdx + 0x178]
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rs
mov rcx, rbx
call fcn.1400648e1
mov r9, rdx
lea r14, [rsp + 0x78]
mov ebp, 1
mov rcx, r14
mov edx, 1
mov r8, rax
call fcn.1400ae2f2
lea r15, [rsp + 0x88]
mov rcx, r15
xor edx, edx
xor r8d, r8d
call fcn.1400ae2f2
lea r12, [rsp + 0x68]
mov rcx, r12
xor edx, edx
xor r8d, r8d
call fcn.1400ae2f2
lea r13, [rsp + 0x50]
mov rcx, r13
xor edx, edx
xor r8d, r8d
call fcn.1400ae2f2
movups xmm0, xmmword [r14]
movaps xmmword [r13 - 0x30], xmm0
movups xmm0, xmmword [r15]
movaps xmmword [r13 - 0x20], xmm0
movups xmm0, xmmword [r12]
movaps xmmword [r13 - 0x10], xmm0
lea r14, [rsp + 0x68]
lea rdx, [rsp + 0x20]
mov r8d, 4
mov rcx, r14
call fcn.1400ae309
lea rcx, [rdi + 0x1f0]
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x80090318
je 0x1400661bb
test eax, eax
je 0x14006613b
cmp eax, 0x90317
je 0x1400661b5
cmp eax, 0x90321
jne 0x1400661d4
mov dword [rdi + 0x1d0], 0x10000
xor ebx, ebx
mov byte [rdi + 0x1d4], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x178]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.14006505f
and qword [rdi + 0x210], 0
mov byte [rsi + 1], bl
jmp 0x1400661e2
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rdi + 0x168]
mov r8d, dword [rsp + 0x30]
add r8, rdx
lea r14, [rdi + 0x140]
and qword [rdi + 0x150], 0
mov rcx, rbx
call fcn.1400644ed
mov r8, rdx
mov rcx, r14
mov rdx, rax
call fcn.140111558
and qword [rdi + 0x158], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x178]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.14006505f
xor eax, eax
cmp qword [rdi + 0x178], rbx
sete al
mov qword [rdi + 0x210], rax
mov byte [rsi + 1], 0
jmp 0x1400661e2
mov byte [rsi + 1], 1
jmp 0x1400661d0
cmp dword [rsp + 0x34], 4
cmove ebp, dword [rsp + 0x30]
mov qword [rdi + 0x210], rbp
mov byte [rsi + 1], 0
xor ebx, ebx
jmp 0x1400661e2
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
mov byte [rsi], bl
mov rax, rsi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400661fb
Capabilities:
Encrypt data via sspi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov eax, dword [r9 + 8]
cmp rax, r8
jb 0x14006639c
mov r15, r8
mov r12, rdx
mov rsi, rcx
mov r14d, dword [r9]
mov edx, dword [r9 + 4]
lea rbx, [r14 + r8]
add rdx, rbx
lea rdi, [rcx + 0x180]
cmp qword [rcx + 0x190], rdx
jae 0x14006624a
mov rcx, rdi
xor r8d, r8d
call fcn.1400210ee
lea r9, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rs
mov rcx, rdi
mov rdx, r14
mov r8, rbx
call fcn.1400648f7
lea rcx, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rs
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov r8, r12
mov r9, r15
call fcn.1400a640e
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rs
mov rcx, rdi
mov rdx, r14
call fcn.1400648e1
mov r9, rdx
lea r15, [rsp + 0x78]
mov rcx, r15
mov edx, 7
mov r8, rax
call fcn.1400ae2f2
lea r9, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rs
mov rcx, rdi
mov rdx, r14
mov r8, rbx
call fcn.1400648f7
mov r9, rdx
lea r14, [rsp + 0x88]
mov rcx, r14
mov edx, 1
mov r8, rax
call fcn.1400ae2f2
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rs
mov rcx, rdi
mov rdx, rbx
call fcn.14006453c
mov r9, rdx
lea rbx, [rsp + 0x98]
mov rcx, rbx
mov edx, 6
mov r8, rax
call fcn.1400ae2f2
lea r12, [rsp + 0x60]
mov rcx, r12
xor edx, edx
xor r8d, r8d
call fcn.1400ae2f2
movups xmm0, xmmword [r15]
movaps xmmword [r12 - 0x30], xmm0
movups xmm0, xmmword [r14]
movaps xmmword [r12 - 0x20], xmm0
movups xmm0, xmmword [rbx]
movaps xmmword [r12 - 0x10], xmm0
lea rbx, [rsp + 0xa8]
lea rdx, [rsp + 0x30]
mov r8d, 4
mov rcx, rbx
call fcn.1400ae309
lea rcx, [rsi + 0x1f0]
xor edx, edx
mov r8, rbx
xor r9d, r9d
call qword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x14006636d
shl rax, 0x20
or rax, 2
jmp 0x14006638b
mov edx, dword [rsp + 0x40]
add edx, dword [rsp + 0x30]
add edx, dword [rsp + 0x50]
mov rcx, rdi
call fcn.1400a6451
and qword [rsi + 0x198], 0
xor eax, eax
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, str.assertion_failed:_buf.len_____sizes.cbMaximumMessage_as_usize
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rs
mov edx, 0x3e
call fcn.14016c250
int3
Function at 0x1400663b5
Capabilities:
Encrypt data via sspi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov eax, dword [r9 + 8]
cmp rax, r8
jb 0x140066556
mov r15, r8
mov r12, rdx
mov rsi, rcx
mov r14d, dword [r9]
mov edx, dword [r9 + 4]
lea rbx, [r14 + r8]
add rdx, rbx
lea rdi, [rcx + 0x80]
cmp qword [rcx + 0x90], rdx
jae 0x140066404
mov rcx, rdi
xor r8d, r8d
call fcn.1400210ee
lea r9, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rs
mov rcx, rdi
mov rdx, r14
mov r8, rbx
call fcn.1400648f7
lea rcx, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rs
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov r8, r12
mov r9, r15
call fcn.1400a640e
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rs
mov rcx, rdi
mov rdx, r14
call fcn.1400648e1
mov r9, rdx
lea r15, [rsp + 0x78]
mov rcx, r15
mov edx, 7
mov r8, rax
call fcn.1400ae2f2
lea r9, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rs
mov rcx, rdi
mov rdx, r14
mov r8, rbx
call fcn.1400648f7
mov r9, rdx
lea r14, [rsp + 0x88]
mov rcx, r14
mov edx, 1
mov r8, rax
call fcn.1400ae2f2
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rs
mov rcx, rdi
mov rdx, rbx
call fcn.14006453c
mov r9, rdx
lea rbx, [rsp + 0x98]
mov rcx, rbx
mov edx, 6
mov r8, rax
call fcn.1400ae2f2
lea r12, [rsp + 0x60]
mov rcx, r12
xor edx, edx
xor r8d, r8d
call fcn.1400ae2f2
movups xmm0, xmmword [r15]
movaps xmmword [r12 - 0x30], xmm0
movups xmm0, xmmword [r14]
movaps xmmword [r12 - 0x20], xmm0
movups xmm0, xmmword [rbx]
movaps xmmword [r12 - 0x10], xmm0
lea rbx, [rsp + 0xa8]
lea rdx, [rsp + 0x30]
mov r8d, 4
mov rcx, rbx
call fcn.1400ae309
lea rcx, [rsi + 0xf0]
xor edx, edx
mov r8, rbx
xor r9d, r9d
call qword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x140066527
shl rax, 0x20
or rax, 2
jmp 0x140066545
mov edx, dword [rsp + 0x40]
add edx, dword [rsp + 0x30]
add edx, dword [rsp + 0x50]
mov rcx, rdi
call fcn.1400a6451
and qword [rsi + 0x98], 0
xor eax, eax
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, str.assertion_failed:_buf.len_____sizes.cbMaximumMessage_as_usize
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.23_src_tls_stream.rs
mov edx, 0x3e
call fcn.14016c250
int3