joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c050
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
xor esi, esi
push edi
test ebp, ebp
je 0x44c1b7
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
cmp edi, 2
jbe 0x44c10c
mov dword [esp + 0x10], 4
mov ah, byte [ecx]
sub edi, 3
mov dl, byte [ecx + 1]
mov bl, ah
mov dh, byte [ecx + 2]
mov al, dl
mov ebp, dword [esp + 0x24]
and bl, 3
shr al, 4
and dl, 0xf
shl bl, 4
add ecx, 3
add bl, al
shl dl, 2
mov al, dh
shr al, 6
add dl, al
cmp dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x20]
ja 0x44c1b7
movzx eax, ah
shr eax, 2
mov al, byte [eax + 0x4ed680]
mov byte [esi + ebp], al
movzx eax, bl
mov al, byte [eax + 0x4ed680]
mov byte [esi + ebp + 1], al
movzx eax, dl
mov al, byte [eax + 0x4ed680]
mov byte [esi + ebp + 2], al
movzx eax, dh
and eax, 0x3f
mov al, byte [eax + 0x4ed680]
mov byte [esi + ebp + 3], al
add esi, 4
mov eax, dword [esp + 0x10]
add eax, 4
mov dword [esp + 0x10], eax
cmp edi, 2
ja 0x44c080
test edi, edi
je 0x44c1a5
xor bl, bl
mov word [esp + 0x21], 0
xor ah, ah
mov byte [esp + 0x20], bl
xor dl, dl
test edi, edi
je 0x44c144
push edi
push ecx
lea eax, [esp + 0x28]
push eax
call fcn.004b5e30
mov ah, byte [esp + 0x2e]
add esp, 0xc
mov dl, byte [esp + 0x21]
mov bl, byte [esp + 0x20]
mov al, dl
shr ah, 6
mov cl, bl
shr al, 4
and bl, 3
shr cl, 2
and dl, 0xf
shl bl, 4
shl dl, 2
add bl, al
add dl, ah
lea eax, [esi + 4]
cmp eax, dword [esp + 0x24]
ja 0x44c1b7
movzx eax, cl
mov al, byte [eax + 0x4ed680]
mov byte [esi + ebp], al
movzx eax, bl
mov al, byte [eax + 0x4ed680]
mov byte [esi + ebp + 1], al
add esi, 2
lea ecx, [esi + ebp]
cmp edi, 1
jne 0x44c192
mov al, 0x3d
jmp 0x44c19b
movzx eax, dl
mov al, byte [eax + 0x4ed680]
mov byte [ecx], al
mov byte [esi + ebp + 1], 0x3d
add esi, 2
cmp esi, dword [esp + 0x24]
jae 0x44c1b7
pop edi
mov byte [esi + ebp], 0
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
Function at 0x44c4c0
Capabilities:
Get hostname

Disassembly:
sub esp, 0x13c
mov eax, dword [0x522298]
xor eax, esp
mov dword [esp + 0x138], eax
push esi
mov esi, dword [esp + 0x144]
lea eax, [esp + 0x24]
push pe_nt_image_headers32
xorps xmm0, xmm0
push 0
push eax
movups xmmword [esp + 0x10], xmm0
call fcn.004b63b0
lea eax, [esp + 0x30]
push eax
call fcn.0044e5d0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
mov dword [esp + 0x30], 0
shr ecx, 0x10
xor ecx, eax
movzx eax, cx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x34]
push 0x100
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x44c567
call fcn.004c3d2b
cmp dword [eax], 0x26
jne 0x44c548
push 0x100
push str.hostname_exceeds__d_characters__truncating.
jmp 0x44c554
call fcn.004c3d2b
push dword [eax]
push str.unable_to_get_hostname:__d
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0xc
push 0
push 0
push 1
push 0x522050
mov byte [esp + 0x143], 0
call fcn.0044e4f0
movups xmm0, xmmword [esp + 0x34]
mov dword [esp + 0x144], eax
mov dword [esp + 0x148], edx
movups xmmword [esp + 0x24], xmm0
movd ecx, xmm0
psrldq xmm0, 4
movd eax, xmm0
not ecx
mov dword [esp + 0x2c], ecx
not eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push pe_nt_image_headers32
push eax
call fcn.0044c810
mov eax, dword [esp + 0x24]
add esp, 0x20
cmp byte [esp + 0x148], 0
mov dword [esi + 0x10], eax
mov al, byte [esp + 8]
mov byte [esi + 0x14], al
je 0x44c602
mov eax, dword [esp + 0xc]
mov ecx, eax
and ecx, 0xff0ffff0
and eax, 0xff0ffff0
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x13c]
mov dword [esi + 0x18], eax
pop esi
xor ecx, esp
call fcn.004b3f14
add esp, 0x13c
ret
Function at 0x4603b0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
mov ecx, 0x461b40
test ebp, ebp
mov dword [esp + 8], 0
push esi
mov esi, dword [esp + 0x1c]
mov eax, 0x461a90
cmovne eax, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov ecx, 0x4f215c
push edi
mov edi, dword [esp + 0x28]
mov eax, 0x4f2160
cmove eax, ecx
mov bh, 1
mov dword [esp + 0x24], eax
mov ecx, 0x10
push 0
lea eax, [esp + 0x14]
setne bl
push eax
push 0
mov eax, 0x21
cmovne eax, ecx
push 8
movzx eax, ax
push eax
push esi
call sub.DNSAPI.dll_DnsQuery_UTF8
test eax, eax
je 0x46048c
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x460469
push dword [esp + 0x14]
push esi
push dword [esp + 0x2c]
push str.Failed_to_look_up__s_record___s_:__s
push 3
push 2
push dword [esp + 0x44]
call fcn.0044b5d0
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
jmp 0x46054f
push esi
push dword [esp + 0x28]
push str.Failed_to_look_up__s_record___s_:_Unknown_error
push 3
push 2
push dword [esp + 0x40]
call fcn.0044b5d0
mov ecx, dword [esp + 0x28]
add esp, 0x18
jmp 0x46054f
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x4604a0
push esi
push dword [esp + 0x28]
push str.No__s_records_for___s_
jmp 0x460473
mov edx, dword [esp + 0x2c]
xor esi, esi
cmp ebp, 1
jne 0x4604b4
cmp word [ecx + 8], 0x10
je 0x4604bf
jmp 0x4604f9
test ebp, ebp
jne 0x4604f9
cmp word [ecx + 8], 0x21
jne 0x4604f9
test esi, esi
jle 0x4604c8
cmp ebp, 1
je 0x46052b
test edi, edi
je 0x4604de
test esi, esi
je 0x4604d8
mov eax, dword [ecx + 0x10]
cmp eax, dword [edi + 4]
jae 0x4604de
mov eax, dword [ecx + 0x10]
mov dword [edi + 4], eax
push edx
push edi
push ecx
push dword [esp + 0x2c]
call dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
add esp, 0x10
test al, al
je 0x460549
mov edx, dword [esp + 0x2c]
inc esi
mov eax, dword [ecx]
mov ecx, eax
mov dword [esp + 0x10], ecx
test eax, eax
jne 0x4604a6
mov dword [edi], esi
test esi, esi
jne 0x46054d
push dword [esp + 0x20]
push dword [esp + 0x28]
push str.No_matching__s_records_for___s_
push 3
push 2
push edx
call fcn.0044b5d0
mov ecx, dword [esp + 0x28]
add esp, 0x18
jmp 0x46054f
push dword [esp + 0x20]
xor bh, bh
push str.Multiple_TXT_records_for___s_
push 3
push 2
push edx
call fcn.0044b5d0
mov ecx, dword [esp + 0x24]
add esp, 0x14
jmp 0x46054f
xor bh, bh
jmp 0x46054f
mov bl, 1
test ecx, ecx
je 0x46055b
push 1
push ecx
call sub.DNSAPI.dll_DnsFree
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46056a
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test bl, bl
je 0x46057c
test bh, bh
je 0x46057c
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
Function at 0x460980
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x34
mov eax, dword [0x522298]
xor eax, esp
mov dword [esp + 0x30], eax
cmp dword [esp + 0x38], 0
push ebx
mov ebx, dword [esp + 0x44]
push ebp
mov ebp, dword [esp + 0x44]
mov dword [esp + 0xc], ebx
je 0x460b0a
test ebp, ebp
je 0x460b3b
movzx eax, word [ebp + 0x20a]
push esi
push eax
push 0x4f22d0
lea eax, [esp + 0x3c]
push 8
push eax
call fcn.00449250
mov eax, dword [ebp + 0x20c]
lea esi, [ebp + 4]
add esp, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x1c], 1
xorps xmm0, xmm0
mov dword [esp + 0x14], 0
movlpd qword [esp + 0x24], xmm0
push eax
lea eax, [esp + 0x18]
movlpd qword [esp + 0x30], xmm0
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x28], 0
push eax
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x460a41
push esi
push 0x4f22d4
push 3
push 2
push ebx
call fcn.0044b5d0
add esp, 0x14
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004b3f14
add esp, 0x34
ret
mov esi, dword [esp + 0xc]
push edi
test esi, esi
je 0x460ad2
nop
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call fcn.0047ef90
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x460a9d
call fcn.0044e5b0
mov edi, eax
mov ecx, edx
imul eax, dword [esp + 0x48], 0x3e8
cdq
add edi, eax
adc ecx, edx
push ecx
push edi
push dword [esi + 0x10]
push dword [esi + 0x18]
push ebx
call fcn.0047ecc0
add esp, 0x14
test eax, eax
je 0x460aa8
push ebx
call fcn.0047ee20
add esp, 4
xor ebx, ebx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x460a50
test ebx, ebx
je 0x460ace
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push ebx
call fcn.00486120
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004b3f14
add esp, 0x34
ret
mov ebx, dword [esp + 0x14]
lea eax, [ebp + 0x104]
push eax
push str.Failed_to_connect_to_target_host:__s
push 5
push 2
push ebx
call fcn.0044b5d0
add esp, 0x14
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [esp + 0x40]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b3f14
add esp, 0x34
ret
push str.connecttimeoutms
push str.mongoc_client_connect_tcp
push 0x292
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_client.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
push str.host
push str.mongoc_client_connect_tcp
push 0x293
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_client.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
int3
Function at 0x47ad30
Capabilities:
Hash data via bcrypt

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push 0
push eax
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push str.ObjectLength
push esi
mov dword [esp + 0x20], 0
xor bl, bl
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
call sub.bcrypt.dll_BCryptGetProperty
test eax, eax
jns 0x47ad95
push eax
push str.BCryptGetProperty__:_OBJECT_LENGTH__ld
push str.mongoc
push 0
call fcn.00454e20
add esp, 0x10
xor al, al
pop esi
pop ebx
add esp, 0x10
ret
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x20]
push eax
push str.HashDigestLength
push esi
call sub.bcrypt.dll_BCryptGetProperty
test eax, eax
jns 0x47adba
push eax
push str.BCryptGetProperty__:_HASH_LENGTH__ld
jmp 0x47ad7e
push edi
push dword [esp + 0x10]
call fcn.00449bb0
add esp, 4
mov edi, eax
lea eax, [esp + 0xc]
push 0
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x1c]
push edi
push eax
push esi
call sub.bcrypt.dll_BCryptCreateHash
test eax, eax
jns 0x47adfe
push eax
push str.BCryptCreateHash__:__ld
push str.mongoc
push 0
call fcn.00454e20
add esp, 0x10
jmp 0x47ae5c
push 0
push dword [esp + 0x34]
push dword [esp + 0x34]
push dword [esp + 0x18]
call sub.bcrypt.dll_BCryptHashData
test eax, eax
jns 0x47ae2c
push eax
push str.BCryptHashData__:__ld
push str.mongoc
push 0
call fcn.00454e20
add esp, 0x10
jmp 0x47ae5c
push 0
push dword [esp + 0x1c]
push dword [esp + 0x3c]
push dword [esp + 0x18]
call sub.bcrypt.dll_BCryptFinishHash
test eax, eax
jns 0x47ae5a
push eax
push str.BCryptFinishHash__:__ld
push str.mongoc
push 0
call fcn.00454e20
add esp, 0x10
jmp 0x47ae5c
mov bl, 1
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x47ae6a
push ecx
call sub.bcrypt.dll_BCryptDestroyHash
push edi
call fcn.00449ba0
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x47cff0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x5c
mov eax, dword [0x522298]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
push ebx
push ebp
mov ebp, dword [esp + 0x68]
push esi
mov esi, dword [esp + 0x7c]
push edi
mov edi, dword [esp + 0x78]
lea ebx, [ebp + 0x94]
push esi
push eax
lea eax, [esp + 0x50]
mov dword [esp + 0x1c], ebp
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], ebx
call fcn.004b5e30
add esp, 0xc
cmp esi, 0x20
jae 0x47d1dd
lea eax, [esi + 1]
mov byte [esp + esi + 0x48], 0
cmp eax, 0x20
jae 0x47d1dd
mov byte [esp + eax + 0x48], 0
lea eax, [esi + 2]
cmp eax, 0x20
jae 0x47d1dd
mov ecx, dword [ebp + 0xfc]
mov edx, 0x20
mov byte [esp + eax + 0x48], 0
mov byte [esp + esi + 0x4b], 1
test ecx, ecx
jne 0x47d080
lea eax, [ecx + 0x14]
jmp 0x47d088
xor eax, eax
cmp ecx, 1
cmove eax, edx
mov esi, dword [esp + 0x10]
add ebp, 0xf4
push ebx
push eax
lea eax, [esp + 0x50]
mov dword [esp + 0x28], ebp
push eax
push edi
push esi
push ebp
call fcn.004a1cc0
mov ecx, dword [esp + 0x2c]
add esp, 0x18
mov ecx, dword [ecx + 0xfc]
test ecx, ecx
jne 0x47d0bb
lea eax, [ecx + 0x14]
jmp 0x47d0c8
xor eax, eax
cmp ecx, 1
mov ecx, 0x20
cmove eax, ecx
push eax
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.004b5e30
mov eax, dword [esp + 0x90]
add esp, 0xc
cmp eax, 2
jb 0x47d1b5
dec eax
mov dword [esp + 0x24], eax
nop dword [eax]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xfc]
test eax, eax
jne 0x47d103
lea esi, [eax + 0x14]
jmp 0x47d10f
cmp eax, 1
jne 0x47d1c8
lea esi, [eax + 0x1f]
mov ecx, dword [esp + 0x10]
lea ebx, [esp + 0x28]
mov dword [esp + 0x1c], ebx
mov eax, ebp
push dword [esp + 0x1c]
mov ebx, dword [esp + 0x1c]
mov edx, edi
mov ebp, esi
lea edi, [esp + 0x2c]
push ebp
push edi
push edx
push ecx
push eax
call fcn.004a1cc0
lea edx, [ebx - 1]
add esp, 0x18
lea eax, [esp + esi + 0x27]
xor ecx, ecx
add edx, esi
cmp ebx, eax
ja 0x47d14f
mov eax, edi
cmp edx, eax
jae 0x47d17c
mov edx, esi
lea edi, [esp + 0x28]
and edx, 0xfffffff8
mov eax, ebx
sub edi, ebx
nop dword [eax]
movq xmm0, qword [eax]
lea eax, [eax + 8]
movq xmm1, qword [edi + eax - 8]
add ecx, 8
xorps xmm1, xmm0
movq qword [eax - 8], xmm1
cmp ecx, edx
jl 0x47d160
cmp ecx, esi
jge 0x47d19e
lea edx, [esp + 0x28]
sub edx, ebx
lea eax, [ecx + ebx]
sub esi, ecx
nop dword [eax + eax]
mov cl, byte [eax + edx]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub esi, 1
jne 0x47d190
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x78]
mov ebp, dword [esp + 0x20]
sub dword [esp + 0x24], 1
jne 0x47d0f0
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b3f14
add esp, 0x5c
ret
lea eax, [esp + 0x28]
push eax
push 0
push eax
push edi
push esi
push ebp
call fcn.004a1cc0
add esp, 0x18
jmp 0x47d1aa
call fcn.004b43b0
int3
Function at 0x47e700
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov dword [esp + 4], 1
call fcn.004c3d2b
push 4
mov dword [eax], 0
lea eax, [esp + 8]
push eax
push 1
push 6
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
cmp esi, 0xffffffff
jne 0x47e74c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAGetLastError__:__d
push str.socket
push 2
call fcn.00454e20
add esp, 0x10
test esi, esi
pop esi
sete al
pop ecx
ret

Function at 0x47e760
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 4]
push edi
xor edi, edi
test ecx, ecx
je 0x47e82d
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x47e85e
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x47e88f
push esi
xor esi, esi
test ebx, ebx
je 0x47e826
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [ebp + esi*8]
cmp eax, 0x7fffffff
ja 0x47e8c0
push 0
push eax
push dword [ebp + esi*8 + 4]
push dword [ecx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x47e7e5
add edi, eax
cdq
test edx, edx
jl 0x47e826
jg 0x47e7d0
test eax, eax
jb 0x47e826
cmp eax, dword [ebp + esi*8]
jne 0x47e826
test edx, edx
jne 0x47e826
inc esi
cmp esi, ebx
jae 0x47e826
mov ecx, dword [esp + 0x14]
jmp 0x47e7a0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [esp + 0x14]
mov esi, eax
mov dword [ebx + 4], esi
call fcn.004c3d2b
mov dword [eax], esi
mov eax, dword [ebx + 4]
cmp eax, 0xb
je 0x47e819
cmp eax, 0x2733
je 0x47e819
cmp eax, 0x2734
je 0x47e819
pop esi
pop ebx
pop ebp
or eax, 0xffffffff
pop edi
ret
pop esi
or eax, 0xffffffff
test edi, edi
pop ebx
pop ebp
cmovne eax, edi
pop edi
ret
pop esi
pop ebx
pop ebp
mov eax, edi
pop edi
ret
push str.sock
push str._mongoc_socket_try_sendv_slow
push 0x4c4
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
push 0x4f91bc
push str._mongoc_socket_try_sendv_slow
push 0x4c5
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
push str.iovcnt
push str._mongoc_socket_try_sendv_slow
push 0x4c6
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
push str.bson_in_range_unsigned__int__iov_i_.iov_len_
push str._mongoc_socket_try_sendv_slow
push 0x4ca
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
int3
Function at 0x47ecc0
Capabilities:
Connect socket

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 4
test edi, edi
je 0x47ed7e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47edaf
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x47ede0
push ecx
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x47ed79
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov dword [edi + 4], esi
call fcn.004c3d2b
push edi
mov dword [eax], esi
call fcn.0047e6e0
add esp, 4
pop esi
test al, al
je 0x47ed73
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x10
push edi
call fcn.0047e900
add esp, 0x10
test al, al
je 0x47ed73
lea eax, [esp + 4]
mov dword [esp + 0xc], 0xffffffff
push eax
lea eax, [esp + 0x10]
push eax
push 0x1007
push 0xffff
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
mov eax, dword [esp + 0xc]
jne 0x47ed65
test eax, eax
je 0x47ed79
mov dword [edi + 4], eax
call fcn.004c3d2b
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
or eax, 0xffffffff
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret
push str.sock
push str.mongoc_socket_connect
push 0x35d
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
push str.addr
push str.mongoc_socket_connect
push 0x35e
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
push str.addrlen
push str.mongoc_socket_connect
push 0x35f
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
int3

Function at 0x47eec0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x188
mov eax, dword [0x522298]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
mov dword [esp], 0x80
test eax, eax
je 0x47ef5a
lea ecx, [esp]
push ecx
lea ecx, [esp + 8]
push ecx
push dword [eax]
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x47ef43
push eax
push eax
push eax
push 0x100
lea eax, [esp + 0x94]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x47ef43
lea eax, [esp + 0x84]
push eax
call fcn.004492b0
add esp, 4
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.004b3f14
add esp, 0x188
ret
mov ecx, dword [esp + 0x184]
xor eax, eax
xor ecx, esp
call fcn.004b3f14
add esp, 0x188
ret
push str.sock
push str.mongoc_socket_getnameinfo
push 0x5de
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.24.3_56c7a21808.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.004b9cc5
add esp, 4
push eax
call fcn.00443a60
add esp, 0x18
call fcn.004c3b6b
int3
Function at 0x47ef90
Capabilities:
Query or enumerate registry value
Set socket configuration

Disassembly:
sub esp, 0x28
mov eax, dword [0x522298]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov ebx, dword [esp + 0x30]
push edi
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push ebx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x47efde
lea eax, [esp + 8]
mov dword [esp + 8], 1
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x47eff1
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004b3f14
add esp, 0x28
ret
push esi
cmp ebx, 1
je 0x47f140
push edi
call fcn.0047e700
add esp, 4
test al, al
jne 0x47f01c
push str.Failed_to_enable_TCP_NODELAY.
push str.socket
push 2
call fcn.00454e20
add esp, 0xc
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 1
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x47f140
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push getpeername
mov dword [esp + 0x20], 4
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], 0x1d4c0
mov dword [esp + 0x40], 0x2710
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47f120
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push str.KeepAliveTime
push dword [esp + 0x2c]
call esi
test eax, eax
jne 0x47f0bf
cmp dword [esp + 0x10], 4
jne 0x47f0d1
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x28]
jae 0x47f0d1
jmp 0x47f0cd
mov eax, dword [esp + 0x28]
mov ecx, 0x6ddd00
cmp eax, ecx
cmova eax, ecx
mov dword [esp + 0x28], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push str.KeepAliveInterval
push dword [esp + 0x2c]
call esi
test eax, eax
jne 0x47f104
cmp dword [esp + 0x10], 4
jne 0x47f116
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x2c]
jae 0x47f116
jmp 0x47f112
mov eax, dword [esp + 0x2c]
mov ecx, 0x3e8
cmp eax, ecx
cmova eax, ecx
mov dword [esp + 0x2c], eax
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x3c]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 0x10
call fcn.00449bf0
mov esi, eax
add esp, 4
mov dword [esi], edi
mov dword [esi + 8], ebx
call sub.KERNEL32.dll_GetCurrentProcessId
mov ecx, dword [esp + 0x30]
mov dword [esi + 0xc], eax
mov eax, esi
pop esi
pop edi
pop ebx
xor ecx, esp
call fcn.004b3f14
add esp, 0x28
ret