joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800ed0c0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1802ba770]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800ed124
mov eax, 0xa
jmp 0x1800ed1b7
test esi, esi
je 0x1800ed146
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800ed169
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800ed169
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800ed162
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800ed169
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1800ed1d0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x18020ce50]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800ed2fa
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1800ed2f1
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x1800ed2d4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800ed2d4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800ed2d4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1800ed292
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x1802b84e0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x1800ed2f1
jmp 0x1800ed2c7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x1800ed2c7
mov rcx, qword [0x1802b84e0]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800ed2f1
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1800ed240
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x1800ed353
cmp dword [rbx + 0xc], esi
jbe 0x1800ed353
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800ed34c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.1800ed6c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x1800ed310
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18015c050
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1800ed870
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x1800ed8df
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x1800ed8c8
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800ed8bc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x1800ed890
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x1802b84e0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800ed9a0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x1800ed9e0
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1802ba768]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1800eda1e
cmp rsi, r14
jb 0x1800eda16
cmp rsi, r15
jae 0x1800eda16
cmp qword [rsi + 8], 0
jne 0x1800edbe7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800eda01
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x1800edab2
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1800edaa9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800edaa9
cmp dword [rsp + 0x70], 0x10000
je 0x1800edb2b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x1800edaa9
sub rbx, rbp
cmp rbx, r14
jae 0x1800eda70
test rsi, rsi
jne 0x1800edb90
cmp rdi, r15
ja 0x1800edbcf
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x1800edbcf
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800edbcf
cmp dword [rsp + 0x70], 0x10000
je 0x1800edb61
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x1800edae2
jmp 0x1800edbcf
test rbx, rbx
je 0x1800edaa9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800edb90
cmp rbx, r14
jae 0x1800eda50
jmp 0x1800edab2
test rdi, rdi
je 0x1800edbcf
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800edb90
cmp rdi, r15
jbe 0x1800edac0
jmp 0x1800edbcf
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x1800edba0
mov rax, qword [0x1802ba768]
mov qword [rsi], rax
mov qword [0x1802ba768], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x1801003a0
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x90
mov rax, qword [0x18020ce50]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r8
mov rbp, rdx
mov esi, ecx
test ecx, ecx
je 0x180100543
test rdx, rdx
je 0x180100587
movzx r9d, word [rdx + 0x20e]
lea r8, [0x1801c0834]
mov edx, 8
mov qword [rsp + 0x88], rbx
lea rcx, [rsp + 0x68]
call fcn.1800841d0
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 0x18010046b
mov edx, 2
mov qword [rsp + 0x20], rbx
lea r9, [0x1801c0838]
mov rcx, r14
lea r8d, [rdx + 1]
call fcn.180086be0
xor eax, eax
jmp 0x180100522
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x80], rdi
test rbx, rbx
je 0x1801004e9
nop dword [rax]
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call fcn.180129bd0
mov rdi, rax
test rax, rax
je 0x1801004c6
call fcn.1800895a0
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.180129830
test eax, eax
je 0x1801004d4
mov rcx, rdi
call fcn.1801299f0
xor edi, edi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x180100480
test rdi, rdi
je 0x1801004e9
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, rdi
call fcn.180132b40
jmp 0x18010051a
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.180086be0
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.18015c050
add rsp, 0x90
pop r14
pop rsi
pop rbp
ret
mov ecx, 2
call fcn.180167c6c
mov rcx, rax
lea r8, str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_client.c
lea rax, str.connecttimeoutms
mov r9d, 0x292
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.18007d3a0
call fcn.180177210
int3
mov ecx, 2
call fcn.180167c6c
mov rcx, rax
lea r8, str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_client.c
lea rax, str.host
mov r9d, 0x293
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.18007d3a0
call fcn.180177210
int3
Function at 0x18011a7e0
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 0x18011a85e
lea r8, str.BCryptGetProperty__:_OBJECT_LENGTH__ld
mov r9d, eax
lea rdx, str.mongoc
xor ecx, ecx
call fcn.1800f0e30
xor al, al
jmp 0x18011a97c
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 0x18011a894
lea r8, str.BCryptGetProperty__:_HASH_LENGTH__ld
jmp 0x18011a846
mov ecx, dword [rsp + 0x40]
mov qword [rsp + 0x80], rdi
call fcn.180084f40
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 0x18011a8ea
mov r9d, eax
lea r8, str.BCryptCreateHash__:__ld
lea rdx, str.mongoc
xor ecx, ecx
call fcn.1800f0e30
jmp 0x18011a95a
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 0x18011a920
mov r9d, eax
lea r8, str.BCryptHashData__:__ld
lea rdx, str.mongoc
xor ecx, ecx
call fcn.1800f0e30
jmp 0x18011a95a
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 0x18011a958
mov r9d, eax
lea r8, str.BCryptFinishHash__:__ld
lea rdx, str.mongoc
xor ecx, ecx
call fcn.1800f0e30
jmp 0x18011a95a
mov bl, 1
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18011a969
call sub.bcrypt.dll_BCryptDestroyHash
mov rcx, rdi
call fcn.180084f30
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 0x18011cce0
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 [0x18020ce50]
xor rax, rsp
mov qword [rsp + 0x90], rax
cmp byte [rcx + 0x64], 0
lea r15, [rcx + 0x64]
mov edi, reloc.WS2_32.dll_sendto
lea rsi, [rcx + 0x118]
mov rbx, rcx
mov r14, r9
mov r12d, r8d
mov r13, rdx
lea ecx, [rdi + 0xc]
jne 0x18011cd71
mov eax, dword [rsi]
test eax, eax
jne 0x18011cd36
mov r8d, edi
jmp 0x18011cd40
xor r8d, r8d
cmp eax, 1
cmove r8d, ecx
lea rbp, [rbx + 0x108]
mov qword [rsp + 0x28], r15
mov rcx, rbp
mov dword [rsp + 0x20], 0xa
lea rdx, [rbx + 0xa4]
lea r9, str.Client_Key
call fcn.180147590
mov ecx, 0x20
jmp 0x18011cd78
lea rbp, [rbx + 0x108]
mov eax, dword [rsi]
test eax, eax
jne 0x18011cd83
mov r8, rdi
jmp 0x18011cd8d
xor r8d, r8d
cmp eax, 1
cmove r8, rcx
lea r9, [rsp + 0x50]
mov rdx, r15
mov rcx, rbp
call fcn.180147580
mov eax, dword [rsi]
mov r15d, 0x20
test eax, eax
jne 0x18011cdae
mov r8d, edi
jmp 0x18011cdb8
xor r8d, r8d
cmp eax, 1
cmove r8d, r15d
mov r9, qword [rbx + 0xf8]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x50]
mov eax, dword [rbx + 0x104]
mov rcx, rbp
mov dword [rsp + 0x20], eax
call fcn.180147590
mov rcx, rbx
call fcn.18011e590
movsxd r8, eax
test eax, eax
jle 0x18011ce1b
xor edx, edx
lea rax, [rsp + 0x30]
sub rbx, rax
nop dword [rax]
lea rax, [rsp + 0x30]
add rax, rdx
movzx ecx, byte [rbx + rax + 0x64]
xor cl, byte [rax]
mov byte [rsp + rdx + 0x70], cl
inc rdx
cmp rdx, r8
jl 0x18011ce00
mov eax, dword [rsi]
test eax, eax
je 0x18011ce2a
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.180087680
cmp eax, 0xffffffff
jne 0x18011ce4c
xor al, al
jmp 0x18011ce51
add dword [r14], eax
mov al, 1
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.18015c050
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18011cf60
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x98
mov rax, qword [0x18020ce50]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov ebx, dword [rsp + 0xf0]
lea rsi, [rcx + 0xa4]
mov r14d, r8d
mov rbp, rdx
mov r13, rcx
mov r8d, ebx
mov rdx, r9
lea rcx, [rsp + 0x50]
call fcn.180162090
cmp rbx, 0x20
jae 0x18011d1ad
lea eax, [rbx + 1]
mov byte [rsp + rbx + 0x50], 0
cmp eax, 0x20
jae 0x18011d1ad
mov byte [rsp + rax + 0x50], 0
lea eax, [rbx + 2]
cmp eax, 0x20
jae 0x18011d1ad
mov ecx, dword [r13 + 0x118]
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 0x18011cfff
lea eax, [rcx + 0x14]
jmp 0x18011d008
cmp ecx, 1
mov eax, r12d
cmove eax, ebx
mov qword [rsp + 0x28], rsi
lea r9, [rsp + 0x50]
mov r8d, r14d
mov dword [rsp + 0x20], eax
mov rdx, rbp
lea rcx, [r13 + 0x108]
call fcn.180147590
mov eax, dword [r13 + 0x118]
test eax, eax
jne 0x18011d039
lea r8d, [rax + 0x14]
jmp 0x18011d043
cmp eax, 1
mov r8, r12
cmove r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.180162090
mov eax, dword [rsp + 0xf8]
cmp eax, 2
jb 0x18011d188
mov qword [rsp + 0x88], r15
lea r15d, [rax - 1]
nop dword [rax]
mov eax, dword [r13 + 0x118]
test eax, eax
jne 0x18011d084
mov ebx, reloc.WS2_32.dll_sendto
mov eax, ebx
jmp 0x18011d092
cmp eax, 1
jne 0x18011d111
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 + 0x108]
call fcn.180147590
movsxd rax, ebx
lea rdx, [r13 + 0xa3]
add rdx, rax
mov rcx, r12
lea rax, [rsp + rax + 0x2f]
cmp rsi, rax
ja 0x18011d0db
lea rax, [rsp + 0x30]
cmp rdx, rax
jae 0x18011d13d
mov eax, 0xfffffff8
lea r8, [rsp + 0x30]
mov edx, ebx
and rdx, rax
mov rax, rsi
sub r8, rsi
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 0x18011d0f0
jmp 0x18011d13d
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 + 0x108]
mov ebx, r12d
call fcn.180147590
mov rcx, r12
mov edx, ebx
cmp rcx, rdx
jge 0x18011d171
lea r8, [rsp + 0x30]
sub r8, rsi
lea rax, [rcx + rsi]
sub rdx, rcx
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rax + r8]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x18011d160
mov ebx, 0x20
sub r15, 1
jne 0x18011d070
mov r15, qword [rsp + 0x88]
mov r12, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.18015c050
add rsp, 0x98
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.18015c688
int3
Function at 0x1801290f0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x48], 1
call fcn.180175c18
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 0x180129151
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.1800f0e30
test ebx, ebx
sete al
add rsp, 0x30
pop rbx
ret
Function at 0x180129830
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 0x180129919
test rdx, rdx
je 0x18012995d
test r8d, r8d
je 0x1801299a1
mov rcx, qword [rcx]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x18012990c
mov qword [rsp + 0x58], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov dword [rdi + 8], eax
call fcn.180175c18
mov dword [rax], ebx
mov eax, dword [rdi + 8]
mov rbx, qword [rsp + 0x58]
cmp eax, 0xb
je 0x1801298a3
add eax, 0xffffd8cd
cmp eax, 1
ja 0x1801298fc
mov r8, rsi
mov edx, reloc.WS2_32.dll_recv
mov rcx, rdi
call fcn.180129410
test al, al
je 0x1801298fc
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 0x1801298ee
test ecx, ecx
je 0x18012990c
mov dword [rdi + 8], ecx
call fcn.180175c18
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.180167c6c
mov rcx, rax
lea r8, str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.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.18007d3a0
call fcn.180177210
int3
mov ecx, 2
call fcn.180167c6c
mov rcx, rax
lea r8, str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.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.18007d3a0
call fcn.180177210
int3
mov ecx, 2
call fcn.180167c6c
mov rcx, rax
lea r8, str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.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.18007d3a0
call fcn.180177210
int3
Function at 0x180129ad0
Capabilities:
Resolve dns

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x18020ce50]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov dword [rsp + 0x40], 0x80
test rcx, rcx
je 0x180129b80
mov rcx, qword [rcx]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x180129b66
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 0x180129b66
lea rcx, [rsp + 0xd0]
call fcn.180084250
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.18015c050
add rsp, 0x1e8
ret
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.18015c050
add rsp, 0x1e8
ret
mov ecx, 2
call fcn.180167c6c
mov rcx, rax
lea r8, str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.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.18007d3a0
call fcn.180177210
int3