Function at 0x15b4bc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
cmp dword [ecx + 8], 0
je 0x15b4c50
mov edx, dword [ecx]
test edx, edx
je 0x15b4c50
mov dword [esp + 4], 0x4c4d4a4b
mov word [esp + 8], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax + 4]
mov edi, 0xd
sub edi, eax
mov ebx, edi
or ebx, esi
and edi, esi
not ebx
add ebx, edi
add bl, 0x46
mov byte [esp + eax + 4], bl
add eax, 0xc3f96a2f
mov esi, eax
and esi, 1
xor eax, 1
lea eax, [eax + esi*2]
add eax, 0x3c0695d1
cmp eax, 6
jb 0x15b4bf0
mov eax, dword [esp + 4]
mov ebx, dword [0x12ecd1c]
test ebx, ebx
je 0x15b4ca0
xor edi, edi
mov esi, dword [0x12ecd20]
nop
nop
nop
cmp dword [esi + edi*8], 0xaf0e0c2e
je 0x15b4c7f
inc edi
cmp ebx, edi
jne 0x15b4c40
jmp 0x15b4ca0
mov dword [esp + 4], 0xc186878c
xor eax, eax
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x61
xor cl, byte [esp + eax + 4]
add cl, 0x1b
mov byte [esp + eax + 4], cl
inc eax
cmp eax, 4
jne 0x15b4c60
mov eax, dword [esp + 4]
jmp 0x15b4e2b
mov esi, dword [esi + edi*8 + 4]
cmp esi, eax
je 0x15b4ca0
push dword [ebp + 8]
push edx
push 8
push esi
push dword [0x12ecd24]
mov esi, ecx
call fcn.015b7070
mov ecx, esi
add esp, 0x14
mov edi, dword [ebp + 0xc]
cmp edi, 1
mov esi, dword [ebp + 0x10]
mov edx, esi
sbb edx, 0
jl 0x15b4d75
cmp eax, 0xc000010a
jne 0x15b4d75
mov edx, 0xffffd8f0
mov eax, edi
mul edx
sub edx, edi
imul esi, esi, 0xffffd8f0
add esi, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov edx, dword [ecx]
mov dword [esp + 4], 0x4c4d4a4b
mov word [esp + 8], 0
xor eax, eax
nop
nop
nop
movzx esi, byte [esp + eax + 4]
mov edi, 0xd
sub edi, eax
mov ebx, edi
or ebx, esi
and edi, esi
not ebx
add ebx, edi
add bl, 0x46
mov byte [esp + eax + 4], bl
add eax, 0xc3f96a2f
mov esi, eax
and esi, 1
xor eax, 1
lea eax, [eax + esi*2]
add eax, 0x3c0695d1
cmp eax, 6
jb 0x15b4cf0
mov eax, dword [esp + 4]
mov esi, dword [0x12ecd1c]
test esi, esi
je 0x15b4d75
xor edi, edi
mov ebx, dword [0x12ecd20]
nop
nop
nop
cmp dword [ebx + edi*8], 0x4c697c35
je 0x15b4d50
inc edi
cmp esi, edi
jne 0x15b4d40
jmp 0x15b4d75
mov esi, dword [ebx + edi*8 + 4]
cmp esi, eax
je 0x15b4d75
lea eax, [esp + 0x10]
push eax
push 0
push edx
push 0xc
push esi
push dword [0x12ecd24]
mov esi, ecx
call fcn.015b7070
mov ecx, esi
add esp, 0x18
test eax, eax
js 0x15b4e2b
mov edx, dword [ecx]
test edx, edx
je 0x15b4e2b
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0x4c4d4a4b
mov word [esp + 8], 0
xor esi, esi
nop
nop
nop
nop
movzx edi, byte [esp + esi + 4]
mov edx, 0xd
sub edx, esi
mov ebx, edx
or ebx, edi
and edx, edi
not ebx
add ebx, edx
add bl, 0x46
mov byte [esp + esi + 4], bl
add esi, 0xc3f96a2f
mov edx, esi
and edx, 1
xor esi, 1
lea esi, [esi + edx*2]
add esi, 0x3c0695d1
cmp esi, 6
jb 0x15b4da0
mov esi, dword [0x12ecd1c]
test esi, esi
je 0x15b4e25
mov edx, dword [esp + 4]
xor ebx, ebx
mov edi, dword [0x12ecd20]
nop
cmp dword [edi + ebx*8], 0x1b6183f2
je 0x15b4e00
inc ebx
cmp esi, ebx
jne 0x15b4df0
jmp 0x15b4e25
mov esi, dword [edi + ebx*8 + 4]
cmp esi, edx
je 0x15b4e25
push dword [esp + 0xc]
push 4
push esi
push dword [0x12ecd24]
mov esi, ecx
mov edi, eax
call fcn.015b7070
mov eax, edi
mov ecx, esi
add esp, 0x10
mov dword [ecx], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc