Function at 0x4bcb4a
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1010
call 0x50a1da
mov eax, dword [esp + 0x1024]
mov edx, dword [esp + 0x1018]
push ebx
mov bl, byte [eax + 0x3030]
push ebp
push esi
mov esi, ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [esp + 0x1020]
test ecx, ecx
push edi
lea edi, [eax + 4]
seta byte [esp + 0x13]
cmp edi, edx
mov byte [esp + 0x12], bl
ja 0x4bcbb0
test bl, bl
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov dword [esi + 0x10], eax
je 0x4bcb97
mov ebp, eax
and eax, 0xff00
shl ebp, 0x10
add ebp, eax
xor eax, eax
mov ah, byte [esp + 0x16]
shl ebp, 8
add ebp, eax
movzx eax, byte [esi + 0x13]
add ebp, eax
mov dword [esi + 0x10], ebp
mov eax, dword [esi + 0x10]
test eax, eax
seta byte [esp + 0x23]
test eax, eax
je 0x4bcbc8
cmp byte [esp + 0x13], 0
je 0x4bcbc0
cmp eax, ecx
je 0x4bcbc0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1010
ret 0x14
test eax, eax
mov bl, byte [esp + 0x12]
jne 0x4bcbdc
cmp byte [esp + 0x13], 0
mov bl, byte [esp + 0x12]
je 0x4bcbd8
mov dword [esi + 0x10], ecx
jmp 0x4bcbea
test eax, eax
je 0x4bcbea
cmp byte [esp + 0x13], 0
jne 0x4bcbea
mov dword [esi + 0x10], 0
lea eax, [edi + 1]
cmp eax, edx
ja 0x4bcbb0
mov cl, byte [edi]
cmp cl, 0x59
jne 0x4bcbfe
mov byte [esi + 0x20], 1
jmp 0x4bcc07
cmp cl, 0x4e
jne 0x4bcc07
mov byte [esi + 0x20], 0
lea ecx, [eax + 4]
cmp ecx, edx
ja 0x4bcbb0
test bl, bl
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov dword [esi], eax
je 0x4bcc39
mov edi, eax
and eax, 0xff00
shl edi, 0x10
add edi, eax
xor eax, eax
mov ah, byte [esp + 0x16]
shl edi, 8
add edi, eax
movzx eax, byte [esi + 3]
add edi, eax
mov dword [esi], edi
mov eax, ecx
lea ecx, [eax + 4]
cmp ecx, edx
ja 0x4bcbb0
test bl, bl
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov dword [esi + 4], eax
je 0x4bcc73
mov edi, eax
and eax, 0xff00
shl edi, 0x10
add edi, eax
xor eax, eax
mov ah, byte [esp + 0x16]
shl edi, 8
add edi, eax
movzx eax, byte [esi + 7]
add edi, eax
mov dword [esi + 4], edi
lea eax, [ecx + 4]
cmp eax, edx
ja 0x4bcbb0
test bl, bl
mov ecx, dword [ecx]
mov dword [esp + 0x14], ecx
mov dword [esi + 8], ecx
je 0x4bccac
mov edi, ecx
and ecx, 0xff00
shl edi, 0x10
add edi, ecx
xor ecx, ecx
mov ch, byte [esp + 0x16]
shl edi, 8
add edi, ecx
movzx ecx, byte [esi + 0xb]
add edi, ecx
mov dword [esi + 8], edi
mov cl, byte [esi + 0x20]
test cl, cl
je 0x4bcced
lea edi, [eax + 4]
cmp edi, edx
ja 0x4bcbb0
test bl, bl
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov dword [esi + 0x14], eax
je 0x4bcceb
mov ebp, eax
and eax, 0xff00
shl ebp, 0x10
add ebp, eax
xor eax, eax
mov ah, byte [esp + 0x16]
shl ebp, 8
add ebp, eax
movzx eax, byte [esi + 0x17]
add ebp, eax
mov dword [esi + 0x14], ebp
mov eax, edi
lea edi, [eax + 4]
cmp edi, edx
ja 0x4bcbb0
test bl, bl
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov dword [esi + 0x18], eax
je 0x4bcd25
mov ebx, eax
and eax, 0xff00
shl ebx, 0x10
add ebx, eax
xor eax, eax
mov ah, byte [esp + 0x16]
shl ebx, 8
add ebx, eax
movzx eax, byte [esi + 0x1b]
add ebx, eax
mov dword [esi + 0x18], ebx
test cl, cl
je 0x4bcda5
mov eax, dword [esi]
lea ebp, [eax*4]
lea ebx, [edi + ebp]
cmp ebx, edx
ja 0x4bcbb0
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c479c
push ebp
push edi
push eax
mov dword [esi + 0x24], eax
call 0x50979a
mov eax, dword [esi]
mov ebp, ebx
lea edi, [eax + eax]
lea ebx, [edi + ebp]
add esp, 0x10
cmp ebx, dword [esp + 0x1028]
ja 0x4bcbb0
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c479c
push edi
push ebp
push eax
mov dword [esi + 0x28], eax
call 0x50979a
mov edx, dword [esp + 0x1038]
add esp, 0x10
mov edi, ebx
mov eax, dword [esi]
lea ebp, [eax*4]
lea ebx, [edi + ebp]
cmp ebx, edx
ja 0x4bcbb0
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c479c
push ebp
push edi
push eax
mov dword [esi + 0x2c], eax
call 0x50979a
mov eax, dword [esi]
mov edi, ebx
lea ebp, [eax + eax]
lea ebx, [edi + ebp]
add esp, 0x10
cmp ebx, dword [esp + 0x1028]
ja 0x4bcbb0
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c479c
push ebp
push edi
push eax
mov dword [esi + 0x30], eax
call 0x50979a
add esp, 0x10
cmp byte [esp + 0x12], 0
mov ebp, ebx
je 0x4bcec4
xor eax, eax
cmp dword [esi], eax
jbe 0x4bcec4
cmp byte [esi + 0x20], 0
je 0x4bce77
mov ecx, dword [esi + 0x24]
lea edx, [ecx + eax*4]
mov ecx, dword [edx]
mov edi, ecx
mov dword [esp + 0x18], ecx
and ecx, 0xff00
shl edi, 0x10
add edi, ecx
movzx ecx, byte [edx + 3]
shl edi, 8
add edi, ecx
xor ecx, ecx
mov ch, byte [esp + 0x1a]
xor ebx, ebx
add edi, ecx
mov dword [edx], edi
mov edx, dword [esi + 0x28]
mov bh, byte [edx + eax*2]
lea ecx, [edx + eax*2]
movzx dx, byte [ecx + 1]
xor dx, bx
mov word [ecx], dx
mov ecx, dword [esi + 0x2c]
lea edx, [ecx + eax*4]
mov ecx, dword [edx]
mov edi, ecx
mov dword [esp + 0x18], ecx
and ecx, 0xff00
shl edi, 0x10
add edi, ecx
movzx ecx, byte [edx + 3]
shl edi, 8
add edi, ecx
xor ecx, ecx
mov ch, byte [esp + 0x1a]
xor ebx, ebx
add edi, ecx
mov dword [edx], edi
mov edx, dword [esi + 0x30]
mov bh, byte [edx + eax*2]
lea ecx, [edx + eax*2]
movzx dx, byte [ecx + 1]
add eax, 1
xor dx, bx
mov word [ecx], dx
cmp eax, dword [esi]
jb 0x4bce2f
cmp byte [esi + 0x20], 0
je 0x4bcef3
mov edi, dword [esi + 0x14]
lea ebx, [edi + ebp]
cmp ebx, dword [esp + 0x1028]
ja 0x4bcbb0
push edi
call fcn.004c479c
push edi
push ebp
push eax
mov dword [esi + 0x3c], eax
call 0x50979a
add esp, 0x10
mov ebp, ebx
mov edi, dword [esi + 0x18]
lea ebx, [edi + ebp]
cmp ebx, dword [esp + 0x1028]
ja 0x4bcbb0
push edi
call fcn.004c479c
push edi
push ebp
push eax
mov dword [esi + 0x40], eax
call 0x50979a
add esp, 0x10
cmp byte [esp + 0x12], 0
mov dword [esp + 0x1024], ebx
je 0x4bcf61
mov ecx, dword [esi + 0x40]
xor eax, eax
test dword [esi + 0x18], 0xfffffffe
jbe 0x4bcf61
lea esp, [esp]
movzx dx, byte [ecx + eax*2 + 1]
mov dword [esp + 0x18], ebx
xor ebx, ebx
mov bh, byte [ecx + eax*2]
add eax, 1
xor dx, bx
mov ebx, dword [esp + 0x18]
mov word [ecx + eax*2 - 2], dx
mov edx, dword [esi + 0x18]
shr edx, 1
cmp eax, edx
jb 0x4bcf3a
cmp byte [esi + 0x20], 0
je 0x4bd29c
mov eax, dword [esi + 8]
lea ebp, [eax + eax]
lea edi, [ebx + ebp]
cmp edi, dword [esp + 0x1028]
ja 0x4bcbb0
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c479c
push ebp
push ebx
push eax
mov dword [esi + 0x54], eax
call 0x50979a
mov eax, dword [esi + 8]
add eax, eax
add eax, eax
mov ecx, edi
lea edi, [eax + ecx]
add esp, 0x10
cmp edi, dword [esp + 0x1028]
ja 0x4bcbb0
push eax
push ecx
lea eax, [esp + 0x34]
push eax
call 0x50979a
add esp, 0xc
cmp byte [esp + 0x12], 0
mov ebx, edi
mov dword [esp + 0x1024], ebx
je 0x4bd03b
xor eax, eax
cmp dword [esi + 8], eax
jbe 0x4bd03b
lea ebx, [ebx]
mov ecx, dword [esi + 0x54]
movzx dx, byte [ecx + eax*2 + 1]
lea ecx, [ecx + eax*2]
mov dword [esp + 0x1c], ebx
xor ebx, ebx
mov bh, byte [ecx]
add eax, 1
xor dx, bx
mov word [ecx], dx
mov ecx, dword [esp + eax*4 + 0x28]
mov ebx, dword [esp + 0x1c]
mov edx, ecx
mov dword [esp + 0x18], ecx
shl edx, 0x10
and ecx, 0xff00
add edx, ecx
movzx ecx, byte [esp + eax*4 + 0x2b]
shl edx, 8
add edx, ecx
xor ecx, ecx
mov ch, byte [esp + 0x1a]
add edx, ecx
cmp eax, dword [esi + 8]
mov dword [esp + eax*4 + 0x28], edx
jb 0x4bcfea
cmp byte [esi + 0x20], 0
je 0x4bd29c
xor ebp, ebp
cmp dword [esi + 8], ebp
jbe 0x4bd29c
lea edx, [esp + 0x2c]
mov dword [esp + 0x14], edx
mov edi, edi
mov eax, dword [esi + 0x54]
movzx eax, word [eax + ebp*2]
mov edx, dword [esp + 0x1034]
lea ecx, [eax + eax*2]
mov ebx, dword [edx + ecx*4 + 0x3c]
lea eax, [edx + ecx*4 + 0x38]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx]
mov dword [esp + 0x18], eax
xor ecx, ecx
lea eax, [edi + ebx]
mov edx, 4
mul edx
seto cl
mov dword [esp + 0x24], ebx
neg ecx
or ecx, eax
push ecx
call fcn.004c479c
mov ecx, dword [esi + 0x54]
movzx ecx, word [ecx + ebp*2]
lea edx, [ecx + ecx*2]
mov ecx, dword [esp + 0x1038]
add esp, 4
cmp byte [esp + 0x13], 0
mov dword [ecx + edx*4 + 0x40], eax
je 0x4bd0e6
test ebx, ebx
jbe 0x4bd0d9
mov ecx, dword [esp + 0x18]
sub ecx, eax
mov dword [esp + 0x1c], ebx
mov edx, dword [ecx + eax]
mov dword [eax], edx
add eax, 4
sub dword [esp + 0x1c], 1
jne 0x4bd0ca
mov eax, dword [esp + 0x18]
push eax
call fcn.004c47a1
add esp, 4
mov ecx, dword [esi + 0x54]
movzx eax, word [ecx + ebp*2]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x1034]
add dword [eax + edx*4 + 0x3c], edi
test edi, edi
lea eax, [eax + edx*4 + 0x3c]
mov dword [esp + 0x18], 0
jbe 0x4bd284
mov ecx, dword [esp + 0x1024]
add ecx, 4
add ebx, ebx
mov dword [esp + 0x1c], ecx
add ebx, ebx
jmp 0x4bd12a
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x1028]
ja 0x4bcbb0
cmp byte [esp + 0x12], 0
mov eax, dword [esp + 0x1024]
mov edi, dword [eax]
mov dword [esp + 0x28], edi
je 0x4bd16e
xor eax, eax
mov ah, byte [esp + 0x2a]
mov ecx, edi
mov edx, edi
shl ecx, 0x10
and edx, 0xff00
add ecx, edx
shl ecx, 8
add ecx, eax
shr edi, 0x18
add edi, ecx
cmp byte [esp + 0x23], 0
je 0x4bd19e
cmp byte [esp + 0x13], 0
je 0x4bd1a5
mov edx, dword [esi + 0x54]
movzx eax, word [edx + ebp*2]
mov ecx, dword [esi + 0x10]
mov edx, dword [esp + 0x1034]
lea eax, [eax + eax*2]
mov eax, dword [edx + eax*4 + 0x40]
add ecx, edi
mov dword [ebx + eax], ecx
jmp 0x4bd25a
cmp byte [esp + 0x13], 0
jne 0x4bd1c2
mov ecx, dword [esi + 0x54]
movzx eax, word [ecx + ebp*2]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x1034]
mov ecx, dword [eax + edx*4 + 0x40]
mov dword [ebx + ecx], edi
jmp 0x4bd25a
mov edx, dword [esi + 0x30]
movzx eax, word [edx + edi*2]
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx + edi*4]
add edx, dword [esi + 0x40]
push eax
mov eax, dword [esi + 0x28]
movzx ecx, word [eax + edi*2]
push edx
mov edx, dword [esi + 0x24]
mov eax, dword [edx + edi*4]
add eax, dword [esi + 0x3c]
push ecx
mov ecx, dword [esi + 0x54]
push eax
movzx eax, word [ecx + ebp*2]
mov ecx, dword [esp + 0x1044]
lea edx, [eax + eax*2]
mov eax, dword [ecx + edx*4 + 0x40]
mov edx, dword [esp + 0x34]
push eax
push edx
push edi
call fcn.004bca3a
test al, al
je 0x4bd23d
mov eax, dword [esi + 0x28]
mov word [eax + edi*2], 0
mov ecx, dword [esi + 0x30]
mov word [ecx + edi*2], 0
mov edx, dword [esi + 0x54]
movzx eax, word [edx + ebp*2]
mov ecx, dword [esp + 0x1034]
lea eax, [eax + eax*2]
add dword [ecx + eax*4 + 0x3c], 0xffffffff
add dword [esi + 4], 0xffffffff
lea eax, [ecx + eax*4 + 0x3c]
jmp 0x4bd25d
mov eax, dword [esi + 0x54]
movzx eax, word [eax + ebp*2]
mov edx, dword [esi + 0x10]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x1034]
mov ecx, dword [eax + ecx*4 + 0x40]
add edx, edi
mov dword [ebx + ecx], edx
add ebx, 4
mov edx, dword [esp + 0x14]
mov eax, 4
add dword [esp + 0x1024], eax
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
add eax, 1
cmp eax, dword [edx]
mov dword [esp + 0x18], eax
jb 0x4bd12a
add dword [esp + 0x14], 4
add ebp, 1
cmp ebp, dword [esi + 8]
jb 0x4bd05a
mov ebx, dword [esp + 0x1024]
mov edx, dword [esp + 0x1028]
lea ecx, [ebx + 4]
cmp ecx, edx
ja 0x4bcbb0
cmp byte [esp + 0x12], 0
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
mov dword [esi + 0xc], eax
je 0x4bd2de
mov edi, eax
and eax, 0xff00
shl edi, 0x10
add edi, eax
xor eax, eax
mov ah, byte [esp + 0x16]
shl edi, 8
add edi, eax
movzx eax, byte [esi + 0xf]
add edi, eax
mov dword [esi + 0xc], edi
cmp dword [esi + 0xc], 0
mov eax, ecx
je 0x4bd4cb
lea ebx, [eax + 4]
cmp ebx, edx
ja 0x4bcbb0
cmp byte [esp + 0x12], 0
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov dword [esi + 0x1c], eax
je 0x4bd325
mov ecx, eax
and eax, 0xff00
shl ecx, 0x10
add ecx, eax
xor eax, eax
mov ah, byte [esp + 0x16]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 0x1f]
add ecx, eax
mov dword [esi + 0x1c], ecx
mov eax, dword [esi + 0xc]
lea ebp, [eax*4]
lea edi, [ebx + ebp]
cmp edi, edx
ja 0x4bcbb0
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c479c
push ebp
push ebx
push eax
mov dword [esi + 0x58], eax
call 0x50979a
mov eax, dword [esi + 0xc]
lea ebp, [eax*4]
lea ebx, [edi + ebp]
add esp, 0x10
cmp ebx, dword [esp + 0x1028]
ja 0x4bcbb0
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c479c
push ebp
push edi
push eax
mov dword [esi + 0x34], eax
call 0x50979a
mov eax, dword [esi + 0xc]
mov edi, ebx
lea ebp, [eax + eax]
lea ebx, [edi + ebp]
add esp, 0x10
cmp ebx, dword [esp + 0x1028]
ja 0x4bcbb0
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c479c
push ebp
push edi
push eax
mov dword [esi + 0x38], eax
call 0x50979a
add esp, 0x10
cmp byte [esp + 0x12], 0
je 0x4bd46d
xor eax, eax
cmp dword [esi + 0xc], eax
jbe 0x4bd46d
mov ecx, dword [esi + 0x38]
movzx dx, byte [ecx + eax*2 + 1]
lea ecx, [ecx + eax*2]
mov dword [esp + 0x28], ebx
xor ebx, ebx
mov bh, byte [ecx]
xor dx, bx
mov word [ecx], dx
mov ecx, dword [esi + 0x34]
lea edx, [ecx + eax*4]
mov ecx, dword [edx]
mov edi, ecx
mov dword [esp + 0x24], ecx
shl edi, 0x10
and ecx, 0xff00
add edi, ecx
movzx ecx, byte [edx + 3]
shl edi, 8
add edi, ecx
xor ecx, ecx
mov ch, byte [esp + 0x26]
mov ebx, dword [esp + 0x28]
add edi, ecx
mov dword [edx], edi
mov edx, dword [esi + 0x58]
mov ecx, dword [edx + eax*4]
lea edx, [edx + eax*4]
mov edi, ecx
mov dword [esp + 0x24], ecx
shl edi, 0x10
and ecx, 0xff00
add edi, ecx
movzx ecx, byte [edx + 3]
shl edi, 8
add edi, ecx
xor ecx, ecx
mov ch, byte [esp + 0x26]
add eax, 1
add edi, ecx
mov dword [edx], edi
cmp eax, dword [esi + 0xc]
jb 0x4bd3ee
mov eax, dword [esi + 0x1c]
lea edx, [eax + ebx]
cmp edx, dword [esp + 0x1028]
ja 0x4bcbb0
push eax
call fcn.004c479c
mov ecx, dword [esi + 0x1c]
push ecx
push ebx
push eax
mov dword [esi + 0x44], eax
call 0x50979a
add esp, 0x10
cmp byte [esp + 0x12], 0
je 0x4bd4cb
mov ecx, dword [esi + 0x44]
xor eax, eax
test dword [esi + 0x1c], 0xfffffffe
jbe 0x4bd4cb
movzx dx, byte [ecx + eax*2 + 1]
xor ebx, ebx
mov bh, byte [ecx + eax*2]
add eax, 1
xor dx, bx
mov word [ecx + eax*2 - 2], dx
mov edx, dword [esi + 0x1c]
shr edx, 1
cmp eax, edx
jb 0x4bd4ac
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1010
ret 0x14