Function at 0x4c9f40
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc8
call fcn.0055bc20
mov eax, dword [0x5e2ec0]
xor eax, esp
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xcc]
push esi
mov esi, dword [eax + 0x60]
push edi
mov edi, dword [esi + 0xc8]
mov dword [esp + 0x18], eax
lea eax, [edi + 0x10]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
cmp dword [esp + 0xd8], eax
je 0x4c9f9c
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.0055a67a
add esp, 0xc8
ret
lea ecx, [esp + 0x2c]
neg ecx
and ecx, 0xf
push ebx
lea ecx, [esp + ecx + 0x30]
push ebp
lea ebp, [ecx + 0x30]
mov dword [esp + 0x1c], ecx
lea ebx, [ecx + 0x40]
mov dword [esp + 0x2c], ebp
cmp edi, 0x40
ja 0x4ca0ee
lea eax, [esi + 0x20]
push eax
push esi
push 0x80
push 0x5a74f8
push ecx
mov dword [eax], 0
mov dword [esp + 0x3c], 0x80
call fcn.00504b00
mov ecx, dword [esp + 0x30]
lea eax, [esi + 0xd0]
push ecx
push eax
call fcn.00505270
mov edx, dword [esi + 0x94]
xor eax, eax
mov dword [esi + 0x70], eax
mov dword [ebp], edx
mov ecx, dword [esi + 0x98]
mov dword [ebp + 4], ecx
mov edx, dword [esi + 0x9c]
mov dword [ebp + 8], edx
mov ecx, dword [esi + 0xa0]
mov edx, dword [esp + 0x3c]
mov dword [ebp + 0xc], ecx
add esp, 0x1c
mov dword [esi + 0xa8], 0xd
mov dword [esi + 0xac], eax
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], eax
cmp dword [edx + 8], eax
je 0x4ca077
xor ebp, ebp
test edi, edi
jbe 0x4ca0c4
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
sub ebp, ebx
mov eax, ebx
sub ecx, ebx
mov dword [esp + 0x18], edi
nop
movzx edx, byte [eax + ebp]
xor byte [eax], dl
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
sub edi, 1
jne 0x4ca060
mov ebp, dword [esp + 0x18]
jmp 0x4ca0c4
cmp edi, eax
jbe 0x4ca0c2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
sub ecx, eax
sub eax, ebx
mov ebp, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x18], edi
jmp 0x4ca0a4
mov eax, dword [esp + 0x24]
mov dl, byte [ebp]
lea edi, [eax + ebp]
mov al, byte [edi + ecx]
xor dl, al
mov byte [ebp], al
inc ebp
sub dword [esp + 0x30], 1
mov byte [edi], dl
jne 0x4ca0a0
mov ebp, dword [esp + 0x18]
jmp 0x4ca0c4
mov ebp, eax
add dword [esp + 0x14], ebp
add dword [esp + 0x10], ebp
mov edi, ebp
neg edi
and edi, 0xf
push edi
lea eax, [ebx + ebp]
push 0
push eax
call fcn.0055bfc0
add edi, ebp
add esp, 0xc
add ebx, edi
lea eax, [edi + 0x10]
jmp 0x4ca1e4
lea ebp, [esi + 0x20]
push ebp
push esi
push 0x40
push 0x5a74f8
push ecx
mov dword [ebp], 0
mov dword [esp + 0x3c], 0x40
call fcn.00504b00
mov edx, dword [esp + 0x30]
lea eax, [esi + 0xd0]
push edx
push eax
call fcn.00505270
push 0x10
lea eax, [esi + 0x94]
push eax
lea eax, [esi + 0xd0]
push eax
mov dword [ebp], 1
mov dword [esi + 0x70], 0
call fcn.00505330
mov ecx, dword [esp + 0x48]
xor eax, eax
add esp, 0x28
mov dword [esi + 0xa8], 0xd
mov dword [esi + 0xac], eax
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], eax
cmp dword [ecx + 8], eax
je 0x4ca197
mov edx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push edx
push ebp
call fcn.00504b00
push edi
lea eax, [esi + 0xd0]
push ebp
push eax
call fcn.00505330
jmp 0x4ca1bb
mov eax, dword [esp + 0x14]
push edi
push eax
lea eax, [esi + 0xd0]
push eax
call fcn.00505330
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ebp
push esi
push edi
push ecx
push edx
call fcn.00504b00
add dword [esp + 0x34], edi
add dword [esp + 0x30], edi
add esp, 0x20
neg edi
and edi, 0xf
push edi
lea eax, [esi + 0xd0]
push 0x5a74f8
push eax
call fcn.00505330
mov eax, dword [esp + 0x30]
add esp, 0xc
mov ecx, dword [esi + 0xa8]
mov ebp, dword [esp + 0x2c]
mov dword [ebx], ecx
mov edx, dword [esi + 0xac]
mov dword [ebx + 4], edx
mov ecx, dword [esi + 0xb0]
add eax, 0x10
push eax
mov dword [ebx + 8], ecx
mov edx, dword [esi + 0xb4]
push ebp
lea edi, [esi + 0xd0]
push edi
mov dword [ebx + 0xc], edx
call fcn.00505330
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call fcn.0046b340
mov ebx, dword [esp + 0x34]
add esp, 0x14
cmp dword [ebx + 8], 0
lea eax, [esi + 0x84]
jne 0x4ca240
mov eax, ebp
push eax
push edi
call fcn.005053e0
add esp, 8
mov dword [esi + 0xc8], 0xffffffff
cmp dword [ebx + 8], 0
je 0x4ca2a1
mov edx, dword [esi + 0x84]
mov eax, dword [esp + 0x10]
mov dword [eax], edx
mov ecx, dword [esi + 0x88]
mov dword [eax + 4], ecx
mov edx, dword [esi + 0x8c]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0x90]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0xd4]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.0055a67a
add esp, 0xc8
ret
mov edx, dword [esp + 0x14]
push 0x10
push edx
push ebp
call fcn.004671a0
add esp, 0xc
test eax, eax
je 0x4ca281
mov ecx, dword [esp + 0xe0]
lea eax, [ecx - 0x10]
push eax
mov eax, dword [esp + 0x14]
sub eax, ecx
add eax, 0x10
push 0
push eax
call fcn.0055bfc0
add esp, 0xc
or eax, 0xffffffff
jmp 0x4ca288