Function at 0x30134370
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x20
call fcn.3015a930
mov edx, dword [esp + 0x30]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0x170]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x174]
mov dword [esp + 0x14], eax
mov eax, edx
add eax, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x3013471d
jb 0x301343b5
cmp eax, 0xffffffe0
ja 0x3013471d
cmp dword [esi + 0x16c], 0
mov dword [esi + 0x3c], ecx
mov ecx, dword [esi + 0x168]
mov dword [esp + 4], ecx
lea ecx, [esi + 0x40]
push edi
mov dword [esi + 0x38], eax
mov dword [esp + 0xc], ecx
je 0x30134434
test edx, edx
jne 0x301343f9
lea eax, [esi + 0x60]
push eax
push ecx
call fcn.30135990
add esp, 8
mov dword [esi + 0x16c], 0
xor eax, eax
pop edi
pop esi
add esp, 0x20
ret
movups xmm0, xmmword [ecx]
lea edi, [esi + 0x178]
mov dword [esp + 8], 0x10
movups xmmword [edi], xmm0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x16c], 0
jmp 0x3013443e
lea edi, [esi + 0x178]
mov dword [esp + 0xc], ecx
movzx eax, byte [esi + 0xd]
push ebx
movzx ebx, byte [esi + 0xc]
shl ebx, 8
or ebx, eax
mov dword [esp + 0x28], edi
movzx eax, byte [esi + 0xe]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0xf]
shl ebx, 8
or ebx, eax
mov eax, dword [esp + 0xc]
mov ecx, eax
and ecx, 0xf
push ebp
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x18], ecx
je 0x30134508
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x38]
test edx, edx
je 0x301344ce
mov cl, byte [edi]
lea eax, [esi + 0x178]
mov dword [esp + 0x1c], eax
dec edx
mov eax, dword [esp + 0x10]
inc edi
mov dword [esp + 0x40], edx
mov byte [esi + eax + 0x178], cl
mov eax, dword [esp + 0x18]
mov al, byte [eax + esi + 0x10]
xor al, cl
mov ecx, dword [esp + 0x18]
mov byte [ebp], al
inc ecx
mov eax, dword [esp + 0x10]
inc ebp
inc eax
and ecx, 0xf
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
jne 0x30134482
mov edx, dword [esp + 0x1c]
jmp 0x301344d6
mov edx, dword [esp + 0x1c]
test ecx, ecx
jne 0x301344f8
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0x40]
push ecx
push edx
lea ecx, [esi + 0x60]
push ecx
push eax
call fcn.30135760
mov edx, dword [esp + 0x50]
add esp, 0x10
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x3013450c
pop ebp
pop ebx
mov dword [esi + 0x168], eax
xor eax, eax
pop edi
pop esi
add esp, 0x20
ret
mov edi, dword [esp + 0x38]
lea ecx, [esi + 0x60]
cmp edx, 0x10
jb 0x30134537
test eax, eax
je 0x30134537
push eax
lea eax, [esi + 0x178]
push eax
push ecx
push dword [esp + 0x20]
call fcn.30135760
mov edx, dword [esp + 0x50]
add esp, 0x10
xor ecx, ecx
mov dword [esp + 0x10], ecx
cmp edx, 0xc00
jb 0x301345e5
mov eax, 0xaaaaaaab
mul edx
shr edx, 0xb
mov dword [esp + 0x28], edx
push 0xc00
push edi
lea eax, [esi + 0x60]
push eax
push dword [esp + 0x20]
call fcn.30135760
add esp, 0x10
mov dword [esp + 0x1c], 0xc0
nop
push dword [esp + 0x20]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x30]
inc ebx
add esp, 0xc
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [esi + 0x10]
xor eax, dword [edi]
mov dword [ebp], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebp + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebp + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebp + 0xc], eax
add ebp, 0x10
sub dword [esp + 0x1c], 1
jne 0x30134570
mov edx, dword [esp + 0x40]
sub edx, 0xc00
sub dword [esp + 0x28], 1
mov dword [esp + 0x40], edx
jne 0x30134551
mov eax, edx
and eax, 0xfffffff0
je 0x3013467c
push eax
push edi
lea eax, [esi + 0x60]
push eax
push dword [esp + 0x20]
call fcn.30135760
mov edx, dword [esp + 0x50]
add esp, 0x10
cmp edx, 0x10
jb 0x3013467c
shr edx, 4
lea eax, [esi + 0x10]
mov dword [esp + 0x28], edx
push dword [esp + 0x20]
push eax
push esi
call dword [esp + 0x30]
inc ebx
mov edx, dword [esp + 0x4c]
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
sub edx, 0x10
mov byte [esi + 0xc], al
add esp, 0xc
mov eax, ebx
mov dword [esp + 0x40], edx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [esi + 0x10]
xor eax, dword [edi]
mov dword [ebp], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebp + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebp + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebp + 0xc], eax
add ebp, 0x10
sub dword [esp + 0x28], 1
lea eax, [esi + 0x10]
jne 0x30134615
test edx, edx
je 0x30134709
push dword [esp + 0x20]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
inc ebx
mov edx, dword [esp + 0x4c]
mov eax, ebx
shr eax, 0x18
add esp, 0xc
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
lea eax, [ecx + ebp]
mov dword [esp + 0x24], eax
lea eax, [esi + 0x10]
add eax, ecx
mov byte [esi + 0xf], bl
mov ebx, dword [esp + 0x10]
sub edi, ebp
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
mov cl, byte [edi + esi]
lea esi, [esi + 1]
mov byte [ebx + ebp], cl
inc ebx
mov al, byte [eax]
xor al, cl
mov byte [esi - 1], al
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
sub edx, 1
jne 0x301346d6
mov esi, dword [esp + 0x34]
xor eax, eax
pop ebp
mov dword [esi + 0x168], ebx
pop ebx
pop edi
pop esi
add esp, 0x20
ret
mov ebx, dword [esp + 0x10]
xor eax, eax
pop ebp
mov dword [esi + 0x168], ebx
pop ebx
pop edi
pop esi
add esp, 0x20
ret
or eax, 0xffffffff
pop esi
add esp, 0x20
ret