joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ca100
Capabilities:
Get hostname

Disassembly:
push rdi
sub rsp, 0x170
mov rax, qword [0x14023c9c0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdi, rcx
mov qword [rsp + 0x190], rsi
movzx esi, dl
lea rcx, [rsp + 0x40]
xorps xmm0, xmm0
xor edx, edx
mov r8d, 0x118
movups xmmword [rsp + 0x20], xmm0
call fcn.1401467e0
lea rcx, [rsp + 0x40]
call fcn.1400cbaa0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
mov edx, 0x100
mov ecx, eax
shr rcx, 0x10
xor rcx, rax
movzx eax, cx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x48], rax
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x1400ca1d9
call fcn.140095b0c
cmp dword [rax], 0x26
jne 0x1400ca1a5
mov ecx, 2
call fcn.14008fab0
mov rcx, rax
lea rdx, str.hostname_exceeds__d_characters__truncating.
mov r8d, 0x100
call fcn.140009138
jmp 0x1400ca1d9
mov qword [rsp + 0x188], rbx
call fcn.140095b0c
mov ecx, 2
mov rbx, rax
call fcn.14008fab0
mov r8d, dword [rbx]
lea rdx, str.unable_to_get_hostname:__d
mov rcx, rax
call fcn.140009138
mov rbx, qword [rsp + 0x188]
mov byte [rsp + 0x14f], 0
mov eax, 1
lock xadd qword [0x14023f5b0], rax
movaps xmm0, xmmword [rsp + 0x40]
lea r9, [rsp + 0x20]
mov qword [rsp + 0x150], rax
lea r8, [rsp + 0x30]
movq rax, xmm0
lea rcx, [rsp + 0x40]
not rax
mov edx, 0x118
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x38], rax
call fcn.1400ca3a0
mov eax, dword [rsp + 0x20]
test sil, sil
mov rsi, qword [rsp + 0x190]
mov dword [rdi + 0x10], eax
movzx eax, byte [rsp + 0x24]
mov byte [rdi + 0x14], al
je 0x1400ca25d
mov rax, qword [rsp + 0x28]
mov ecx, eax
and ecx, 0xff0ffff0
and rax, 0xffffffffff0ffff0
mov dword [rdi + 4], ecx
mov qword [rdi + 8], rax
mov rax, qword [rsp + 0x48]
mov qword [rdi + 0x18], rax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140088190
add rsp, 0x170
pop rdi
ret
Function at 0x1400ca3a0
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 0x1400ca4a7
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 0x1400ca450
xor r11, rsi
add rbx, 8
cmp rbx, r14
jne case.default.0x1400ca4c6
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 + 0xca680]
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 0x1400ca513
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 0x1400ca570
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 0x1400ca5d0
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 0x1400ded40
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 0x1400deee3
test rdx, rdx
je 0x1400def27
movzx r9d, word [rdx + 0x20e]
lea r8, [0x14017e5e4]
mov edx, 8
mov qword [rsp + 0x88], rbx
lea rcx, [rsp + 0x68]
call fcn.1400c7b10
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 0x1400dee0b
mov edx, 2
mov qword [rsp + 0x20], rbx
lea r9, [0x14017e5e8]
mov rcx, r14
lea r8d, [rdx + 1]
call fcn.1400c8ff0
xor eax, eax
jmp 0x1400deec2
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x80], rdi
test rbx, rbx
je 0x1400dee89
nop dword [rax]
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call fcn.140109790
mov rdi, rax
test rax, rax
je 0x1400dee66
call fcn.1400cba80
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.1401093f0
test eax, eax
je 0x1400dee74
mov rcx, rdi
call fcn.1401095b0
xor edi, edi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1400dee20
test rdi, rdi
je 0x1400dee89
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, rdi
call fcn.140112890
jmp 0x1400deeba
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.1400c8ff0
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.140088190
add rsp, 0x90
pop r14
pop rsi
pop rbp
ret
mov ecx, 2
call fcn.14008fab0
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.140009138
call fcn.14009594c
int3
mov ecx, 2
call fcn.14008fab0
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.140009138
call fcn.14009594c
int3
Function at 0x1400f9470
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 0x1400f94ee
lea r8, str.BCryptGetProperty__:_OBJECT_LENGTH__ld
mov r9d, eax
lea rdx, str.mongoc
xor ecx, ecx
call fcn.1400cf640
xor al, al
jmp 0x1400f960c
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 0x1400f9524
lea r8, str.BCryptGetProperty__:_HASH_LENGTH__ld
jmp 0x1400f94d6
mov ecx, dword [rsp + 0x40]
mov qword [rsp + 0x80], rdi
call fcn.1400c5f80
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 0x1400f957a
mov r9d, eax
lea r8, str.BCryptCreateHash__:__ld
lea rdx, str.mongoc
xor ecx, ecx
call fcn.1400cf640
jmp 0x1400f95ea
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 0x1400f95b0
mov r9d, eax
lea r8, str.BCryptHashData__:__ld
lea rdx, str.mongoc
xor ecx, ecx
call fcn.1400cf640
jmp 0x1400f95ea
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 0x1400f95e8
mov r9d, eax
lea r8, str.BCryptFinishHash__:__ld
lea rdx, str.mongoc
xor ecx, ecx
call fcn.1400cf640
jmp 0x1400f95ea
mov bl, 1
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400f95f9
call sub.bcrypt.dll_BCryptDestroyHash
mov rcx, rdi
call fcn.1400c5f70
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 0x1400fc5a0
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 0x1400fc631
mov eax, dword [rsi]
test eax, eax
jne 0x1400fc5f6
mov r8d, edi
jmp 0x1400fc600
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.140127eb0
mov ecx, 0x20
jmp 0x1400fc638
lea rbp, [rbx + 0x120]
mov eax, dword [rsi]
test eax, eax
jne 0x1400fc643
mov r8, rdi
jmp 0x1400fc64d
xor r8d, r8d
cmp eax, 1
cmove r8, rcx
lea r9, [rsp + 0x50]
mov rdx, r15
mov rcx, rbp
call fcn.140127ea0
mov eax, dword [rsi]
mov r15d, 0x20
test eax, eax
jne 0x1400fc66e
mov r8d, edi
jmp 0x1400fc678
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.140127eb0
mov rcx, rbx
call fcn.1400fde40
movsxd r8, eax
test eax, eax
jle 0x1400fc6db
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 0x1400fc6c0
mov eax, dword [rsi]
test eax, eax
je 0x1400fc6ea
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.140124560
cmp eax, 0xffffffff
jne 0x1400fc70c
xor al, al
jmp 0x1400fc711
add dword [r14], eax
mov al, 1
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140088190
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400fc7c0
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.140146140
cmp rbx, 0x20
jae 0x1400fca0d
lea eax, [rbx + 1]
mov byte [rsp + rbx + 0x50], 0
cmp eax, 0x20
jae 0x1400fca0d
mov byte [rsp + rax + 0x50], 0
lea eax, [rbx + 2]
cmp eax, 0x20
jae 0x1400fca0d
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 0x1400fc85f
lea eax, [rcx + 0x14]
jmp 0x1400fc868
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.140127eb0
mov eax, dword [r13 + 0x130]
test eax, eax
jne 0x1400fc899
lea r8d, [rax + 0x14]
jmp 0x1400fc8a3
cmp eax, 1
mov r8, r12
cmove r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140146140
mov eax, dword [rsp + 0xf8]
cmp eax, 2
jb 0x1400fc9e8
mov qword [rsp + 0x88], r15
lea r15d, [rax - 1]
nop dword [rax]
mov eax, dword [r13 + 0x130]
test eax, eax
jne 0x1400fc8e4
mov ebx, reloc.WS2_32.dll_sendto
mov eax, ebx
jmp 0x1400fc8f2
cmp eax, 1
jne 0x1400fc971
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.140127eb0
mov eax, ebx
lea rdx, [rdi - 1]
add rdx, rax
mov rcx, r12
lea rax, [rsp + rax + 0x2f]
cmp rdi, rax
ja 0x1400fc937
lea rax, [rsp + 0x30]
cmp rdx, rax
jae 0x1400fc99d
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 0x1400fc950
jmp 0x1400fc99d
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.140127eb0
mov rcx, r12
mov edx, ebx
cmp rcx, rdx
jge 0x1400fc9d1
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 0x1400fc9c0
mov ebx, 0x20
sub r15, 1
jne 0x1400fc8d0
mov r15, qword [rsp + 0x88]
mov r12, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140088190
add rsp, 0x98
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140088b88
int3
Function at 0x140108ca0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x48], 1
call fcn.140095b0c
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 0x140108d01
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.1400cf640
test ebx, ebx
sete al
add rsp, 0x30
pop rbx
ret
Function at 0x1401093f0
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 0x1401094d9
test rdx, rdx
je 0x14010951d
test r8d, r8d
je 0x140109561
mov rcx, qword [rcx]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1401094cc
mov qword [rsp + 0x58], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov dword [rdi + 8], eax
call fcn.140095b0c
mov dword [rax], ebx
mov eax, dword [rdi + 8]
mov rbx, qword [rsp + 0x58]
cmp eax, 0xb
je 0x140109463
add eax, 0xffffd8cd
cmp eax, 1
ja 0x1401094bc
mov r8, rsi
mov edx, reloc.WS2_32.dll_recv
mov rcx, rdi
call fcn.140108fc0
test al, al
je 0x1401094bc
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 0x1401094ae
test ecx, ecx
je 0x1401094cc
mov dword [rdi + 8], ecx
call fcn.140095b0c
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.14008fab0
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.140009138
call fcn.14009594c
int3
mov ecx, 2
call fcn.14008fab0
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.140009138
call fcn.14009594c
int3
mov ecx, 2
call fcn.14008fab0
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.140009138
call fcn.14009594c
int3
Function at 0x140109690
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 0x140109740
mov rcx, qword [rcx]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x140109726
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 0x140109726
lea rcx, [rsp + 0xd0]
call fcn.1400c7b90
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140088190
add rsp, 0x1e8
ret
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140088190
add rsp, 0x1e8
ret
mov ecx, 2
call fcn.14008fab0
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.140009138
call fcn.14009594c
int3
Function at 0x140109790
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 0x1401097e5
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 0x1401097ec
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14010999d
mov qword [rsp + 0xc8], rbx
cmp esi, 1
je 0x140109977
mov rcx, rdi
call fcn.140108ca0
test al, al
jne 0x140109821
lea r8, str.Failed_to_enable_TCP_NODELAY.
mov ecx, 2
lea rdx, str.socket
call fcn.1400cf640
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 0x140109977
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 0x140109943
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 0x1401098db
cmp dword [rbp + 0xb], 4
jne 0x1401098eb
mov eax, dword [rbp + 0xf]
cmp eax, dword [rbp + 0x2b]
jae 0x1401098eb
jmp 0x1401098e8
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 0x140109929
cmp dword [rbp + 0xb], 4
jne 0x140109939
mov eax, dword [rbp + 0xf]
cmp eax, dword [rbp + 0x2f]
jae 0x140109939
jmp 0x140109936
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.1400c5fd0
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.140088190
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x140109c90
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 0x140109d8e
test rdx, rdx
je 0x140109dd2
test r8, r8
je 0x140109e16
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 0x140109d68
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.140095b0c
mov dword [rax], ebx
mov eax, dword [rdi + 8]
cmp eax, 0xb
je 0x140109d24
add eax, 0xffffd8cd
cmp eax, 1
ja 0x140109d5e
mov r8, r12
mov edx, 0x300
mov rcx, rdi
call fcn.140108fc0
test al, al
je 0x140109d5e
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 0x140109d00
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.14008fab0
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.140009138
call fcn.14009594c
int3
mov ecx, 2
call fcn.14008fab0
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.140009138
call fcn.14009594c
int3
mov ecx, 2
call fcn.14008fab0
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.140009138
call fcn.14009594c
int3