Function at 0x481f90
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], 0
xor eax, eax
mov word [ebp - 3], ax
mov byte [ebp - 1], al
mov dword [ebp - 8], 0
jmp 0x481fc2
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 4
jge 0x481fd9
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov cl, byte [edx]
mov byte [ebp + eax - 4], cl
jmp 0x481fb9
movsx edx, byte [ebp - 4]
cmp edx, 0x14
jne 0x482129
movsx eax, byte [ebp - 3]
cmp eax, 0xf
jne 0x482129
movsx ecx, byte [ebp - 2]
cmp ecx, 0xb
jne 0x482129
movsx edx, byte [ebp - 1]
cmp edx, 0xb
jne 0x482129
mov ecx, dword [ebp - 0x3c]
call fcn.004821a0
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x24], 0
jmp 0x482033
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 4
jae 0x48204b
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov cl, byte [edx + 4]
mov byte [ebp + eax - 0x1c], cl
jmp 0x48202a
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.004821f0
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 0x10]
add edx, 1
push edx
call fcn.004828fb
add esp, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
call fcn.004ba280
add esp, 0xc
mov dword [ebp - 0x28], 0
jmp 0x4820a6
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp + 0x10]
jae 0x4820c1
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x28]
mov cl, byte [eax + 8]
mov byte [edx], cl
jmp 0x48209d
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x4820e4
xor eax, eax
jmp 0x48218f
cmp dword [ebp - 0x10], 0
je 0x4820ff
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test eax, eax
jne 0x4820ff
xor eax, eax
jmp 0x48218f
cmp dword [ebp - 0x20], 0
je 0x482119
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x482119
xor eax, eax
jmp 0x48218f
cmp dword [ebp - 0xc], 0
je 0x482127
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
jmp 0x48218a
mov eax, dword [ebp + 0x10]
add eax, 1
push eax
call fcn.004828fb
add esp, 4
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0x10]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004ba280
add esp, 0xc
mov dword [ebp - 0x30], 0
jmp 0x482168
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp + 0x10]
jae 0x482182
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x30]
mov dl, byte [ecx]
mov byte [eax], dl
jmp 0x48215f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
mov eax, 1
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ba1db
mov esp, ebp
pop ebp
ret 0xc