Function at 0x6f90fe20
Capabilities:
Decrypt data via sspi

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 4
mov ebx, dword [eax + 0xc]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x4c], eax
xor eax, eax
test edx, edx
je 0x6f91001e
mov eax, dword [ebx + 4]
mov esi, dword [ebx + 8]
test eax, eax
je 0x6f910030
mov eax, dword [ebp + 0x10]
cmp dword [ebx + 0x18], eax
jae 0x6f90ffe0
cmp esi, eax
mov edi, esi
cmovb edi, eax
mov eax, dword [ebx + 0x2c]
cmp edi, eax
ja 0x6f90ffb7
mov eax, dword [ebx + 0x30]
cmp edi, eax
ja 0x6f90febb
jmp 0x6f90fece
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
mov esi, edi
sub esi, eax
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ecx + 8]
mov eax, dword [ebp - 0x5c]
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [ecx + 0xc]
test eax, eax
js 0x6f91001e
add eax, dword [ebx + 0x30]
mov dword [ebx + 0x30], eax
cmp edi, eax
jbe 0x6f90fece
mov edx, eax
add edx, dword [ebx + 0x28]
jne 0x6f90fe88
xor eax, eax
add eax, dword [ebx + 0x30]
mov dword [ebx + 0x30], eax
cmp edi, eax
ja 0x6f90febb
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x14]
lea esi, [eax + ecx]
mov eax, dword [ebx + 0x10]
cmp esi, edx
jbe 0x6f90ff02
add edx, edx
mov dword [esp], eax
cmp edx, esi
cmovae esi, edx
mov dword [esp + 4], esi
call sym._ber_memrealloc
test eax, eax
je 0x6f91003f
mov dword [ebx + 0x10], eax
mov ecx, dword [ebx + 0x18]
mov dword [ebx + 0x14], esi
mov edx, dword [ebx + 0x28]
add eax, ecx
mov ecx, dword [ebx + 0x30]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call sym._memcpy
mov eax, dword [ebx + 0x18]
mov edx, dword [ebx + 0x30]
mov dword [ebp - 0x44], 1
add eax, dword [ebx + 0x10]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebx]
add eax, 8
mov dword [esp], eax
call sym._DecryptMessage_16
sub esp, 0x10
test eax, eax
je 0x6f910046
cmp eax, 0x80090318
jne 0x6f91003f
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebx + 0x2c]
cmp edi, eax
jbe 0x6f90fe7c
add eax, eax
cmp eax, edi
cmovb eax, edi
mov dword [esp + 4], eax
mov esi, eax
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call sym._ber_memrealloc
test eax, eax
je 0x6f91003f
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], esi
jmp 0x6f90fe7c
mov eax, dword [ebx + 0x10]
mov edi, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], edi
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebx + 0x18]
sub eax, dword [ebp + 0x10]
mov dword [ebx + 0x18], eax
mov edx, dword [ebx + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], edx
add eax, edx
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_memmove]
mov eax, dword [ebp + 0x10]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
call sym._setup_buffers.part.0
test eax, eax
jns 0x6f90fe5e
mov eax, 0xffffffff
jmp 0x6f91001e
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x30], 0
mov esi, dword [sym.imp.ucrtbase.dll_memmove]
mov dword [esp + 8], edx
mov edx, dword [ebx + 8]
mov dword [esp], eax
add edx, eax
mov dword [esp + 4], edx
call esi
mov eax, dword [ebp - 0x3c]
add eax, dword [ebx + 0x18]
mov dword [ebx + 0x18], eax
cmp eax, dword [ebp + 0x10]
jb 0x6f91003f
mov eax, dword [ebx + 0x10]
mov edi, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], edi
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebx + 0x18]
sub eax, dword [ebp + 0x10]
mov dword [ebx + 0x18], eax
mov edx, dword [ebx + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], edx
add eax, edx
mov dword [esp + 4], eax
call esi
mov eax, dword [ebp + 0x10]
jmp 0x6f91001e