joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e4470
Capabilities:
Connect socket

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 4
test edi, edi
je 0x100e452e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100e455f
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x100e4590
push ecx
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100e4529
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov dword [edi + 4], esi
call fcn.10080fc3
push edi
mov dword [eax], esi
call fcn.100e3e70
add esp, 4
pop esi
test al, al
je 0x100e4523
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x10
push edi
call fcn.100e40b0
add esp, 0x10
test al, al
je 0x100e4523
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 0x100e4515
test eax, eax
je 0x100e4529
mov dword [edi + 4], eax
call fcn.10080fc3
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.1007a58f
add esp, 4
push eax
call fcn.100a1e70
add esp, 0x18
call fcn.1008069d
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.1007a58f
add esp, 4
push eax
call fcn.100a1e70
add esp, 0x18
call fcn.1008069d
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.1007a58f
add esp, 4
push eax
call fcn.100a1e70
add esp, 0x18
call fcn.1008069d
int3
Function at 0x100e4670
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x188
mov eax, dword [0x101f3600]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
mov dword [esp], 0x80
test eax, eax
je 0x100e470a
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 0x100e46f3
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 0x100e46f3
lea eax, [esp + 0x84]
push eax
call fcn.100a95c0
add esp, 4
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.100747a0
add esp, 0x188
ret
mov ecx, dword [esp + 0x184]
xor eax, eax
xor ecx, esp
call fcn.100747a0
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.1007a58f
add esp, 4
push eax
call fcn.100a1e70
add esp, 0x18
call fcn.1008069d
int3
Function at 0x100e4740
Capabilities:
Query or enumerate registry value
Set socket configuration

Disassembly:
sub esp, 0x28
mov eax, dword [0x101f3600]
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 0x100e478e
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 0x100e47a1
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.100747a0
add esp, 0x28
ret
push esi
cmp ebx, 1
je 0x100e48f0
push edi
call fcn.100e3e90
add esp, 4
test al, al
jne 0x100e47cc
push str.Failed_to_enable_TCP_NODELAY.
push str.socket
push 2
call fcn.100b0660
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 0x100e48f0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
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 0x100e48d0
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 0x100e486f
cmp dword [esp + 0x10], 4
jne 0x100e4881
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x28]
jae 0x100e4881
jmp 0x100e487d
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 0x100e48b4
cmp dword [esp + 0x10], 4
jne 0x100e48c6
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x2c]
jae 0x100e48c6
jmp 0x100e48c2
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.100a7a90
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.100747a0
add esp, 0x28
ret
Function at 0x100e4b70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x100e4c4a
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x100e4c7b
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100e4cac
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 0x100e4c3c
push esi
nop
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov dword [edi + 4], esi
call fcn.10080fc3
mov dword [eax], esi
mov eax, dword [edi + 4]
cmp eax, 0xb
je 0x100e4be8
cmp eax, 0x2733
je 0x100e4be8
cmp eax, 0x2734
jne 0x100e4c37
push dword [esp + 0x28]
push dword [esp + 0x28]
push 0x300
push edi
call fcn.100e40b0
add esp, 0x10
test al, al
je 0x100e4c37
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 0x100e4bc0
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.1007a58f
add esp, 4
push eax
call fcn.100a1e70
add esp, 0x18
call fcn.1008069d
push 0x10137ee8
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.1007a58f
add esp, 4
push eax
call fcn.100a1e70
add esp, 0x18
call fcn.1008069d
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.1007a58f
add esp, 4
push eax
call fcn.100a1e70
add esp, 0x18
call fcn.1008069d
int3
Function at 0x100f5280
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x100f52a0
mov edx, dword [esp + 8]
nop
cmp dword [eax], edx
je 0x100f52a1
ja 0x100f52a0
mov eax, dword [eax + 0x240]
test eax, eax
jne 0x100f5290
ret
lea ecx, [eax + 0x250]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
jmp fcn.100f4f30

Function at 0x100f8cf0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, dword [0x10200e98]
test eax, eax
jne 0x100f8d2b
push eax
push eax
push 0x1017e62c
push 0x10200e98
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
jns 0x100f8d26
push eax
push str.BCryptOpenAlgorithmProvider__:__ld
push str.mongoc
push 0
call fcn.100b0660
add esp, 0x10
xor eax, eax
ret
mov eax, dword [0x10200e98]
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x100f8d45
mov eax, 1
ret
push eax
push str.BCryptGenRandom__:__ld
push str.mongoc
push 0
call fcn.100b0660
add esp, 0x10
xor eax, eax
ret

Function at 0x100fbb80
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 0x100fbce7
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp edi, 2
jbe 0x100fbc3c
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 0x100fbce7
movzx eax, ah
shr eax, 2
mov al, byte [eax + 0x10184308]
mov byte [esi + ebp], al
movzx eax, bl
mov al, byte [eax + 0x10184308]
mov byte [esi + ebp + 1], al
movzx eax, dl
mov al, byte [eax + 0x10184308]
mov byte [esi + ebp + 2], al
movzx eax, dh
and eax, 0x3f
mov al, byte [eax + 0x10184308]
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 0x100fbbb0
test edi, edi
je 0x100fbcd5
xor bl, bl
mov word [esp + 0x21], 0
xor ah, ah
mov byte [esp + 0x20], bl
xor dl, dl
test edi, edi
je 0x100fbc74
push edi
push ecx
lea eax, [esp + 0x28]
push eax
call fcn.10076440
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 0x100fbce7
movzx eax, cl
mov al, byte [eax + 0x10184308]
mov byte [esi + ebp], al
movzx eax, bl
mov al, byte [eax + 0x10184308]
mov byte [esi + ebp + 1], al
add esi, 2
lea ecx, [esi + ebp]
cmp edi, 1
jne 0x100fbcc2
mov al, 0x3d
jmp 0x100fbccb
movzx eax, dl
mov al, byte [eax + 0x10184308]
mov byte [ecx], al
mov byte [esi + ebp + 1], 0x3d
add esi, 2
cmp esi, dword [esp + 0x24]
jae 0x100fbce7
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 0x100fe2b0
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 0x100feb50
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 0x100feb85
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 0x100feb70
pop ebx
xor eax, eax
test esi, esi
pop edi
setne al
pop esi
ret

Function at 0x10102080
Capabilities:
Decrypt data via sspi

Disassembly:
sub esp, 0x40
mov eax, dword [0x101f3600]
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 0x101021da
push ebx
test edi, edi
jne 0x101021d9
push eax
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push 1
push eax
call fcn.101042d0
push edi
push edi
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.101042d0
push edi
push edi
lea eax, [esp + 0x58]
push edi
push eax
call fcn.101042d0
push edi
push edi
lea eax, [esp + 0x74]
push edi
push eax
call fcn.101042d0
add esp, 0x40
lea eax, [esp + 0x18]
push 4
push eax
lea eax, [esp + 0x14]
push eax
call fcn.101042f0
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 0x10102135
cmp edi, 0x90321
je 0x10102135
cmp edi, 0x90317
je 0x10102135
cmp edi, 0x80090318
je 0x101021ce
mov dword [esi + 0x40], 1
jmp 0x101021ce
cmp dword [esp + 0x28], 1
jne 0x10102176
mov eax, dword [esi + 0x24]
lea ecx, [esi + 0x24]
sub eax, dword [esi + 0x2c]
mov ebx, dword [esp + 0x24]
cmp eax, ebx
jae 0x1010215b
push ebx
lea eax, [esi + 0x34]
push eax
push ecx
call fcn.10104c30
add esp, 0xc
test ebx, ebx
je 0x10102176
mov eax, dword [esi + 0x34]
add eax, dword [esi + 0x2c]
push ebx
push dword [esp + 0x30]
push eax
call fcn.10076440
add esp, 0xc
add dword [esi + 0x2c], ebx
cmp dword [esp + 0x40], 5
jne 0x101021a9
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x101021a9
mov ebx, dword [esi + 0x28]
cmp ebx, edx
jbe 0x101021b0
mov ecx, dword [esi + 0x30]
mov eax, ecx
sub eax, edx
push edx
add eax, ebx
push eax
push ecx
call fcn.10076440
mov eax, dword [esp + 0x48]
add esp, 0xc
mov dword [esi + 0x28], eax
jmp 0x101021b0
mov dword [esi + 0x28], 0
cmp edi, 0x90321
je 0x101021ce
cmp edi, 0x90317
jne 0x101021ce
cmp byte [esi + 0x45], 0
mov byte [esi + 0x44], 1
jne 0x101021ce
mov byte [esi + 0x45], 1
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x101020a2
pop ebx
mov ecx, dword [esp + 0x44]
pop edi
pop esi
xor ecx, esp
call fcn.100747a0
add esp, 0x40
ret
Function at 0x101027e0
Capabilities:
Encrypt data via sspi

Disassembly:
sub esp, 0x48
mov eax, dword [0x101f3600]
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 0x10102924
cmp dword [edi + 0x14], 0
push ebx
lea ebx, [edi + 0xc]
jne 0x1010283b
push ebx
push 4
push dword [edi + 8]
call sub.Secur32.dll_QueryContextAttributesA
test eax, eax
je 0x1010283b
pop ebx
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.100747a0
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.100a7a50
push dword [ebx]
mov dword [esp + 0x18], eax
push eax
lea eax, [esp + 0x30]
push 7
push eax
call fcn.101042d0
mov eax, dword [ebx]
add eax, dword [esp + 0x24]
push esi
push eax
lea eax, [esp + 0x4c]
push 1
push eax
call fcn.101042d0
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.101042d0
push 0
push 0
lea eax, [esp + 0x84]
push 0
push eax
call fcn.101042d0
add esp, 0x44
lea eax, [esp + 0x24]
push 4
push eax
lea eax, [esp + 0x20]
push eax
call fcn.101042f0
push esi
push dword [esp + 0x24]
push dword [esp + 0x4c]
call fcn.10076440
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 0x101028f9
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.10105390
add esp, 0xc
mov edi, eax
jmp 0x101028fc
or edi, 0xffffffff
push dword [esp + 0x10]
call fcn.100a7a40
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.100747a0
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.1007a58f
add esp, 4
push eax
call fcn.100a1e70
add esp, 0x18
call fcn.1008069d
int3
Function at 0x10104c80
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push edi
push 0x1011d2d8
mov dword [esp + 0xc], 0
push dword [ebx + 8]
call fcn.10087ed6
mov edi, eax
add esp, 8
test edi, edi
jne 0x10104cc1
push dword [ebx + 8]
push str.Couldnt_open_file__s
push str.stream_secure_channel
push eax
call fcn.100b0660
add esp, 0x10
xor al, al
pop edi
pop ebx
pop ecx
ret
push ebp
push 2
push 0
push edi
call fcn.1007b3a5
push edi
call fcn.100816ec
push 0
push 0
push edi
mov ebp, eax
call fcn.1007b3a5
add esp, 0x1c
cmp ebp, 1
jge 0x10104d04
push dword [ebx + 8]
push str.Couldnt_determine_file_size_of__s
push str.stream_secure_channel
push 2
call fcn.100b0660
add esp, 0x10
xor al, al
pop ebp
pop edi
pop ebx
pop ecx
ret
push esi
push ebp
call fcn.100a7a90
push edi
push ebp
mov esi, eax
push 1
push esi
call fcn.1007af47
push edi
call fcn.1007a337
push str._____BEGIN_CERTIFICATE_____
push esi
call fcn.10076ce0
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x10104d50
push dword [ebx + 8]
push str.Couldnt_find_certificate_in__s
push str.stream_secure_channel
push 2
call fcn.100b0660
add esp, 0x10
xor al, al
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea eax, [esp + 0x10]
push 0
push 0
push eax
push 0
push 0
push 0
push esi
call edi
test eax, eax
jne 0x10104d8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_convert_BASE64_public_key._Error_0x_.8X
push str.stream_secure_channel
push 0
call fcn.100b0660
add esp, 0x10
xor al, al
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push dword [esp + 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0
push 0
mov ebx, eax
lea eax, [esp + 0x18]
push eax
push ebx
push 0
push 0
push esi
call edi
test eax, eax
je 0x10104d6c
push dword [esp + 0x10]
push ebx
push 1
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov edi, eax
test edi, edi
jne 0x10104de1
push str.Could_not_convert_certificate
push str.stream_secure_channel
push 2
call fcn.100b0660
add esp, 0xc
xor al, al
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push str.Root
push 0x20000
push 0
push 0x10001
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov esi, eax
test esi, esi
jne 0x10104e1b
push str.Error_opening_certificate_store
push str.stream_secure_channel
push eax
call fcn.100b0660
add esp, 0xc
xor al, al
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push 0
push 2
push edi
push esi
call dword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
test eax, eax
je 0x10104e3c
push 0
push esi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
pop esi
pop ebp
pop edi
mov al, 1
pop ebx
pop ecx
ret
push str.Failed_adding_the_cert
push str.stream_secure_channel
push 2
call fcn.100b0660
add esp, 0xc
push 0
push esi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
pop esi
pop ebp
pop edi
xor al, al
pop ebx
pop ecx
ret
Function at 0x10105890
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x101058d5
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x101058ad
push str._mongoc_mcommon_thread_create
push str.func
jmp 0x101058df
push 0
push 0
push dword [esp + 0x18]
push eax
push 0
push 0
call fcn.100805d0
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x101058d1
call fcn.10080fc3
pop esi
mov eax, dword [eax]
ret
xor eax, eax
pop esi
ret
push str._mongoc_mcommon_thread_create
push str.thread
push str.The_parameter:__s__in_function__s__cannot_be_NULL_n
push 2
call fcn.1007a58f
add esp, 4
push eax
call fcn.100a1e70
add esp, 0x10
call fcn.1008069d
int3

Function at 0x101093e0
Capabilities:
Get outbound credentials handle via credssp

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x24
push esi
mov esi, dword [esp + 0x4c]
push dword [esp + 0x2c]
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x3c], reloc.WS2_32.dll_accept
mov dword [esi + 0x34], eax
mov word [esi + 0x38], 0
call fcn.100806f7
add esp, 4
mov dword [esi + 0x28], eax
test eax, eax
je 0x101094bf
push 0x2f
push eax
call fcn.10076f4b
add esp, 8
test eax, eax
jne 0x10109449
push 0x40
push dword [esi + 0x28]
call fcn.10076f4b
add esp, 8
test eax, eax
je 0x10109449
mov ecx, 0x2f
mov word [eax], cx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x44]
test eax, eax
je 0x10109485
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 2
lea eax, [esp + 4]
xor edx, edx
push eax
lea eax, [esi + 0x18]
test ecx, ecx
push eax
push 0
push 0
lea eax, [esp + 0x1c]
cmove eax, edx
push eax
push edx
push 2
push str.kerberos
push edx
call dword [sym.imp.Secur32.dll_AcquireCredentialsHandleW]
test eax, eax
je 0x101094c7
push str.AcquireCredentialsHandle
push eax
call fcn.10109d00
add esp, 8
or eax, 0xffffffff
pop esi
add esp, 0x24
ret
mov byte [esi + 0x38], 1
mov eax, 1
pop esi
add esp, 0x24
ret
Function at 0x10109710
Capabilities:
Decrypt data via sspi

Disassembly:
sub esp, 0x24
push esi
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
mov dword [esp + 0xc], eax
push edi
mov dword [esp + 8], 0
mov eax, dword [esi + 0x2c]
lea edi, [esi + 0x3c]
mov dword [esp + 0xc], 2
test eax, eax
je 0x10109751
push eax
call fcn.100a7a40
add esp, 4
mov dword [esi + 0x2c], 0
mov dword [edi], reloc.WS2_32.dll_accept
cmp byte [esi + 0x39], 0
je 0x10109800
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x38]
call fcn.10109c00
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je 0x10109800
mov eax, dword [esp + 0x30]
push edi
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push 0
push eax
lea eax, [esi + 0x20]
mov dword [esp + 0x24], 0xa
push eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 1
call sub.Secur32.dll_DecryptMessage
test eax, eax
jne 0x101097d6
lea edi, [eax + 1]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x101097e7
push eax
push dword [esp + 0x2c]
call fcn.10109c80
add esp, 8
mov dword [esi + 0x2c], eax
test eax, eax
jne 0x101097e7
jmp 0x101097e4
push 0x1012a5e8
push eax
call fcn.10109d00
add esp, 8
or edi, 0xffffffff
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x101097f8
push eax
call fcn.100a7a40
add esp, 4
mov eax, edi
pop edi
pop esi
add esp, 0x24
ret
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x24
ret