Function at 0x481dc0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x40], ecx
mov byte [ebp - 4], 0
xor eax, eax
mov word [ebp - 3], ax
mov byte [ebp - 1], al
mov byte [ebp - 4], 0x14
mov byte [ebp - 3], 0xf
mov byte [ebp - 2], 0xb
mov byte [ebp - 1], 0xb
xor ecx, ecx
mov word [ebp - 0x2c], cx
xor edx, edx
mov dword [ebp - 0x2a], edx
mov dword [ebp - 0x26], edx
mov dword [ebp - 0x22], edx
mov word [ebp - 0x1e], dx
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov byte [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x17], ecx
movzx eax, word [ebp - 0x2c]
cdq
mov ecx, 0x64
idiv ecx
mov byte [ebp - 0x18], al
movzx eax, word [ebp - 0x2c]
cdq
mov ecx, 0x64
idiv ecx
mov byte [ebp - 0x17], dl
mov dl, byte [ebp - 0x2a]
mov byte [ebp - 0x16], dl
mov al, byte [ebp - 0x26]
mov byte [ebp - 0x15], al
mov ecx, dword [ebp - 0x40]
call fcn.004821a0
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x40]
call fcn.004821f0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
add eax, 9
push eax
call fcn.004828fb
add esp, 4
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x10]
add edx, 9
push edx
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.004ba280
add esp, 0xc
mov dword [ebp - 0x30], 0
jmp 0x481e9f
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 4
jge 0x481eb6
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
mov cl, byte [ebp + eax - 4]
mov byte [edx], cl
jmp 0x481e96
mov dword [ebp - 0x34], 0
jmp 0x481ec8
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 4
jge 0x481ee0
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x34]
mov dl, byte [ebp + ecx - 0x18]
mov byte [eax + 4], dl
jmp 0x481ebf
mov dword [ebp - 0x38], 0
jmp 0x481ef2
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp + 0x10]
jae 0x481f0d
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x38]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x38]
mov cl, byte [eax]
mov byte [edx + 8], cl
jmp 0x481ee9
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 8
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x481f34
xor eax, eax
jmp 0x481f79
cmp dword [ebp - 0xc], 0
je 0x481f4c
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test eax, eax
jne 0x481f4c
xor eax, eax
jmp 0x481f79
cmp dword [ebp - 0x1c], 0
je 0x481f66
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x481f66
xor eax, eax
jmp 0x481f79
cmp dword [ebp - 8], 0
je 0x481f74
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba1db
mov esp, ebp
pop ebp
ret 0xc