Function at 0x10036250
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
cmp dword [esp + 0x30], 0
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov esi, eax
mov eax, dword [esp + 0x3c]
mov edi, ecx
je 0x100364a9
movzx edx, byte [eax]
movzx ecx, byte [eax + 1]
inc eax
shl ecx, 8
or edx, ecx
movzx ecx, byte [eax + 1]
mov dword [esp + 0x18], eax
inc eax
shl ecx, 0x10
or edx, ecx
movzx ecx, byte [eax + 1]
inc eax
movzx ebx, byte [eax + 1]
shl ecx, 0x18
inc eax
or edx, ecx
movzx ecx, byte [eax + 1]
inc eax
shl ecx, 8
or ebx, ecx
movzx ecx, byte [eax + 2]
inc eax
movzx eax, byte [eax]
shl ecx, 8
or ecx, eax
shl ecx, 0x10
or ebx, ecx
add esi, 0xfffffff8
js 0x10036397
lea eax, [esi + 8]
shr eax, 3
mov dword [esp + 0x2c], eax
neg eax
lea ecx, [esi + eax*8]
mov dword [esp + 0x40], ecx
movzx eax, byte [edi]
movzx ecx, byte [edi + 1]
inc edi
shl ecx, 8
or eax, ecx
movzx ecx, byte [edi + 1]
inc edi
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [edi + 1]
inc edi
shl ecx, 0x18
or eax, ecx
movzx ecx, byte [edi + 1]
inc edi
movzx esi, byte [edi + 1]
inc edi
shl esi, 8
or ecx, esi
movzx esi, byte [edi + 1]
inc edi
shl esi, 0x10
or ecx, esi
movzx esi, byte [edi + 1]
inc edi
shl esi, 0x18
or ecx, esi
xor eax, edx
mov edx, dword [esp + 0x38]
xor ecx, ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
push edx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x34]
push eax
push ecx
lea esi, [esp + 0x2c]
inc edi
call fcn.10035b80
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov byte [ebp], al
inc ebp
mov ebx, eax
shr ebx, 8
mov byte [ebp], bl
inc ebp
mov ebx, eax
inc ebp
mov edx, eax
shr ebx, 0x10
mov byte [ebp - 1], bl
shr eax, 0x18
mov byte [ebp], al
inc ebp
mov byte [ebp], cl
inc ebp
mov eax, ecx
shr eax, 8
mov byte [ebp], al
inc ebp
mov eax, ecx
shr eax, 0x10
mov byte [ebp], al
mov dword [esp + 0x20], ecx
mov ebx, dword [esp + 0x20]
inc ebp
shr ecx, 0x18
mov byte [ebp], cl
add esp, 0xc
inc ebp
sub dword [esp + 0x2c], 1
jne 0x100362d0
mov esi, dword [esp + 0x40]
cmp esi, 0xfffffff8
je 0x10036467
lea edi, [edi + esi + 8]
add esi, 7
xor ecx, ecx
xor eax, eax
cmp esi, 7
ja case.default.0x100363b0
jmp dword [esi*4 + 0x10036710]
movzx ecx, byte [edi - 1]
dec edi
shl ecx, 0x18
movzx eax, byte [edi - 1]
dec edi
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi - 1]
dec edi
shl eax, 8
or ecx, eax
movzx eax, byte [edi - 1]
dec edi
or ecx, eax
movzx eax, byte [edi - 1]
dec edi
shl eax, 0x18
movzx esi, byte [edi - 1]
dec edi
shl esi, 0x10
or eax, esi
movzx esi, byte [edi - 1]
dec edi
shl esi, 8
or eax, esi
movzx esi, byte [edi - 1]
or eax, esi
xor ecx, ebx
xor eax, edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x38]
push ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
push edx
push eax
lea esi, [esp + 0x2c]
call fcn.10035b80
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
mov byte [ebp], al
inc ebp
mov ecx, eax
shr ecx, 8
mov byte [ebp], cl
inc ebp
mov ecx, eax
shr ecx, 0x10
mov byte [ebp], cl
inc ebp
mov edx, eax
shr eax, 0x18
mov byte [ebp], al
mov eax, ebx
inc ebp
mov byte [ebp], al
mov ecx, eax
shr ecx, 8
inc ebp
mov byte [ebp], cl
mov ecx, eax
inc ebp
shr ecx, 0x10
add esp, 0xc
shr eax, 0x18
mov byte [ebp], cl
mov byte [ebp + 1], al
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x18]
mov byte [eax], dl
mov ecx, edx
shr ecx, 8
mov byte [esi], cl
inc esi
mov eax, edx
inc esi
shr eax, 0x10
mov byte [esi - 1], al
shr edx, 0x18
mov byte [esi], dl
mov byte [esi + 1], bl
inc esi
mov ecx, ebx
inc esi
shr ecx, 8
mov byte [esi], cl
mov edx, ebx
inc esi
shr edx, 0x10
shr ebx, 0x18
pop edi
mov byte [esi], dl
mov byte [esi + 1], bl
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
movzx ebx, byte [eax]
movzx ecx, byte [eax + 1]
inc eax
movzx edx, byte [eax + 1]
mov dword [esp + 0x18], eax
inc eax
shl ecx, 8
or ebx, ecx
movzx ecx, byte [eax + 1]
inc eax
shl edx, 0x10
or ebx, edx
shl ecx, 0x18
inc eax
movzx edx, byte [eax + 1]
or ebx, ecx
movzx ecx, byte [eax]
inc eax
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 2]
inc eax
movzx eax, byte [eax]
shl edx, 8
or edx, eax
shl edx, 0x10
lea eax, [esi - 8]
or ecx, edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x40], eax
test eax, eax
jl 0x100365eb
lea ecx, [eax + 8]
shr ecx, 3
mov dword [esp + 0x1c], ecx
neg ecx
lea ecx, [eax + ecx*8]
mov dword [esp + 0x40], ecx
movzx eax, byte [edi]
movzx edx, byte [edi + 1]
inc edi
movzx ecx, byte [edi + 1]
shl edx, 8
or eax, edx
inc edi
movzx edx, byte [edi + 1]
inc edi
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [edi + 1]
shl edx, 0x18
or eax, edx
inc edi
movzx edx, byte [edi + 1]
inc edi
shl edx, 8
or ecx, edx
movzx edx, byte [edi + 1]
inc edi
shl edx, 0x10
or ecx, edx
movzx edx, byte [edi + 1]
inc edi
shl edx, 0x18
or ecx, edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x34]
push eax
push ecx
push edx
lea esi, [esp + 0x2c]
inc edi
call fcn.10035c90
mov ecx, dword [esp + 0x38]
xor ecx, dword [esp + 0x30]
mov eax, ebx
xor eax, dword [esp + 0x2c]
inc ebp
mov byte [ebp - 1], al
mov ebx, dword [esp + 0x1c]
mov edx, eax
shr edx, 8
mov byte [ebp], dl
inc ebp
mov edx, eax
shr edx, 0x10
mov byte [ebp], dl
inc ebp
shr eax, 0x18
mov byte [ebp], al
inc ebp
mov byte [ebp], cl
inc ebp
mov eax, ecx
shr eax, 8
mov byte [ebp], al
mov eax, dword [esp + 0x20]
inc ebp
mov edx, ecx
shr edx, 0x10
mov byte [ebp], dl
inc ebp
shr ecx, 0x18
mov byte [ebp], cl
add esp, 0xc
inc ebp
sub dword [esp + 0x1c], 1
mov dword [esp + 0x2c], eax
jne 0x10036514
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
cmp eax, 0xfffffff8
je 0x100366d0
movzx eax, byte [edi]
movzx ecx, byte [edi + 1]
inc edi
movzx edx, byte [edi + 1]
shl ecx, 8
or eax, ecx
inc edi
movzx ecx, byte [edi + 1]
shl edx, 0x10
or eax, edx
inc edi
shl ecx, 0x18
or eax, ecx
movzx ecx, byte [edi + 1]
inc edi
movzx edx, byte [edi + 1]
inc edi
movzx esi, byte [edi + 1]
shl edx, 8
or ecx, edx
movzx edx, byte [edi + 2]
inc edi
shl edx, 8
or edx, esi
shl edx, 0x10
or ecx, edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x34]
push eax
push ecx
push edx
lea esi, [esp + 0x2c]
call fcn.10035c90
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x38]
xor ebx, dword [esp + 0x2c]
xor eax, dword [esp + 0x30]
lea ebp, [ecx + ebp + 8]
add ecx, 7
add esp, 0xc
cmp ecx, 7
ja case.default.0x1003667e
jmp dword [ecx*4 + 0x10036730]
dec ebp
mov ecx, eax
shr ecx, 0x18
mov byte [ebp], cl
dec ebp
mov edx, eax
shr edx, 0x10
mov byte [ebp], dl
dec ebp
mov ecx, eax
shr ecx, 8
mov byte [ebp], cl
dec ebp
mov byte [ebp], al
dec ebp
mov edx, ebx
shr edx, 0x18
mov byte [ebp], dl
dec ebp
mov eax, ebx
shr eax, 0x10
mov byte [ebp], al
dec ebp
mov ecx, ebx
shr ecx, 8
mov byte [ebp], cl
mov byte [ebp - 1], bl
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x2c], edx
mov ecx, edx
mov eax, dword [esp + 0x3c]
mov byte [eax], bl
mov eax, dword [esp + 0x18]
mov edx, ebx
shr edx, 8
mov byte [eax], dl
inc eax
mov edx, ebx
shr edx, 0x10
mov byte [eax], dl
inc eax
shr ebx, 0x18
mov byte [eax], bl
inc eax
mov byte [eax], cl
mov edx, ecx
shr edx, 8
inc eax
mov byte [eax], dl
pop edi
mov edx, ecx
inc eax
pop esi
shr edx, 0x10
shr ecx, 0x18
pop ebp
mov byte [eax], dl
mov byte [eax + 1], cl
pop ebx
add esp, 0x18
ret