Function at 0x49c180
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x38
call fcn.00596bf0
mov eax, dword [0x616930]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov al, byte [esi]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x28], ecx
mov ecx, dword [esi + 0x28]
mov dword [ebp - 0x30], edx
mov edx, dword [esi + 0x2c]
push edi
mov byte [ebp - 0x19], al
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], edx
test al, 0x40
jne 0x49c1d3
push edx
lea eax, [esi + 0x10]
push eax
push esi
call ecx
mov al, byte [ebp - 0x19]
add esp, 0xc
add dword [esi + 0x20], 1
adc dword [esi + 0x24], 0
movzx eax, al
and eax, 7
mov edx, 0xf
sub edx, eax
mov byte [esi], al
mov eax, edx
xor ecx, ecx
mov dword [ebp - 0x24], edx
cmp eax, 0xf
jae 0x49c203
mov edi, edi
movzx edi, byte [esi + eax]
or ecx, edi
mov byte [esi + eax], 0
inc eax
shl ecx, 8
cmp eax, 0xf
jb 0x49c1f0
movzx eax, byte [esi + 0xf]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, ebx
je 0x49c224
or eax, 0xffffffff
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057af8a
mov esp, ebp
pop ebp
ret
lea ecx, [ebx + 0xf]
or ecx, 8
shr ecx, 3
add dword [esi + 0x20], ecx
adc dword [esi + 0x24], 0
cmp dword [esi + 0x24], 0x20000000
jb 0x49c25a
ja 0x49c245
cmp dword [esi + 0x20], 0
jbe 0x49c25a
mov eax, 0xfffffffe
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057af8a
mov esp, ebp
pop ebp
ret
mov edi, ebx
shr edi, 4
test edi, edi
je 0x49c29b
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
lea edx, [esi + 0x10]
push edx
mov edx, dword [ebp - 0x34]
push esi
push eax
push edi
push ecx
push edx
call dword [ebp - 0x30]
shl edi, 4
mov edx, edi
mov edi, dword [ebp - 0x34]
add dword [ebp - 0x28], edx
add esp, 0x18
add edi, edx
sub ebx, edx
je 0x49c2fa
shr edx, 4
mov ecx, esi
call fcn.0049c140
mov edx, dword [ebp - 0x24]
jmp 0x49c29e
mov edi, dword [ebp - 0x34]
test ebx, ebx
je 0x49c2fd
xor eax, eax
test ebx, ebx
je 0x49c2b4
mov cl, byte [edi + eax]
xor byte [esi + eax + 0x10], cl
inc eax
cmp eax, ebx
jb 0x49c2a8
mov edx, dword [ebp - 0x20]
lea eax, [esi + 0x10]
push edx
push eax
push eax
call dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
push ecx
push esi
call dword [ebp - 0x2c]
add esp, 0x18
xor ecx, ecx
test ebx, ebx
je 0x49c2fa
mov edx, edi
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x18]
sub edx, eax
mov dword [ebp - 0x30], edx
sub edi, eax
jmp 0x49c2e9
mov edx, dword [ebp - 0x30]
lea eax, [ebp + ecx - 0x18]
mov dl, byte [edx + eax]
xor dl, byte [eax]
inc ecx
mov byte [edi + eax], dl
cmp ecx, ebx
jb 0x49c2e6
mov edx, dword [ebp - 0x24]
cmp edx, 0x10
jae 0x49c318
mov ecx, 0x10
sub ecx, edx
push ecx
lea eax, [esi + edx]
push 0
push eax
call fcn.0057e420
add esp, 0xc
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x18]
push eax
push esi
call dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
xor dword [esi + 0x10], ecx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
xor dword [esi + 0x1c], ecx
xor dword [esi + 0x14], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor dword [esi + 0x18], eax
mov dl, byte [ebp - 0x19]
add esp, 0xc
pop edi
xor ecx, ebp
mov byte [esi], dl
xor eax, eax
pop ebx
call fcn.0057af8a
mov esp, ebp
pop ebp
ret