Function at 0x4bdafa
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1010
call 0x50a1da
push ebx
mov ebx, dword [esp + 0x1018]
push ebp
mov ebp, dword [esp + 0x1024]
mov eax, dword [ebp + 0x10]
push esi
push edi
mov esi, ecx
mov cl, byte [ebp + 0x3030]
push 4
push 0xffffffffffffffff
mov byte [esp + 0x1a], cl
test eax, eax
lea edi, [esi + 0x10]
push edi
mov ecx, ebx
mov dword [esp + 0x28], eax
seta byte [esp + 0x1f]
call fcn.004b8a5a
cmp byte [esp + 0x12], 0
je 0x4bdb6b
mov eax, dword [edi]
movzx ecx, byte [esi + 0x13]
mov edx, eax
mov dword [esp + 0x14], eax
shl edx, 0x10
and eax, 0xff00
add edx, eax
xor eax, eax
mov ah, byte [esp + 0x16]
shl edx, 8
add edx, eax
add edx, ecx
mov dword [edi], edx
mov eax, dword [edi]
mov cl, byte [esp + 0x13]
test eax, eax
seta byte [esp + 0x27]
test eax, eax
je 0x4bdb9a
test cl, cl
je 0x4bdb96
cmp eax, dword [esp + 0x1c]
je 0x4bdb96
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1010
ret 0xc
test eax, eax
jne 0x4bdbaa
test cl, cl
je 0x4bdba6
mov edx, dword [esp + 0x1c]
mov dword [edi], edx
jmp 0x4bdbb4
test eax, eax
je 0x4bdbb4
test cl, cl
jne 0x4bdbb4
mov dword [edi], 0
push 1
push 0xffffffffffffffff
lea eax, [esp + 0x2e]
push eax
mov ecx, ebx
call fcn.004b8a5a
mov al, byte [esp + 0x26]
cmp al, 0x59
jne 0x4bdbd2
mov byte [esi + 0x20], 1
jmp 0x4bdbda
cmp al, 0x4e
jne 0x4bdbda
mov byte [esi + 0x20], 0
push 4
push 0xffffffffffffffff
push esi
mov ecx, ebx
call fcn.004b8a5a
cmp byte [esp + 0x12], 0
je 0x4bdc12
mov eax, dword [esi]
mov dword [esp + 0x14], eax
xor edx, edx
mov dh, byte [esp + 0x16]
mov ecx, eax
shl ecx, 0x10
and eax, 0xff00
add ecx, eax
movzx eax, byte [esi + 3]
shl ecx, 8
add ecx, edx
add ecx, eax
mov dword [esi], ecx
push 4
push 0xffffffffffffffff
lea edi, [esi + 4]
push edi
mov ecx, ebx
call fcn.004b8a5a
cmp byte [esp + 0x12], 0
je 0x4bdc4d
mov eax, dword [edi]
mov dword [esp + 0x14], eax
xor edx, edx
mov dh, byte [esp + 0x16]
mov ecx, eax
shl ecx, 0x10
and eax, 0xff00
add ecx, eax
movzx eax, byte [esi + 7]
shl ecx, 8
add ecx, edx
add ecx, eax
mov dword [edi], ecx
push 4
push 0xffffffffffffffff
lea edi, [esi + 8]
push edi
mov ecx, ebx
call fcn.004b8a5a
cmp byte [esp + 0x12], 0
je 0x4bdc88
mov eax, dword [edi]
mov dword [esp + 0x14], eax
xor edx, edx
mov dh, byte [esp + 0x16]
mov ecx, eax
shl ecx, 0x10
and eax, 0xff00
add ecx, eax
movzx eax, byte [esi + 0xb]
shl ecx, 8
add ecx, edx
add ecx, eax
mov dword [edi], ecx
cmp byte [esi + 0x20], 0
je 0x4bdcc9
push 4
push 0xffffffffffffffff
lea edi, [esi + 0x14]
push edi
mov ecx, ebx
call fcn.004b8a5a
cmp byte [esp + 0x12], 0
je 0x4bdcc9
mov eax, dword [edi]
mov dword [esp + 0x14], eax
xor edx, edx
mov dh, byte [esp + 0x16]
mov ecx, eax
shl ecx, 0x10
and eax, 0xff00
add ecx, eax
movzx eax, byte [esi + 0x17]
shl ecx, 8
add ecx, edx
add ecx, eax
mov dword [edi], ecx
push 4
push 0xffffffffffffffff
lea edi, [esi + 0x18]
push edi
mov ecx, ebx
call fcn.004b8a5a
cmp byte [esp + 0x12], 0
je 0x4bdd04
mov eax, dword [edi]
mov dword [esp + 0x14], eax
xor edx, edx
mov dh, byte [esp + 0x16]
mov ecx, eax
shl ecx, 0x10
and eax, 0xff00
add ecx, eax
movzx eax, byte [esi + 0x1b]
shl ecx, 8
add ecx, edx
add ecx, eax
mov dword [edi], ecx
cmp byte [esi + 0x20], 0
je 0x4bdd66
mov eax, dword [esi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c479c
mov ecx, dword [esi]
add ecx, ecx
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x24], eax
call fcn.004b8a5a
mov eax, dword [esi]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c479c
mov ecx, dword [esi]
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x28], eax
call fcn.004b8a5a
mov eax, dword [esi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c479c
mov ecx, dword [esi]
add ecx, ecx
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x2c], eax
call fcn.004b8a5a
mov eax, dword [esi]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c479c
mov ecx, dword [esi]
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x30], eax
call fcn.004b8a5a
cmp byte [esp + 0x12], 0
je 0x4bde70
xor eax, eax
cmp dword [esi], eax
jbe 0x4bde70
lea ecx, [ecx]
cmp byte [esi + 0x20], 0
je 0x4bde23
mov edx, dword [esi + 0x24]
mov ecx, dword [edx + eax*4]
lea edi, [edx + eax*4]
mov edx, ecx
shl edx, 0x10
mov dword [esp + 0x14], ecx
and ecx, 0xff00
add edx, ecx
movzx ecx, byte [edi + 3]
shl edx, 8
add edx, ecx
xor ecx, ecx
mov ch, byte [esp + 0x16]
add edx, ecx
mov dword [edi], edx
mov edx, dword [esi + 0x28]
movzx cx, byte [edx + eax*2 + 1]
lea edi, [edx + eax*2]
xor edx, edx
mov dh, byte [edi]
xor cx, dx
mov word [edi], cx
mov ecx, dword [esi + 0x2c]
lea edi, [ecx + eax*4]
mov ecx, dword [edi]
mov edx, ecx
shl edx, 0x10
mov dword [esp + 0x14], ecx
and ecx, 0xff00
add edx, ecx
movzx ecx, byte [edi + 3]
shl edx, 8
add edx, ecx
xor ecx, ecx
mov ch, byte [esp + 0x16]
add edx, ecx
mov dword [edi], edx
mov edx, dword [esi + 0x30]
movzx cx, byte [edx + eax*2 + 1]
lea edi, [edx + eax*2]
xor edx, edx
mov dh, byte [edi]
add eax, 1
xor cx, dx
mov word [edi], cx
cmp eax, dword [esi]
jb 0x4bddda
cmp byte [esi + 0x20], 0
je 0x4bde93
mov eax, dword [esi + 0x14]
push eax
call fcn.004c479c
mov ecx, dword [esi + 0x14]
add esp, 4
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x3c], eax
call fcn.004b8a5a
mov edx, dword [esi + 0x18]
push edx
call fcn.004c479c
mov ecx, dword [esi + 0x18]
add esp, 4
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x40], eax
call fcn.004b8a5a
cmp byte [esp + 0x12], 0
je 0x4bdee9
mov edi, dword [esi + 0x40]
xor eax, eax
test dword [esi + 0x18], 0xfffffffe
jbe 0x4bdee9
jmp 0x4bdeca
movzx dx, byte [edi + eax*2 + 1]
xor ecx, ecx
mov ch, byte [edi + eax*2]
add eax, 1
xor dx, cx
mov word [edi + eax*2 - 2], dx
mov edx, dword [esi + 0x18]
shr edx, 1
cmp eax, edx
jb 0x4bdeca
cmp byte [esi + 0x20], 0
je 0x4be1d5
mov eax, dword [esi + 8]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c479c
mov ecx, dword [esi + 8]
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x54], eax
call fcn.004b8a5a
mov edx, dword [esi + 8]
add edx, edx
add edx, edx
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x34]
push eax
mov ecx, ebx
call fcn.004b8a5a
cmp byte [esp + 0x12], 0
je 0x4bdf93
xor eax, eax
cmp dword [esi + 8], eax
jbe 0x4bdf93
lea esp, [esp]
mov ecx, dword [esi + 0x54]
movzx dx, byte [ecx + eax*2 + 1]
lea edi, [ecx + eax*2]
xor ecx, ecx
mov ch, byte [edi]
add eax, 1
xor dx, cx
mov word [edi], dx
mov ecx, dword [esp + eax*4 + 0x28]
mov edx, ecx
mov dword [esp + 0x14], 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 + 0x16]
add edx, ecx
cmp eax, dword [esi + 8]
mov dword [esp + eax*4 + 0x28], edx
jb 0x4bdf4a
cmp byte [esi + 0x20], 0
je 0x4be1d5
xor edi, edi
cmp dword [esi + 8], edi
mov dword [esp + 0x14], edi
jbe 0x4be1d5
lea edx, [esp + 0x2c]
mov dword [esp + 0x1c], edx
lea ebx, [ebx]
mov eax, dword [esi + 0x54]
movzx eax, word [eax + edi]
lea ecx, [eax + eax*2]
mov edx, dword [ebp + ecx*4 + 0x40]
mov ebx, dword [ebp + ecx*4 + 0x3c]
lea eax, [ebp + ecx*4 + 0x38]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x28], edx
xor ecx, ecx
add eax, ebx
mov edx, 4
mul edx
seto cl
mov dword [esp + 0x18], ebx
neg ecx
or ecx, eax
push ecx
call fcn.004c479c
mov ecx, dword [esi + 0x54]
movzx ecx, word [ecx + edi]
add esp, 4
cmp byte [esp + 0x13], 0
lea edx, [ecx + ecx*2]
mov dword [ebp + edx*4 + 0x40], eax
je 0x4be046
xor eax, eax
test ebx, ebx
jbe 0x4be039
lea ebx, [ebx]
mov ecx, dword [esi + 0x54]
movzx ecx, word [ecx + edi]
lea edx, [ecx + ecx*2]
mov ecx, dword [ebp + edx*4 + 0x40]
mov edx, dword [esp + 0x28]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, ebx
jb 0x4be01a
mov eax, dword [esp + 0x28]
push eax
call fcn.004c47a1
add esp, 4
mov ecx, dword [esi + 0x54]
movzx eax, word [ecx + edi]
mov ecx, dword [esp + 0x1c]
lea edx, [eax + eax*2]
lea eax, [ebp + edx*4 + 0x3c]
mov edx, dword [ecx]
add dword [eax], edx
cmp dword [ecx], 0
mov dword [esp + 0x28], 0
jbe 0x4be1b2
add ebx, ebx
add ebx, ebx
jmp 0x4be07a
mov ecx, dword [esp + 0x1024]
push 4
push 0xffffffffffffffff
lea eax, [esp + 0x28]
push eax
call fcn.004b8a5a
cmp byte [esp + 0x12], 0
je 0x4be0bf
mov ecx, dword [esp + 0x20]
mov eax, ecx
shl eax, 0x10
mov edx, ecx
and edx, 0xff00
add eax, edx
xor edx, edx
mov dh, byte [esp + 0x22]
shl eax, 8
shr ecx, 0x18
add eax, edx
add eax, ecx
mov dword [esp + 0x20], eax
jmp 0x4be0c3
mov eax, dword [esp + 0x20]
cmp byte [esp + 0x27], 0
je 0x4be0ec
cmp byte [esp + 0x13], 0
je 0x4be0f3
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x54]
add ecx, eax
movzx eax, word [edx + edi]
lea eax, [eax + eax*2]
mov edx, dword [ebp + eax*4 + 0x40]
mov dword [ebx + edx], ecx
jmp 0x4be198
cmp byte [esp + 0x13], 0
jne 0x4be109
mov ecx, dword [esi + 0x54]
movzx ecx, word [ecx + edi]
lea edx, [ecx + ecx*2]
mov ecx, dword [ebp + edx*4 + 0x40]
mov dword [ebx + ecx], eax
jmp 0x4be198
mov edx, dword [esi + 0x30]
movzx ecx, word [edx + eax*2]
mov edx, dword [esi + 0x2c]
push ecx
mov ecx, dword [edx + eax*4]
add ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x28]
push ecx
movzx ecx, word [edx + eax*2]
mov edx, dword [esi + 0x24]
push ecx
mov ecx, dword [edx + eax*4]
add ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x54]
push ecx
movzx ecx, word [edx + edi]
lea ecx, [ecx + ecx*2]
mov edx, dword [ebp + ecx*4 + 0x40]
mov ecx, dword [esp + 0x28]
push edx
push ecx
push eax
mov ecx, ebp
call fcn.004bca3a
test al, al
je 0x4be180
mov edx, dword [esi + 0x28]
mov eax, dword [esp + 0x20]
mov word [edx + eax*2], 0
mov ecx, dword [esi + 0x30]
mov edx, dword [esp + 0x20]
mov word [ecx + edx*2], 0
mov eax, dword [esi + 0x54]
movzx eax, word [eax + edi]
lea ecx, [eax + eax*2]
add dword [ebp + ecx*4 + 0x3c], 0xffffffff
add dword [esi + 4], 0xffffffff
lea eax, [ebp + ecx*4 + 0x3c]
jmp 0x4be19b
mov eax, dword [esi + 0x54]
movzx eax, word [eax + edi]
mov edx, dword [esi + 0x10]
add edx, dword [esp + 0x20]
lea ecx, [eax + eax*2]
mov eax, dword [ebp + ecx*4 + 0x40]
mov dword [ebx + eax], edx
add ebx, 4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [ecx]
mov dword [esp + 0x28], eax
jb 0x4be07a
mov eax, dword [esp + 0x14]
add dword [esp + 0x1c], 4
add eax, 1
add edi, 2
cmp eax, dword [esi + 8]
mov dword [esp + 0x14], eax
jb 0x4bdfba
mov ebx, dword [esp + 0x1024]
push 4
push 0xffffffffffffffff
lea edi, [esi + 0xc]
push edi
mov ecx, ebx
call fcn.004b8a5a
cmp byte [esp + 0x12], 0
je 0x4be210
mov eax, dword [edi]
movzx ecx, byte [esi + 0xf]
mov edx, eax
mov dword [esp + 0x18], eax
shl edx, 0x10
and eax, 0xff00
add edx, eax
xor eax, eax
mov ah, byte [esp + 0x1a]
shl edx, 8
add edx, eax
add edx, ecx
mov dword [edi], edx
cmp dword [edi], 0
je 0x4be3c8
push 4
push 0xffffffffffffffff
lea ebp, [esi + 0x1c]
push ebp
mov ecx, ebx
call fcn.004b8a5a
cmp byte [esp + 0x12], 0
je 0x4be256
mov eax, dword [ebp]
movzx ecx, byte [esi + 0x1f]
mov edx, eax
mov dword [esp + 0x18], eax
shl edx, 0x10
and eax, 0xff00
add edx, eax
xor eax, eax
mov ah, byte [esp + 0x1a]
shl edx, 8
add edx, eax
add edx, ecx
mov dword [ebp], edx
mov eax, dword [edi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c479c
mov ecx, dword [edi]
add ecx, ecx
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x58], eax
call fcn.004b8a5a
mov eax, dword [edi]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c479c
mov ecx, dword [edi]
add ecx, ecx
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x34], eax
call fcn.004b8a5a
mov eax, dword [edi]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c479c
mov ecx, dword [edi]
add esp, 4
add ecx, ecx
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x38], eax
call fcn.004b8a5a
cmp byte [esp + 0x12], 0
je 0x4be377
xor eax, eax
cmp dword [edi], eax
jbe 0x4be377
lea esp, [esp]
mov edx, dword [esi + 0x38]
lea ecx, [edx + eax*2]
movzx dx, byte [ecx + 1]
mov dword [esp + 0x14], 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 ebp, ecx
mov dword [esp + 0x18], ecx
shl ebp, 0x10
and ecx, 0xff00
add ebp, ecx
movzx ecx, byte [edx + 3]
shl ebp, 8
add ebp, ecx
xor ecx, ecx
mov ch, byte [esp + 0x1a]
mov ebx, dword [esp + 0x14]
add ebp, ecx
mov dword [edx], ebp
mov edx, dword [esi + 0x58]
mov ecx, dword [edx + eax*4]
lea edx, [edx + eax*4]
mov ebp, ecx
mov dword [esp + 0x18], ecx
shl ebp, 0x10
and ecx, 0xff00
add ebp, ecx
movzx ecx, byte [edx + 3]
shl ebp, 8
add ebp, ecx
xor ecx, ecx
mov ch, byte [esp + 0x1a]
add eax, 1
add ebp, ecx
mov dword [edx], ebp
cmp eax, dword [edi]
jb 0x4be2fa
mov edx, dword [esi + 0x1c]
lea edi, [esi + 0x1c]
push edx
call fcn.004c479c
mov ecx, dword [edi]
add esp, 4
push ecx
push 0xffffffffffffffff
push eax
mov ecx, ebx
mov dword [esi + 0x44], eax
call fcn.004b8a5a
cmp byte [esp + 0x12], 0
je 0x4be3c8
mov esi, dword [esi + 0x44]
xor eax, eax
test dword [edi], 0xfffffffe
jbe 0x4be3c8
movzx dx, byte [esi + eax*2 + 1]
xor ecx, ecx
mov ch, byte [esi + eax*2]
add eax, 1
xor dx, cx
mov word [esi + eax*2 - 2], dx
mov edx, dword [edi]
shr edx, 1
cmp eax, edx
jb 0x4be3aa
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1010
ret 0xc