joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a56d0
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 0x100a5735
push eax
push str.BCryptGetProperty__:_OBJECT_LENGTH__ld
push str.mongoc
push 0
call fcn.1007f5d0
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 0x100a575a
push eax
push str.BCryptGetProperty__:_HASH_LENGTH__ld
jmp 0x100a571e
push edi
push dword [esp + 0x10]
call fcn.100769a0
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 0x100a579e
push eax
push str.BCryptCreateHash__:__ld
push str.mongoc
push 0
call fcn.1007f5d0
add esp, 0x10
jmp 0x100a57fc
push 0
push dword [esp + 0x34]
push dword [esp + 0x34]
push dword [esp + 0x18]
call sub.bcrypt.dll_BCryptHashData
test eax, eax
jns 0x100a57cc
push eax
push str.BCryptHashData__:__ld
push str.mongoc
push 0
call fcn.1007f5d0
add esp, 0x10
jmp 0x100a57fc
push 0
push dword [esp + 0x1c]
push dword [esp + 0x3c]
push dword [esp + 0x18]
call sub.bcrypt.dll_BCryptFinishHash
test eax, eax
jns 0x100a57fa
push eax
push str.BCryptFinishHash__:__ld
push str.mongoc
push 0
call fcn.1007f5d0
add esp, 0x10
jmp 0x100a57fc
mov bl, 1
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x100a580a
push ecx
call sub.bcrypt.dll_BCryptDestroyHash
push edi
call fcn.10076990
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x100a8250
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x54
mov eax, dword [0x101c6040]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
push ebx
push ebp
mov ebp, dword [esp + 0x60]
push esi
mov esi, dword [esp + 0x74]
push edi
mov edi, dword [esp + 0x70]
lea ebx, [ebp + 0xb0]
push esi
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x1c], ebp
push eax
mov dword [esp + 0x1c], ecx
call fcn.10048db0
add esp, 0xc
cmp esi, 0x20
jae 0x100a843d
lea eax, [esi + 1]
mov byte [esp + esi + 0x40], 0
cmp eax, 0x20
jae 0x100a843d
mov byte [esp + eax + 0x40], 0
lea eax, [esi + 2]
cmp eax, 0x20
jae 0x100a843d
mov ecx, dword [ebp + 0x118]
mov edx, 0x20
mov byte [esp + eax + 0x40], 0
mov byte [esp + esi + 0x43], 1
test ecx, ecx
jne 0x100a82dc
lea eax, [ecx + 0x14]
jmp 0x100a82e4
xor eax, eax
cmp ecx, 1
cmove eax, edx
mov esi, dword [esp + 0x10]
add ebp, 0x110
push ebx
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x20], ebp
push eax
push edi
push esi
push ebp
call fcn.100cdac0
mov ecx, dword [esp + 0x2c]
add esp, 0x18
mov ecx, dword [ecx + 0x118]
test ecx, ecx
jne 0x100a8317
lea eax, [ecx + 0x14]
jmp 0x100a8324
xor eax, eax
cmp ecx, 1
mov ecx, 0x20
cmove eax, ecx
push eax
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.10048db0
mov eax, dword [esp + 0x88]
add esp, 0xc
cmp eax, 2
jb 0x100a8415
dec eax
mov dword [esp + 0x1c], eax
nop dword [eax + eax]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x118]
test eax, eax
jne 0x100a8363
lea esi, [eax + 0x14]
jmp 0x100a8371
cmp eax, 1
jne 0x100a8428
mov esi, 0x20
mov ecx, dword [esp + 0x10]
mov eax, ebp
lea ebp, [esp + 0x20]
mov edx, edi
push ebp
mov ebx, esi
mov edi, ebp
push ebx
push edi
push edx
push ecx
push eax
call fcn.100cdac0
mov ebx, dword [esp + 0x2c]
lea eax, [esp + esi + 0x37]
add ebx, 0xb0
add esp, 0x18
xor ecx, ecx
lea edx, [ebx - 1]
add edx, esi
cmp ebx, eax
ja 0x100a83ae
mov eax, ebp
cmp edx, eax
jae 0x100a83dc
mov edx, esi
lea edi, [esp + 0x20]
and edx, 0xfffffff8
mov eax, ebx
sub edi, ebx
nop dword [eax + 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 0x100a83c0
cmp ecx, esi
jge 0x100a83fe
lea edx, [esp + 0x20]
sub edx, ebx
lea eax, [ecx + ebx]
sub esi, ecx
nop dword [eax + eax]
mov cl, byte [edx + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub esi, 1
jne 0x100a83f0
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x70]
mov ebp, dword [esp + 0x18]
sub dword [esp + 0x1c], 1
jne 0x100a8350
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10046e60
add esp, 0x54
ret
lea eax, [esp + 0x20]
push eax
push 0
push eax
push edi
push esi
push ebp
call fcn.100cdac0
add esp, 0x18
jmp 0x100a840a
call fcn.100473c5
int3
Function at 0x100b2e90
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov dword [esp + 4], 1
call fcn.10057cd5
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 0x100b2edc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAGetLastError__:__d
push str.socket
push 2
call fcn.1007f5d0
add esp, 0x10
test esi, esi
pop esi
sete al
pop ecx
ret

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

Disassembly:
mov ecx, dword [esp + 4]
push edi
xor edi, edi
test ecx, ecx
je 0x100b2fdd
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x100b300e
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x100b303f
push esi
xor esi, esi
test ebx, ebx
je 0x100b2fd6
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [ebp + esi*8]
cmp eax, 0x7fffffff
ja 0x100b3070
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 0x100b2f95
add edi, eax
cdq
test edx, edx
jl 0x100b2fd6
jg 0x100b2f80
test eax, eax
jb 0x100b2fd6
cmp eax, dword [ebp + esi*8]
jne 0x100b2fd6
test edx, edx
jne 0x100b2fd6
inc esi
cmp esi, ebx
jae 0x100b2fd6
mov ecx, dword [esp + 0x14]
jmp 0x100b2f50
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [esp + 0x14]
mov esi, eax
mov dword [ebx + 4], esi
call fcn.10057cd5
mov dword [eax], esi
mov eax, dword [ebx + 4]
cmp eax, 0xb
je 0x100b2fc9
cmp eax, 0x2733
je 0x100b2fc9
cmp eax, 0x2734
je 0x100b2fc9
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.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.1004c994
add esp, 4
push eax
call fcn.10070de0
add esp, 0x18
call fcn.10056f35
push 0x10131b5c
push str._mongoc_socket_try_sendv_slow
push 0x4c5
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.1004c994
add esp, 4
push eax
call fcn.10070de0
add esp, 0x18
call fcn.10056f35
push str.iovcnt
push str._mongoc_socket_try_sendv_slow
push 0x4c6
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.1004c994
add esp, 4
push eax
call fcn.10070de0
add esp, 0x18
call fcn.10056f35
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.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.1004c994
add esp, 4
push eax
call fcn.10070de0
add esp, 0x18
call fcn.10056f35
int3
Function at 0x100b3470
Capabilities:
Connect socket

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 4
test edi, edi
je 0x100b352e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100b355f
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x100b3590
push ecx
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100b3529
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov dword [edi + 4], esi
call fcn.10057cd5
push edi
mov dword [eax], esi
call fcn.100b2e70
add esp, 4
pop esi
test al, al
je 0x100b3523
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x10
push edi
call fcn.100b30b0
add esp, 0x10
test al, al
je 0x100b3523
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 0x100b3515
test eax, eax
je 0x100b3529
mov dword [edi + 4], eax
call fcn.10057cd5
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.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.1004c994
add esp, 4
push eax
call fcn.10070de0
add esp, 0x18
call fcn.10056f35
push str.addr
push str.mongoc_socket_connect
push 0x35e
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.1004c994
add esp, 4
push eax
call fcn.10070de0
add esp, 0x18
call fcn.10056f35
push str.addrlen
push str.mongoc_socket_connect
push 0x35f
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.1004c994
add esp, 4
push eax
call fcn.10070de0
add esp, 0x18
call fcn.10056f35
int3
Function at 0x100b3670
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x188
mov eax, dword [0x101c6040]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
mov dword [esp], 0x80
test eax, eax
je 0x100b370a
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 0x100b36f3
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 0x100b36f3
lea eax, [esp + 0x84]
push eax
call fcn.100784f0
add esp, 4
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.10046e60
add esp, 0x188
ret
mov ecx, dword [esp + 0x184]
xor eax, eax
xor ecx, esp
call fcn.10046e60
add esp, 0x188
ret
push str.sock
push str.mongoc_socket_getnameinfo
push 0x5de
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.1004c994
add esp, 4
push eax
call fcn.10070de0
add esp, 0x18
call fcn.10056f35
int3
Function at 0x100b3740
Capabilities:
Query or enumerate registry value
Set socket configuration

Disassembly:
sub esp, 0x28
mov eax, dword [0x101c6040]
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 0x100b378e
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 0x100b37a1
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.10046e60
add esp, 0x28
ret
push esi
cmp ebx, 1
je 0x100b38f0
push edi
call fcn.100b2e90
add esp, 4
test al, al
jne 0x100b37cc
push str.Failed_to_enable_TCP_NODELAY.
push str.socket
push 2
call fcn.1007f5d0
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 0x100b38f0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push connect
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 0x100b38d0
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 0x100b386f
cmp dword [esp + 0x10], 4
jne 0x100b3881
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x28]
jae 0x100b3881
jmp 0x100b387d
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 0x100b38b4
cmp dword [esp + 0x10], 4
jne 0x100b38c6
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x2c]
jae 0x100b38c6
jmp 0x100b38c2
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.100769e0
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.10046e60
add esp, 0x28
ret
Function at 0x100b3b70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x100b3c4a
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x100b3c7b
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100b3cac
push ebx
push dword [esp + 0x1c]
mov dword [edi + 4], 0
push eax
push ebp
push dword [edi]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp ebx, 0xffffffff
sete al
mov byte [esp + 0x10], al
jne 0x100b3c3c
push esi
nop
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov dword [edi + 4], esi
call fcn.10057cd5
mov dword [eax], esi
mov eax, dword [edi + 4]
cmp eax, 0xb
je 0x100b3be8
cmp eax, 0x2733
je 0x100b3be8
cmp eax, 0x2734
jne 0x100b3c37
push dword [esp + 0x28]
push dword [esp + 0x28]
push 0x300
push edi
call fcn.100b30b0
add esp, 0x10
test al, al
je 0x100b3c37
push dword [esp + 0x20]
mov dword [edi + 4], 0
push dword [esp + 0x20]
push ebp
push dword [edi]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp ebx, 0xffffffff
sete al
mov byte [esp + 0x14], al
je 0x100b3bc0
or ecx, 0xffffffff
test al, al
pop esi
cmovne ebx, ecx
mov eax, ebx
pop ebx
pop ebp
pop edi
ret
mov al, byte [esp + 0x14]
pop esi
or ecx, 0xffffffff
test al, al
cmovne ebx, ecx
mov eax, ebx
pop ebx
pop ebp
pop edi
ret
push str.sock
push str.mongoc_socket_recv
push 0x43d
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.1004c994
add esp, 4
push eax
call fcn.10070de0
add esp, 0x18
call fcn.10056f35
push 0x100fb9a8
push str.mongoc_socket_recv
push 0x43e
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.1004c994
add esp, 4
push eax
call fcn.10070de0
add esp, 0x18
call fcn.10056f35
push str.buflen
push str.mongoc_socket_recv
push 0x43f
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_socket.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.1004c994
add esp, 4
push eax
call fcn.10070de0
add esp, 0x18
call fcn.10056f35
int3
Function at 0x100c4280
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x100c42a0
mov edx, dword [esp + 8]
nop
cmp dword [eax], edx
je 0x100c42a1
ja 0x100c42a0
mov eax, dword [eax + 0x240]
test eax, eax
jne 0x100c4290
ret
lea ecx, [eax + 0x250]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
jmp fcn.100c3f30

Function at 0x100c7cf0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, dword [0x101d3868]
test eax, eax
jne 0x100c7d2b
push eax
push eax
push 0x1014216c
push 0x101d3868
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
jns 0x100c7d26
push eax
push str.BCryptOpenAlgorithmProvider__:__ld
push str.mongoc
push 0
call fcn.1007f5d0
add esp, 0x10
xor eax, eax
ret
mov eax, dword [0x101d3868]
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x100c7d45
mov eax, 1
ret
push eax
push str.BCryptGenRandom__:__ld
push str.mongoc
push 0
call fcn.1007f5d0
add esp, 0x10
xor eax, eax
ret

Function at 0x100cab80
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 0x100cace7
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp edi, 2
jbe 0x100cac3c
mov dword [esp + 0x10], 4
nop dword [eax]
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 0x100cace7
movzx eax, ah
shr eax, 2
mov al, byte [eax + 0x10147e48]
mov byte [esi + ebp], al
movzx eax, bl
mov al, byte [eax + 0x10147e48]
mov byte [esi + ebp + 1], al
movzx eax, dl
mov al, byte [eax + 0x10147e48]
mov byte [esi + ebp + 2], al
movzx eax, dh
and eax, 0x3f
mov al, byte [eax + 0x10147e48]
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 0x100cabb0
test edi, edi
je 0x100cacd5
xor bl, bl
mov word [esp + 0x21], 0
xor ah, ah
mov byte [esp + 0x20], bl
xor dl, dl
test edi, edi
je 0x100cac74
push edi
push ecx
lea eax, [esp + 0x28]
push eax
call fcn.10048db0
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 0x100cace7
movzx eax, cl
mov al, byte [eax + 0x10147e48]
mov byte [esi + ebp], al
movzx eax, bl
mov al, byte [eax + 0x10147e48]
mov byte [esi + ebp + 1], al
add esi, 2
lea ecx, [esi + ebp]
cmp edi, 1
jne 0x100cacc2
mov al, 0x3d
jmp 0x100caccb
movzx eax, dl
mov al, byte [eax + 0x10147e48]
mov byte [ecx], al
mov byte [esi + ebp + 1], 0x3d
add esi, 2
cmp esi, dword [esp + 0x24]
jae 0x100cace7
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 0x100cd2b0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x100cdb50
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
je 0x100cdb85
push ebx
mov ebx, dword [esp + 0x14]
sub ebx, eax
nop word [eax + eax]
movzx edx, byte [ebx + eax]
lea eax, [eax + 1]
movzx ecx, byte [eax - 1]
xor edx, ecx
or esi, edx
sub edi, 1
jne 0x100cdb70
pop ebx
xor eax, eax
test esi, esi
pop edi
setne al
pop esi
ret

Function at 0x100d1080
Capabilities:
Decrypt data via sspi

Disassembly:
sub esp, 0x40
mov eax, dword [0x101c6040]
xor eax, esp
mov dword [esp + 0x3c], eax
push esi
mov esi, dword [esp + 0x48]
push edi
xor edi, edi
mov eax, dword [esi + 0x28]
test eax, eax
je 0x100d11da
push ebx
test edi, edi
jne 0x100d11d9
push eax
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push 1
push eax
call fcn.100d32d0
push edi
push edi
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.100d32d0
push edi
push edi
lea eax, [esp + 0x58]
push edi
push eax
call fcn.100d32d0
push edi
push edi
lea eax, [esp + 0x74]
push edi
push eax
call fcn.100d32d0
add esp, 0x40
lea eax, [esp + 0x18]
push 4
push eax
lea eax, [esp + 0x14]
push eax
call fcn.100d32f0
add esp, 0xc
lea eax, [esp + 0xc]
push edi
push edi
push eax
push dword [esi + 8]
call sub.Secur32.dll_DecryptMessage
mov edi, eax
test edi, edi
je 0x100d1135
cmp edi, 0x90321
je 0x100d1135
cmp edi, 0x90317
je 0x100d1135
cmp edi, 0x80090318
je 0x100d11ce
mov dword [esi + 0x40], 1
jmp 0x100d11ce
cmp dword [esp + 0x28], 1
jne 0x100d1176
mov eax, dword [esi + 0x24]
lea ecx, [esi + 0x24]
sub eax, dword [esi + 0x2c]
mov ebx, dword [esp + 0x24]
cmp eax, ebx
jae 0x100d115b
push ebx
lea eax, [esi + 0x34]
push eax
push ecx
call fcn.100d3c30
add esp, 0xc
test ebx, ebx
je 0x100d1176
mov eax, dword [esi + 0x34]
add eax, dword [esi + 0x2c]
push ebx
push dword [esp + 0x30]
push eax
call fcn.10048db0
add esp, 0xc
add dword [esi + 0x2c], ebx
cmp dword [esp + 0x40], 5
jne 0x100d11a9
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x100d11a9
mov ebx, dword [esi + 0x28]
cmp ebx, edx
jbe 0x100d11b0
mov ecx, dword [esi + 0x30]
mov eax, ecx
sub eax, edx
push edx
add eax, ebx
push eax
push ecx
call fcn.10048db0
mov eax, dword [esp + 0x48]
add esp, 0xc
mov dword [esi + 0x28], eax
jmp 0x100d11b0
mov dword [esi + 0x28], 0
cmp edi, 0x90321
je 0x100d11ce
cmp edi, 0x90317
jne 0x100d11ce
cmp byte [esi + 0x45], 0
mov byte [esi + 0x44], 1
jne 0x100d11ce
mov byte [esi + 0x45], 1
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x100d10a2
pop ebx
mov ecx, dword [esp + 0x44]
pop edi
pop esi
xor ecx, esp
call fcn.10046e60
add esp, 0x40
ret
Function at 0x100d17e0
Capabilities:
Encrypt data via sspi

Disassembly:
sub esp, 0x48
mov eax, dword [0x101c6040]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x50]
push ebp
mov ebp, dword [esp + 0x50]
push esi
mov esi, dword [esp + 0x5c]
push edi
mov edi, dword [ebp + 0x44]
mov dword [esp + 0x10], eax
test edi, edi
je 0x100d1924
cmp dword [edi + 0x14], 0
push ebx
lea ebx, [edi + 0xc]
jne 0x100d183b
push ebx
push 4
push dword [edi + 8]
call sub.Secur32.dll_QueryContextAttributesA
test eax, eax
je 0x100d183b
pop ebx
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.10046e60
add esp, 0x48
ret
cmp esi, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
cmova esi, dword [edi + 0x14]
add eax, esi
add eax, dword [ebx]
push eax
call fcn.100769a0
push dword [ebx]
mov dword [esp + 0x18], eax
push eax
lea eax, [esp + 0x30]
push 7
push eax
call fcn.100d32d0
mov eax, dword [ebx]
add eax, dword [esp + 0x24]
push esi
push eax
lea eax, [esp + 0x4c]
push 1
push eax
call fcn.100d32d0
push dword [edi + 0x10]
mov eax, dword [esp + 0x38]
add eax, esi
add eax, dword [ebx]
push eax
lea eax, [esp + 0x68]
push 6
push eax
call fcn.100d32d0
push 0
push 0
lea eax, [esp + 0x84]
push 0
push eax
call fcn.100d32d0
add esp, 0x44
lea eax, [esp + 0x24]
push 4
push eax
lea eax, [esp + 0x20]
push eax
call fcn.100d32f0
push esi
push dword [esp + 0x24]
push dword [esp + 0x4c]
call fcn.10048db0
add esp, 0x18
lea eax, [esp + 0x18]
push 0
push eax
push 0
push dword [edi + 8]
call sub.Secur32.dll_EncryptMessage
test eax, eax
jne 0x100d18f9
mov esi, dword [esp + 0x3c]
add esi, dword [esp + 0x24]
add esi, dword [esp + 0x30]
push esi
push dword [esp + 0x14]
push ebp
call fcn.100d4390
add esp, 0xc
mov edi, eax
jmp 0x100d18fc
or edi, 0xffffffff
push dword [esp + 0x10]
call fcn.10076990
mov ecx, dword [esp + 0x58]
add esp, 4
cmp esi, edi
cmove edi, dword [esp + 0x30]
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10046e60
add esp, 0x48
ret
push str.secure_channel
push str._mongoc_stream_tls_secure_channel_write
push 0xfc
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_stream_tls_secure_channel.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.1004c994
add esp, 4
push eax
call fcn.10070de0
add esp, 0x18
call fcn.10056f35
int3