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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r12
sub rsp, 0x40
mov r10, qword [r8 + 8]
xor eax, eax
mov r11, qword [r8]
mov rbx, rcx
mov qword [rsp + 0x30], rax
mov r8, r11
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov qword [rsp + 0x68], r14
mov rax, rdx
mov r14, rcx
mov qword [rsp + 0x70], r15
and eax, 7
shl rdi, 0x38
sub r14, rax
movabs rcx, 0x7465646279746573
mov rax, r10
mov r15d, edx
xor rax, rcx
add r14, rdx
movabs rcx, 0x6c7967656e657261
and r15d, 7
xor r8, rcx
mov r12, r9
movabs rcx, 0x736f6d6570736575
mov ebp, 2
xor r11, rcx
movabs rcx, 0x646f72616e646f83
xor r10, rcx
cmp rbx, r14
je 0x1400ca9c7
mov qword [rsp + 0x60], rsi
nop word [rax + rax]
mov rsi, qword [rbx]
mov r9, rbp
xor rax, rsi
nop dword [rax]
add r8, rax
add r11, r10
ror r10, 0x33
xor r10, r11
ror rax, 0x30
xor rax, r8
ror r11, 0x20
add r8, r10
add r11, rax
mov rdx, r8
ror r10, 0x2f
mov rcx, r8
shr rdx, 0x20
xor r10, r8
ror rax, 0x2b
shl rcx, 0x20
mov r8, rdx
or r8, rcx
xor rax, r11
sub r9, 1
jne 0x1400ca970
xor r11, rsi
add rbx, 8
cmp rbx, r14
jne case.default.0x1400ca9e6
mov rsi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
lea r9, [0x140000000]
movsxd rcx, r15d
mov r15, qword [rsp + 0x70]
mov edx, dword [r9 + rcx*4 + 0xcaba0]
add rdx, r9
jmp rdx
movzx ecx, byte [rbx + 6]
shl rcx, 0x30
or rdi, rcx
movzx ecx, byte [rbx + 5]
shl rcx, 0x28
or rdi, rcx
movzx ecx, byte [rbx + 4]
shl rcx, 0x20
or rdi, rcx
movzx ecx, byte [rbx + 3]
shl rcx, 0x18
or rdi, rcx
movzx ecx, byte [rbx + 2]
shl rcx, 0x10
or rdi, rcx
movzx ecx, byte [rbx + 1]
shl rcx, 8
or rdi, rcx
movzx ecx, byte [rbx]
or rdi, rcx
xor rax, rdi
add r8, rax
add r11, r10
ror r10, 0x33
xor r10, r11
ror rax, 0x30
xor rax, r8
ror r11, 0x20
add r8, r10
add r11, rax
mov rdx, r8
ror r10, 0x2f
mov rcx, r8
shr rdx, 0x20
xor r10, r8
ror rax, 0x2b
shl rcx, 0x20
mov r8, rdx
or r8, rcx
xor rax, r11
sub rbp, 1
jne 0x1400caa33
xor r11, rdi
mov r9d, 4
xor r8, 0xee
mov ebx, r9d
nop dword [rax]
add r8, rax
add r11, r10
ror r10, 0x33
xor r10, r11
ror rax, 0x30
xor rax, r8
ror r11, 0x20
add r8, r10
add r11, rax
mov rdx, r8
ror r10, 0x2f
mov rcx, r8
shr rdx, 0x20
xor r10, r8
ror rax, 0x2b
shl rcx, 0x20
mov r8, rdx
or r8, rcx
xor rax, r11
sub rbx, 1
jne 0x1400caa90
mov rcx, rax
xor rcx, r8
xor rcx, r10
xor rcx, r11
mov qword [rsp + 0x30], rcx
xor r10, 0xdd
nop
add r8, rax
add r11, r10
ror r10, 0x33
xor r10, r11
ror rax, 0x30
xor rax, r8
ror r11, 0x20
add r8, r10
add r11, rax
mov rdx, r8
ror r10, 0x2f
mov rcx, r8
shr rdx, 0x20
xor r10, r8
ror rax, 0x2b
shl rcx, 0x20
mov r8, rdx
or r8, rcx
xor rax, r11
sub r9, 1
jne 0x1400caaf0
mov rbx, qword [rsp + 0x78]
xor rax, r8
xor rax, r10
xor rax, r11
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [r12], xmm0
add rsp, 0x40
pop r12
pop rdi
pop rbp
ret
Function at 0x1400df260
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x90
mov rax, qword [0x14023c9c0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r8
mov rbp, rdx
mov esi, ecx
test ecx, ecx
je 0x1400df403
test rdx, rdx
je 0x1400df447
movzx r9d, word [rdx + 0x20e]
lea r8, [0x14017e5e4]
mov edx, 8
mov qword [rsp + 0x88], rbx
lea rcx, [rsp + 0x68]
call fcn.1400c8030
mov eax, dword [rbp + 0x210]
lea rbx, [rbp + 8]
xorps xmm0, xmm0
mov dword [rsp + 0x3c], eax
xorps xmm1, xmm1
mov qword [rsp + 0x40], 1
mov rcx, rbx
mov dword [rsp + 0x38], 0
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x68]
movdqu xmmword [rsp + 0x48], xmm0
movdqu xmmword [rsp + 0x58], xmm1
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1400df32b
mov edx, 2
mov qword [rsp + 0x20], rbx
lea r9, [0x14017e5e8]
mov rcx, r14
lea r8d, [rdx + 1]
call fcn.1400c9510
xor eax, eax
jmp 0x1400df3e2
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x80], rdi
test rbx, rbx
je 0x1400df3a9
nop dword [rax]
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call fcn.140109cb0
mov rdi, rax
test rax, rax
je 0x1400df386
call fcn.1400cbfa0
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
imul ecx, esi, 0x3e8
movsxd r9, ecx
mov rcx, rdi
add r9, rax
call fcn.140109910
test eax, eax
je 0x1400df394
mov rcx, rdi
call fcn.140109ad0
xor edi, edi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1400df340
test rdi, rdi
je 0x1400df3a9
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, rdi
call fcn.140112db0
jmp 0x1400df3da
mov edx, 2
lea rax, [rbp + 0x108]
lea r9, str.Failed_to_connect_to_target_host:__s
mov qword [rsp + 0x20], rax
mov rcx, r14
lea r8d, [rdx + 3]
call fcn.1400c9510
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
xor eax, eax
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400886b0
add rsp, 0x90
pop r14
pop rsi
pop rbp
ret
mov ecx, 2
call fcn.14008ffd0
mov rcx, rax
lea r8, str.C:Userslxrs_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_client.c
lea rax, str.connecttimeoutms
mov r9d, 0x29b
mov qword [rsp + 0x28], rax
lea rdx, str._s:_d__s__:_precondition_failed:__s_n
lea rax, str.mongoc_client_connect_tcp
mov qword [rsp + 0x20], rax
call fcn.140009568
call fcn.140095e6c
int3
mov ecx, 2
call fcn.14008ffd0
mov rcx, rax
lea r8, str.C:Userslxrs_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_client.c
lea rax, str.host
mov r9d, 0x29c
mov qword [rsp + 0x28], rax
lea rdx, str._s:_d__s__:_precondition_failed:__s_n
lea rax, str.mongoc_client_connect_tcp
mov qword [rsp + 0x20], rax
call fcn.140009568
call fcn.140095e6c
int3
Function at 0x1400f9990
Capabilities:
Hash data via bcrypt

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x60
xor r12d, r12d
lea rax, [r11 - 0x34]
mov rbp, r9
mov dword [r11 - 0x50], r12d
mov r14, r8
mov dword [r11 - 0x38], r12d
mov r15, rdx
mov qword [r11 - 0x28], r12
lea r9d, [r12 + 4]
mov dword [r11 - 0x30], r12d
lea r8, [r11 - 0x38]
mov dword [r11 - 0x34], r12d
lea rdx, str.ObjectLength
mov qword [r11 - 0x58], rax
mov rsi, rcx
xor bl, bl
call sub.bcrypt.dll_BCryptGetProperty
test eax, eax
jns 0x1400f9a0e
lea r8, str.BCryptGetProperty__:_OBJECT_LENGTH__ld
mov r9d, eax
lea rdx, str.mongoc
xor ecx, ecx
call fcn.1400cfb60
xor al, al
jmp 0x1400f9b2c
lea rax, [rsp + 0x44]
mov dword [rsp + 0x28], r12d
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x48]
mov rcx, rsi
lea rdx, str.HashDigestLength
call sub.bcrypt.dll_BCryptGetProperty
test eax, eax
jns 0x1400f9a44
lea r8, str.BCryptGetProperty__:_HASH_LENGTH__ld
jmp 0x1400f99f6
mov ecx, dword [rsp + 0x40]
mov qword [rsp + 0x80], rdi
call fcn.1400c64a0
mov r9d, dword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x30], r12d
mov r8, rax
mov dword [rsp + 0x28], r14d
mov rcx, rsi
mov qword [rsp + 0x20], r15
mov rdi, rax
call sub.bcrypt.dll_BCryptCreateHash
test eax, eax
jns 0x1400f9a9a
mov r9d, eax
lea r8, str.BCryptCreateHash__:__ld
lea rdx, str.mongoc
xor ecx, ecx
call fcn.1400cfb60
jmp 0x1400f9b0a
mov r8d, dword [rsp + 0xa0]
xor r9d, r9d
mov rcx, qword [rsp + 0x50]
mov rdx, rbp
call sub.bcrypt.dll_BCryptHashData
test eax, eax
jns 0x1400f9ad0
mov r9d, eax
lea r8, str.BCryptHashData__:__ld
lea rdx, str.mongoc
xor ecx, ecx
call fcn.1400cfb60
jmp 0x1400f9b0a
mov r8d, dword [rsp + 0x48]
xor r9d, r9d
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x50]
call sub.bcrypt.dll_BCryptFinishHash
test eax, eax
jns 0x1400f9b08
mov r9d, eax
lea r8, str.BCryptFinishHash__:__ld
lea rdx, str.mongoc
xor ecx, ecx
call fcn.1400cfb60
jmp 0x1400f9b0a
mov bl, 1
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400f9b19
call sub.bcrypt.dll_BCryptDestroyHash
mov rcx, rdi
call fcn.1400c6490
mov rdi, qword [rsp + 0x80]
movzx eax, bl
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x1400fcac0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa8
mov rax, qword [0x14023c9c0]
xor rax, rsp
mov qword [rsp + 0x90], rax
cmp byte [rcx + 0x7c], 0
lea r15, [rcx + 0x7c]
mov edi, reloc.WS2_32.dll_sendto
lea rsi, [rcx + 0x130]
mov rbx, rcx
mov r14, r9
mov r12d, r8d
mov r13, rdx
lea ecx, [rdi + 0xc]
jne 0x1400fcb51
mov eax, dword [rsi]
test eax, eax
jne 0x1400fcb16
mov r8d, edi
jmp 0x1400fcb20
xor r8d, r8d
cmp eax, 1
cmove r8d, ecx
lea rbp, [rbx + 0x120]
mov qword [rsp + 0x28], r15
mov rcx, rbp
mov dword [rsp + 0x20], 0xa
lea rdx, [rbx + 0xbc]
lea r9, str.Client_Key
call fcn.1401283d0
mov ecx, 0x20
jmp 0x1400fcb58
lea rbp, [rbx + 0x120]
mov eax, dword [rsi]
test eax, eax
jne 0x1400fcb63
mov r8, rdi
jmp 0x1400fcb6d
xor r8d, r8d
cmp eax, 1
cmove r8, rcx
lea r9, [rsp + 0x50]
mov rdx, r15
mov rcx, rbp
call fcn.1401283c0
mov eax, dword [rsi]
mov r15d, 0x20
test eax, eax
jne 0x1400fcb8e
mov r8d, edi
jmp 0x1400fcb98
xor r8d, r8d
cmp eax, 1
cmove r8d, r15d
mov r9, qword [rbx + 0x110]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x50]
mov eax, dword [rbx + 0x11c]
mov rcx, rbp
mov dword [rsp + 0x20], eax
call fcn.1401283d0
mov rcx, rbx
call fcn.1400fe360
movsxd r8, eax
test eax, eax
jle 0x1400fcbfb
xor edx, edx
lea rax, [rsp + 0x30]
sub rbx, rax
nop dword [rax]
lea rax, [rsp + 0x30]
add rax, rdx
movzx ecx, byte [rax + rbx + 0x7c]
xor cl, byte [rax]
mov byte [rsp + rdx + 0x70], cl
inc rdx
cmp rdx, r8
jl 0x1400fcbe0
mov eax, dword [rsi]
test eax, eax
je 0x1400fcc0a
xor edi, edi
cmp eax, 1
cmove rdi, r15
mov r8d, dword [r14]
lea rcx, [rsp + 0x70]
sub r12d, r8d
mov rdx, rdi
mov r9d, r12d
add r8, r13
call fcn.140124a80
cmp eax, 0xffffffff
jne 0x1400fcc2c
xor al, al
jmp 0x1400fcc31
add dword [r14], eax
mov al, 1
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400886b0
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400fcce0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x98
mov rax, qword [0x14023c9c0]
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.140146660
cmp rbx, 0x20
jae 0x1400fcf2d
lea eax, [rbx + 1]
mov byte [rsp + rbx + 0x50], 0
cmp eax, 0x20
jae 0x1400fcf2d
mov byte [rsp + rax + 0x50], 0
lea eax, [rbx + 2]
cmp eax, 0x20
jae 0x1400fcf2d
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 0x1400fcd7f
lea eax, [rcx + 0x14]
jmp 0x1400fcd88
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.1401283d0
mov eax, dword [r13 + 0x130]
test eax, eax
jne 0x1400fcdb9
lea r8d, [rax + 0x14]
jmp 0x1400fcdc3
cmp eax, 1
mov r8, r12
cmove r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140146660
mov eax, dword [rsp + 0xf8]
cmp eax, 2
jb 0x1400fcf08
mov qword [rsp + 0x88], r15
lea r15d, [rax - 1]
nop dword [rax]
mov eax, dword [r13 + 0x130]
test eax, eax
jne 0x1400fce04
mov ebx, reloc.WS2_32.dll_sendto
mov eax, ebx
jmp 0x1400fce12
cmp eax, 1
jne 0x1400fce91
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.1401283d0
mov eax, ebx
lea rdx, [rdi - 1]
add rdx, rax
mov rcx, r12
lea rax, [rsp + rax + 0x2f]
cmp rdi, rax
ja 0x1400fce57
lea rax, [rsp + 0x30]
cmp rdx, rax
jae 0x1400fcebd
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 0x1400fce70
jmp 0x1400fcebd
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.1401283d0
mov rcx, r12
mov edx, ebx
cmp rcx, rdx
jge 0x1400fcef1
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 0x1400fcee0
mov ebx, 0x20
sub r15, 1
jne 0x1400fcdf0
mov r15, qword [rsp + 0x88]
mov r12, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400886b0
add rsp, 0x98
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.1400890a8
int3
Function at 0x1401091c0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x48], 1
call fcn.14009602c
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 0x140109221
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.1400cfb60
test ebx, ebx
sete al
add rsp, 0x30
pop rbx
ret
Function at 0x140109910
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 0x1401099f9
test rdx, rdx
je 0x140109a3d
test r8d, r8d
je 0x140109a81
mov rcx, qword [rcx]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1401099ec
mov qword [rsp + 0x58], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov dword [rdi + 8], eax
call fcn.14009602c
mov dword [rax], ebx
mov eax, dword [rdi + 8]
mov rbx, qword [rsp + 0x58]
cmp eax, 0xb
je 0x140109983
add eax, 0xffffd8cd
cmp eax, 1
ja 0x1401099dc
mov r8, rsi
mov edx, reloc.WS2_32.dll_recv
mov rcx, rdi
call fcn.1401094e0
test al, al
je 0x1401099dc
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 0x1401099ce
test ecx, ecx
je 0x1401099ec
mov dword [rdi + 8], ecx
call fcn.14009602c
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.14008ffd0
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.140009568
call fcn.140095e6c
int3
mov ecx, 2
call fcn.14008ffd0
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.140009568
call fcn.140095e6c
int3
mov ecx, 2
call fcn.14008ffd0
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.140009568
call fcn.140095e6c
int3
Function at 0x140109bb0
Capabilities:
Resolve dns

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x14023c9c0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov dword [rsp + 0x40], 0x80
test rcx, rcx
je 0x140109c60
mov rcx, qword [rcx]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x140109c46
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 0x140109c46
lea rcx, [rsp + 0xd0]
call fcn.1400c80b0
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400886b0
add rsp, 0x1e8
ret
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400886b0
add rsp, 0x1e8
ret
mov ecx, 2
call fcn.14008ffd0
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.140009568
call fcn.140095e6c
int3
Function at 0x140109cb0
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 [0x14023c9c0]
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 0x140109d05
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 0x140109d0c
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x140109ebd
mov qword [rsp + 0xc8], rbx
cmp esi, 1
je 0x140109e97
mov rcx, rdi
call fcn.1401091c0
test al, al
jne 0x140109d41
lea r8, str.Failed_to_enable_TCP_NODELAY.
mov ecx, 2
lea rdx, str.socket
call fcn.1400cfb60
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 0x140109e97
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 0x140109e63
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 0x140109dfb
cmp dword [rbp + 0xb], 4
jne 0x140109e0b
mov eax, dword [rbp + 0xf]
cmp eax, dword [rbp + 0x2b]
jae 0x140109e0b
jmp 0x140109e08
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 0x140109e49
cmp dword [rbp + 0xb], 4
jne 0x140109e59
mov eax, dword [rbp + 0xf]
cmp eax, dword [rbp + 0x2f]
jae 0x140109e59
jmp 0x140109e56
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.1400c64f0
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.1400886b0
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x14010a1b0
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 0x14010a2ae
test rdx, rdx
je 0x14010a2f2
test r8, r8
je 0x14010a336
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 0x14010a288
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.14009602c
mov dword [rax], ebx
mov eax, dword [rdi + 8]
cmp eax, 0xb
je 0x14010a244
add eax, 0xffffd8cd
cmp eax, 1
ja 0x14010a27e
mov r8, r12
mov edx, 0x300
mov rcx, rdi
call fcn.1401094e0
test al, al
je 0x14010a27e
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 0x14010a220
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.14008ffd0
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.140009568
call fcn.140095e6c
int3
mov ecx, 2
call fcn.14008ffd0
mov rcx, rax
lea r8, str.C:Userslxrs_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_socket.c
lea rax, [0x14016db54]
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.140009568
call fcn.140095e6c
int3
mov ecx, 2
call fcn.14008ffd0
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.140009568
call fcn.140095e6c
int3