Function at 0x10010791
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 0x1c], 0
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
movzx eax, byte [ebx]
je 0x10010b59
movzx ecx, byte [ebx + 1]
shl eax, 0x18
inc ebx
shl ecx, 0x10
or eax, ecx
inc ebx
xor ecx, ecx
mov ch, byte [ebx]
or eax, ecx
inc ebx
movzx ecx, byte [ebx]
movzx esi, byte [ebx + 1]
or eax, ecx
inc ebx
shl esi, 0x18
movzx ecx, byte [ebx + 1]
inc ebx
mov dword [ebp + 0x18], eax
shl ecx, 0x10
or esi, ecx
inc ebx
xor ecx, ecx
mov ch, byte [ebx]
or esi, ecx
inc ebx
movzx ecx, byte [ebx]
or esi, ecx
inc ebx
mov dword [ebp - 4], esi
movzx esi, byte [ebx]
movzx ecx, byte [ebx + 1]
shl esi, 0x18
inc ebx
shl ecx, 0x10
or esi, ecx
inc ebx
xor ecx, ecx
mov ch, byte [ebx]
or esi, ecx
inc ebx
movzx ecx, byte [ebx]
or esi, ecx
inc ebx
mov dword [ebp + 0x1c], esi
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 1]
shl ecx, 0x18
inc ebx
shl edx, 0x10
or ecx, edx
inc ebx
xor edx, edx
mov dh, byte [ebx]
or ecx, edx
inc ebx
movzx edx, byte [ebx]
or ecx, edx
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
sub ebx, 0xf
test edx, edx
mov dword [ebp - 8], ecx
jl 0x10010b4e
lea eax, [edx + 0x10]
mov esi, dword [ebp + 0xc]
shr eax, 4
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
neg eax
shl eax, 4
add edx, eax
mov dword [ebp - 0xc], edx
movzx eax, byte [edi]
movzx ecx, byte [edi + 1]
shl eax, 0x18
inc edi
push dword [ebp + 0x14]
shl ecx, 0x10
or eax, ecx
inc edi
xor ecx, ecx
mov ch, byte [edi]
or eax, ecx
inc edi
movzx ecx, byte [edi]
or eax, ecx
inc edi
xor eax, dword [ebp + 0x18]
movzx ecx, byte [edi]
movzx edx, byte [edi + 1]
shl ecx, 0x18
inc edi
mov dword [ebp - 0x24], eax
shl edx, 0x10
or ecx, edx
inc edi
xor edx, edx
mov dh, byte [edi]
or ecx, edx
inc edi
movzx edx, byte [edi]
or ecx, edx
inc edi
mov dword [ebp + 0x10], ecx
movzx ecx, byte [edi]
movzx edx, byte [edi + 1]
shl ecx, 0x18
inc edi
mov eax, dword [ebp + 0x10]
shl edx, 0x10
or ecx, edx
inc edi
xor edx, edx
xor eax, dword [ebp - 4]
mov dh, byte [edi]
or ecx, edx
inc edi
mov dword [ebp - 0x20], eax
movzx edx, byte [edi]
or ecx, edx
inc edi
mov dword [ebp + 0xc], ecx
movzx ecx, byte [edi]
movzx edx, byte [edi + 1]
shl ecx, 0x18
inc edi
mov eax, dword [ebp + 0xc]
shl edx, 0x10
or ecx, edx
inc edi
xor edx, edx
xor eax, dword [ebp + 0x1c]
mov dh, byte [edi]
or ecx, edx
inc edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
movzx edx, byte [edi]
or ecx, edx
push eax
xor ecx, dword [ebp - 8]
inc edi
mov dword [ebp - 0x18], ecx
call fcn.1000ec59
pop ecx
mov eax, dword [ebp - 0x24]
pop ecx
mov dword [ebp + 0x18], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + 0x1c], ecx
mov ecx, dword [ebp - 0x18]
mov edx, eax
mov dword [ebp - 8], ecx
shr edx, 0x18
mov byte [esi], dl
mov edx, eax
inc esi
shr edx, 0x10
mov byte [esi], dl
mov edx, eax
inc esi
shr edx, 8
mov byte [esi], dl
inc esi
mov dl, al
mov byte [esi], dl
mov edx, dword [ebp - 0x20]
inc esi
shr edx, 0x18
mov byte [esi], dl
mov edx, dword [ebp - 0x20]
inc esi
shr edx, 0x10
mov byte [esi], dl
mov edx, dword [ebp - 0x20]
inc esi
shr edx, 8
mov byte [esi], dl
mov dl, byte [ebp - 0x20]
inc esi
mov byte [esi], dl
mov edx, dword [ebp - 0x1c]
inc esi
shr edx, 0x18
mov byte [esi], dl
mov edx, dword [ebp - 0x1c]
inc esi
shr edx, 0x10
mov byte [esi], dl
mov edx, dword [ebp - 0x1c]
inc esi
shr edx, 8
mov byte [esi], dl
mov dl, byte [ebp - 0x1c]
inc esi
mov byte [esi], dl
mov edx, ecx
inc esi
shr edx, 0x18
mov byte [esi], dl
mov edx, ecx
inc esi
shr edx, 0x10
mov byte [esi], dl
mov edx, ecx
inc esi
shr edx, 8
mov byte [esi], dl
inc esi
mov dl, cl
mov byte [esi], dl
inc esi
dec dword [ebp - 0x14]
jne 0x10010855
mov edx, dword [ebp - 0xc]
cmp edx, 0xfffffff0
je 0x10010b0d
lea edi, [edi + edx + 0x10]
add edx, 0xf
xor ecx, ecx
xor eax, eax
cmp edx, 0xf
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], ecx
ja case.default.0x100109c2
jmp dword [edx*4 + 0x10010f64]
movzx eax, byte [edi - 1]
dec edi
mov dword [ebp + 8], eax
dec edi
xor eax, eax
mov ah, byte [edi]
or dword [ebp + 8], eax
movzx eax, byte [edi - 1]
dec edi
shl eax, 0x10
or dword [ebp + 8], eax
movzx eax, byte [edi - 1]
dec edi
shl eax, 0x18
or dword [ebp + 8], eax
movzx eax, byte [edi - 1]
dec edi
mov dword [ebp + 0xc], eax
dec edi
xor eax, eax
mov ah, byte [edi]
or dword [ebp + 0xc], eax
movzx eax, byte [edi - 1]
dec edi
shl eax, 0x10
or dword [ebp + 0xc], eax
movzx eax, byte [edi - 1]
dec edi
shl eax, 0x18
or dword [ebp + 0xc], eax
movzx ecx, byte [edi - 1]
dec edi
dec edi
xor eax, eax
mov ah, byte [edi]
or ecx, eax
movzx eax, byte [edi - 1]
dec edi
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi - 1]
dec edi
shl eax, 0x18
or ecx, eax
movzx eax, byte [edi - 1]
dec edi
dec edi
xor edx, edx
mov dh, byte [edi]
or eax, edx
movzx edx, byte [edi - 1]
dec edi
shl edx, 0x10
or eax, edx
movzx edx, byte [edi - 1]
shl edx, 0x18
or eax, edx
xor eax, dword [ebp + 0x18]
push dword [ebp + 0x14]
xor ecx, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
xor eax, dword [ebp + 0x1c]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
xor eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
call fcn.1000ec59
mov eax, dword [ebp - 0x24]
pop ecx
mov edx, eax
pop ecx
shr edx, 0x18
mov byte [esi], dl
mov edx, eax
inc esi
mov ecx, dword [ebp - 0x20]
shr edx, 0x10
mov byte [esi], dl
mov edx, eax
inc esi
mov dword [ebp - 4], ecx
shr edx, 8
mov byte [esi], dl
inc esi
mov dl, al
mov ecx, dword [ebp - 0x1c]
mov byte [esi], dl
mov edx, dword [ebp - 0x20]
inc esi
mov dword [ebp + 0x1c], ecx
shr edx, 0x18
mov byte [esi], dl
mov edx, dword [ebp - 0x20]
inc esi
mov ecx, dword [ebp - 0x18]
shr edx, 0x10
mov byte [esi], dl
mov edx, dword [ebp - 0x20]
inc esi
shr edx, 8
mov byte [esi], dl
mov dl, byte [ebp - 0x20]
inc esi
mov byte [esi], dl
mov edx, dword [ebp - 0x1c]
inc esi
shr edx, 0x18
mov byte [esi], dl
mov edx, dword [ebp - 0x1c]
inc esi
shr edx, 0x10
mov byte [esi], dl
mov edx, dword [ebp - 0x1c]
inc esi
shr edx, 8
mov byte [esi], dl
mov dl, byte [ebp - 0x1c]
inc esi
mov byte [esi], dl
mov edx, ecx
inc esi
shr edx, 0x18
mov byte [esi], dl
mov edx, ecx
inc esi
shr edx, 0x10
mov byte [esi], dl
mov edx, ecx
inc esi
shr edx, 8
mov byte [esi], dl
mov dl, cl
mov byte [esi + 1], dl
mov edx, eax
shr edx, 0x18
mov byte [ebx], dl
mov edx, eax
inc ebx
shr edx, 0x10
mov byte [ebx], dl
mov edx, eax
inc ebx
shr edx, 8
mov byte [ebx], dl
inc ebx
mov byte [ebx], al
mov eax, dword [ebp - 4]
mov edx, eax
inc ebx
shr edx, 0x18
mov byte [ebx], dl
mov edx, eax
inc ebx
shr edx, 0x10
mov byte [ebx], dl
mov edx, eax
inc ebx
shr edx, 8
mov byte [ebx], dl
inc ebx
mov byte [ebx], al
mov eax, dword [ebp + 0x1c]
inc ebx
jmp 0x10010f2a
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
jmp 0x1001099f
movzx ecx, byte [ebx + 1]
shl eax, 0x18
inc ebx
shl ecx, 0x10
or eax, ecx
inc ebx
xor ecx, ecx
mov ch, byte [ebx]
or eax, ecx
inc ebx
movzx ecx, byte [ebx]
movzx esi, byte [ebx + 1]
or eax, ecx
inc ebx
shl esi, 0x18
movzx ecx, byte [ebx + 1]
inc ebx
mov dword [ebp + 0x18], eax
shl ecx, 0x10
or esi, ecx
inc ebx
xor ecx, ecx
mov ch, byte [ebx]
or esi, ecx
inc ebx
movzx ecx, byte [ebx]
or esi, ecx
inc ebx
mov dword [ebp + 0x1c], esi
movzx esi, byte [ebx]
movzx ecx, byte [ebx + 1]
shl esi, 0x18
inc ebx
shl ecx, 0x10
or esi, ecx
inc ebx
xor ecx, ecx
mov ch, byte [ebx]
or esi, ecx
inc ebx
movzx ecx, byte [ebx]
or esi, ecx
inc ebx
mov dword [ebp - 0x10], esi
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 1]
shl ecx, 0x18
inc ebx
shl edx, 0x10
or ecx, edx
inc ebx
xor edx, edx
mov dh, byte [ebx]
or ecx, edx
inc ebx
movzx edx, byte [ebx]
or ecx, edx
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
sub ebx, 0xf
test edx, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
jl 0x10010ea3
lea eax, [edx + 0x10]
mov edi, dword [ebp + 0xc]
shr eax, 4
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
neg eax
shl eax, 4
add edx, eax
mov dword [ebp - 0xc], edx
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
shl eax, 0x18
inc esi
push dword [ebp + 0x14]
shl ecx, 0x10
or eax, ecx
inc esi
xor ecx, ecx
mov ch, byte [esi]
or eax, ecx
inc esi
movzx ecx, byte [esi]
or eax, ecx
inc esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], eax
movzx ecx, byte [esi]
movzx edx, byte [esi + 1]
shl ecx, 0x18
inc esi
shl edx, 0x10
or ecx, edx
inc esi
xor edx, edx
mov dh, byte [esi]
or ecx, edx
inc esi
movzx edx, byte [esi]
or ecx, edx
inc esi
mov dword [ebp + 0x10], ecx
movzx ecx, byte [esi]
movzx edx, byte [esi + 1]
shl ecx, 0x18
inc esi
mov eax, dword [ebp + 0x10]
shl edx, 0x10
or ecx, edx
inc esi
xor edx, edx
mov dword [ebp - 0x20], eax
mov dh, byte [esi]
or ecx, edx
inc esi
movzx edx, byte [esi]
or ecx, edx
inc esi
mov dword [ebp + 0xc], ecx
movzx ecx, byte [esi]
movzx edx, byte [esi + 1]
shl ecx, 0x18
inc esi
mov eax, dword [ebp + 0xc]
shl edx, 0x10
or ecx, edx
inc esi
xor edx, edx
mov dword [ebp - 0x1c], eax
mov dh, byte [esi]
lea eax, [ebp - 0x24]
or ecx, edx
inc esi
push eax
movzx edx, byte [esi]
or ecx, edx
inc esi
mov dword [ebp + 8], ecx
mov dword [ebp - 0x18], ecx
call fcn.1000f5a1
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0x10]
xor eax, dword [ebp - 0x24]
pop ecx
pop ecx
mov dword [ebp + 0x18], edx
mov ecx, dword [ebp + 0x1c]
xor ecx, dword [ebp - 0x20]
xor edx, dword [ebp - 0x1c]
mov dword [ebp + 0x1c], edx
mov edx, dword [ebp - 8]
mov dword [ebp + 0x18], edx
xor edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
mov edx, eax
shr edx, 0x18
mov byte [edi], dl
mov edx, eax
inc edi
shr edx, 0x10
mov byte [edi], dl
mov edx, eax
inc edi
shr edx, 8
mov byte [edi], dl
inc edi
mov byte [edi], al
mov eax, ecx
inc edi
shr eax, 0x18
mov byte [edi], al
mov eax, ecx
inc edi
shr eax, 0x10
mov byte [edi], al
mov eax, ecx
inc edi
shr eax, 8
mov byte [edi], al
mov eax, dword [ebp + 0x1c]
inc edi
mov byte [edi], cl
mov ecx, eax
inc edi
shr ecx, 0x18
mov byte [edi], cl
mov ecx, eax
inc edi
shr ecx, 0x10
mov byte [edi], cl
mov ecx, eax
inc edi
shr ecx, 8
mov byte [edi], cl
inc edi
mov byte [edi], al
mov eax, dword [ebp - 8]
mov ecx, eax
inc edi
shr ecx, 0x18
mov byte [edi], cl
mov ecx, eax
inc edi
shr ecx, 0x10
mov byte [edi], cl
mov ecx, eax
inc edi
shr ecx, 8
mov byte [edi], cl
inc edi
mov byte [edi], al
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
inc edi
dec dword [ebp - 4]
mov dword [ebp - 8], eax
jne 0x10010c07
mov ecx, eax
mov eax, dword [ebp + 0x18]
cmp dword [ebp - 0xc], 0xfffffff0
je 0x10010eee
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
shl eax, 0x18
inc esi
push dword [ebp + 0x14]
shl ecx, 0x10
or eax, ecx
inc esi
xor ecx, ecx
mov ch, byte [esi]
or eax, ecx
inc esi
movzx ecx, byte [esi]
or eax, ecx
inc esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], eax
movzx ecx, byte [esi]
movzx edx, byte [esi + 1]
shl ecx, 0x18
inc esi
shl edx, 0x10
or ecx, edx
inc esi
xor edx, edx
mov dh, byte [esi]
or ecx, edx
inc esi
movzx edx, byte [esi]
or ecx, edx
inc esi
mov dword [ebp + 0x10], ecx
movzx ecx, byte [esi]
movzx edx, byte [esi + 1]
shl ecx, 0x18
inc esi
mov eax, dword [ebp + 0x10]
shl edx, 0x10
or ecx, edx
inc esi
xor edx, edx
mov dword [ebp - 0x20], eax
mov dh, byte [esi]
or ecx, edx
inc esi
movzx edx, byte [esi]
or ecx, edx
inc esi
mov dword [ebp + 0xc], ecx
movzx ecx, byte [esi]
movzx edx, byte [esi + 1]
shl ecx, 0x18
inc esi
mov eax, dword [ebp + 0xc]
shl edx, 0x10
or ecx, edx
inc esi
xor edx, edx
mov dword [ebp - 0x1c], eax
mov dh, byte [esi]
lea eax, [ebp - 0x24]
mov dl, byte [esi + 1]
push eax
or ecx, edx
mov dword [ebp + 8], ecx
mov dword [ebp - 0x18], ecx
call fcn.1000f5a1
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0x10]
xor eax, dword [ebp - 0x24]
mov esi, dword [ebp - 8]
xor edx, dword [ebp - 0x1c]
pop ecx
pop ecx
mov dword [ebp + 0x18], eax
mov ecx, dword [ebp + 0x1c]
xor ecx, dword [ebp - 0x20]
xor esi, dword [ebp - 0x18]
mov eax, ecx
mov ecx, esi
mov dword [ebp - 4], eax
mov esi, dword [ebp - 0xc]
lea edi, [edi + esi + 0x10]
add esi, 0xf
cmp esi, 0xf
ja case.default.0x10010e46
jmp dword [esi*4 + 0x10010fa4]
dec edi
mov byte [edi], cl
mov eax, ecx
dec edi
shr eax, 8
mov byte [edi], al
mov eax, ecx
dec edi
shr eax, 0x10
mov byte [edi], al
mov eax, dword [ebp - 4]
dec edi
shr ecx, 0x18
mov byte [edi], cl
dec edi
mov byte [edi], dl
mov ecx, edx
dec edi
shr ecx, 8
mov byte [edi], cl
mov ecx, edx
dec edi
shr ecx, 0x10
mov byte [edi], cl
dec edi
shr edx, 0x18
mov byte [edi], dl
dec edi
mov byte [edi], al
mov ecx, eax
dec edi
shr ecx, 8
mov byte [edi], cl
mov ecx, eax
dec edi
shr ecx, 0x10
mov byte [edi], cl
dec edi
shr eax, 0x18
mov byte [edi], al
mov eax, dword [ebp + 0x18]
dec edi
mov byte [edi], al
jmp 0x10010eb1
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
jmp 0x10010d67
mov eax, dword [ebp + 0x18]
mov ecx, eax
dec edi
shr ecx, 8
mov byte [edi], cl
jmp 0x10010ebe
mov eax, dword [ebp + 0x18]
mov ecx, eax
dec edi
shr ecx, 0x10
mov byte [edi], cl
jmp 0x10010ecb
mov eax, dword [ebp + 0x18]
shr eax, 0x18
mov byte [edi - 1], al
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, eax
mov eax, dword [ebp + 0x18]
mov edx, eax
shr edx, 0x18
mov byte [ebx], dl
mov edx, eax
inc ebx
shr edx, 0x10
mov byte [ebx], dl
mov edx, eax
inc ebx
shr edx, 8
mov byte [ebx], dl
inc ebx
mov byte [ebx], al
mov eax, dword [ebp + 0x1c]
mov edx, eax
inc ebx
shr edx, 0x18
mov byte [ebx], dl
mov edx, eax
inc ebx
shr edx, 0x10
mov byte [ebx], dl
mov edx, eax
inc ebx
shr edx, 8
mov byte [ebx], dl
inc ebx
mov byte [ebx], al
mov eax, dword [ebp - 0x10]
inc ebx
mov edx, eax
pop edi
shr edx, 0x18
mov byte [ebx], dl
mov edx, eax
inc ebx
pop esi
shr edx, 0x10
mov byte [ebx], dl
mov edx, eax
inc ebx
shr edx, 8
mov byte [ebx], dl
inc ebx
mov byte [ebx], al
mov eax, ecx
inc ebx
shr eax, 0x18
mov byte [ebx], al
mov eax, ecx
inc ebx
shr eax, 0x10
mov byte [ebx], al
mov eax, ecx
inc ebx
shr eax, 8
mov byte [ebx], al
mov byte [ebx + 1], cl
pop ebx
leave
ret