Function at 0x6e8fe690
Capabilities:
Hash data via wincrypt

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
mov esi, 1
push ebx
xor ebx, ebx
sub esp, 0xac
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x90], edx
jmp 0x6e8fe6c0
cmp dword [edi + 4], ebx
jbe 0x6e8fe710
mov dword [esp + 8], ecx
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x94], ecx
mov dword [esp + 4], eax
mov eax, dword [edi + 8]
mov eax, dword [eax + ebx*8]
inc ebx
mov dword [esp], eax
call sub.advapi32.dll_CryptHashData
mov ecx, dword [ebp - 0x94]
sub esp, 0x10
test eax, eax
mov esi, eax
jne 0x6e8fe6c0
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
test eax, eax
je 0x6e8fe6ff
test byte [0x6e927978], 8
jne 0x6e8feb80
mov eax, dword [ebp - 0x8c]
mov esi, 1
xor edi, edi
mov eax, dword [eax]
mov edx, dword [eax + 0x20]
mov ecx, eax
cmp edx, edi
jbe 0x6e8fe80e
mov edx, dword [eax + 0x24]
lea ebx, [edi + edi*8]
shl ebx, 3
add edx, ebx
mov ecx, dword [edx + 0x38]
test ecx, ecx
je 0x6e8fe800
lea eax, [edx + 0x38]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x6e8fe9a0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x94], eax
lea esi, [ebp - 0x48]
mov dword [esp + 0x14], esi
mov eax, dword [ebp - 0x94]
mov dword [esp], 1
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, 0x8000
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x90]
mov dword [esp + 8], eax
mov eax, 0x30
mov dword [esp + 4], eax
call sym.crypt32.dll_CryptEncodeObjectEx
sub esp, 0x1c
test eax, eax
jne 0x6e8feb30
test byte [0x6e927978], 8
je 0x6e8fe6fd
xor eax, eax
mov edx, 0x6e9304ab
mov dword [esp + 0x10], eax
mov ecx, str.CSignedMsgData_UpdateAuthenticatedAttributes
mov ebx, 0x6e927978
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], 3
call fcn.6e8fde10
jmp 0x6e8fe6fd
mov edx, dword [eax + 0x20]
inc edi
mov ecx, eax
cmp edx, edi
ja 0x6e8fe740
movzx ebx, byte [ebp + 0xc]
xor bl, 1
and bl, 1
test byte [0x6e927978], 8
jne 0x6e8febd0
test bl, bl
je 0x6e8fe6ff
mov esi, 1
xor ebx, ebx
mov dword [ebp - 0x90], esi
mov eax, edx
mov edx, ebx
cmp eax, edx
jbe 0x6e8febc0
mov dword [ebp - 0x90], edx
mov eax, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x24]
mov edi, dword [eax + edx*4]
mov eax, 2
test edi, edi
cmove edi, eax
lea eax, [edx*8]
lea esi, [eax + edx]
shl esi, 3
add ebx, esi
mov ecx, ebx
mov ebx, dword [ebp - 0x8c]
mov edx, dword [ebx + 8]
add eax, edx
mov edx, dword [ecx + 0x38]
mov ebx, dword [eax + 4]
test edx, edx
cmove ebx, dword [eax]
add ecx, 0x30
mov dword [esp + 0x14], ecx
xor eax, eax
xor ecx, ecx
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.advapi32.dll_CryptSignHashW
mov edx, dword [ebp - 0x90]
sub esp, 0x18
test eax, eax
je 0x6e8fe6fd
mov dword [ebp - 0x94], edx
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax]
mov ecx, dword [eax + 0x24]
add ecx, esi
mov dword [ebp - 0x90], ecx
mov eax, dword [ecx + 0x30]
mov dword [esp], eax
call sym.crypt32.dll_CryptMemAlloc
mov ecx, dword [ebp - 0x90]
mov dword [ecx + 0x34], eax
mov eax, dword [ebp - 0x8c]
sub esp, 4
mov eax, dword [eax]
mov edx, dword [eax + 0x24]
add edx, esi
mov ecx, dword [edx + 0x34]
mov eax, edx
test ecx, ecx
je 0x6e8fe6fd
mov dword [esp + 0x10], ecx
add eax, 0x30
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.advapi32.dll_CryptSignHashW
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x90], eax
sub esp, 0x18
test eax, eax
je 0x6e8fe6fd
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax]
mov edi, dword [ecx + 0x24]
add esi, edi
mov eax, dword [esi + 0x30]
mov edi, eax
shr edi, 1
je 0x6e8fe994
xor ecx, ecx
mov ebx, eax
lea esi, [esi]
mov edi, dword [esi + 0x34]
mov eax, ecx
not eax
add eax, ebx
movzx edx, byte [edi + ecx]
add eax, edi
movzx ebx, byte [eax]
mov byte [eax], dl
mov eax, dword [esi + 0x34]
mov byte [eax + ecx], bl
inc ecx
mov ebx, dword [esi + 0x30]
mov eax, ebx
shr eax, 1
cmp ecx, eax
jb 0x6e8fe960
mov eax, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x94]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x20]
inc edx
jmp 0x6e8fe83e
mov dword [ebp - 0x6b], 0x862a0906
mov eax, 0xb
xor ecx, ecx
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x6b]
mov dword [ebp - 0x67], 0xdf78648
lea esi, [ebp - 0x48]
mov word [ebp - 0x63], 0x701
mov byte [ebp - 0x61], 1
mov dword [ebp - 0x80], eax
mov eax, dword [ecx + 0x6e9304b9]
mov dword [ebp + ecx - 0x48], eax
add ecx, 4
cmp ecx, 0x14
jb 0x6e8fe9ce
mov dword [ebp - 0x60], esi
movzx eax, byte [ecx + 0x6e9304b9]
add edx, 0x3c
mov dword [ebp - 0x5c], 1
mov byte [esi + ecx], al
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x60]
call fcn.6e8fd530
test eax, eax
je 0x6e8fe7bd
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x94], eax
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov edx, dword [eax + 0x6e9304ce]
mov dword [ebp + eax - 0x30], edx
add eax, 4
cmp eax, 0x14
jb 0x6e8fea3d
mov dword [ebp - 0x50], 1
movzx edx, byte [eax + 0x6e9304ce]
mov ecx, dword [ebp - 0x94]
mov byte [ecx + eax], dl
lea eax, [ebp - 0x74]
mov dword [ebp - 0x4c], eax
lea edx, [edi*8]
mov eax, 4
mov dword [ebp - 0x88], eax
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x88]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x7c]
mov dword [esp + 8], eax
mov eax, 4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x90], edx
mov eax, dword [eax + 8]
mov eax, dword [eax + edx]
mov dword [esp], eax
call sub.advapi32.dll_CryptGetHashParam
sub esp, 0x14
test eax, eax
je 0x6e8fe7bd
mov eax, dword [ebp - 0x7c]
mov dword [esp], eax
call sym.crypt32.dll_CryptMemAlloc
xor edx, edx
mov ecx, 2
mov dword [ebp - 0x78], eax
sub esp, 4
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x8c]
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x7c]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x90]
mov dword [esp + 4], ecx
mov eax, dword [eax + 8]
mov eax, dword [eax + edx]
mov dword [esp], eax
call sub.advapi32.dll_CryptGetHashParam
sub esp, 0x14
test eax, eax
jne 0x6e8fec60
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
call sym.crypt32.dll_CryptMemFree
sub esp, 4
jmp 0x6e8fe7bd
xor eax, eax
mov ebx, dword [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov eax, dword [eax + edi*8 + 4]
inc edi
mov dword [esp], eax
call sub.advapi32.dll_CryptHashData
mov esi, eax
mov eax, dword [ebp - 0x48]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
test esi, esi
je 0x6e8fe7bd
mov eax, dword [ebx]
jmp 0x6e8fe733
mov eax, dword [ebp - 0x8c]
mov ebx, 0x6e9304a5
mov esi, str.CSignedMsgData_UpdateAuthenticatedAttributes
mov dword [esp + 0xc], ebx
mov edi, 0x6e927978
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp + 0x10], eax
mov dword [esp], 3
call fcn.6e8fde10
jmp 0x6e8fe724
mov esi, dword [ebp - 0x90]
jmp 0x6e8fe6ff
mov edx, 0x6e9304ab
mov ecx, str.CSignedMsgData_UpdateAuthenticatedAttributes
mov dword [esp + 0x10], esi
mov edi, 0x6e927978
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp], 3
call fcn.6e8fde10
test bl, bl
je 0x6e8fe6ff
test byte [0x6e927978], 8
je 0x6e8fec50
mov dword [esp], 3
mov edi, dword [ebp - 0x8c]
mov eax, 0x6e9304a5
mov dword [esp + 0xc], eax
mov eax, str.CSignedMsgData_Sign
mov dword [esp + 8], eax
mov eax, 0x6e927978
mov dword [esp + 4], eax
mov dword [esp + 0x10], edi
call fcn.6e8fde10
mov ecx, dword [edi]
mov edx, dword [ecx + 0x20]
jmp 0x6e8fe82d
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
jmp 0x6e8fe82d
lea eax, [ebp - 0x74]
xor ecx, ecx
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x70]
mov edx, 0x8000
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x7c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], 0
call fcn.6e8eda00
sub esp, 0x1c
test eax, eax
je 0x6e8feb16
mov eax, dword [ebp - 0x8c]
lea ecx, [ebp - 0x54]
mov eax, dword [eax]
mov edx, dword [eax + 0x24]
add edx, ebx
mov eax, edx
lea edx, [edx + 0x3c]
add eax, 0x38
call fcn.6e8fd530
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LocalFree]
mov eax, dword [ebp - 0x78]
sub esp, 4
mov dword [esp], eax
call sym.crypt32.dll_CryptMemFree
mov edx, dword [ebp - 0x90]
sub esp, 4
test edx, edx
je 0x6e8fe7bd
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax]
add ebx, dword [eax + 0x24]
mov eax, ebx
add eax, 0x38
mov dword [ebp - 0x90], eax
jmp 0x6e8fe776