Function at 0x10112520
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.10057f70
mov eax, dword [esp + 0x28]
test eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
je 0x1011278c
movzx edx, byte [ebp]
movzx eax, byte [ebp + 1]
shl edx, 0x18
inc ebp
shl eax, 0x10
or edx, eax
xor ecx, ecx
mov ch, byte [ebp + 1]
inc ebp
movzx eax, byte [ebp + 1]
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
or edx, ecx
inc ebp
or edx, eax
movzx eax, byte [ebp + 1]
inc ebp
movzx ecx, byte [ebp + 1]
shl eax, 0x18
inc ebp
mov esi, dword [esp + 0x28]
shl ecx, 0x10
or eax, ecx
xor ecx, ecx
mov ch, byte [ebp + 1]
inc ebp
or eax, ecx
movzx ecx, byte [ebp + 1]
inc ebp
or eax, ecx
sub ebp, 7
add ebx, 0xfffffff8
mov dword [esp + 0x38], eax
js 0x10112668
lea eax, [ebx + 8]
shr eax, 3
mov dword [esp + 0x2c], eax
neg eax
lea eax, [ebx + eax*8]
mov dword [esp + 0x14], eax
mov edi, edi
movzx eax, byte [edi]
movzx ecx, byte [edi + 1]
shl eax, 0x18
shl ecx, 0x10
or eax, ecx
inc edi
xor ecx, ecx
mov ch, byte [edi + 1]
inc edi
or eax, ecx
movzx ecx, byte [edi + 1]
or eax, ecx
inc edi
movzx ecx, byte [edi + 1]
inc edi
movzx ebx, byte [edi + 1]
shl ecx, 0x18
inc edi
shl ebx, 0x10
or ecx, ebx
xor ebx, ebx
mov bh, byte [edi + 1]
inc edi
xor eax, edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
push edx
or ecx, ebx
movzx ebx, byte [edi + 1]
inc edi
or ecx, ebx
xor ecx, eax
lea eax, [esp + 0x1c]
push eax
inc edi
mov dword [esp + 0x24], ecx
call fcn.10111c40
mov edx, dword [esp + 0x20]
add esp, 8
mov ecx, edx
shr ecx, 0x18
mov byte [esi], cl
inc esi
mov eax, edx
shr eax, 0x10
mov byte [esi], al
mov eax, dword [esp + 0x1c]
inc esi
mov ecx, edx
shr ecx, 8
mov byte [esi], cl
inc esi
mov byte [esi], dl
inc esi
mov ecx, eax
shr ecx, 0x18
mov byte [esi], cl
inc esi
mov ecx, eax
shr ecx, 0x10
mov byte [esi], cl
inc esi
mov ecx, eax
shr ecx, 8
mov byte [esi], cl
mov ecx, dword [esp + 0x2c]
inc esi
mov byte [esi], al
inc esi
dec ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], ecx
jne 0x101125b0
mov ebx, dword [esp + 0x14]
cmp ebx, 0xfffffff8
je 0x10112748
lea ecx, [edi + ebx + 8]
add ebx, 7
xor edi, edi
cmp ebx, 7
mov dword [esp + 0x2c], 0
ja case.default.0x10112687
jmp dword [ebx*4 + 0x101129f0]
movzx edi, byte [ecx - 1]
dec ecx
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x2c]
dec ecx
xor ebx, ebx
mov bh, byte [ecx]
or edi, ebx
mov dword [esp + 0x2c], edi
movzx edi, byte [ecx - 1]
mov ebx, dword [esp + 0x2c]
dec ecx
shl edi, 0x10
or ebx, edi
mov dword [esp + 0x2c], ebx
movzx edi, byte [ecx - 1]
mov ebx, dword [esp + 0x2c]
dec ecx
shl edi, 0x18
or ebx, edi
mov dword [esp + 0x2c], ebx
movzx edi, byte [ecx - 1]
dec ecx
dec ecx
xor ebx, ebx
mov bh, byte [ecx]
or edi, ebx
movzx ebx, byte [ecx - 1]
dec ecx
shl ebx, 0x10
or edi, ebx
movzx ecx, byte [ecx - 1]
shl ecx, 0x18
or edi, ecx
mov ecx, dword [esp + 0x2c]
xor edi, edx
mov edx, dword [esp + 0x30]
xor ecx, eax
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
call fcn.10111c40
mov edx, dword [esp + 0x20]
add esp, 8
mov ecx, edx
shr ecx, 0x18
mov byte [esi], cl
inc esi
mov eax, edx
shr eax, 0x10
mov byte [esi], al
mov eax, dword [esp + 0x1c]
inc esi
mov ecx, edx
shr ecx, 8
mov byte [esi], cl
inc esi
mov byte [esi], dl
inc esi
mov ecx, eax
shr ecx, 0x18
mov byte [esi], cl
inc esi
mov ecx, eax
shr ecx, 0x10
mov byte [esi], cl
inc esi
mov ecx, eax
shr ecx, 8
mov byte [esi], cl
mov byte [esi + 1], al
mov ecx, edx
shr ecx, 0x18
mov byte [ebp], cl
inc ebp
mov ecx, edx
shr ecx, 0x10
mov byte [ebp], cl
inc ebp
mov ecx, edx
shr ecx, 8
mov byte [ebp], cl
mov byte [ebp + 1], dl
inc ebp
inc ebp
mov edx, eax
shr edx, 0x18
mov byte [ebp], dl
inc ebp
mov ecx, eax
shr ecx, 0x10
mov byte [ebp], cl
inc ebp
mov edx, eax
pop edi
shr edx, 8
mov byte [ebp], dl
pop esi
mov byte [ebp + 1], al
pop ebp
pop ebx
add esp, 0x10
ret
movzx eax, byte [ebp]
movzx ecx, byte [ebp + 1]
shl eax, 0x18
inc ebp
shl ecx, 0x10
or eax, ecx
xor edx, edx
mov dh, byte [ebp + 1]
inc ebp
movzx ecx, byte [ebp + 1]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
or eax, edx
inc ebp
or eax, ecx
movzx ecx, byte [ebp + 1]
inc ebp
movzx edx, byte [ebp + 1]
shl ecx, 0x18
inc ebp
shl edx, 0x10
or ecx, edx
xor edx, edx
mov dh, byte [ebp + 1]
inc ebp
mov dword [esp + 0x10], eax
or ecx, edx
movzx edx, byte [ebp + 1]
inc ebp
or ecx, edx
mov edx, dword [esp + 0x2c]
sub ebp, 7
add edx, 0xfffffff8
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x14], edx
js 0x101128dc
lea eax, [edx + 8]
shr eax, 3
mov dword [esp + 0x2c], eax
neg eax
lea eax, [edx + eax*8]
mov dword [esp + 0x14], eax
jmp 0x10112810
movzx ebp, byte [esi]
movzx ecx, byte [esi + 1]
shl ebp, 0x18
inc esi
shl ecx, 0x10
or ebp, ecx
xor edx, edx
mov dh, byte [esi + 1]
inc esi
movzx eax, byte [esi + 1]
or ebp, edx
inc esi
movzx ebx, byte [esi + 1]
or ebp, eax
inc esi
movzx ecx, byte [esi + 1]
shl ebx, 0x18
inc esi
shl ecx, 0x10
or ebx, ecx
mov ecx, dword [esp + 0x30]
xor edx, edx
mov dh, byte [esi + 1]
inc esi
movzx eax, byte [esi + 1]
push ecx
mov dword [esp + 0x1c], ebp
or ebx, edx
inc esi
or ebx, eax
lea edx, [esp + 0x1c]
push edx
inc esi
mov dword [esp + 0x24], ebx
call fcn.10111c40
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
xor eax, ecx
mov ecx, dword [esp + 0x40]
xor ecx, edx
mov edx, eax
shr edx, 0x18
mov byte [edi], dl
add esp, 8
inc edi
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
mov edx, eax
shr edx, 8
mov byte [edi + 1], dl
inc edi
mov byte [edi + 1], al
inc edi
inc edi
mov eax, ecx
shr eax, 0x18
mov byte [edi], al
inc edi
mov edx, ecx
shr edx, 0x10
mov byte [edi], dl
inc edi
mov eax, ecx
shr eax, 8
mov byte [edi], al
mov eax, dword [esp + 0x2c]
inc edi
mov byte [edi], cl
inc edi
dec eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], eax
jne 0x10112810
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, ebx
cmp edx, 0xfffffff8
je 0x101129ac
movzx ebx, byte [esi]
movzx ecx, byte [esi + 1]
shl ebx, 0x18
inc esi
shl ecx, 0x10
or ebx, ecx
xor edx, edx
mov dh, byte [esi + 1]
inc esi
movzx eax, byte [esi + 1]
or ebx, edx
inc esi
or ebx, eax
movzx eax, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
shl eax, 0x18
inc esi
shl ecx, 0x10
or eax, ecx
xor edx, edx
mov dh, byte [esi + 1]
inc esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov dl, byte [esi + 1]
or eax, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
push eax
push ecx
call fcn.10111c40
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
xor ecx, edx
mov edx, dword [esp + 0x1c]
lea edi, [edi + edx + 8]
add edx, 7
add esp, 8
xor eax, esi
cmp edx, 7
ja case.default.0x10112963
jmp dword [edx*4 + 0x10112a10]
dec edi
mov byte [edi], cl
dec edi
mov edx, ecx
shr edx, 8
mov byte [edi], dl
dec edi
mov edx, ecx
shr edx, 0x10
mov byte [edi], dl
dec edi
shr ecx, 0x18
mov byte [edi], cl
dec edi
mov byte [edi], al
dec edi
mov ecx, eax
shr ecx, 8
mov byte [edi], cl
dec edi
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
shr eax, 0x18
mov byte [edi - 1], al
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
mov ecx, eax
mov dword [esp + 0x10], ebx
mov eax, ebx
mov edx, eax
shr edx, 0x18
mov byte [ebp], dl
inc ebp
mov edx, eax
shr edx, 0x10
mov byte [ebp], dl
inc ebp
mov edx, eax
shr edx, 8
mov byte [ebp], dl
mov byte [ebp + 1], al
inc ebp
inc ebp
mov eax, ecx
shr eax, 0x18
mov byte [ebp], al
inc ebp
mov edx, ecx
shr edx, 0x10
mov byte [ebp], dl
inc ebp
mov eax, ecx
pop edi
shr eax, 8
mov byte [ebp], al
pop esi
mov byte [ebp + 1], cl
pop ebp
pop ebx
add esp, 0x10
ret