Function at 0x100616e0
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011dbc6
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1015bc40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov edi, dword [ebp + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push dword [ebp - 0x14]
push dword [ebp + 0x10]
call fcn.100633f0
mov ebx, eax
add esp, 8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], ebx
cmp dword [eax + 0x14], 0xf
jbe 0x10061767
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
jne 0x1006179c
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x1023
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.100d04bc
add esp, 4
test eax, eax
je 0x100618f4
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
push 0x1000
push 0
push ebx
mov dword [ebx - 4], eax
lea eax, [ebx + 0x1000]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], eax
call fcn.100ed000
mov eax, dword [ebp - 0x24]
add esp, 0xc
mov dword [ebp - 0x28], eax
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 1
push eax
push 0x1000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006189c
cmp dword [ebp - 0x10], 0
jbe 0x1006189c
lea eax, [ebp - 0x10]
push eax
push ebx
push 0
push 0
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x10061850
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor esi, esi
cmp dword [ebp - 0x10], esi
jbe 0x1006187e
mov cl, byte [ebx + esi]
mov eax, dword [edi + 4]
mov byte [ebp + 0xf], cl
cmp eax, dword [edi + 8]
je 0x1006186c
mov byte [eax], cl
inc dword [edi + 4]
jmp 0x10061878
lea ecx, [ebp + 0xf]
push ecx
push eax
mov ecx, edi
call fcn.10058a60
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x10061857
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x10]
push 0
push eax
push 0x1000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10061813
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x24]
sub edx, ebx
cmp edx, 0x1000
jb 0x100618d6
mov ecx, dword [ebx - 4]
add edx, 0x23
sub ebx, ecx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x100618f4
mov ebx, ecx
push edx
push ebx
call fcn.100d04ec
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.100fc365
int3