Function at 0x30139e90
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1c
call fcn.301600d0
push ebx
mov ebx, dword [esp + 0x30]
xor ecx, ecx
push edi
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 0x174]
mov dword [esp + 0x18], eax
mov eax, ebx
add eax, dword [edi + 0x38]
adc ecx, dword [edi + 0x3c]
cmp ecx, 0xf
ja 0x3013a1c3
jb 0x30139ecc
cmp eax, 0xffffffe0
ja 0x3013a1c3
cmp dword [edi + 0x16c], 0
lea edx, [edi + 0x40]
push ebp
mov ebp, dword [edi + 0x168]
push esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], edx
je 0x30139f4b
test ebx, ebx
jne 0x30139f0f
lea eax, [edi + 0x60]
push eax
push edx
call fcn.3013b0f0
add esp, 8
mov dword [edi + 0x16c], ebx
xor eax, eax
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x1c
ret
movups xmm0, xmmword [edx]
lea esi, [edi + 0x178]
mov ebp, 0x10
mov dword [esp + 0x18], ebp
movups xmmword [esi], xmm0
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x16c], 0
jmp 0x30139f55
lea esi, [edi + 0x178]
mov dword [esp + 0x1c], edx
movzx ecx, byte [edi + 0xc]
movzx eax, byte [edi + 0xd]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x28], esi
movzx eax, byte [edi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xf]
shl ecx, 8
or ecx, eax
mov eax, ebp
and eax, 0xf
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
je 0x3013a00d
mov edx, dword [esp + 0x38]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x10], esi
nop
test ebx, ebx
je 0x30139fe3
mov cl, byte [esi]
lea edx, [edi + 0x178]
mov dword [esp + 0x18], edx
inc esi
mov edx, dword [esp + 0x3c]
dec ebx
mov byte [edi + ebp + 0x178], cl
inc ebp
mov al, byte [eax + edi + 0x10]
xor al, cl
mov dword [esp + 0x10], esi
mov byte [edx], al
inc edx
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x3c], edx
and eax, 0xf
mov dword [esp + 0x24], eax
jne 0x30139fa0
mov ecx, dword [esp + 0x18]
jmp 0x30139fef
mov ecx, dword [esp + 0x18]
test eax, eax
jne 0x3013a1b3
push ebp
push ecx
lea edx, [edi + 0x60]
lea eax, [edi + 0x40]
push edx
push eax
call fcn.3013aec0
mov edx, dword [esp + 0x2c]
add esp, 0x10
xor ebp, ebp
mov dword [esp + 0x18], ebp
jmp 0x3013a01d
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10], esi
lea ecx, [edi + 0x60]
cmp ebx, 0x10
jb 0x3013a041
test ebp, ebp
je 0x3013a041
push ebp
lea eax, [edi + 0x178]
push eax
push ecx
push edx
call fcn.3013aec0
add esp, 0x10
xor ebp, ebp
mov dword [esp + 0x18], ebp
cmp ebx, 0xc00
jb 0x3013a0d4
mov ebp, dword [esp + 0x3c]
mov eax, 0xaaaaaaab
mul ebx
shr edx, 0xb
mov dword [esp + 0x10], edx
nop
push 0xc00
push esi
lea eax, [edi + 0x60]
push eax
push dword [esp + 0x28]
call fcn.3013aec0
push edi
push dword [esp + 0x34]
push 0xc0
push ebp
push esi
call dword [esp + 0x64]
mov ecx, dword [esp + 0x38]
add esp, 0x24
add ecx, 0xc0
add ebp, 0xc00
mov eax, ecx
mov dword [esp + 0x14], ecx
shr eax, 0x18
add esi, 0xc00
mov byte [edi + 0xc], al
sub ebx, 0xc00
mov eax, ecx
mov byte [edi + 0xf], cl
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, ecx
shr eax, 8
sub dword [esp + 0x10], 1
mov byte [edi + 0xe], al
jne 0x3013a060
mov dword [esp + 0x3c], ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x10], esi
mov eax, ebx
and eax, 0xfffffff0
mov dword [esp + 0x18], eax
je 0x3013a141
push eax
push dword [esp + 0x14]
mov esi, eax
lea eax, [edi + 0x60]
push eax
push dword [esp + 0x28]
shr esi, 4
call fcn.3013aec0
mov ecx, dword [esp + 0x4c]
push edi
push dword [esp + 0x34]
push esi
push ecx
push dword [esp + 0x30]
call dword [esp + 0x64]
mov ecx, dword [esp + 0x38]
add esp, 0x24
add ecx, esi
mov esi, dword [esp + 0x10]
mov eax, ecx
mov dword [esp + 0x14], ecx
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [edi + 0xe], al
mov eax, dword [esp + 0x18]
add esi, eax
add dword [esp + 0x3c], eax
sub ebx, eax
mov byte [edi + 0xf], cl
test ebx, ebx
je 0x3013a1b3
push dword [esp + 0x20]
lea eax, [edi + 0x10]
push eax
mov eax, dword [edi + 0x170]
push edi
call eax
mov ecx, dword [esp + 0x20]
add esp, 0xc
inc ecx
mov eax, ecx
mov byte [edi + 0xf], cl
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, ecx
mov ecx, dword [esp + 0x3c]
shr eax, 8
mov byte [edi + 0xe], al
add edi, 0x10
mov eax, dword [esp + 0x24]
lea edx, [eax + ecx]
add eax, edi
mov dword [esp + 0x3c], eax
sub esi, ecx
mov edi, eax
mov eax, dword [esp + 0x28]
lea edi, [edi + 1]
mov cl, byte [esi + edx]
lea edx, [edx + 1]
mov byte [eax + ebp], cl
inc ebp
mov al, byte [edi - 1]
xor al, cl
mov byte [edx - 1], al
sub ebx, 1
jne 0x3013a191
mov edi, dword [esp + 0x30]
pop esi
mov dword [edi + 0x168], ebp
xor eax, eax
pop ebp
pop edi
pop ebx
add esp, 0x1c
ret
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0x1c
ret