Function at 0x1004b5f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10
mov eax, dword [eax]
push ebx
push esi
push edi
test dword [eax + 0xc], 0x4000000
je 0x1004b7e9
cmp dword [ebp + 0x10], 0
jne 0x1004b636
mov esi, dword [ebp + 0xc]
push esi
call fcn.1004b590
add esp, 4
test eax, eax
jne 0x1004b62a
cmp dword [esi + 0x24], eax
je 0x1004b7e9
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebx + 0x24]
test edi, edi
je 0x1004b678
mov esi, dword [edi + 0x14]
xor eax, eax
test esi, esi
jle 0x1004b671
lea ecx, [edi + 0x24]
lea esp, [esp]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ecx]
cmp dword [ebx + edx*4], 0
mov ebx, dword [ebp + 0xc]
jge 0x1004b62a
cmp edx, dword [ebx + 4]
jne 0x1004b669
cmp dword [ebp + 0x14], 0
jne 0x1004b62a
inc eax
add ecx, 8
cmp eax, esi
jl 0x1004b650
mov edi, dword [edi + 4]
test edi, edi
jne 0x1004b640
mov ecx, dword [ebx]
mov esi, ecx
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x1004b696
cmp byte [ecx], 0
je 0x1004b68e
inc esi
cmp byte [esi], 0
jne 0x1004b688
sub esi, ecx
and esi, 0x3fffffff
mov eax, dword [ebx + 0x44]
add eax, 0x38
mov dword [ebp + 8], esi
mov dword [ebp - 4], eax
cmp dword [eax + 0xc], 0
je 0x1004b6e5
xor edi, edi
mov dword [ebp - 8], ecx
mov ebx, esi
test esi, esi
jle 0x1004b6d8
mov esi, ecx
movzx eax, byte [esi]
lea ecx, [edi*8]
dec ebx
lea esi, [esi + 1]
movzx edx, byte [eax + 0x100949e0]
xor edx, ecx
xor edi, edx
test ebx, ebx
jg 0x1004b6b5
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov eax, edi
xor edx, edx
mov edi, dword [ebp - 4]
div dword [edi]
mov eax, edi
jmp 0x1004b6e7
xor edx, edx
push edx
push esi
push ecx
push eax
call fcn.10028f00
add esp, 0x10
test eax, eax
je 0x1004b7e9
mov esi, dword [eax + 8]
mov dword [ebp - 8], esi
test esi, esi
je 0x1004b7e9
lea esp, [esp]
xor ebx, ebx
mov dword [ebp + 8], ebx
cmp dword [esi + 0x14], ebx
jle 0x1004b7db
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x28]
mov dword [ebp - 4], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0xc], edx
lea ecx, [ecx]
mov ecx, dword [ecx]
xor edi, edi
mov dword [ebp - 0x10], ecx
test edx, edx
jle 0x1004b7c5
mov ebx, dword [eax + 0xc]
test ecx, ecx
je 0x1004b790
mov eax, dword [ebx]
mov esi, ecx
mov cl, byte [eax]
test cl, cl
je 0x1004b770
movzx edx, byte [esi]
movzx ecx, cl
mov cl, byte [ecx + 0x100949e0]
cmp cl, byte [edx + 0x100949e0]
jne 0x1004b76d
mov cl, byte [eax + 1]
inc eax
inc esi
test cl, cl
jne 0x1004b750
mov edx, dword [ebp - 0xc]
movzx eax, byte [eax]
movzx ecx, byte [eax + 0x100949e0]
movzx eax, byte [esi]
movzx eax, byte [eax + 0x100949e0]
sub ecx, eax
mov eax, dword [ebp + 0xc]
neg ecx
sbb ecx, ecx
inc ecx
jmp 0x1004b794
movzx ecx, byte [ebx + 0x15]
test ecx, ecx
je 0x1004b7b4
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + edi*4], 0
jge 0x1004b62a
cmp edi, dword [eax + 4]
jne 0x1004b7b4
cmp dword [ebp + 0x14], 0
jne 0x1004b62a
mov ecx, dword [ebp - 0x10]
inc edi
add ebx, 0x18
cmp edi, edx
jl 0x1004b742
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
inc ebx
add ecx, 8
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ecx
cmp ebx, dword [esi + 0x14]
jl 0x1004b730
mov esi, dword [esi + 0xc]
mov dword [ebp - 8], esi
test esi, esi
jne 0x1004b710
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret