Function at 0x1431502
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov ebp, edx
push ecx
call fcn.01428572
add esp, 4
mov esi, eax
lea ecx, [ebp + 4]
mov dword [esp], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], ebp
mov edi, esi
mov dword [esp + 0x10], ecx
jmp 0x14315ca
mov al, byte [edi]
test al, al
sete cl
cmp al, 0x2c
setne dl
inc edi
xor dl, cl
jne 0x1431537
lea ecx, [edi - 1]
test al, al
je 0x1431554
mov byte [ecx], 0
jmp 0x1431556
mov edi, ecx
cmp dword [esp + 0x2c], 0
jle 0x14315ca
mov dword [esp + 4], esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
push ebx
push dword [esi - 4]
call fcn.01476954
add esp, 8
test eax, eax
je 0x143158b
inc ebp
add esi, 0x10
cmp ebp, dword [esp + 0x2c]
jl 0x1431567
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 4]
jmp 0x14315ca
mov ecx, dword [esi]
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 4]
cmp ecx, 0xffffffff
je 0x14315ca
mov edx, dword [esp + 8]
xor eax, eax
inc eax
shl eax, cl
bt edx, ecx
jb 0x14315ca
or dword [esp + 8], eax
push ecx
mov esi, dword [esp + 4]
push esi
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call fcn.01426efb
add esp, 0x10
inc esi
mov dword [esp], esi
mov esi, dword [esp + 4]
mov ebx, edi
lea edi, [ebx + 1]
jmp 0x14315d3
inc ebx
inc edi
mov al, byte [ebx]
cmp al, 0x2c
je 0x14315d1
test al, al
jne 0x1431537
push esi
call fcn.014287a8
add esp, 4
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
mov eax, edi
cmp dword [esp], eax
jge 0x143174c
test eax, eax
jle 0x1431743
xor edx, edx
mov esi, edx
shl esi, 4
lea edi, [ebp + esi + 4]
mov eax, dword [edi]
cmp eax, 0x20
jl 0x1431640
push 0x168
push 0x4058a8
push 0x405c28
mov ebx, edi
mov edi, ebp
mov ebp, edx
call fcn.01474209
mov edx, ebp
mov ebp, edi
mov edi, ebx
mov ebx, dword [esp + 0x3c]
add esp, 0xc
mov eax, dword [edi]
mov ecx, dword [esp + 8]
bt ecx, eax
jae 0x1431652
mov eax, dword [esp + 0x2c]
jmp 0x143173a
mov eax, dword [ebp + esi + 8]
mov dword [esp + 4], edx
cmp eax, 0xffffffff
je 0x1431692
mov ecx, dword [esp + 8]
bt ecx, eax
jae 0x1431649
cmp dword [esp], 0
mov dword [esp + 0x14], edi
jle 0x14316a4
lea edi, [ebp + esi + 8]
xor ebp, ebp
push ebp
push dword [esp + 0x38]
push ebx
call fcn.014269d1
add esp, 0xc
cmp eax, dword [edi]
je 0x14316bd
inc ebp
cmp ebp, dword [esp]
jl 0x1431678
jmp 0x14316a6
mov dword [esp + 0x14], edi
mov eax, dword [esp]
mov esi, dword [ebp + esi + 0xc]
sar esi, 0x1f
and esi, eax
jmp 0x14316d0
xor ebp, ebp
push 0x17c
push 0x4058a8
push 0x405c4c
call fcn.01474209
add esp, 0xc
mov eax, dword [esp + 0xc]
mov esi, dword [eax + esi + 0xc]
mov eax, dword [esp]
shr esi, 0x1f
xor esi, 1
add esi, ebp
mov ebx, dword [esp + 0x34]
cmp eax, esi
mov ecx, ebx
mov ebx, dword [esp + 0x30]
jle 0x143170d
mov edi, dword [esp]
mov dword [esp + 0x10], esi
lea ebp, [edi - 1]
push ebp
push ecx
push ebx
mov esi, ecx
call fcn.014269d1
add esp, 0xc
push eax
push edi
push esi
push ebx
call fcn.01426efb
mov ecx, esi
mov esi, dword [esp + 0x20]
add esp, 0x10
cmp ebp, esi
mov edi, ebp
jg 0x14316e5
mov edi, dword [esp + 0x14]
push dword [edi]
push esi
push ecx
push ebx
call fcn.01426efb
add esp, 0x10
mov cl, byte [edi]
xor eax, eax
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0xc]
mov edx, dword [esp + 4]
inc dword [esp]
inc eax
shl eax, cl
or dword [esp + 8], eax
mov eax, edi
inc edx
cmp edx, eax
jne 0x1431607
cmp dword [esp], eax
jl 0x14315fd
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret