Function at 0x424fc0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x52e474]
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 0x424ff2
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 4
jae 0x425009
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 0x424fe9
mov edx, 1
imul eax, edx, 0
movsx ecx, byte [ebp + eax - 0x10]
cmp ecx, 0x14
jne 0x42517c
mov edx, 1
shl edx, 0
movsx eax, byte [ebp + edx - 0x10]
cmp eax, 0xf
jne 0x42517c
mov ecx, 1
shl ecx, 1
movsx edx, byte [ebp + ecx - 0x10]
cmp edx, 0xb
jne 0x42517c
mov eax, 1
imul ecx, eax, 3
movsx edx, byte [ebp + ecx - 0x10]
cmp edx, 0xb
jne 0x42517c
mov ecx, dword [ebp - 0x34]
call fcn.00425200
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0xc], 0
xor eax, eax
mov dword [ebp - 0xb], eax
mov dword [ebp - 0x18], 0
jmp 0x425086
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 4
jae 0x42509e
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 0x42507d
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.00425250
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.00491bde
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.004938a0
add esp, 0xc
mov dword [ebp - 0x1c], 0
jmp 0x4250f9
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp + 0x10]
jae 0x425114
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 0x4250f0
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 0x425137
xor eax, eax
jmp 0x4251e2
cmp dword [ebp - 0x28], 0
je 0x425152
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
test eax, eax
jne 0x425152
xor eax, eax
jmp 0x4251e2
cmp dword [ebp - 0x2c], 0
je 0x42516c
push 0
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x42516c
xor eax, eax
jmp 0x4251e2
cmp dword [ebp - 0x20], 0
je 0x42517a
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
jmp 0x4251dd
mov eax, dword [ebp + 0x10]
add eax, 1
push eax
call fcn.00491bde
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.004938a0
add esp, 0xc
mov dword [ebp - 0x24], 0
jmp 0x4251bb
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp + 0x10]
jae 0x4251d5
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 0x4251b2
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.00491b3a
mov esp, ebp
pop ebp
ret 0xc