Function at 0x4b0500
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
lea eax, [ebp - 8]
push eax
push 0x1b
push esi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 8], edi
call fcn.004aa040
mov ebx, eax
add esp, 0x10
mov dword [ebp - 0x10], ebx
cmp ebx, edi
jne 0x4b080e
mov eax, dword [esi + 0x118]
mov edi, dword [ebp - 8]
cdq
push edx
push eax
push 1
push edi
call fcn.004579c0
mov eax, dword [esi + 0xfc]
cdq
push edx
push eax
push 2
push edi
call fcn.004579c0
add esp, 0x20
push edi
call fcn.0049e190
add esp, 4
cmp eax, 0x64
jne 0x4b05b3
push 0
push edi
call fcn.00435800
xor edi, edi
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [esi + 0xfc], edi
jle 0x4b05ac
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
push ecx
push edi
push edx
push esi
call fcn.004b0330
xor dword [ebp - 0x40], eax
xor dword [ebp - 0x3c], edx
inc edi
add esp, 0x10
cmp edi, dword [esi + 0xfc]
jl 0x4b0588
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
test ebx, ebx
je 0x4b0562
push edi
call fcn.00482ca0
add esp, 4
test ebx, ebx
jne 0x4b07fe
mov ebx, eax
test eax, eax
jne 0x4b07fe
mov edx, dword [esi + 0xdc]
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push edx
push str.SELECT__s
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], ebx
call fcn.0043ef50
mov edi, eax
add esp, 8
test edi, edi
jne 0x4b05fb
lea ebx, [eax + 7]
jmp 0x4b07f2
mov eax, dword [esi + 0xc]
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0x80
push 0xffffffffffffffff
push edi
call fcn.00497180
push edi
mov ebx, eax
call fcn.004120f0
add esp, 0x1c
test ebx, ebx
jne 0x4b07f2
mov edx, dword [ebp - 8]
push edx
call fcn.0049e190
add esp, 4
cmp eax, 0x64
jne 0x4b07f2
mov edi, dword [ebp - 8]
push 0
push edi
call fcn.004358f0
add esp, 8
cmp dword [esi + 0x2c], 0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
mov dword [ebp - 0xc], 0
je 0x4b066d
mov eax, dword [esi + 0x18]
inc eax
push eax
push edi
call fcn.00435800
add esp, 8
mov dword [ebp - 0xc], eax
xor edi, edi
nop
cmp edi, dword [esi + 0x18]
jge 0x4b0626
mov ecx, dword [esi + 0x20]
cmp byte [edi + ecx], 0
jne 0x4b07e9
mov edx, dword [ebp - 8]
lea ebx, [edi + 1]
push ebx
push edx
call fcn.004359d0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
push ebx
push eax
call fcn.00435570
mov esi, dword [esi + 0x24]
mov ecx, dword [esi]
lea edx, [ebp - 4]
push edx
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ecx + 0xc]
push esi
call ecx
mov ebx, eax
add esp, 0x20
test ebx, ebx
jne 0x4b06f9
mov edx, dword [ebp - 4]
mov dword [edx], esi
mov esi, dword [ebp - 0x14]
cmp dword [esi], 1
jl 0x4b06f9
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, dword [esi + 0x18]
push eax
push ecx
call edx
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4b06f9
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x10]
push eax
call ecx
add esp, 4
mov dword [ebp - 4], 0
mov esi, dword [ebp - 4]
mov dword [ebp - 0x2c], esi
test ebx, ebx
jne 0x4b07cf
mov esi, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ecx + 0x14]
lea eax, [ebp - 0x18]
push eax
push esi
call edx
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4b07cf
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0xc]
push ebx
push edi
push eax
mov eax, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x18]
push 0
push edx
push eax
push ecx
call fcn.004252d0
xor dword [ebp - 0x34], edx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xfc]
xor dword [ebp - 0x38], eax
mov esi, 1
add esp, 0x20
mov dword [ebp - 0x30], ecx
cmp ecx, esi
jle 0x4b0707
mov eax, edx
mov edx, dword [eax + 0x100]
add edx, 0x18
mov dword [ebp - 0x1c], edx
mov edi, edi
mov eax, dword [edx]
cmp eax, dword [ebp - 0x10]
jg 0x4b07bf
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
push ebx
push edi
push ecx
mov ecx, dword [ebp - 0xc]
push edx
mov edx, dword [ebp - 0x18]
push esi
push ecx
push eax
push edx
call fcn.004252d0
xor dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x30]
add esp, 0x20
xor dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x1c]
inc esi
add edx, 0x18
mov dword [ebp - 0x1c], edx
cmp esi, ecx
jl 0x4b0790
jmp 0x4b0707
test esi, esi
je 0x4b07df
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x10]
push esi
call ecx
add esp, 4
mov esi, dword [ebp + 8]
cmp ebx, 0x65
jne 0x4b07e9
xor ebx, ebx
inc edi
test ebx, ebx
je 0x4b0670
mov edx, dword [ebp - 8]
push edx
call fcn.00482bc0
add esp, 4
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x40], eax
jne 0x4b0821
mov ecx, dword [ebp - 0x34]
cmp dword [ebp - 0x3c], ecx
jne 0x4b0821
mov edx, dword [ebp + 0xc]
mov eax, 1
pop edi
mov dword [edx], eax
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
xor eax, eax
pop edi
mov dword [ecx], eax
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret