Function at 0x10112dc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.1005d950
cmp dword [esp + 0x2c], 0
mov eax, dword [esp + 0x28]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x20]
push edi
je 0x10113047
movzx ebx, byte [eax]
lea edi, [eax + 1]
mov edx, edi
mov dword [esp + 0x20], edi
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 8
or ebx, eax
movzx eax, byte [edx + 1]
shl eax, 0x10
or ebx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 5]
mov dword [esp + 0x24], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [esp + 0x24]
shl ecx, 8
or ecx, eax
shl ecx, 0x10
or edx, ecx
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff8
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], ecx
js 0x10112f1d
lea edi, [ecx + 8]
shr edi, 3
mov eax, edi
neg eax
lea ecx, [ecx + eax*8]
mov dword [esp + 0x3c], ecx
nop dword [eax + eax]
movzx eax, byte [ebp + 1]
movzx edx, byte [ebp]
movzx ecx, byte [ebp + 4]
push dword [esp + 0x34]
shl eax, 8
or edx, eax
movzx eax, byte [ebp + 2]
push dword [esp + 0x34]
shl eax, 0x10
push dword [esp + 0x34]
or edx, eax
movzx eax, byte [ebp + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [ebp + 5]
shl eax, 8
xor edx, ebx
or ecx, eax
mov dword [esp + 0x20], edx
movzx eax, byte [ebp + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebp + 7]
shl eax, 0x18
add ebp, 8
or ecx, eax
lea eax, [esp + 0x20]
xor ecx, dword [esp + 0x30]
push eax
mov dword [esp + 0x28], ecx
call fcn.10115280
mov ebx, dword [esp + 0x24]
add esp, 0x10
mov edx, dword [esp + 0x18]
mov eax, ebx
shr eax, 8
mov byte [esi], bl
mov byte [esi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, edx
shr eax, 8
mov byte [esi + 4], dl
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 7], al
add esi, 8
mov dword [esp + 0x24], edx
sub edi, 1
jne 0x10112e60
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
cmp ecx, 0xfffffff8
je 0x1011300b
mov edx, dword [esp + 0x3c]
add ebp, 8
add edx, 7
add ecx, ebp
xor eax, eax
mov dword [esp + 0x3c], edx
xor ebp, ebp
mov dword [esp + 0x28], eax
cmp edx, 7
mov edx, dword [esp + 0x24]
ja case.default.0x10112f4b
mov edi, dword [esp + 0x3c]
jmp dword [edi*4 + 0x101132a8]
movzx ebp, byte [ecx - 1]
dec ecx
shl ebp, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or ebp, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or ebp, eax
movzx eax, byte [ecx - 1]
dec ecx
or ebp, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x18
mov dword [esp + 0x28], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or dword [esp + 0x28], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or dword [esp + 0x28], eax
movzx eax, byte [ecx - 1]
or dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
push dword [esp + 0x34]
xor eax, ebx
xor ebp, edx
push dword [esp + 0x34]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push dword [esp + 0x34]
mov dword [esp + 0x24], ebp
push eax
call fcn.10115280
mov ebx, dword [esp + 0x24]
add esp, 0x10
mov edx, dword [esp + 0x18]
mov eax, ebx
shr eax, 8
mov byte [esi], bl
mov byte [esi + 1], al
mov eax, ebx
mov edi, dword [esp + 0x20]
shr eax, 0x10
mov byte [esi + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, edx
shr eax, 8
mov byte [esi + 4], dl
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 7], al
mov eax, dword [esp + 0x38]
mov byte [eax], bl
mov eax, ebx
shr eax, 8
mov byte [edi], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, edx
shr ebx, 0x18
mov byte [edi + 2], bl
mov byte [edi + 3], dl
shr eax, 8
mov byte [edi + 4], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 5], al
shr edx, 0x18
mov byte [edi + 6], dl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
movzx ecx, byte [eax]
lea ebx, [eax + 1]
mov edx, ebx
mov edi, dword [esp + 0x28]
mov dword [esp + 0x3c], ebx
movzx eax, byte [edx]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 2]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edx + 4]
mov dword [esp + 0x24], ecx
movzx ecx, byte [edx + 3]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 5]
mov dword [esp + 0x20], ecx
movzx ecx, byte [edx + 6]
mov edx, dword [esp + 0x20]
shl ecx, 8
or ecx, eax
shl ecx, 0x10
or edx, ecx
add edi, 0xfffffff8
mov dword [esp + 0x20], edx
js 0x10113187
lea eax, [edi + 8]
shr eax, 3
mov dword [esp + 0x28], eax
neg eax
lea edi, [edi + eax*8]
mov dword [esp + 0x10], edi
nop dword [eax]
movzx eax, byte [ebp + 1]
movzx ebx, byte [ebp]
movzx edi, byte [ebp + 4]
push dword [esp + 0x34]
shl eax, 8
or ebx, eax
movzx eax, byte [ebp + 2]
push dword [esp + 0x34]
shl eax, 0x10
push dword [esp + 0x34]
or ebx, eax
movzx eax, byte [ebp + 3]
shl eax, 0x18
or ebx, eax
movzx eax, byte [ebp + 5]
shl eax, 8
or edi, eax
mov dword [esp + 0x20], ebx
movzx eax, byte [ebp + 6]
shl eax, 0x10
or edi, eax
movzx eax, byte [ebp + 7]
shl eax, 0x18
add ebp, 8
or edi, eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x28], edi
call fcn.10112cb0
mov ecx, dword [esp + 0x24]
add esp, 0x10
xor ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov eax, ecx
xor edx, dword [esp + 0x20]
mov byte [esi], cl
shr eax, 8
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edx
shr ecx, 0x18
mov byte [esi + 3], cl
mov ecx, ebx
mov byte [esi + 4], dl
shr eax, 8
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [esi + 6], al
mov byte [esi + 7], dl
add esi, 8
sub dword [esp + 0x28], 1
mov edx, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
jne 0x101130c0
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x10]
jmp 0x1011318b
mov ecx, dword [esp + 0x24]
cmp edi, 0xfffffff8
je 0x10113269
movzx eax, byte [ebp + 1]
movzx edx, byte [ebp]
movzx ecx, byte [ebp + 4]
push dword [esp + 0x34]
shl eax, 8
push dword [esp + 0x34]
or edx, eax
movzx eax, byte [ebp + 2]
push dword [esp + 0x34]
shl eax, 0x10
or edx, eax
movzx eax, byte [ebp + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [ebp + 5]
shl eax, 8
or ecx, eax
mov dword [esp + 0x48], edx
movzx eax, byte [ebp + 6]
mov dword [esp + 0x34], ecx
movzx ecx, byte [ebp + 7]
mov ebp, dword [esp + 0x34]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x20], edx
shl ecx, 0x10
lea eax, [esp + 0x20]
or ebp, ecx
push eax
mov dword [esp + 0x28], ebp
call fcn.10112cb0
mov edx, dword [esp + 0x24]
lea ecx, [edi + 8]
mov eax, dword [esp + 0x28]
add edi, 7
xor eax, dword [esp + 0x30]
add esp, 0x10
xor edx, dword [esp + 0x24]
add ecx, esi
mov dword [esp + 0x28], eax
cmp edi, 7
ja case.default.0x10113220
jmp dword [edi*4 + 0x101132c8]
dec ecx
shr eax, 0x18
mov byte [ecx], al
mov eax, dword [esp + 0x28]
dec ecx
shr eax, 0x10
mov byte [ecx], al
mov eax, dword [esp + 0x28]
dec ecx
shr eax, 8
mov byte [ecx], al
mov eax, dword [esp + 0x28]
dec ecx
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 8
mov byte [ecx], al
mov byte [ecx - 1], dl
mov ecx, dword [esp + 0x3c]
mov edx, ebp
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov byte [eax], cl
mov eax, ecx
shr eax, 8
mov byte [ebx], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 1], al
mov eax, edx
shr ecx, 0x18
mov byte [ebx + 2], cl
mov byte [ebx + 3], dl
shr eax, 8
mov byte [ebx + 4], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 5], al
shr edx, 0x18
mov byte [ebx + 6], dl
pop ebx
add esp, 0xc
ret