Function at 0x10136210
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2c
call fcn.101b79b0
mov eax, dword [0x1027e110]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x38]
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x14], eax
mov al, byte [esi]
test al, 0x40
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x28]
push edi
mov byte [esp + 0xf], al
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edx
jne 0x10136270
push edx
lea edx, [esi + 0x10]
push edx
push esi
call ecx
movzx eax, byte [esp + 0x1b]
add esp, 0xc
add dword [esi + 0x20], 1
adc dword [esi + 0x24], 0
and eax, 7
mov edx, 0xf
sub edx, eax
mov byte [esi], al
mov eax, edx
xor ecx, ecx
cmp eax, 0xf
mov dword [esp + 0x14], edx
jae 0x101362a5
lea esp, [esp]
movzx edi, byte [esi + eax]
or ecx, edi
mov byte [esi + eax], 0
add eax, 1
shl ecx, 8
cmp eax, 0xf
jb 0x10136290
movzx eax, byte [esi + 0xf]
mov edi, dword [esp + 0x48]
or ecx, eax
cmp ecx, edi
mov byte [esi + 0xf], 1
je 0x101362cc
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.101b40e2
add esp, 0x2c
ret
lea ecx, [edi + 0xf]
or ecx, 8
shr ecx, 3
add dword [esi + 0x20], ecx
adc dword [esi + 0x24], 0
cmp dword [esi + 0x24], 0x20000000
jb 0x10136304
ja 0x101362ed
cmp dword [esi + 0x20], 0
jbe 0x10136304
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.101b40e2
add esp, 0x2c
ret
push ebp
mov ebp, edi
shr ebp, 4
je 0x10136341
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
lea edx, [esi + 0x10]
push edx
push esi
push eax
push ebp
push ecx
push ebx
call dword [esp + 0x3c]
shl ebp, 4
mov edx, ebp
add dword [esp + 0x34], edx
add esp, 0x18
add ebx, edx
sub edi, edx
je 0x101363a9
shr edx, 4
mov ecx, esi
call fcn.101361d0
mov edx, dword [esp + 0x18]
test edi, edi
je 0x101363ad
xor eax, eax
test edi, edi
jbe 0x1013635e
jmp 0x10136350
mov dl, byte [ebx + eax]
xor byte [esi + eax + 0x10], dl
add eax, 1
cmp eax, edi
jb 0x10136350
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
lea eax, [esi + 0x10]
push ecx
push eax
push eax
call ebp
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push esi
call ebp
add esp, 0x18
xor ecx, ecx
test edi, edi
jbe 0x101363a9
lea edx, [esp + 0x28]
mov ebp, ebx
sub ebp, edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
sub edx, eax
lea eax, [esp + ecx + 0x28]
mov bl, byte [eax + ebp]
xor bl, byte [eax]
add ecx, 1
cmp ecx, edi
mov byte [edx + eax], bl
jb 0x10136396
mov edx, dword [esp + 0x18]
cmp edx, 0x10
pop ebp
jae 0x101363c9
mov ecx, 0x10
sub ecx, edx
push ecx
lea eax, [esi + edx]
push 0
push eax
call fcn.101b5c80
add esp, 0xc
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x28]
push eax
push esi
call dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
xor dword [esi + 0x10], ecx
mov edx, dword [esp + 0x34]
xor dword [esi + 0x14], edx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
xor dword [esi + 0x1c], ecx
xor dword [esi + 0x18], eax
mov dl, byte [esp + 0x1b]
mov ecx, dword [esp + 0x40]
add esp, 0xc
pop edi
mov byte [esi], dl
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.101b40e2
add esp, 0x2c
ret