Function at 0x42a890
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x537474]
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 0x42a8c2
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 4
jae 0x42a8d9
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 0x42a8b9
mov edx, 1
imul eax, edx, 0
movsx ecx, byte [ebp + eax - 0x10]
cmp ecx, 0x14
jne 0x42aa4c
mov edx, 1
shl edx, 0
movsx eax, byte [ebp + edx - 0x10]
cmp eax, 0xf
jne 0x42aa4c
mov ecx, 1
shl ecx, 1
movsx edx, byte [ebp + ecx - 0x10]
cmp edx, 0xb
jne 0x42aa4c
mov eax, 1
imul ecx, eax, 3
movsx edx, byte [ebp + ecx - 0x10]
cmp edx, 0xb
jne 0x42aa4c
mov ecx, dword [ebp - 0x34]
call fcn.0042aad0
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0xc], 0
xor eax, eax
mov dword [ebp - 0xb], eax
mov dword [ebp - 0x18], 0
jmp 0x42a956
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 4
jae 0x42a96e
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 0x42a94d
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.0042ab20
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.00497f5e
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.0049d060
add esp, 0xc
mov dword [ebp - 0x1c], 0
jmp 0x42a9c9
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp + 0x10]
jae 0x42a9e4
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 0x42a9c0
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 0x42aa07
xor eax, eax
jmp 0x42aab2
cmp dword [ebp - 0x28], 0
je 0x42aa22
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test eax, eax
jne 0x42aa22
xor eax, eax
jmp 0x42aab2
cmp dword [ebp - 0x2c], 0
je 0x42aa3c
push 0
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x42aa3c
xor eax, eax
jmp 0x42aab2
cmp dword [ebp - 0x20], 0
je 0x42aa4a
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
jmp 0x42aaad
mov eax, dword [ebp + 0x10]
add eax, 1
push eax
call fcn.00497f5e
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.0049d060
add esp, 0xc
mov dword [ebp - 0x24], 0
jmp 0x42aa8b
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp + 0x10]
jae 0x42aaa5
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 0x42aa82
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.00497ebf
mov esp, ebp
pop ebp
ret 0xc