Function at 0x42e7e0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x5524b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x34], ecx
mov byte [ebp - 0x10], 0
xor eax, eax
mov word [ebp - 0xf], ax
mov byte [ebp - 0xd], al
mov dword [ebp - 0x14], 0
jmp 0x42e812
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 4
jae 0x42e829
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov cl, byte [edx]
mov byte [ebp + eax - 0x10], cl
jmp 0x42e809
mov edx, 1
imul eax, edx, 0
movsx ecx, byte [ebp + eax - 0x10]
cmp ecx, 0x14
jne 0x42e99c
mov edx, 1
shl edx, 0
movsx eax, byte [ebp + edx - 0x10]
cmp eax, 0xf
jne 0x42e99c
mov ecx, 1
shl ecx, 1
movsx edx, byte [ebp + ecx - 0x10]
cmp edx, 0xb
jne 0x42e99c
mov eax, 1
imul ecx, eax, 3
movsx edx, byte [ebp + ecx - 0x10]
cmp edx, 0xb
jne 0x42e99c
mov ecx, dword [ebp - 0x34]
call fcn.0042ea20
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0xc], 0
xor eax, eax
mov dword [ebp - 0xb], eax
mov dword [ebp - 0x18], 0
jmp 0x42e8a6
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 4
jae 0x42e8be
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov cl, byte [edx + 4]
mov byte [ebp + eax - 0xc], cl
jmp 0x42e89d
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.0042ea70
mov dword [ebp - 0x28], 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.004a4c93
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0x10]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
call fcn.004ab2f0
add esp, 0xc
mov dword [ebp - 0x1c], 0
jmp 0x42e919
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp + 0x10]
jae 0x42e934
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x1c]
mov cl, byte [eax + 8]
mov byte [edx], cl
jmp 0x42e910
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x20]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x42e957
xor eax, eax
jmp 0x42ea02
cmp dword [ebp - 0x28], 0
je 0x42e972
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test eax, eax
jne 0x42e972
xor eax, eax
jmp 0x42ea02
cmp dword [ebp - 0x2c], 0
je 0x42e98c
push 0
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x42e98c
xor eax, eax
jmp 0x42ea02
cmp dword [ebp - 0x20], 0
je 0x42e99a
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
jmp 0x42e9fd
mov eax, dword [ebp + 0x10]
add eax, 1
push eax
call fcn.004a4c93
add esp, 4
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp + 0x10]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0x30]
push eax
call fcn.004ab2f0
add esp, 0xc
mov dword [ebp - 0x24], 0
jmp 0x42e9db
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp + 0x10]
jae 0x42e9f5
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x24]
mov dl, byte [ecx]
mov byte [eax], dl
jmp 0x42e9d2
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4bd0
mov esp, ebp
pop ebp
ret 0xc