Function at 0x1000d7c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
cmp dword [esp + 0x44], 0
push ebx
push ebp
push esi
push edi
je 0x1000dc59
mov ebx, dword [esp + 0x50]
movzx eax, byte [ebx]
movzx ecx, byte [ebx + 1]
inc ebx
movzx edx, byte [ebx + 1]
inc ebx
shl edx, 8
inc ebx
shl ecx, 0x10
inc ebx
shl eax, 0x18
or eax, ecx
movzx ecx, byte [ebx - 1]
or eax, edx
movzx edx, byte [ebx + 1]
inc ebx
shl edx, 0x10
or eax, ecx
movzx ecx, byte [ebx - 1]
inc ebx
shl ecx, 0x18
or ecx, edx
movzx edx, byte [ebx]
shl edx, 8
or ecx, edx
movzx edx, byte [ebx + 1]
inc ebx
movzx esi, byte [ebx + 1]
inc ebx
or ecx, edx
movzx edx, byte [ebx + 1]
inc ebx
shl edx, 0x10
shl esi, 0x18
or esi, edx
movzx edx, byte [ebx + 1]
inc ebx
shl edx, 8
or esi, edx
movzx edx, byte [ebx + 1]
or esi, edx
inc ebx
mov ebp, dword [esp + 0x48]
inc ebx
movzx edx, byte [ebx + 1]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x14], esi
movzx esi, byte [ebx]
inc ebx
shl edx, 0x10
shl esi, 0x18
or esi, edx
movzx edx, byte [ebx + 1]
inc ebx
shl edx, 8
or esi, edx
movzx edx, byte [ebx + 1]
inc ebx
or esi, edx
add ebp, 0xfffffff0
xor edx, edx
sub ebx, 0xf
cmp ebp, edx
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x44]
mov dword [esp + 0x20], eax
mov dword [esp + 0x54], ecx
jl 0x1000da19
lea eax, [ebp + 0x10]
shr eax, 4
mov dword [esp + 0x24], eax
neg eax
shl eax, 4
add ebp, eax
mov dword [esp + 0x1c], ebp
nop
movzx eax, byte [edi]
movzx ecx, byte [edi + 1]
inc edi
movzx edx, byte [edi + 1]
shl ecx, 0x10
inc edi
inc edi
movzx ebp, byte [edi + 1]
shl edx, 8
inc edi
shl eax, 0x18
or eax, ecx
movzx ecx, byte [edi - 1]
or eax, edx
movzx edx, byte [edi + 1]
or eax, ecx
inc edi
movzx ecx, byte [edi + 1]
inc edi
shl edx, 0x10
shl ecx, 8
inc edi
inc edi
shl ebp, 0x18
or ebp, edx
movzx edx, byte [edi - 1]
or ebp, ecx
movzx ecx, byte [edi]
or ebp, edx
movzx edx, byte [edi + 1]
inc edi
shl ecx, 0x18
shl edx, 0x10
or ecx, edx
movzx edx, byte [edi + 1]
inc edi
xor eax, dword [esp + 0x20]
shl edx, 8
or ecx, edx
movzx edx, byte [edi + 1]
or ecx, edx
inc edi
mov dword [esp + 0x48], ecx
movzx ecx, byte [edi + 1]
inc edi
movzx edx, byte [edi + 1]
xor ebp, dword [esp + 0x54]
inc edi
shl ecx, 0x18
shl edx, 0x10
or ecx, edx
movzx edx, byte [edi + 1]
inc edi
shl edx, 8
or ecx, edx
movzx edx, byte [edi + 1]
inc edi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x48]
xor eax, dword [esp + 0x14]
or ecx, edx
xor ecx, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x38], ecx
push eax
lea ecx, [esp + 0x30]
push ecx
inc edi
mov dword [esp + 0x38], ebp
call fcn.1000b8f0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x20], edx
add esp, 8
mov dword [esp + 0x20], eax
mov dword [esp + 0x54], ecx
mov edx, eax
shr edx, 0x18
mov byte [esi], dl
inc esi
inc esi
mov edx, eax
shr edx, 0x10
mov byte [esi - 1], dl
inc esi
mov edx, eax
shr edx, 8
mov byte [esi - 1], dl
mov byte [esi], al
inc esi
inc esi
mov eax, ecx
shr eax, 0x18
mov byte [esi - 1], al
mov edx, ecx
inc esi
shr edx, 0x10
mov byte [esi - 1], dl
mov eax, ecx
inc esi
shr eax, 8
mov byte [esi - 1], al
mov eax, dword [esp + 0x34]
mov byte [esi], cl
inc esi
inc esi
mov ecx, eax
shr ecx, 0x18
mov byte [esi - 1], cl
inc esi
mov edx, eax
shr edx, 0x10
mov byte [esi - 1], dl
mov ecx, eax
shr ecx, 8
mov byte [esi], cl
mov byte [esi + 1], al
mov eax, dword [esp + 0x38]
inc esi
inc esi
mov edx, eax
shr edx, 0x18
mov byte [esi], dl
inc esi
mov ecx, eax
shr ecx, 0x10
mov byte [esi], cl
inc esi
mov edx, eax
shr edx, 8
mov byte [esi], dl
inc esi
mov byte [esi], al
inc esi
sub dword [esp + 0x24], 1
jne 0x1000d8a0
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x54]
xor edx, edx
cmp ebp, 0xfffffff0
je 0x1000dbd6
lea edi, [edi + ebp + 0x10]
mov dword [esp + 0x10], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x54], edx
add ebp, 0xf
xor edx, edx
cmp ebp, 0xf
ja case.default.0x1000da40
jmp dword [ebp*4 + 0x1000e0cc]
movzx edx, byte [edi - 1]
dec edi
mov dword [esp + 0x10], edx
movzx edx, byte [edi - 1]
dec edi
shl edx, 8
or dword [esp + 0x10], edx
movzx edx, byte [edi - 1]
dec edi
shl edx, 0x10
or dword [esp + 0x10], edx
movzx edx, byte [edi - 1]
dec edi
shl edx, 0x18
or dword [esp + 0x10], edx
movzx edx, byte [edi - 1]
dec edi
mov dword [esp + 0x48], edx
movzx edx, byte [edi - 1]
dec edi
shl edx, 8
or dword [esp + 0x48], edx
movzx edx, byte [edi - 1]
dec edi
shl edx, 0x10
or dword [esp + 0x48], edx
movzx edx, byte [edi - 1]
dec edi
shl edx, 0x18
or dword [esp + 0x48], edx
movzx edx, byte [edi - 1]
dec edi
mov dword [esp + 0x54], edx
movzx edx, byte [edi - 1]
dec edi
shl edx, 8
or dword [esp + 0x54], edx
movzx edx, byte [edi - 1]
dec edi
shl edx, 0x10
or dword [esp + 0x54], edx
movzx edx, byte [edi - 1]
dec edi
shl edx, 0x18
or dword [esp + 0x54], edx
movzx edx, byte [edi - 1]
dec edi
movzx ebp, byte [edi - 1]
dec edi
shl ebp, 8
or edx, ebp
movzx ebp, byte [edi - 1]
dec edi
shl ebp, 0x10
or edx, ebp
movzx edi, byte [edi - 1]
shl edi, 0x18
or edx, edi
xor edx, eax
mov eax, dword [esp + 0x54]
xor eax, ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x48]
xor eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x4c]
push eax
push ecx
call fcn.1000b8f0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x38]
inc esi
inc esi
mov edx, eax
shr edx, 0x18
mov byte [esi - 2], dl
mov edx, eax
shr edx, 0x10
mov byte [esi - 1], dl
inc esi
mov edx, eax
shr edx, 8
mov byte [esi - 1], dl
inc esi
movzx edx, al
mov byte [esi - 1], dl
inc esi
mov edx, ecx
shr edx, 0x18
mov byte [esi - 1], dl
inc esi
mov edx, ecx
shr edx, 0x10
mov byte [esi - 1], dl
inc esi
mov edx, ecx
shr edx, 8
mov byte [esi - 1], dl
movzx edx, cl
mov byte [esi], dl
mov edx, dword [esp + 0x3c]
shr edx, 0x18
mov byte [esi + 1], dl
mov edx, dword [esp + 0x3c]
inc esi
shr edx, 0x10
mov byte [esi + 1], dl
mov edx, dword [esp + 0x3c]
inc esi
shr edx, 8
mov byte [esi + 1], dl
movzx edx, byte [esp + 0x3c]
inc esi
mov byte [esi + 1], dl
mov edx, dword [esp + 0x40]
inc esi
shr edx, 0x18
mov byte [esi + 1], dl
mov edx, dword [esp + 0x40]
inc esi
shr edx, 0x10
mov byte [esi + 1], dl
mov edx, dword [esp + 0x40]
inc esi
inc esi
add esp, 8
shr edx, 8
mov byte [esi], dl
movzx edx, byte [esp + 0x38]
mov byte [esi + 1], dl
inc ebx
mov edx, eax
shr edx, 0x18
mov byte [ebx - 1], dl
inc ebx
mov edx, eax
shr edx, 0x10
mov byte [ebx - 1], dl
inc ebx
mov edx, eax
shr edx, 8
mov byte [ebx - 1], dl
mov byte [ebx], al
inc ebx
mov eax, ecx
inc ebx
shr eax, 0x18
mov byte [ebx - 1], al
mov edx, ecx
inc ebx
shr edx, 0x10
mov byte [ebx - 1], dl
mov eax, ecx
inc ebx
shr eax, 8
mov byte [ebx - 1], al
mov eax, dword [esp + 0x14]
mov byte [ebx], cl
inc ebx
inc ebx
mov ecx, eax
shr ecx, 0x18
mov byte [ebx - 1], cl
mov edx, eax
shr edx, 0x10
mov byte [ebx], dl
inc ebx
mov ecx, eax
shr ecx, 8
mov byte [ebx], cl
mov byte [ebx + 1], al
mov eax, dword [esp + 0x18]
inc ebx
inc ebx
mov edx, eax
shr edx, 0x18
mov byte [ebx], dl
inc ebx
mov ecx, eax
shr ecx, 0x10
mov byte [ebx], cl
inc ebx
pop edi
mov edx, eax
pop esi
shr edx, 8
mov byte [ebx], dl
pop ebp
mov byte [ebx + 1], al
pop ebx
add esp, 0x2c
ret
mov ebp, dword [esp + 0x50]
movzx ebx, byte [ebp]
movzx eax, byte [ebp + 1]
inc ebp
movzx ecx, byte [ebp + 1]
inc ebp
movzx edx, byte [ebp + 1]
inc ebp
inc ebp
inc ebp
shl eax, 0x10
shl ecx, 8
inc ebp
shl ebx, 0x18
or ebx, eax
movzx eax, byte [ebp - 2]
or ebx, ecx
movzx ecx, byte [ebp - 1]
or ebx, edx
movzx edx, byte [ebp]
shl edx, 8
inc ebp
shl ecx, 0x10
shl eax, 0x18
or eax, ecx
movzx ecx, byte [ebp]
or eax, edx
inc ebp
movzx edx, byte [ebp + 1]
or eax, ecx
movzx ecx, byte [ebp]
inc ebp
shl edx, 0x10
inc ebp
shl ecx, 0x18
or ecx, edx
movzx edx, byte [ebp]
shl edx, 8
or ecx, edx
movzx edx, byte [ebp + 1]
inc ebp
movzx esi, byte [ebp + 1]
inc ebp
mov edi, dword [esp + 0x44]
or ecx, edx
movzx edx, byte [ebp + 1]
inc ebp
shl edx, 0x10
shl esi, 0x18
or esi, edx
movzx edx, byte [ebp + 1]
inc ebp
shl edx, 8
or esi, edx
movzx edx, byte [ebp + 1]
inc ebp
or esi, edx
mov edx, dword [esp + 0x48]
sub ebp, 0xf
add edx, 0xfffffff0
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
js 0x1000deb8
lea eax, [edx + 0x10]
shr eax, 4
mov dword [esp + 0x28], eax
neg eax
shl eax, 4
add edx, eax
mov dword [esp + 0x1c], edx
lea esp, [esp]
movzx ebx, byte [esi]
movzx eax, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
inc esi
shl ecx, 8
inc esi
shl eax, 0x10
inc esi
inc esi
shl ebx, 0x18
or ebx, eax
movzx eax, byte [esi - 2]
or ebx, ecx
movzx ecx, byte [esi - 1]
or ebx, edx
movzx edx, byte [esi]
shl ecx, 0x10
shl edx, 8
inc esi
shl eax, 0x18
or eax, ecx
movzx ecx, byte [esi]
or eax, edx
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
inc esi
shl edx, 0x10
shl ecx, 0x18
or ecx, edx
movzx edx, byte [esi + 1]
inc esi
shl edx, 8
or ecx, edx
movzx edx, byte [esi + 1]
or ecx, edx
inc esi
mov dword [esp + 0x48], ecx
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
inc esi
shl edx, 0x10
shl ecx, 0x18
or ecx, edx
movzx edx, byte [esi + 1]
inc esi
shl edx, 8
or ecx, edx
movzx edx, byte [esi + 1]
inc esi
or ecx, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x48]
push ecx
lea edx, [esp + 0x30]
push edx
inc esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], eax
call fcn.1000c470
mov edx, dword [esp + 0x1c]
xor edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
xor eax, dword [esp + 0x34]
xor ecx, dword [esp + 0x38]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x2c]
add esp, 8
xor edx, dword [esp + 0x38]
mov dword [esp + 0x18], edx
mov edx, eax
shr edx, 0x18
mov byte [edi], dl
inc edi
inc edi
mov edx, eax
shr edx, 0x10
mov byte [edi - 1], dl
inc edi
mov edx, eax
shr edx, 8
mov byte [edi - 1], dl
mov byte [edi], al
inc edi
mov eax, ecx
inc edi
shr eax, 0x18
mov byte [edi - 1], al
mov edx, ecx
shr edx, 0x10
mov byte [edi], dl
inc edi
mov eax, ecx
inc edi
shr eax, 8
mov byte [edi - 1], al
mov eax, dword [esp + 0x14]
mov byte [edi], cl
inc edi
inc edi
mov ecx, eax
shr ecx, 0x18
mov byte [edi - 1], cl
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
inc edi
mov ecx, eax
shr ecx, 8
mov byte [edi], cl
mov byte [edi + 1], al
mov eax, dword [esp + 0x18]
inc edi
inc edi
mov edx, eax
shr edx, 0x18
mov byte [edi], dl
inc edi
mov ecx, eax
shr ecx, 0x10
mov byte [edi], cl
mov ecx, dword [esp + 0x48]
inc edi
mov edx, eax
shr edx, 8
mov byte [edi], dl
mov edx, dword [esp + 0x10]
inc edi
mov byte [edi], al
mov eax, dword [esp + 0x54]
inc edi
sub dword [esp + 0x28], 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], edx
jne 0x1000dd30
mov edx, dword [esp + 0x1c]
cmp edx, 0xfffffff0
je 0x1000e046
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
shl ecx, 0x10
inc esi
shl edx, 8
inc esi
shl eax, 0x18
or eax, ecx
movzx ecx, byte [esi]
or eax, edx
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
inc esi
shl edx, 0x10
shl ecx, 0x18
or ecx, edx
movzx edx, byte [esi + 1]
inc esi
shl edx, 8
or ecx, edx
movzx edx, byte [esi + 1]
or ecx, edx
inc esi
mov dword [esp + 0x54], ecx
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
inc esi
shl edx, 0x10
shl ecx, 0x18
or ecx, edx
movzx edx, byte [esi + 1]
inc esi
shl edx, 8
or ecx, edx
movzx edx, byte [esi + 1]
or ecx, edx
inc esi
mov dword [esp + 0x48], ecx
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
inc esi
shl edx, 0x10
shl ecx, 0x18
or ecx, edx
movzx edx, byte [esi + 1]
inc esi
movzx esi, byte [esi + 1]
shl edx, 8
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x54]
or edx, esi
or ecx, edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x38], ecx
push eax
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x3c], edx
call fcn.1000c470
xor ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
xor eax, dword [esp + 0x38]
xor ecx, dword [esp + 0x3c]
xor edx, dword [esp + 0x40]
add esp, 8
lea edi, [edi + esi + 0x10]
mov dword [esp + 0x20], ebx
add esi, 0xf
cmp esi, 0xf
ja case.default.0x1000dfb3
jmp dword [esi*4 + 0x1000e10c]
dec edi
mov byte [edi], dl
dec edi
mov ebx, edx
shr ebx, 8
mov byte [edi], bl
dec edi
mov ebx, edx
shr ebx, 0x10
mov byte [edi], bl
mov ebx, dword [esp + 0x20]
dec edi
shr edx, 0x18
mov byte [edi], dl
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
dec edi
shr eax, 0x18
mov byte [edi], al
dec edi
mov byte [edi], bl
dec edi
mov eax, ebx
shr eax, 8
mov byte [edi], al
dec edi
mov ecx, ebx
shr ecx, 0x10
mov byte [edi], cl
shr ebx, 0x18
mov byte [edi - 1], bl
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], edx
inc ebp
inc ebp
mov edx, ebx
shr edx, 0x18
mov byte [ebp - 2], dl
inc ebp
mov edx, ebx
shr edx, 0x10
mov byte [ebp - 2], dl
inc ebp
mov edx, ebx
shr edx, 8
mov byte [ebp - 2], dl
mov byte [ebp - 1], bl
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
inc ebp
shr edx, 8
mov byte [ebp - 1], dl
mov byte [ebp], al
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
shr eax, 8
mov byte [ebp], al
mov eax, dword [esp + 0x24]
mov byte [ebp + 1], cl
inc ebp
inc ebp
mov ecx, eax
shr ecx, 0x18
mov byte [ebp], cl
inc ebp
mov edx, eax
shr edx, 0x10
mov byte [ebp], dl
inc ebp
mov ecx, eax
pop edi
shr ecx, 8
mov byte [ebp], cl
pop esi
mov byte [ebp + 1], al
pop ebp
pop ebx
add esp, 0x2c
ret