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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10122536
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1015fc40]
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.10065050
mov ebx, eax
add esp, 8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], ebx
cmp dword [eax + 0x14], 0xf
jbe 0x10063377
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 0x100633ac
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.100d4efc
add esp, 4
test eax, eax
je 0x10063504
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.100f1970
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 0x100634ac
cmp dword [ebp - 0x10], 0
jbe 0x100634ac
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 0x10063460
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 0x1006348e
mov cl, byte [ebx + esi]
mov eax, dword [edi + 4]
mov byte [ebp + 0xf], cl
cmp eax, dword [edi + 8]
je 0x1006347c
mov byte [eax], cl
inc dword [edi + 4]
jmp 0x10063488
lea ecx, [ebp + 0xf]
push ecx
push eax
mov ecx, edi
call fcn.1005a580
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x10063467
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 0x10063423
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 0x100634e6
mov ecx, dword [ebx - 4]
add edx, 0x23
sub ebx, ecx
lea eax, [ebx - 4]
cmp eax, 0x1f
ja 0x10063504
mov ebx, ecx
push edx
push ebx
call fcn.100d4f2c
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.10100cd5
int3