Function at 0x49b7c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x14
call fcn.00581890
push ebx
mov ebx, dword [esp + 0x28]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0x178]
mov dword [esp + 0x14], eax
mov eax, ebx
add eax, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x49ba83
jb 0x49b7fc
cmp eax, 0xffffffe0
ja 0x49ba83
cmp dword [esi + 0x170], 0
push ebp
mov ebp, dword [esi + 0x16c]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
mov dword [esp + 0x14], ebp
je 0x49b876
test ebx, ebx
jne 0x49b83c
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
mov eax, dword [esi + 0x168]
call eax
add esp, 8
mov dword [esi + 0x170], ebx
xor eax, eax
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
movups xmm0, xmmword [esi + 0x40]
mov ebp, 0x10
mov dword [esp + 0x14], ebp
movups xmmword [esi + 0x17c], xmm0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x170], 0
mov eax, dword [esi + 0xc]
mov edx, ebp
push edi
mov edi, dword [esp + 0x2c]
and edx, 0xf
bswap eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], edi
je 0x49b8f6
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], ecx
nop dword [eax + eax]
test ebx, ebx
je 0x49b8cb
mov al, byte [edx + esi + 0x10]
dec ebx
xor al, byte [edi]
inc edx
mov byte [ecx], al
inc edi
mov byte [esi + ebp + 0x17c], al
inc ecx
inc ebp
mov dword [esp + 0x34], ecx
and edx, 0xf
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], edx
jne 0x49b8a0
jmp 0x49b8d3
test edx, edx
jne 0x49ba73
push ebp
lea eax, [esi + 0x17c]
push eax
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
mov eax, dword [esi + 0x164]
call eax
add esp, 0x10
xor ebp, ebp
mov dword [esp + 0x18], ebp
jmp 0x49b8fe
mov eax, dword [esp + 0x30]
mov dword [esp + 0x34], eax
cmp ebx, 0x10
jb 0x49b928
test ebp, ebp
je 0x49b928
push ebp
lea eax, [esi + 0x17c]
push eax
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
mov eax, dword [esi + 0x164]
call eax
add esp, 0x10
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x38]
cmp ebx, 0xc00
jb 0x49b9a8
mov ebp, dword [esp + 0x34]
mov eax, 0xaaaaaaab
mul ebx
shr edx, 0xb
mov dword [esp + 0x10], edx
push esi
push dword [esp + 0x20]
push 0xc0
push ebp
push edi
call ecx
mov eax, dword [esp + 0x28]
add eax, 0xc0
mov dword [esp + 0x28], eax
bswap eax
mov dword [esi + 0xc], eax
lea eax, [esi + 0x60]
push 0xc00
push ebp
push eax
lea eax, [esi + 0x40]
push eax
mov eax, dword [esi + 0x164]
call eax
mov ecx, dword [esp + 0x5c]
add esp, 0x24
add ebp, 0xc00
add edi, 0xc00
sub ebx, 0xc00
sub dword [esp + 0x10], 1
jne 0x49b946
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x10], edi
mov eax, ebx
and eax, 0xfffffff0
mov dword [esp + 0x18], eax
je 0x49ba03
push esi
push dword [esp + 0x20]
mov edi, eax
shr edi, 4
push edi
push dword [esp + 0x40]
push dword [esp + 0x20]
call ecx
mov eax, dword [esp + 0x28]
add eax, edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x28], eax
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x2c]
add edi, eax
push eax
push dword [esp + 0x4c]
sub ebx, eax
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
mov eax, dword [esi + 0x164]
call eax
mov eax, dword [esp + 0x3c]
add esp, 0x24
add dword [esp + 0x34], eax
test ebx, ebx
je 0x49ba73
push dword [esp + 0x1c]
lea eax, [esi + 0x10]
push eax
mov eax, dword [esi + 0x174]
push esi
call eax
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x20]
inc eax
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x34]
lea edx, [ecx + eax]
add ecx, 0x10
add ecx, esi
sub edi, eax
lea eax, [esi + 0x17c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], eax
mov esi, ecx
nop word [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, byte [edi + edx]
lea edx, [edx + 1]
xor ecx, eax
mov eax, dword [esp + 0x20]
mov byte [edx - 1], cl
mov byte [eax + ebp], cl
inc ebp
sub ebx, 1
jne 0x49ba50
mov esi, dword [esp + 0x28]
pop edi
mov dword [esi + 0x16c], ebp
xor eax, eax
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x14
ret