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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x98
mov rax, qword [0x1401c1280]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov ebx, dword [rsp + 0xf0]
lea rdi, [rcx + 0xbc]
mov r14d, r8d
mov rbp, rdx
mov r13, rcx
mov r8d, ebx
mov rdx, r9
lea rcx, [rsp + 0x50]
call fcn.1400e2bb0
cmp rbx, 0x20
jae 0x14009307d
lea eax, [rbx + 1]
mov byte [rsp + rbx + 0x50], 0
cmp eax, 0x20
jae 0x14009307d
mov byte [rsp + rax + 0x50], 0
lea eax, [rbx + 2]
cmp eax, 0x20
jae 0x14009307d
mov ecx, dword [r13 + 0x130]
mov byte [rsp + rax + 0x50], 0
lea eax, [rbx + 3]
mov qword [rsp + 0x90], r12
xor r12d, r12d
mov byte [rsp + rax + 0x50], 1
lea ebx, [r12 + 0x20]
test ecx, ecx
jne 0x140092ecf
lea eax, [rcx + 0x14]
jmp 0x140092ed8
cmp ecx, 1
mov eax, r12d
cmove eax, ebx
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x50]
mov r8d, r14d
mov dword [rsp + 0x20], eax
mov rdx, rbp
lea rcx, [r13 + 0x120]
call fcn.1400be520
mov eax, dword [r13 + 0x130]
test eax, eax
jne 0x140092f09
lea r8d, [rax + 0x14]
jmp 0x140092f13
cmp eax, 1
mov r8, r12
cmove r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400e2bb0
mov eax, dword [rsp + 0xf8]
cmp eax, 2
jb 0x140093058
mov qword [rsp + 0x88], r15
lea r15d, [rax - 1]
nop dword [rax]
mov eax, dword [r13 + 0x130]
test eax, eax
jne 0x140092f54
mov ebx, shutdown
mov eax, ebx
jmp 0x140092f62
cmp eax, 1
jne 0x140092fe1
mov eax, 0x20
lea r10, [rsp + 0x30]
mov r8d, r14d
mov qword [rsp + 0x28], r10
lea r9, [rsp + 0x30]
mov rdx, rbp
mov dword [rsp + 0x20], eax
lea rcx, [r13 + 0x120]
call fcn.1400be520
mov eax, ebx
lea rdx, [rdi - 1]
add rdx, rax
mov rcx, r12
lea rax, [rsp + rax + 0x2f]
cmp rdi, rax
ja 0x140092fa7
lea rax, [rsp + 0x30]
cmp rdx, rax
jae 0x14009300d
mov eax, 0xfffffff8
lea r8, [rsp + 0x30]
mov edx, ebx
and rdx, rax
mov rax, rdi
sub r8, rdi
nop dword [rax]
movq xmm0, qword [rax]
add rcx, 8
movq xmm1, qword [r8 + rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax - 8], xmm1
cmp rcx, rdx
jl 0x140092fc0
jmp 0x14009300d
lea rax, [rsp + 0x30]
mov r8d, r14d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov rdx, rbp
mov dword [rsp + 0x20], r12d
lea rcx, [r13 + 0x120]
mov ebx, r12d
call fcn.1400be520
mov rcx, r12
mov edx, ebx
cmp rcx, rdx
jge 0x140093041
lea r8, [rsp + 0x30]
sub r8, rdi
lea rax, [rcx + rdi]
sub rdx, rcx
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x140093030
mov ebx, 0x20
sub r15, 1
jne 0x140092f40
mov r15, qword [rsp + 0x88]
mov r12, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140023a50
add rsp, 0x98
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.1400245f4
int3
Function at 0x14009f310
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x48], 1
call fcn.14002ed7c
mov edx, 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x48]
mov rcx, rbx
mov dword [rax], 0
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14009f371
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
lea r8, str.WSAGetLastError__:__d
lea rdx, str.socket
lea ecx, [rbx + 3]
call fcn.140065c80
test ebx, ebx
sete al
add rsp, 0x30
pop rbx
ret
Function at 0x14009fa60
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov dword [rsp + 0x30], 4
mov rsi, r9
mov rdi, rcx
test rcx, rcx
je 0x14009fb49
test rdx, rdx
je 0x14009fb8d
test r8d, r8d
je 0x14009fbd1
mov rcx, qword [rcx]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14009fb3c
mov qword [rsp + 0x58], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov dword [rdi + 8], eax
call fcn.14002ed7c
mov dword [rax], ebx
mov eax, dword [rdi + 8]
mov rbx, qword [rsp + 0x58]
cmp eax, 0xb
je 0x14009fad3
add eax, 0xffffd8cd
cmp eax, 1
ja 0x14009fb2c
mov r8, rsi
mov edx, reloc.WS2_32.dll_recv
mov rcx, rdi
call fcn.14009f630
test al, al
je 0x14009fb2c
mov rcx, qword [rdi]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov dword [rsp + 0x50], 0xffffffff
mov r8d, 0x1007
call qword [sym.imp.WS2_32.dll_getsockopt]
mov ecx, dword [rsp + 0x50]
test eax, eax
jne 0x14009fb1e
test ecx, ecx
je 0x14009fb3c
mov dword [rdi + 8], ecx
call fcn.14002ed7c
mov ecx, dword [rsp + 0x50]
mov dword [rax], ecx
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret
mov ecx, 2
call fcn.14002e9a4
mov rcx, rax
lea r8, str.C:Userslxrs_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_socket.c
lea rax, str.sock
mov r9d, 0x35d
mov qword [rsp + 0x28], rax
lea rdx, str._s:_d__s__:_precondition_failed:__s_n
lea rax, str.mongoc_socket_connect
mov qword [rsp + 0x20], rax
call fcn.140052ea0
call fcn.14002eb84
int3
mov ecx, 2
call fcn.14002e9a4
mov rcx, rax
lea r8, str.C:Userslxrs_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_socket.c
lea rax, str.addr
mov r9d, 0x35e
mov qword [rsp + 0x28], rax
lea rdx, str._s:_d__s__:_precondition_failed:__s_n
lea rax, str.mongoc_socket_connect
mov qword [rsp + 0x20], rax
call fcn.140052ea0
call fcn.14002eb84
int3
mov ecx, 2
call fcn.14002e9a4
mov rcx, rax
lea r8, str.C:Userslxrs_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_socket.c
lea rax, str.addrlen
mov r9d, 0x35f
mov qword [rsp + 0x28], rax
lea rdx, str._s:_d__s__:_precondition_failed:__s_n
lea rax, str.mongoc_socket_connect
mov qword [rsp + 0x20], rax
call fcn.140052ea0
call fcn.14002eb84
int3
Function at 0x14009fd00
Capabilities:
Resolve dns

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1401c1280]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov dword [rsp + 0x40], 0x80
test rcx, rcx
je 0x14009fdb0
mov rcx, qword [rcx]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x14009fd96
mov edx, dword [rsp + 0x40]
lea r8, [rsp + 0xd0]
xor eax, eax
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x30], eax
mov r9d, 0x100
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x14009fd96
lea rcx, [rsp + 0xd0]
call fcn.14005bfe0
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140023a50
add rsp, 0x1e8
ret
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140023a50
add rsp, 0x1e8
ret
mov ecx, 2
call fcn.14002e9a4
mov rcx, rax
lea r8, str.C:Userslxrs_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_socket.c
lea rax, str.sock
mov r9d, 0x5de
mov qword [rsp + 0x28], rax
lea rdx, str._s:_d__s__:_precondition_failed:__s_n
lea rax, str.mongoc_socket_getnameinfo
mov qword [rsp + 0x20], rax
call fcn.140052ea0
call fcn.14002eb84
int3
Function at 0x14009fe00
Capabilities:
Query or enumerate registry value
Set socket configuration

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x1401c1280]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov esi, ecx
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14009fe55
lea r8, [rbp + 7]
mov dword [rbp + 7], 1
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x14009fe5c
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1400a000d
mov qword [rsp + 0xc8], rbx
cmp esi, 1
je 0x14009ffe7
mov rcx, rdi
call fcn.14009f310
test al, al
jne 0x14009fe91
lea r8, str.Failed_to_enable_TCP_NODELAY.
mov ecx, 2
lea rdx, str.socket
call fcn.140065c80
lea r9, [rbp + 0x13]
mov dword [rbp + 0x13], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 8
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x14009ffe7
xor ebx, ebx
mov dword [rbp + 7], 4
lea rax, [rbp + 0x1f]
mov dword [rbp + 0x17], ebx
xor r8d, r8d
mov dword [rbp + 0x27], 1
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParameters
mov dword [rbp + 0x2b], 0x1d4c0
lea r9d, [rbx + 1]
mov dword [rbp + 0x2f], 0x2710
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14009ffb3
mov rcx, qword [rbp + 0x1f]
lea rax, [rbp + 7]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0xb]
lea rax, [rbp + 0xf]
xor r8d, r8d
lea rdx, str.KeepAliveTime
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14009ff4b
cmp dword [rbp + 0xb], 4
jne 0x14009ff5b
mov eax, dword [rbp + 0xf]
cmp eax, dword [rbp + 0x2b]
jae 0x14009ff5b
jmp 0x14009ff58
mov eax, dword [rbp + 0x2b]
mov ecx, 0x6ddd00
cmp eax, ecx
cmova eax, ecx
mov dword [rbp + 0x2b], eax
mov rcx, qword [rbp + 0x1f]
lea rax, [rbp + 7]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0xb]
lea rax, [rbp + 0xf]
xor r8d, r8d
lea rdx, str.KeepAliveInterval
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14009ff99
cmp dword [rbp + 0xb], 4
jne 0x14009ffa9
mov eax, dword [rbp + 0xf]
cmp eax, dword [rbp + 0x2f]
jae 0x14009ffa9
jmp 0x14009ffa6
mov eax, dword [rbp + 0x2f]
mov ecx, 0x3e8
cmp eax, ecx
cmova eax, ecx
mov dword [rbp + 0x2f], eax
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbx
lea rax, [rbp + 0x17]
mov qword [rsp + 0x38], rbx
lea r8, [rbp + 0x27]
mov qword [rsp + 0x30], rax
mov r9d, recv
mov dword [rsp + 0x28], ebx
mov edx, 0x98000004
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov ecx, 0x18
call fcn.14005a420
mov rbx, rax
mov qword [rax], rdi
mov dword [rax + 0xc], esi
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rbx + 0x10], eax
mov rax, rbx
mov rbx, qword [rsp + 0xc8]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140023a50
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a0300
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rdi
push r13
push r14
sub rsp, 0x38
mov r13d, r9d
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test rcx, rcx
je 0x1400a03fe
test rdx, rdx
je 0x1400a0442
test r8, r8
je 0x1400a0486
mov dword [rcx + 8], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x30], r15
call qword [sym.imp.WS2_32.dll_recv]
movsxd rsi, eax
cmp rsi, 0xffffffffffffffff
sete r15b
jne 0x1400a03d8
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], r12
mov r12, qword [rsp + 0x80]
nop dword [rax + rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov dword [rdi + 8], eax
call fcn.14002ed7c
mov dword [rax], ebx
mov eax, dword [rdi + 8]
cmp eax, 0xb
je 0x1400a0394
add eax, 0xffffd8cd
cmp eax, 1
ja 0x1400a03ce
mov r8, r12
mov edx, 0x300
mov rcx, rdi
call fcn.14009f630
test al, al
je 0x1400a03ce
mov dword [rdi + 8], 0
mov r9d, r13d
mov rcx, qword [rdi]
mov r8d, ebp
mov rdx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rsi, eax
cmp rsi, 0xffffffffffffffff
sete r15b
je 0x1400a0370
mov rbx, qword [rsp + 0x60]
mov r12, qword [rsp + 0x70]
test r15b, r15b
mov rax, 0xffffffffffffffff
mov r15, qword [rsp + 0x30]
cmovne rsi, rax
mov rax, rsi
mov rsi, qword [rsp + 0x68]
add rsp, 0x38
pop r14
pop r13
pop rdi
pop rbp
ret
mov ecx, 2
call fcn.14002e9a4
mov rcx, rax
lea r8, str.C:Userslxrs_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_socket.c
lea rax, str.sock
mov r9d, 0x43d
mov qword [rsp + 0x28], rax
lea rdx, str._s:_d__s__:_precondition_failed:__s_n
lea rax, str.mongoc_socket_recv
mov qword [rsp + 0x20], rax
call fcn.140052ea0
call fcn.14002eb84
int3
mov ecx, 2
call fcn.14002e9a4
mov rcx, rax
lea r8, str.C:Userslxrs_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_socket.c
lea rax, [0x1400f61f4]
mov r9d, 0x43e
mov qword [rsp + 0x28], rax
lea rdx, str._s:_d__s__:_precondition_failed:__s_n
lea rax, str.mongoc_socket_recv
mov qword [rsp + 0x20], rax
call fcn.140052ea0
call fcn.14002eb84
int3
mov ecx, 2
call fcn.14002e9a4
mov rcx, rax
lea r8, str.C:Userslxrs_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_socket.c
lea rax, str.buflen
mov r9d, 0x43f
mov qword [rsp + 0x28], rax
lea rdx, str._s:_d__s__:_precondition_failed:__s_n
lea rax, str.mongoc_socket_recv
mov qword [rsp + 0x20], rax
call fcn.140052ea0
call fcn.14002eb84
int3
Function at 0x1400b2d50
Capabilities:
Resolve dns

Disassembly:
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400b2d7f
nop dword [rax]
cmp dword [rcx], edx
je 0x1400b2d73
ja 0x1400b2d7f
mov rcx, qword [rcx + 0x268]
test rcx, rcx
jne 0x1400b2d60
ret
lea rdx, [rcx + 0x280]
jmp fcn.1400b29b0
ret

Function at 0x1400b7560
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ebx, edx
mov rcx, qword [0x1401d1138]
test rcx, rcx
jne 0x1400b75a8
xor r9d, r9d
lea rdx, [0x14013da00]
xor r8d, r8d
lea rcx, [0x1401d1138]
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
jns 0x1400b75a1
lea r8, str.BCryptOpenAlgorithmProvider__:__ld
jmp 0x1400b75d1
mov rcx, qword [0x1401d1138]
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x1400b75ca
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea r8, str.BCryptGenRandom__:__ld
mov r9d, eax
lea rdx, str.mongoc
xor ecx, ecx
call fcn.140065c80
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x1400babd0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
xor ebx, ebx
mov rbp, r9
mov rdi, r8
mov rsi, rdx
test r8, r8
je 0x1400bad4e
lea r14, [0x1401437a0]
cmp rdx, 2
jbe 0x1400bac99
lea r10d, [rbx + 4]
nop dword [rax + rax]
movzx edx, byte [rcx + 1]
sub rsi, 3
movzx r11d, byte [rcx]
movzx eax, dl
movzx r9d, byte [rcx + 2]
and dl, 0xf
shr al, 4
movzx r8d, r11b
and r8b, 3
shl dl, 2
shl r8b, 4
add rcx, 3
add r8b, al
movzx eax, r9b
shr al, 6
add dl, al
cmp r10, rbp
ja 0x1400bad4e
and r9d, 0x3f
mov eax, r11d
shr rax, 2
add r10, 4
movzx eax, byte [rax + r14]
mov byte [rbx + rdi], al
movzx eax, r8b
movzx eax, byte [rax + r14]
mov byte [rbx + rdi + 1], al
movzx eax, dl
movzx eax, byte [rax + r14]
mov byte [rbx + rdi + 2], al
movzx eax, byte [r9 + r14]
mov byte [rbx + rdi + 3], al
add rbx, 4
cmp rsi, 2
ja 0x1400bac10
test rsi, rsi
je 0x1400bad41
xor r8b, r8b
mov word [rsp + 0x51], 0
xor r9b, r9b
mov byte [rsp + 0x50], r8b
xor dl, dl
test rsi, rsi
je 0x1400bacdc
mov rdx, rcx
mov r8, rsi
lea rcx, [rsp + 0x50]
call fcn.1400e2bb0
movzx r9d, byte [rsp + 0x52]
movzx edx, byte [rsp + 0x51]
movzx r8d, byte [rsp + 0x50]
movzx eax, dl
shr r9b, 6
movzx ecx, r8b
shr al, 4
and r8b, 3
shr cl, 2
and dl, 0xf
shl r8b, 4
shl dl, 2
add r8b, al
lea rax, [rbx + 4]
add dl, r9b
cmp rax, rbp
ja 0x1400bad4e
movzx eax, cl
movzx eax, byte [rax + r14]
mov byte [rbx + rdi], al
movzx eax, r8b
movzx eax, byte [rax + r14]
mov byte [rbx + rdi + 1], al
cmp rsi, 1
jne 0x1400bad2c
mov al, 0x3d
jmp 0x1400bad34
movzx eax, dl
movzx eax, byte [rax + r14]
mov byte [rbx + rdi + 2], al
mov byte [rbx + rdi + 3], 0x3d
add rbx, 4
cmp rbx, rbp
jae 0x1400bad4e
mov byte [rbx + rdi], 0
mov eax, ebx
jmp 0x1400bad53
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1400be5d0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov r10, r8
mov r11, rdx
mov r9d, eax
test r8, r8
je 0x1400be608
sub r11, rcx
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [r11 + rcx]
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
xor r8d, edx
or r9d, r8d
sub r10, 1
jne 0x1400be5f0
test r9d, r9d
setne al
ret

Function at 0x1400c1e90
Capabilities:
Decrypt data via sspi

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x80
mov rax, qword [0x1401c1280]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r9, qword [rcx + 0x40]
xor ebp, ebp
mov rbx, rcx
mov esi, ebp
test r9, r9
je 0x1400c2020
mov qword [rsp + 0x98], rdi
nop dword [rax]
test esi, esi
jne 0x1400c2018
mov r8, qword [rbx + 0x50]
lea edx, [rsi + 1]
lea rcx, [rsp + 0x30]
call fcn.1400c4a60
xor r9d, r9d
lea rcx, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
call fcn.1400c4a60
xor r9d, r9d
lea rcx, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
call fcn.1400c4a60
xor r9d, r9d
lea rcx, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
call fcn.1400c4a60
lea r8d, [rsi + 4]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.1400c4a70
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x20]
xor r9d, r9d
xor r8d, r8d
call sub.Secur32.dll_DecryptMessage
mov esi, eax
test eax, eax
je 0x1400c1f71
cmp eax, 0x90321
je 0x1400c1f71
cmp eax, 0x90317
je 0x1400c1f71
cmp eax, 0x80090318
je 0x1400c2008
mov dword [rbx + 0x68], 1
jmp 0x1400c2008
cmp dword [rsp + 0x44], 1
jne 0x1400c1fb7
mov rax, qword [rbx + 0x38]
lea rcx, [rbx + 0x38]
sub rax, qword [rbx + 0x48]
mov edi, dword [rsp + 0x40]
cmp rax, rdi
jae 0x1400c1f99
lea rdx, [rbx + 0x58]
mov r8d, edi
call fcn.1400c54f0
test rdi, rdi
je 0x1400c1fb7
mov rcx, qword [rbx + 0x58]
mov r8, rdi
add rcx, qword [rbx + 0x48]
mov rdx, qword [rsp + 0x48]
call fcn.1400e2bb0
add qword [rbx + 0x48], rdi
cmp dword [rsp + 0x64], 5
jne 0x1400c1fee
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400c1fee
mov r8d, eax
mov rax, qword [rbx + 0x40]
cmp rax, r8
jbe 0x1400c1ff2
mov rcx, qword [rbx + 0x50]
mov rdx, rcx
sub rdx, r8
add rdx, rax
call fcn.1400e2bb0
mov eax, dword [rsp + 0x60]
mov qword [rbx + 0x40], rax
jmp 0x1400c1ff2
mov qword [rbx + 0x40], rbp
cmp esi, 0x90317
jne 0x1400c2008
mov byte [rbx + 0x6c], 1
cmp byte [rbx + 0x6d], bpl
jne 0x1400c2008
mov byte [rbx + 0x6d], 1
mov rax, qword [rbx + 0x40]
mov r9d, eax
test rax, rax
jne 0x1400c1ed0
mov rdi, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140023a50
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x1400c2750
Capabilities:
Encrypt data via sspi

Disassembly:
push rbx
push rbp
push rdi
push r15
sub rsp, 0x98
mov rax, qword [0x1401c1280]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, qword [rcx + 0x88]
mov rdi, r8
mov r15, rdx
mov rbp, rcx
test rbx, rbx
je 0x1400c28e2
cmp dword [rbx + 0x20], 0
mov qword [rsp + 0xd8], rsi
jne 0x1400c27b8
mov rcx, qword [rbx + 0x10]
lea r8, [rbx + 0x18]
mov edx, 4
call sub.Secur32.dll_QueryContextAttributesA
test eax, eax
je 0x1400c27b8
mov rax, 0xffffffffffffffff
jmp 0x1400c28bd
mov eax, dword [rbx + 0x20]
mov ecx, dword [rbx + 0x1c]
cmp rdi, rax
mov qword [rsp + 0x90], r14
cmova rdi, rax
mov eax, dword [rbx + 0x18]
add rax, rdi
add rcx, rax
call fcn.14005a3d0
mov r9d, dword [rbx + 0x18]
lea rcx, [rsp + 0x40]
mov r8, rax
mov edx, 7
mov r14, rax
call fcn.1400c4a60
mov r8d, dword [rbx + 0x18]
lea rcx, [rsp + 0x50]
add r8, r14
mov r9d, edi
mov edx, 1
call fcn.1400c4a60
mov r8d, dword [rbx + 0x18]
lea rcx, [rsp + 0x60]
mov r9d, dword [rbx + 0x1c]
add r8, rdi
add r8, r14
mov edx, 6
call fcn.1400c4a60
xor r9d, r9d
lea rcx, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
call fcn.1400c4a60
mov r8d, 4
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.1400c4a70
mov rcx, qword [rsp + 0x58]
mov r8, rdi
mov rdx, r15
call fcn.1400e2bb0
mov rcx, qword [rbx + 0x10]
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
call sub.Secur32.dll_EncryptMessage
test eax, eax
jne 0x1400c289a
mov r8d, dword [rsp + 0x60]
mov rdx, r14
add r8d, dword [rsp + 0x40]
mov rcx, rbp
add r8d, dword [rsp + 0x50]
mov edi, r8d
call fcn.1400c5e20
mov rbx, rax
jmp 0x1400c28a1
mov rbx, 0xffffffffffffffff
mov rcx, r14
call fcn.14005a3c0
mov r14, qword [rsp + 0x90]
cmp rdi, rbx
jne 0x1400c28ba
mov ebx, dword [rsp + 0x50]
mov rax, rbx
mov rsi, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140023a50
add rsp, 0x98
pop r15
pop rdi
pop rbp
pop rbx
ret
mov ecx, 2
call fcn.14002e9a4
mov rcx, rax
lea r8, str.C:Userslxrs_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_stream_tls_secure_channel.c
lea rax, str.secure_channel
mov r9d, 0xfc
mov qword [rsp + 0x28], rax
lea rdx, str._s:_d__s__:_precondition_failed:__s_n
lea rax, str._mongoc_stream_tls_secure_channel_write
mov qword [rsp + 0x20], rax
call fcn.140052ea0
call fcn.14002eb84
int3
Function at 0x1400ca400
Capabilities:
Get outbound credentials handle via credssp

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x80
mov rbx, qword [rsp + 0xd0]
xor r14d, r14d
mov esi, r9d
mov rdi, r8
mov qword [rbx + 0x58], r14
mov qword [rbx + 0x60], r14
mov dword [rbx + 0x70], 0x80000001
mov dword [rbx + 0x68], edx
mov word [rbx + 0x6c], r14w
call fcn.140031904
mov qword [rbx + 0x50], rax
test rax, rax
je 0x1400ca529
mov qword [rsp + 0x90], rbp
mov rcx, rax
mov ebp, 0x2f
mov edx, ebp
call fcn.1400d2dd4
test rax, rax
jne 0x1400ca482
mov rcx, qword [rbx + 0x50]
lea edx, [rbp + 0x11]
call fcn.1400d2dd4
test rax, rax
je 0x1400ca482
mov word [rax], bp
mov rdx, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0x90]
test rdi, rdi
je 0x1400ca4d0
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x78], eax
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x58], esi
mov qword [rsp + 0x70], rdx
mov dword [rsp + 0x7c], 2
test rdx, rdx
lea rax, [rbx + 0x30]
lea rdx, [rsp + 0xd0]
mov qword [rsp + 0x40], rdx
lea rcx, [rsp + 0x50]
cmove rcx, r14
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rdx, str.kerberos
mov qword [rsp + 0x20], rcx
xor ecx, ecx
lea r8d, [r9 + 2]
call qword [sym.imp.Secur32.dll_AcquireCredentialsHandleW]
test eax, eax
je 0x1400ca530
lea rdx, str.AcquireCredentialsHandle
mov ecx, eax
call fcn.1400caf10
mov eax, 0xffffffff
jmp 0x1400ca539
mov byte [rbx + 0x6c], 1
mov eax, 1
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x1400ca870
Capabilities:
Decrypt data via sspi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
xor ebp, ebp
mov dword [rsp + 0x24], 2
mov rdi, rcx
mov dword [rsp + 0x20], ebp
mov rcx, qword [rcx + 0x58]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rbx, rdx
test rcx, rcx
je 0x1400ca8bb
call fcn.14005a3c0
mov qword [rdi + 0x58], rbp
mov dword [rdi + 0x70], 0x80000001
cmp byte [rdi + 0x6d], bpl
je 0x1400ca95a
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.1400cada0
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400ca95a
mov eax, dword [rsp + 0x60]
lea rcx, [rdi + 0x40]
mov ebx, 1
mov dword [rsp + 0x30], eax
lea r9, [rdi + 0x70]
mov dword [rsp + 0x44], ebx
xor r8d, r8d
mov dword [rsp + 0x34], 0xa
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x40], ebp
call sub.Secur32.dll_DecryptMessage
test eax, eax
jne 0x1400ca934
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x1400ca947
mov rcx, qword [rsp + 0x48]
call fcn.1400cae60
mov qword [rdi + 0x58], rax
test rax, rax
jne 0x1400ca947
jmp 0x1400ca942
lea rdx, [0x1401a94e8]
mov ecx, eax
call fcn.1400caf10
mov ebx, 0xffffffff
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400ca956
call fcn.14005a3c0
mov eax, ebx
jmp 0x1400ca95f
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x1400cae60
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
lea rax, [rsp + 0x50]
xor r9d, r9d
mov r8d, 0x40000001
mov qword [rsp + 0x20], rax
mov edi, edx
mov rsi, rcx
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x1400caedf
mov ecx, dword [rsp + 0x50]
call fcn.14005a3d0
mov rbx, rax
test rax, rax
je 0x1400caedf
lea rax, [rsp + 0x50]
mov r9, rbx
mov r8d, 0x40000001
mov qword [rsp + 0x20], rax
mov edx, edi
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x1400caed7
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, rbx
call fcn.14005a3c0
lea r9, str.CryptBinaryToString_failed.
xor ecx, ecx
lea r8, [0x1400f6788]
lea rdx, str.mongoc
call fcn.140065c80
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret