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

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 4
test edi, edi
je 0x1010f35e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1010f38f
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1010f3c0
push ecx
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1010f359
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov dword [edi + 4], esi
call fcn.100b18cb
push edi
mov dword [eax], esi
call fcn.1010ecc0
add esp, 4
pop esi
test al, al
je 0x1010f353
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x10
push edi
call fcn.1010eee0
add esp, 0x10
test al, al
je 0x1010f353
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 0x1010f345
test eax, eax
je 0x1010f359
mov dword [edi + 4], eax
call fcn.100b18cb
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.100a530f
add esp, 4
push eax
call fcn.100ccd10
add esp, 0x18
call fcn.100b1525
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.100a530f
add esp, 4
push eax
call fcn.100ccd10
add esp, 0x18
call fcn.100b1525
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.100a530f
add esp, 4
push eax
call fcn.100ccd10
add esp, 0x18
call fcn.100b1525
int3
Function at 0x1010f4a0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x188
mov eax, dword [0x1022d400]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
mov dword [esp], 0x80
test eax, eax
je 0x1010f53a
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 0x1010f523
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 0x1010f523
lea eax, [esp + 0x84]
push eax
call fcn.100d4420
add esp, 4
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.1009f33b
add esp, 0x188
ret
mov ecx, dword [esp + 0x184]
xor eax, eax
xor ecx, esp
call fcn.1009f33b
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.100a530f
add esp, 4
push eax
call fcn.100ccd10
add esp, 0x18
call fcn.100b1525
int3
Function at 0x1010f570
Capabilities:
Query or enumerate registry value
Set socket configuration

Disassembly:
sub esp, 0x28
mov eax, dword [0x1022d400]
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 0x1010f5be
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 0x1010f5d1
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.1009f33b
add esp, 0x28
ret
push esi
cmp ebx, 1
je 0x1010f720
push edi
call fcn.1010ece0
add esp, 4
test al, al
jne 0x1010f5fc
push str.Failed_to_enable_TCP_NODELAY.
push str.socket
push 2
call fcn.100db4d0
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 0x1010f720
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 0x1010f700
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 0x1010f69f
cmp dword [esp + 0x10], 4
jne 0x1010f6b1
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x28]
jae 0x1010f6b1
jmp 0x1010f6ad
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 0x1010f6e4
cmp dword [esp + 0x10], 4
jne 0x1010f6f6
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x2c]
jae 0x1010f6f6
jmp 0x1010f6f2
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.100d2910
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.1009f33b
add esp, 0x28
ret
Function at 0x1010f9a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x1010fa7a
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x1010faab
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1010fadc
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 0x1010fa6c
push esi
nop
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov dword [edi + 4], esi
call fcn.100b18cb
mov dword [eax], esi
mov eax, dword [edi + 4]
cmp eax, 0xb
je 0x1010fa18
cmp eax, 0x2733
je 0x1010fa18
cmp eax, 0x2734
jne 0x1010fa67
push dword [esp + 0x28]
push dword [esp + 0x28]
push 0x300
push edi
call fcn.1010eee0
add esp, 0x10
test al, al
je 0x1010fa67
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 0x1010f9f0
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.100a530f
add esp, 4
push eax
call fcn.100ccd10
add esp, 0x18
call fcn.100b1525
push 0x10164e28
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.100a530f
add esp, 4
push eax
call fcn.100ccd10
add esp, 0x18
call fcn.100b1525
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.100a530f
add esp, 4
push eax
call fcn.100ccd10
add esp, 0x18
call fcn.100b1525
int3
Function at 0x101200e0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x10120100
mov edx, dword [esp + 8]
nop
cmp dword [eax], edx
je 0x10120101
ja 0x10120100
mov eax, dword [eax + 0x240]
test eax, eax
jne 0x101200f0
ret
lea ecx, [eax + 0x250]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
jmp fcn.1011fd90

Function at 0x10123b50
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, dword [0x10286a10]
test eax, eax
jne 0x10123b8b
push eax
push eax
push 0x101ab504
push 0x10286a10
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
jns 0x10123b86
push eax
push str.BCryptOpenAlgorithmProvider__:__ld
push str.mongoc
push 0
call fcn.100db4d0
add esp, 0x10
xor eax, eax
ret
mov eax, dword [0x10286a10]
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x10123ba5
mov eax, 1
ret
push eax
push str.BCryptGenRandom__:__ld
push str.mongoc
push 0
call fcn.100db4d0
add esp, 0x10
xor eax, eax
ret

Function at 0x101269e0
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 0x10126b47
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp edi, 2
jbe 0x10126a9c
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 0x10126b47
movzx eax, ah
shr eax, 2
mov al, byte [eax + 0x101b11e0]
mov byte [esi + ebp], al
movzx eax, bl
mov al, byte [eax + 0x101b11e0]
mov byte [esi + ebp + 1], al
movzx eax, dl
mov al, byte [eax + 0x101b11e0]
mov byte [esi + ebp + 2], al
movzx eax, dh
and eax, 0x3f
mov al, byte [eax + 0x101b11e0]
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 0x10126a10
test edi, edi
je 0x10126b35
xor bl, bl
mov word [esp + 0x21], 0
xor ah, ah
mov byte [esp + 0x20], bl
xor dl, dl
test edi, edi
je 0x10126ad4
push edi
push ecx
lea eax, [esp + 0x28]
push eax
call fcn.100a1570
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 0x10126b47
movzx eax, cl
mov al, byte [eax + 0x101b11e0]
mov byte [esi + ebp], al
movzx eax, bl
mov al, byte [eax + 0x101b11e0]
mov byte [esi + ebp + 1], al
add esi, 2
lea ecx, [esi + ebp]
cmp edi, 1
jne 0x10126b22
mov al, 0x3d
jmp 0x10126b2b
movzx eax, dl
mov al, byte [eax + 0x101b11e0]
mov byte [ecx], al
mov byte [esi + ebp + 1], 0x3d
add esi, 2
cmp esi, dword [esp + 0x24]
jae 0x10126b47
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 0x10129110
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 0x101299b0
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 0x101299e5
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 0x101299d0
pop ebx
xor eax, eax
test esi, esi
pop edi
setne al
pop esi
ret

Function at 0x1012ced0
Capabilities:
Decrypt data via sspi

Disassembly:
sub esp, 0x40
mov eax, dword [0x1022d400]
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 0x1012d02a
push ebx
test edi, edi
jne 0x1012d029
push eax
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push 1
push eax
call fcn.1012f120
push edi
push edi
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.1012f120
push edi
push edi
lea eax, [esp + 0x58]
push edi
push eax
call fcn.1012f120
push edi
push edi
lea eax, [esp + 0x74]
push edi
push eax
call fcn.1012f120
add esp, 0x40
lea eax, [esp + 0x18]
push 4
push eax
lea eax, [esp + 0x14]
push eax
call fcn.1012f140
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 0x1012cf85
cmp edi, 0x90321
je 0x1012cf85
cmp edi, 0x90317
je 0x1012cf85
cmp edi, 0x80090318
je 0x1012d01e
mov dword [esi + 0x40], 1
jmp 0x1012d01e
cmp dword [esp + 0x28], 1
jne 0x1012cfc6
mov eax, dword [esi + 0x24]
lea ecx, [esi + 0x24]
sub eax, dword [esi + 0x2c]
mov ebx, dword [esp + 0x24]
cmp eax, ebx
jae 0x1012cfab
push ebx
lea eax, [esi + 0x34]
push eax
push ecx
call fcn.1012fa80
add esp, 0xc
test ebx, ebx
je 0x1012cfc6
mov eax, dword [esi + 0x34]
add eax, dword [esi + 0x2c]
push ebx
push dword [esp + 0x30]
push eax
call fcn.100a1570
add esp, 0xc
add dword [esi + 0x2c], ebx
cmp dword [esp + 0x40], 5
jne 0x1012cff9
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x1012cff9
mov ebx, dword [esi + 0x28]
cmp ebx, edx
jbe 0x1012d000
mov ecx, dword [esi + 0x30]
mov eax, ecx
sub eax, edx
push edx
add eax, ebx
push eax
push ecx
call fcn.100a1570
mov eax, dword [esp + 0x48]
add esp, 0xc
mov dword [esi + 0x28], eax
jmp 0x1012d000
mov dword [esi + 0x28], 0
cmp edi, 0x90321
je 0x1012d01e
cmp edi, 0x90317
jne 0x1012d01e
cmp byte [esi + 0x45], 0
mov byte [esi + 0x44], 1
jne 0x1012d01e
mov byte [esi + 0x45], 1
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x1012cef2
pop ebx
mov ecx, dword [esp + 0x44]
pop edi
pop esi
xor ecx, esp
call fcn.1009f33b
add esp, 0x40
ret
Function at 0x1012d630
Capabilities:
Encrypt data via sspi

Disassembly:
sub esp, 0x48
mov eax, dword [0x1022d400]
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 0x1012d774
cmp dword [edi + 0x14], 0
push ebx
lea ebx, [edi + 0xc]
jne 0x1012d68b
push ebx
push 4
push dword [edi + 8]
call sub.Secur32.dll_QueryContextAttributesA
test eax, eax
je 0x1012d68b
pop ebx
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1009f33b
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.100d28d0
push dword [ebx]
mov dword [esp + 0x18], eax
push eax
lea eax, [esp + 0x30]
push 7
push eax
call fcn.1012f120
mov eax, dword [ebx]
add eax, dword [esp + 0x24]
push esi
push eax
lea eax, [esp + 0x4c]
push 1
push eax
call fcn.1012f120
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.1012f120
push 0
push 0
lea eax, [esp + 0x84]
push 0
push eax
call fcn.1012f120
add esp, 0x44
lea eax, [esp + 0x24]
push 4
push eax
lea eax, [esp + 0x20]
push eax
call fcn.1012f140
push esi
push dword [esp + 0x24]
push dword [esp + 0x4c]
call fcn.100a1570
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 0x1012d749
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.101301e0
add esp, 0xc
mov edi, eax
jmp 0x1012d74c
or edi, 0xffffffff
push dword [esp + 0x10]
call fcn.100d28c0
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.1009f33b
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.100a530f
add esp, 4
push eax
call fcn.100ccd10
add esp, 0x18
call fcn.100b1525
int3
Function at 0x1012fad0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push edi
push 0x1021ffe4
mov dword [esp + 0xc], 0
push dword [ebx + 8]
call fcn.100ac2e8
mov edi, eax
add esp, 8
test edi, edi
jne 0x1012fb11
push dword [ebx + 8]
push str.Couldnt_open_file__s
push str.stream_secure_channel
push eax
call fcn.100db4d0
add esp, 0x10
xor al, al
pop edi
pop ebx
pop ecx
ret
push ebp
push 2
push 0
push edi
call fcn.100a6125
push edi
call fcn.100abb12
push 0
push 0
push edi
mov ebp, eax
call fcn.100a6125
add esp, 0x1c
cmp ebp, 1
jge 0x1012fb54
push dword [ebx + 8]
push str.Couldnt_determine_file_size_of__s
push str.stream_secure_channel
push 2
call fcn.100db4d0
add esp, 0x10
xor al, al
pop ebp
pop edi
pop ebx
pop ecx
ret
push esi
push ebp
call fcn.100d2910
push edi
push ebp
mov esi, eax
push 1
push esi
call fcn.100a5cc7
push edi
call fcn.100a50b7
push str._____BEGIN_CERTIFICATE_____
push esi
call fcn.100a1000
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x1012fba0
push dword [ebx + 8]
push str.Couldnt_find_certificate_in__s
push str.stream_secure_channel
push 2
call fcn.100db4d0
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 0x1012fbdf
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.100db4d0
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 0x1012fbbc
push dword [esp + 0x10]
push ebx
push 1
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov edi, eax
test edi, edi
jne 0x1012fc31
push str.Could_not_convert_certificate
push str.stream_secure_channel
push 2
call fcn.100db4d0
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 0x1012fc6b
push str.Error_opening_certificate_store
push str.stream_secure_channel
push eax
call fcn.100db4d0
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 0x1012fc8c
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.100db4d0
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 0x101306e0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10130725
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x101306fd
push str._mongoc_mcommon_thread_create
push str.func
jmp 0x1013072f
push 0
push 0
push dword [esp + 0x18]
push eax
push 0
push 0
call fcn.100ab350
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x10130721
call fcn.100b18cb
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.100a530f
add esp, 4
push eax
call fcn.100ccd10
add esp, 0x10
call fcn.100b1525
int3

Function at 0x10134200
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.100b1574
add esp, 4
mov dword [esi + 0x28], eax
test eax, eax
je 0x101342df
push 0x2f
push eax
call fcn.100a1cdd
add esp, 8
test eax, eax
jne 0x10134269
push 0x40
push dword [esi + 0x28]
call fcn.100a1cdd
add esp, 8
test eax, eax
je 0x10134269
mov ecx, 0x2f
mov word [eax], cx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x44]
test eax, eax
je 0x101342a5
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 0x101342e7
push str.AcquireCredentialsHandle
push eax
call fcn.10134b20
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 0x10134530
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 0x10134571
push eax
call fcn.100d28c0
add esp, 4
mov dword [esi + 0x2c], 0
mov dword [edi], reloc.WS2_32.dll_accept
cmp byte [esi + 0x39], 0
je 0x10134620
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x38]
call fcn.10134a20
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je 0x10134620
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 0x101345f6
lea edi, [eax + 1]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10134607
push eax
push dword [esp + 0x2c]
call fcn.10134aa0
add esp, 8
mov dword [esi + 0x2c], eax
test eax, eax
jne 0x10134607
jmp 0x10134604
push 0x10157570
push eax
call fcn.10134b20
add esp, 8
or edi, 0xffffffff
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10134618
push eax
call fcn.100d28c0
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