Function at 0x30139870
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.3015ea70
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov edx, eax
push ebx
push ebp
push esi
mov bl, byte [eax + 0xf]
lea ebp, [ecx + 0xe]
sub edx, ecx
mov dword [esp + 0x14], ebp
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x1c], edx
nop dword [eax]
movzx edx, byte [ebp + 1]
mov ebp, dword [esp + 0x30]
movzx ecx, bl
xor edx, ecx
mov dword [esp + 0x20], 0xe
mov ecx, edx
and edx, 0xf
and ecx, 0xfffffff0
add edx, edx
mov ebx, dword [ebp + edx*8 + 8]
mov esi, dword [ebp + edx*8 + 4]
mov eax, dword [ebp + edx*8 + 0xc]
mov edi, dword [edi + edx*8]
lea edx, [ecx + ebp]
mov ecx, ebx
xor ebp, ebp
and ecx, 0xf
shrd ebx, eax, 4
xor ebx, dword [edx + 8]
mov ecx, dword [ecx*4 + 0x301d7fb0]
mov dword [esp + 0x34], ecx
mov ecx, edi
shrd ecx, esi, 4
shr eax, 4
xor ebp, ecx
shr esi, 4
mov ecx, dword [esp + 0x34]
xor ebp, dword [edx]
xor ecx, esi
xor ecx, dword [edx + 4]
shl edi, 0x1c
mov dword [esp + 0x10], ebp
or eax, edi
mov ebp, dword [esp + 0x18]
xor eax, dword [edx + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], ebp
nop
mov ecx, dword [esp + 0x1c]
and ebx, 0xf
movzx edx, byte [ecx + ebp]
mov edi, dword [ebx*4 + 0x301d7fb0]
movzx ecx, byte [ebp]
xor ebp, ebp
mov ebx, dword [esp + 0x34]
xor edx, ecx
mov ecx, dword [esp + 0x10]
mov esi, edx
shrd ecx, ebx, 4
shl dword [esp + 0x10], 0x1c
and edx, 0xf
xor ebp, ecx
shr ebx, 4
mov ecx, dword [esp + 0x30]
add edx, edx
xor edi, ebx
and esi, 0xfffffff0
xor ebx, ebx
xor ebp, dword [ecx + edx*8]
xor edi, dword [ecx + edx*8 + 4]
mov ecx, dword [esp + 0x14]
shrd ecx, eax, 4
or ebx, ecx
shr eax, 4
mov ecx, dword [esp + 0x10]
or ecx, eax
mov eax, dword [esp + 0x30]
xor ecx, dword [eax + edx*8 + 0xc]
xor ebx, dword [eax + edx*8 + 8]
mov edx, ecx
mov ecx, ebx
xor eax, eax
and ecx, 0xf
shrd ebx, edx, 4
shr edx, 4
mov ecx, dword [ecx*4 + 0x301d7fb0]
mov dword [esp + 0x34], ecx
mov ecx, ebp
shrd ecx, edi, 4
xor eax, ecx
shr edi, 4
mov ecx, dword [esp + 0x34]
xor ecx, edi
mov edi, dword [esp + 0x30]
xor ecx, dword [esi + edi + 4]
xor eax, dword [esi + edi]
mov dword [esp + 0x34], ecx
xor ecx, ecx
or ecx, ebx
mov dword [esp + 0x10], eax
mov eax, ebp
mov dword [esp + 0x14], ecx
mov ebp, dword [esp + 0x24]
mov ebx, ecx
mov ecx, dword [esp + 0x20]
dec ebp
xor ebx, dword [esi + edi + 8]
dec ecx
shl eax, 0x1c
or eax, edx
mov dword [esp + 0x14], ebx
xor eax, dword [esi + edi + 0xc]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebp
test ecx, ecx
jns 0x30139920
mov edx, dword [esp + 0x34]
mov ecx, edx
shr ecx, 0x18
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x18]
sub dword [esp + 0x1c], 0x10
add ebp, 0x10
mov dword [esp + 0x18], ebp
mov byte [eax], cl
mov ecx, edx
shr ecx, 0x10
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov byte [eax + 3], dl
mov edx, dword [esp + 0x10]
mov ecx, edx
shr ecx, 0x18
mov byte [eax + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [eax + 5], cl
mov ecx, edx
shr ecx, 8
mov byte [eax + 6], cl
mov byte [eax + 7], dl
mov edx, dword [esp + 0x24]
mov ecx, edx
shr ecx, 0x18
mov byte [eax + 8], cl
mov ecx, edx
shr ecx, 0x10
mov byte [eax + 9], cl
mov ecx, edx
shr ecx, 8
mov byte [eax + 0xa], cl
mov ecx, ebx
shr ecx, 0x18
mov byte [eax + 0xc], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [eax + 0xd], cl
mov ecx, ebx
shr ecx, 8
sub dword [esp + 0x38], 0x10
mov byte [eax + 0xb], dl
mov byte [eax + 0xe], cl
mov byte [eax + 0xf], bl
jne 0x301398a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret