Function at 0x6fb09e02
Capabilities:
Encrypt or decrypt via wincrypt
Hash data via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x54]
mov ebx, dword [ebp + 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 1
xor edx, edx
stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], edx
cmp dword [ebx], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
stosd dword es:[edi], eax
mov dword [ebp - 0x18], edx
jne 0x6fb0a11f
add ebx, 4
lea edi, [ebp - 0x74]
mov esi, ebx
add ebx, 0x10
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
add ebx, 4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test al, 4
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x24], eax
je 0x6fb09e65
lea eax, [ebp - 0x14]
push edx
push eax
mov eax, dword [0x6fb12240]
push dword [ebp + 8]
mov dword [ebp - 0x14], ecx
call dword [eax + 0xc]
mov esi, dword [ebx]
add ebx, 4
push esi
push 0
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, esi
mov dword [ebp - 0xc], eax
mov edi, eax
mov eax, ecx
mov esi, ebx
add ebx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
add ebx, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [ebp - 0x40], eax
mov eax, dword [ebx]
add ebx, 4
cmp eax, 0x10
mov dword [ebp - 0x34], eax
ja 0x6fb0a11f
mov ecx, eax
mov esi, ebx
mov edx, ecx
lea edi, [ebp - 0x64]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx]
add ebx, 4
push esi
push 0
mov dword [ebp - 0x28], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, esi
mov dword [ebp - 0x10], eax
mov edi, eax
mov eax, ecx
mov esi, ebx
add ebx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
add ebx, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebx]
add ebx, 4
cmp eax, 0x10
mov dword [ebp - 0x3c], eax
ja 0x6fb0a11f
mov ecx, eax
mov esi, ebx
mov edx, ecx
lea edi, [ebp - 0x84]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
add ebx, eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push dword [ebp - 0x14]
mov ecx, edx
and ecx, 3
push eax
push dword [ebp - 0x2c]
rep movsb byte es:[edi], byte [esi]
push dword [0x6fb120e4]
call fcn.6fb0a64c
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x6fb0a0f3
mov eax, dword [ebp - 0x24]
and eax, 3
cmp al, 1
jne 0x6fb09fa9
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x6fb09f71
cmp dword [eax], 0x10
jne 0x6fb09f71
mov ecx, dword [eax + 4]
test ecx, 0xfffffffe
je 0x6fb09f78
push 0x57
jmp 0x6fb0a121
test cl, 1
je 0x6fb09f87
mov esi, 0x52d
jmp 0x6fb0a185
push 0x240001
push 0x6fb01728
push dword [eax + 0xc]
push dword [eax + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
je 0x6fb09fa9
push 5
jmp 0x6fb0a121
lea eax, [ebp - 0x30]
push 1
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 8]
call fcn.6fb0a7d3
mov esi, eax
test esi, esi
jne 0x6fb0a185
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x18]
call fcn.6fb0cd04
lea eax, [ebp - 4]
push eax
push 0x8004
push dword [ebp - 0x1c]
lea eax, [ebp - 0x64]
push dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x54]
push 0x14
push eax
call fcn.6fb0a311
test eax, eax
je 0x6fb0a0f3
cmp dword [ebp + 0x20], esi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
je 0x6fb0a01d
push esi
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp - 4]
call edi
test eax, eax
je 0x6fb0a0f3
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x6fb0a0f3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push dword [ebp - 0x28]
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.6fb0a4ce
mov esi, eax
test esi, esi
jne 0x6fb0a185
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x84]
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x54]
push 0x14
push eax
call fcn.6fb0a311
test eax, eax
je 0x6fb0a0f3
cmp dword [ebp + 0x20], esi
je 0x6fb0a093
push esi
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp - 4]
call edi
test eax, eax
je 0x6fb0a0f3
mov esi, dword [ebx]
add ebx, 4
mov eax, esi
push 0
sub eax, dword [ebp + 0x14]
add eax, ebx
push eax
push dword [ebp + 0x14]
push dword [ebp - 4]
call edi
test eax, eax
je 0x6fb0a0f3
mov eax, dword [ebp + 0x10]
test byte [ebp - 0x21], 0x10
mov dword [eax], esi
jne 0x6fb0a0ce
push eax
push ebx
push 0
push 1
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x6fb0a0f3
lea eax, [ebp + 0x20]
push 0
push eax
lea eax, [ebp - 0x98]
push eax
push 2
push dword [ebp - 4]
add esi, ebx
mov dword [ebp + 0x20], 0x14
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x6fb0a100
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x6fb0a185
mov ecx, dword [ebp + 0x20]
cmp dword [esi], ecx
jne 0x6fb0a11f
add esi, 4
lea edi, [ebp - 0x98]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x6fb0a11b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x6fb0a124
push 0xd
pop esi
jmp 0x6fb0a185
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp + 0xc]
test eax, eax
mov dword [ecx], eax
je 0x6fb0a166
mov ecx, dword [esi]
mov edi, eax
mov eax, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x6fb0a183
push dword [ebp - 0x20]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [esi], eax
jne 0x6fb0a16d
mov esi, 0x46a
jmp 0x6fb0a185
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0xc]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
xor eax, eax
lea edi, [ebp - 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x64]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x6fb0a1bd
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push dword [ebp - 0x18]
call ebx
cmp dword [ebp - 8], 0
je 0x6fb0a1cc
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 4], 0
je 0x6fb0a1db
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0xc], 0
je 0x6fb0a1e6
push dword [ebp - 0xc]
call ebx
cmp dword [ebp - 0x10], 0
je 0x6fb0a1f1
push dword [ebp - 0x10]
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x28