joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18011d320
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 0x18011d409
test rdx, rdx
je 0x18011d44d
test r8d, r8d
je 0x18011d491
mov rcx, qword [rcx]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x18011d3fc
mov qword [rsp + 0x58], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov dword [rdi + 8], eax
call fcn.1800408fc
mov dword [rax], ebx
mov eax, dword [rdi + 8]
mov rbx, qword [rsp + 0x58]
cmp eax, 0xb
je 0x18011d393
add eax, 0xffffd8cd
cmp eax, 1
ja 0x18011d3ec
mov r8, rsi
mov edx, reloc.WS2_32.dll_recv
mov rcx, rdi
call fcn.18011cef0
test al, al
je 0x18011d3ec
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 0x18011d3de
test ecx, ecx
je 0x18011d3fc
mov dword [rdi + 8], ecx
call fcn.1800408fc
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.1800375c0
mov rcx, rax
lea r8, str.C:Usersprocr_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.1800d2980
call fcn.18003e318
int3
mov ecx, 2
call fcn.1800375c0
mov rcx, rax
lea r8, str.C:Usersprocr_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.1800d2980
call fcn.18003e318
int3
mov ecx, 2
call fcn.1800375c0
mov rcx, rax
lea r8, str.C:Usersprocr_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.1800d2980
call fcn.18003e318
int3
Function at 0x18011d5c0
Capabilities:
Resolve dns

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x180253040]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov dword [rsp + 0x40], 0x80
test rcx, rcx
je 0x18011d670
mov rcx, qword [rcx]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x18011d656
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 0x18011d656
lea rcx, [rsp + 0xd0]
call fcn.1800dbac0
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.180030780
add rsp, 0x1e8
ret
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.180030780
add rsp, 0x1e8
ret
mov ecx, 2
call fcn.1800375c0
mov rcx, rax
lea r8, str.C:Usersprocr_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.1800d2980
call fcn.18003e318
int3
Function at 0x18011d6c0
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 [0x180253040]
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 0x18011d715
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 0x18011d71c
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x18011d8cd
mov qword [rsp + 0xc8], rbx
cmp esi, 1
je 0x18011d8a7
mov rcx, rdi
call fcn.18011cbd0
test al, al
jne 0x18011d751
lea r8, str.Failed_to_enable_TCP_NODELAY.
mov ecx, 2
lea rdx, str.socket
call fcn.1800e3570
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 0x18011d8a7
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 0x18011d873
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 0x18011d80b
cmp dword [rbp + 0xb], 4
jne 0x18011d81b
mov eax, dword [rbp + 0xf]
cmp eax, dword [rbp + 0x2b]
jae 0x18011d81b
jmp 0x18011d818
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 0x18011d859
cmp dword [rbp + 0xb], 4
jne 0x18011d869
mov eax, dword [rbp + 0xf]
cmp eax, dword [rbp + 0x2f]
jae 0x18011d869
jmp 0x18011d866
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.1800d9f00
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.180030780
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x18011dbc0
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 0x18011dcbe
test rdx, rdx
je 0x18011dd02
test r8, r8
je 0x18011dd46
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 0x18011dc98
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.1800408fc
mov dword [rax], ebx
mov eax, dword [rdi + 8]
cmp eax, 0xb
je 0x18011dc54
add eax, 0xffffd8cd
cmp eax, 1
ja 0x18011dc8e
mov r8, r12
mov edx, 0x300
mov rcx, rdi
call fcn.18011cef0
test al, al
je 0x18011dc8e
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 0x18011dc30
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.1800375c0
mov rcx, rax
lea r8, str.C:Usersprocr_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.1800d2980
call fcn.18003e318
int3
mov ecx, 2
call fcn.1800375c0
mov rcx, rax
lea r8, str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_socket.c
lea rax, [0x180182444]
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.1800d2980
call fcn.18003e318
int3
mov ecx, 2
call fcn.1800375c0
mov rcx, rax
lea r8, str.C:Usersprocr_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.1800d2980
call fcn.18003e318
int3
Function at 0x180130610
Capabilities:
Resolve dns

Disassembly:
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x18013063f
nop dword [rax]
cmp dword [rcx], edx
je 0x180130633
ja 0x18013063f
mov rcx, qword [rcx + 0x268]
test rcx, rcx
jne 0x180130620
ret
lea rdx, [rcx + 0x280]
jmp fcn.180130270
ret

Function at 0x180134e20
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 [0x180263878]
test rcx, rcx
jne 0x180134e68
xor r9d, r9d
lea rdx, [0x1801c9b80]
xor r8d, r8d
lea rcx, [0x180263878]
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
jns 0x180134e61
lea r8, str.BCryptOpenAlgorithmProvider__:__ld
jmp 0x180134e91
mov rcx, qword [0x180263878]
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x180134e8a
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.1800e3570
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x180138490
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 0x18013860e
lea r14, [0x1801cf920]
cmp rdx, 2
jbe 0x180138559
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 0x18013860e
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 0x1801384d0
test rsi, rsi
je 0x180138601
xor r8b, r8b
mov word [rsp + 0x51], 0
xor r9b, r9b
mov byte [rsp + 0x50], r8b
xor dl, dl
test rsi, rsi
je 0x18013859c
mov rdx, rcx
mov r8, rsi
lea rcx, [rsp + 0x50]
call fcn.180159c90
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 0x18013860e
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 0x1801385ec
mov al, 0x3d
jmp 0x1801385f4
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 0x18013860e
mov byte [rbx + rdi], 0
mov eax, ebx
jmp 0x180138613
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 0x18013be90
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov r10, r8
mov r11, rdx
mov r9d, eax
test r8, r8
je 0x18013bec8
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 0x18013beb0
test r9d, r9d
setne al
ret

Function at 0x18013f750
Capabilities:
Decrypt data via sspi

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x80
mov rax, qword [0x180253040]
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 0x18013f8e0
mov qword [rsp + 0x98], rdi
nop dword [rax]
test esi, esi
jne 0x18013f8d8
mov r8, qword [rbx + 0x50]
lea edx, [rsi + 1]
lea rcx, [rsp + 0x30]
call fcn.180142320
xor r9d, r9d
lea rcx, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
call fcn.180142320
xor r9d, r9d
lea rcx, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
call fcn.180142320
xor r9d, r9d
lea rcx, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
call fcn.180142320
lea r8d, [rsi + 4]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.180142330
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 0x18013f831
cmp eax, 0x90321
je 0x18013f831
cmp eax, 0x90317
je 0x18013f831
cmp eax, 0x80090318
je 0x18013f8c8
mov dword [rbx + 0x68], 1
jmp 0x18013f8c8
cmp dword [rsp + 0x44], 1
jne 0x18013f877
mov rax, qword [rbx + 0x38]
lea rcx, [rbx + 0x38]
sub rax, qword [rbx + 0x48]
mov edi, dword [rsp + 0x40]
cmp rax, rdi
jae 0x18013f859
lea rdx, [rbx + 0x58]
mov r8d, edi
call fcn.180142db0
test rdi, rdi
je 0x18013f877
mov rcx, qword [rbx + 0x58]
mov r8, rdi
add rcx, qword [rbx + 0x48]
mov rdx, qword [rsp + 0x48]
call fcn.180159c90
add qword [rbx + 0x48], rdi
cmp dword [rsp + 0x64], 5
jne 0x18013f8ae
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x18013f8ae
mov r8d, eax
mov rax, qword [rbx + 0x40]
cmp rax, r8
jbe 0x18013f8b2
mov rcx, qword [rbx + 0x50]
mov rdx, rcx
sub rdx, r8
add rdx, rax
call fcn.180159c90
mov eax, dword [rsp + 0x60]
mov qword [rbx + 0x40], rax
jmp 0x18013f8b2
mov qword [rbx + 0x40], rbp
cmp esi, 0x90317
jne 0x18013f8c8
mov byte [rbx + 0x6c], 1
cmp byte [rbx + 0x6d], bpl
jne 0x18013f8c8
mov byte [rbx + 0x6d], 1
mov rax, qword [rbx + 0x40]
mov r9d, eax
test rax, rax
jne 0x18013f790
mov rdi, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180030780
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x180140010
Capabilities:
Encrypt data via sspi

Disassembly:
push rbx
push rbp
push rdi
push r15
sub rsp, 0x98
mov rax, qword [0x180253040]
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 0x1801401a2
cmp dword [rbx + 0x20], 0
mov qword [rsp + 0xd8], rsi
jne 0x180140078
mov rcx, qword [rbx + 0x10]
lea r8, [rbx + 0x18]
mov edx, 4
call sub.Secur32.dll_QueryContextAttributesA
test eax, eax
je 0x180140078
mov rax, 0xffffffffffffffff
jmp 0x18014017d
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.1800d9eb0
mov r9d, dword [rbx + 0x18]
lea rcx, [rsp + 0x40]
mov r8, rax
mov edx, 7
mov r14, rax
call fcn.180142320
mov r8d, dword [rbx + 0x18]
lea rcx, [rsp + 0x50]
add r8, r14
mov r9d, edi
mov edx, 1
call fcn.180142320
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.180142320
xor r9d, r9d
lea rcx, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
call fcn.180142320
mov r8d, 4
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.180142330
mov rcx, qword [rsp + 0x58]
mov r8, rdi
mov rdx, r15
call fcn.180159c90
mov rcx, qword [rbx + 0x10]
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
call sub.Secur32.dll_EncryptMessage
test eax, eax
jne 0x18014015a
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.1801436e0
mov rbx, rax
jmp 0x180140161
mov rbx, 0xffffffffffffffff
mov rcx, r14
call fcn.1800d9ea0
mov r14, qword [rsp + 0x90]
cmp rdi, rbx
jne 0x18014017a
mov ebx, dword [rsp + 0x50]
mov rax, rbx
mov rsi, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180030780
add rsp, 0x98
pop r15
pop rdi
pop rbp
pop rbx
ret
mov ecx, 2
call fcn.1800375c0
mov rcx, rax
lea r8, str.C:Usersprocr_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.1800d2980
call fcn.18003e318
int3
Function at 0x180147cc0
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.1800407a4
mov qword [rbx + 0x50], rax
test rax, rax
je 0x180147de9
mov qword [rsp + 0x90], rbp
mov rcx, rax
mov ebp, 0x2f
mov edx, ebp
call fcn.1800bff08
test rax, rax
jne 0x180147d42
mov rcx, qword [rbx + 0x50]
lea edx, [rbp + 0x11]
call fcn.1800bff08
test rax, rax
je 0x180147d42
mov word [rax], bp
mov rdx, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0x90]
test rdi, rdi
je 0x180147d90
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 0x180147df0
lea rdx, str.AcquireCredentialsHandle
mov ecx, eax
call fcn.1801487d0
mov eax, 0xffffffff
jmp 0x180147df9
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 0x180148130
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 0x18014817b
call fcn.1800d9ea0
mov qword [rdi + 0x58], rbp
mov dword [rdi + 0x70], 0x80000001
cmp byte [rdi + 0x6d], bpl
je 0x18014821a
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.180148660
mov qword [rsp + 0x38], rax
test rax, rax
je 0x18014821a
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 0x1801481f4
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x180148207
mov rcx, qword [rsp + 0x48]
call fcn.180148720
mov qword [rdi + 0x58], rax
test rax, rax
jne 0x180148207
jmp 0x180148202
lea rdx, [0x180179f98]
mov ecx, eax
call fcn.1801487d0
mov ebx, 0xffffffff
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180148216
call fcn.1800d9ea0
mov eax, ebx
jmp 0x18014821f
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 0x180148720
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 0x18014879f
mov ecx, dword [rsp + 0x50]
call fcn.1800d9eb0
mov rbx, rax
test rax, rax
je 0x18014879f
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 0x180148797
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, rbx
call fcn.1800d9ea0
lea r9, str.CryptBinaryToString_failed.
xor ecx, ecx
lea r8, [0x18016adc0]
lea rdx, str.mongoc
call fcn.1800e3570
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14120b160
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14120b2e7
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14120b191
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14120b177
add dl, dl
jne 0x14120b19e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14120b1fe
xor eax, eax
add dl, dl
jne 0x14120b1ad
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14120b2b5
add dl, dl
jne 0x14120b1be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14120b1cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14120b1d8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14120b1e5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14120b1f2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14120b186
mov eax, 1
add dl, dl
jne 0x14120b20e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14120b21b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14120b203
sub eax, ebx
mov ebx, 1
jne 0x14120b254
mov ecx, 1
add dl, dl
jne 0x14120b236
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14120b243
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14120b22b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14120b186
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14120b270
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14120b27d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14120b265
cmp eax, 0x7d00
jae 0x14120b2a3
cmp eax, 0x500
jb 0x14120b29e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14120b186
cmp eax, 0x7f
ja 0x14120b2a6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14120b186
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14120b2da
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14120b186
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20