Function at 0x3005e600
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ecx + 4]
mov dword [ebp - 8], ecx
push ebx
push esi
push edi
cmp eax, 0x40
jb 0x3005e8d3
mov ecx, dword [ecx]
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x3005e8d3
mov edx, dword [ecx + 0x3c]
add eax, 4
cmp edx, eax
ja 0x3005e8d3
cmp edx, 4
jb 0x3005e8d3
lea edi, [ecx - 4]
add ecx, 0x40
add edi, edx
cmp edi, ecx
jb 0x3005e8d3
nop
cmp dword [edi], 0x68636952
lea esi, [edi - 4]
je 0x3005e668
mov edi, esi
cmp edi, ecx
jae 0x3005e650
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x3005e8d3
cmp esi, ecx
jb 0x3005e8d3
nop dword [eax + eax]
mov edx, dword [esi]
mov eax, edx
xor eax, ebx
cmp eax, 0x536e6144
je 0x3005e69b
sub esi, 4
cmp esi, ecx
jae 0x3005e680
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
lea ebx, [esi + 4]
mov eax, dword [ebx]
cmp eax, ecx
jne 0x3005e8d3
cmp ecx, dword [esi + 0xc]
jne 0x3005e8d3
xor eax, edx
cmp eax, 0x536e6144
jne 0x3005e8d3
sub edi, esi
and edi, 0xfffffffc
push edi
push 8
push dword [0x3026c078]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x3005e8d3
push edi
push esi
push eax
call fcn.30160350
mov eax, dword [ebp - 8]
push str.rich_signature.offset
push dword [eax + 0x10]
sub esi, dword [eax]
mov eax, esi
cdq
add eax, dword [ebp + 8]
adc edx, dword [ebp + 0xc]
push edx
push eax
call fcn.30053490
mov esi, dword [ebp - 8]
push str.rich_signature.length
push dword [esi + 0x10]
push 0
push edi
call fcn.30053490
push str.rich_signature.key
push dword [esi + 0x10]
push 0
push dword [ebx]
call fcn.30053490
add esp, 0x3c
push edi
push 8
push dword [0x3026c078]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
jne 0x3005e75b
push dword [ebp - 0xc]
push eax
push dword [0x3026c078]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 0xc]
push esi
call fcn.30160350
lea ecx, [edi + esi]
mov eax, esi
xor edx, edx
mov esi, edi
shr esi, 2
add esp, 0xc
cmp dword [ebp - 4], ecx
cmova esi, edx
test esi, esi
je 0x3005e7fd
cmp esi, 0x10
jb 0x3005e7e8
mov ecx, dword [ebp - 4]
movd xmm0, dword [ebx]
pshufd xmm1, xmm0, 0
lea edx, [ecx - 4]
lea edx, [edx + esi*4]
mov dword [ebp - 0x10], edx
mov edx, 0
cmp ecx, ebx
ja 0x3005e7a6
cmp dword [ebp - 0x10], ebx
jae 0x3005e7e8
mov ecx, esi
and ecx, 0xfffffff0
nop dword [eax + eax]
movups xmm0, xmmword [eax]
add edx, 0x10
pxor xmm0, xmm1
movups xmmword [eax], xmm0
movups xmm0, xmmword [eax + 0x10]
pxor xmm0, xmm1
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
pxor xmm0, xmm1
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [eax + 0x30]
pxor xmm0, xmm1
movups xmmword [eax + 0x30], xmm0
add eax, 0x40
cmp edx, ecx
jb 0x3005e7b0
cmp edx, esi
jae 0x3005e7fd
nop dword [eax]
mov ecx, dword [ebx]
lea eax, [eax + 4]
xor dword [eax - 4], ecx
inc edx
cmp edx, esi
jb 0x3005e7f0
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push str.rich_signature.raw_data
push dword [esi + 0x10]
push edi
push ebx
call fcn.30053570
add esp, 0x10
push ebx
push 0
push dword [0x3026c078]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [ebp - 4]
push str.rich_signature.clear_data
push dword [esi + 0x10]
push edi
push ebx
call fcn.30053570
add edi, 0xfffffff0
add esp, 0x10
shr edi, 3
lea eax, [edi*4]
push eax
push 8
push dword [0x3026c078]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x3005e878
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push eax
push dword [0x3026c078]
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
test edi, edi
je 0x3005e8a0
lea esi, [ebx + 0x10]
mov ebx, dword [ebp - 0xc]
mov eax, dword [esi]
lea esi, [esi + 8]
mov dword [ebx + ecx*4], eax
inc ecx
mov eax, ecx
cdq
test edx, edx
jl 0x3005e884
jg 0x3005e89a
cmp eax, edi
jb 0x3005e884
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push str.rich_signature.version_data
push dword [eax + 0x10]
push dword [ebp - 0x10]
push esi
call fcn.30053570
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0x10
push ebx
push 0
push dword [0x3026c078]
call edi
push esi
push 0
push dword [0x3026c078]
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret