Function at 0x10002f18
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10014130
mov eax, 0x10
call fcn.101aa6d0
mov edx, dword [esp + 0x14]
test edx, edx
je 0x10014821
push ebp
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x10014820
push esi
mov esi, dword [esp + 0x24]
test esi, esi
je 0x1001481f
mov eax, dword [esi + 0x110]
mov dword [esp + 0x10], eax
cmp eax, 0xc
je 0x1001417d
cmp eax, 0xe
je 0x1001417d
cmp eax, 0x10
jne 0x1001481f
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 3]
shl ecx, 8
xor ecx, eax
xor ecx, dword [esi]
movzx eax, byte [edx + 5]
mov dword [esp + 0xc], ecx
movzx ecx, byte [edx + 4]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 6]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 7]
shl ecx, 8
xor ecx, eax
xor ecx, dword [esi + 4]
movzx eax, byte [edx + 9]
push ebx
movzx ebx, byte [edx + 8]
mov dword [esp + 0x18], ecx
movzx ecx, byte [edx + 0xc]
shl ebx, 8
xor ebx, eax
movzx eax, byte [edx + 0xa]
shl ecx, 8
shl ebx, 8
xor ebx, eax
movzx eax, byte [edx + 0xb]
shl ebx, 8
xor ebx, eax
movzx eax, byte [edx + 0xd]
xor ebx, dword [esi + 8]
xor ecx, eax
movzx eax, byte [edx + 0xe]
shl ecx, 8
xor ecx, eax
movzx eax, byte [edx + 0xf]
shl ecx, 8
xor ecx, eax
xor ecx, dword [esi + 0xc]
lea eax, [esi + 0x10]
mov dword [esp + 0x20], ecx
mov dword [esp + 0xc], eax
mov eax, ebx
shr eax, 0x10
mov edx, ebx
shr edx, 0x18
movzx ecx, al
mov eax, dword [edx*4 + 0x101de590]
xor eax, dword [ecx*4 + 0x101de990]
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
push edi
xor eax, dword [ecx*4 + 0x101ded90]
movzx ecx, bl
mov ebx, dword [esp + 0x24]
xor eax, dword [ecx*4 + 0x101df190]
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
mov edx, ebx
shr edx, 0x18
mov edi, dword [edx*4 + 0x101de590]
xor edi, dword [ecx*4 + 0x101de990]
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
xor edi, dword [ecx*4 + 0x101ded90]
movzx ecx, bl
mov ebx, dword [esp + 0x1c]
xor edi, dword [ecx*4 + 0x101df190]
mov edx, ebx
shr edx, 0x18
mov esi, dword [edx*4 + 0x101de590]
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
xor esi, dword [ecx*4 + 0x101de990]
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
xor esi, dword [ecx*4 + 0x101ded90]
movzx ecx, bl
mov ebx, dword [esp + 0x14]
xor esi, dword [ecx*4 + 0x101df190]
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
mov edx, ebx
shr edx, 0x18
xor esi, eax
mov edx, dword [edx*4 + 0x101de590]
xor edx, dword [ecx*4 + 0x101de990]
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
xor eax, edi
xor edx, dword [ecx*4 + 0x101ded90]
movzx ecx, bl
xor edi, esi
xor edx, dword [ecx*4 + 0x101df190]
mov ebx, edi
and ebx, 0xff0000
mov ecx, edi
shr ecx, 0x10
xor ebx, ecx
mov ecx, edi
and ecx, 0xff00
shr ebx, 8
shl edi, 0x10
xor ecx, edi
mov edi, dword [esp + 0x10]
shl ecx, 8
xor ebx, ecx
xor edx, esi
xor eax, edx
xor esi, eax
mov dword [esp + 0x24], ebx
rol eax, 0x10
mov ebx, esi
shr ebx, 8
mov ecx, esi
shl ecx, 8
xor ebx, ecx
mov ecx, dword [esp + 0x24]
and ebx, 0xff00ff
shl esi, 8
xor ebx, esi
xor ebx, eax
xor eax, ecx
xor ecx, ebx
xor edx, ebx
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 4]
xor eax, edx
xor edx, dword [edi]
xor ecx, eax
xor eax, dword [edi + 8]
xor ebx, ecx
mov ecx, dword [esp + 0x24]
xor ecx, dword [edi + 0xc]
add edi, 0x10
sub dword [esp + 0x18], 2
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ecx
je 0x1001465e
mov ebp, edi
mov ecx, eax
mov edx, eax
shr ecx, 0x10
movzx ecx, cl
shr edx, 0x18
mov ebx, dword [edx*4 + 0x101ded90]
xor ebx, dword [ecx*4 + 0x101df190]
mov ecx, eax
mov edx, dword [esp + 0x24]
movzx eax, al
shr ecx, 8
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x101de590]
mov ecx, edx
xor ebx, dword [eax*4 + 0x101de990]
shr ecx, 0x18
mov eax, edx
mov esi, dword [ecx*4 + 0x101ded90]
shr eax, 0x10
movzx eax, al
xor esi, dword [eax*4 + 0x101df190]
mov eax, edx
shr eax, 8
movzx eax, al
xor esi, dword [eax*4 + 0x101de590]
movzx eax, dl
xor esi, dword [eax*4 + 0x101de990]
mov eax, dword [esp + 0x1c]
mov ecx, eax
shr eax, 0x10
movzx eax, al
shr ecx, 0x18
mov edx, dword [ecx*4 + 0x101ded90]
xor edx, dword [eax*4 + 0x101df190]
mov ecx, dword [esp + 0x1c]
mov eax, ecx
shr eax, 8
movzx eax, al
xor edx, dword [eax*4 + 0x101de590]
movzx eax, cl
xor edx, dword [eax*4 + 0x101de990]
mov eax, dword [esp + 0x14]
mov ecx, eax
shr eax, 0x10
movzx eax, al
shr ecx, 0x18
xor edx, ebx
mov ecx, dword [ecx*4 + 0x101ded90]
xor ecx, dword [eax*4 + 0x101df190]
mov eax, dword [esp + 0x14]
shr eax, 8
movzx eax, al
xor ebx, esi
xor ecx, dword [eax*4 + 0x101de590]
mov eax, dword [esp + 0x14]
movzx eax, al
xor esi, edx
xor ecx, dword [eax*4 + 0x101de990]
mov eax, esi
xor ecx, edx
xor ebx, ecx
xor edx, ebx
mov dword [esp + 0x24], ebx
shl eax, 8
mov ebx, esi
shr ebx, 8
xor ebx, eax
mov dword [esp + 0x1c], ecx
mov ecx, edx
mov eax, edx
shr eax, 0x10
and ecx, 0xff0000
xor ecx, eax
mov eax, edx
and ebx, 0xff00ff
shl esi, 8
and eax, 0xff00
shl edx, 0x10
xor ebx, esi
shr ecx, 8
xor eax, edx
mov edx, dword [esp + 0x24]
shl eax, 8
xor ecx, eax
xor ecx, edx
mov eax, dword [esp + 0x1c]
rol eax, 0x10
xor eax, ecx
xor edx, ebx
xor edx, eax
xor eax, dword [ebp]
xor ebx, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 4]
xor eax, edx
xor edx, dword [ebp + 8]
xor ecx, eax
mov dword [esp + 0x14], ecx
xor ebx, dword [ebp + 0xc]
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x24]
shr edx, 0x18
shr eax, 0x10
movzx ecx, al
mov eax, dword [edx*4 + 0x101de590]
xor eax, dword [ecx*4 + 0x101de990]
mov edx, dword [esp + 0x24]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x101ded90]
movzx ecx, dl
mov edx, ebx
xor eax, dword [ecx*4 + 0x101df190]
shr edx, 0x18
mov ecx, ebx
mov edi, dword [edx*4 + 0x101de590]
shr ecx, 0x10
movzx ecx, cl
xor edi, dword [ecx*4 + 0x101de990]
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
xor edi, dword [ecx*4 + 0x101ded90]
movzx ecx, bl
mov ebx, dword [esp + 0x14]
xor edi, dword [ecx*4 + 0x101df190]
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
mov edx, ebx
shr edx, 0x18
mov esi, dword [edx*4 + 0x101de590]
xor esi, dword [ecx*4 + 0x101de990]
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
xor esi, dword [ecx*4 + 0x101ded90]
movzx ecx, bl
mov ebx, dword [esp + 0x1c]
xor esi, dword [ecx*4 + 0x101df190]
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
mov edx, ebx
shr edx, 0x18
xor esi, eax
mov edx, dword [edx*4 + 0x101de590]
xor edx, dword [ecx*4 + 0x101de990]
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
xor eax, edi
xor edx, dword [ecx*4 + 0x101ded90]
movzx ecx, bl
xor edi, esi
xor edx, dword [ecx*4 + 0x101df190]
mov ebx, edi
xor edx, esi
xor eax, edx
xor esi, eax
rol eax, 0x10
and ebx, 0xff0000
mov ecx, edi
shr ecx, 0x10
xor ebx, ecx
shr ebx, 8
mov ecx, edi
and ecx, 0xff00
shl edi, 0x10
xor ecx, edi
shl ecx, 8
xor ebx, ecx
mov dword [esp + 0x24], ebx
mov ebx, esi
shr ebx, 8
mov ecx, esi
shl ecx, 8
xor ebx, ecx
mov ecx, dword [esp + 0x24]
and ebx, 0xff00ff
shl esi, 8
xor ebx, esi
xor ebx, eax
xor eax, ecx
xor ecx, ebx
xor edx, ebx
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 0x14]
xor eax, edx
xor edx, dword [ebp + 0x10]
xor ecx, eax
xor eax, dword [ebp + 0x18]
xor ebx, ecx
mov ecx, dword [esp + 0x24]
xor ecx, dword [ebp + 0x1c]
add ebp, 0x20
sub dword [esp + 0x18], 2
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ecx
jne 0x10014387
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
mov esi, dword [esp + 0x24]
mov ecx, dword [ecx*4 + 0x101df190]
shr ecx, 8
movzx edx, cl
mov ecx, ebx
shr ecx, 0x18
movzx ecx, byte [ecx*4 + 0x101ded90]
shl ecx, 8
or edx, ecx
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx*4 + 0x101de590]
or edx, ecx
movzx ecx, bl
shl edx, 8
movzx ecx, byte [ecx*4 + 0x101de990]
or edx, ecx
xor edx, dword [edi]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x1c]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x101df190]
shr ecx, 8
movzx ebx, cl
mov ecx, edx
shr ecx, 0x18
movzx ecx, byte [ecx*4 + 0x101ded90]
shl ecx, 8
or ebx, ecx
mov ecx, edx
shr ecx, 8
movzx ecx, cl
shl ebx, 8
movzx ecx, byte [ecx*4 + 0x101de590]
or ebx, ecx
movzx ecx, dl
shl ebx, 8
movzx ecx, byte [ecx*4 + 0x101de990]
or ebx, ecx
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
xor ebx, dword [edi + 4]
mov ecx, dword [ecx*4 + 0x101df190]
shr ecx, 8
movzx edx, cl
mov ecx, eax
shr ecx, 0x18
movzx ecx, byte [ecx*4 + 0x101ded90]
shl ecx, 8
or edx, ecx
mov ecx, eax
shr ecx, 8
movzx eax, al
movzx ecx, cl
movzx eax, byte [eax*4 + 0x101de990]
movzx ecx, byte [ecx*4 + 0x101de590]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
xor edx, dword [edi + 8]
mov eax, esi
shr eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x101df190]
shr eax, 8
movzx ecx, al
mov eax, esi
shr eax, 0x18
movzx eax, byte [eax*4 + 0x101ded90]
shl eax, 8
or ecx, eax
mov eax, esi
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax*4 + 0x101de590]
or ecx, eax
mov eax, esi
mov esi, dword [esp + 0x18]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax*4 + 0x101de990]
or ecx, eax
xor ecx, dword [edi + 0xc]
mov eax, esi
shr eax, 0x18
mov byte [ebp], al
mov eax, esi
shr eax, 0x10
mov byte [ebp + 1], al
mov eax, esi
shr eax, 8
mov byte [ebp + 2], al
mov eax, esi
mov byte [ebp + 3], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp + 5], al
mov eax, ebx
shr eax, 8
mov byte [ebp + 6], al
mov eax, edx
shr eax, 0x18
mov byte [ebp + 8], al
mov eax, edx
shr eax, 0x10
mov byte [ebp + 9], al
mov eax, edx
shr eax, 8
mov byte [ebp + 0xa], al
mov eax, ecx
shr eax, 0x18
mov byte [ebp + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp + 0xd], al
mov eax, ecx
shr eax, 8
pop edi
mov byte [ebp + 7], bl
mov byte [ebp + 0xb], dl
mov byte [ebp + 0xe], al
mov byte [ebp + 0xf], cl
pop ebx
pop esi
pop ebp
add esp, 0x10
ret