Function at 0x49b6e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1c
call fcn.00581be0
push ebp
mov ebp, dword [esp + 0x30]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0x174]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x178]
mov dword [esp + 0x10], eax
mov eax, ebp
add eax, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x49ba0e
jb 0x49b726
cmp eax, 0xffffffe0
ja 0x49ba0e
cmp dword [esi + 0x170], 0
mov dword [esi + 0x3c], ecx
mov ecx, dword [esi + 0x16c]
mov dword [esi + 0x38], eax
mov dword [esp + 8], ecx
je 0x49b79e
test ebp, ebp
jne 0x49b764
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], ebp
xor eax, eax
pop esi
pop ebp
add esp, 0x1c
ret
movups xmm0, xmmword [esi + 0x40]
mov ecx, 0x10
mov dword [esp + 8], ecx
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, ecx
push ebx
mov ebx, dword [esp + 0x34]
and edx, 0xf
bswap eax
push edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], edx
je 0x49b810
nop dword [eax]
test ebp, ebp
je 0x49b7e7
mov al, byte [edx + esi + 0x10]
dec ebp
xor al, byte [edi]
inc edx
mov byte [ebx], al
inc edi
mov byte [ecx + esi + 0x17c], al
inc ebx
inc ecx
mov dword [esp + 0x3c], ebp
and edx, 0xf
mov dword [esp + 0x28], edx
jne 0x49b7c0
jmp 0x49b7ef
test edx, edx
jne 0x49b9fe
push ecx
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 ecx, ecx
mov dword [esp + 0x10], ecx
cmp ebp, 0x10
jb 0x49b83c
test ecx, ecx
je 0x49b83c
push ecx
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
mov dword [esp + 0x10], 0
cmp ebp, 0xc00
jb 0x49b8f5
mov eax, 0xaaaaaaab
lea ecx, [esi + 0x10]
mul ebp
shr edx, 0xb
mov dword [esp + 0x24], edx
nop dword [eax]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x20], 0xc0
nop dword [eax]
push dword [esp + 0x18]
push ecx
push esi
call dword [esp + 0x28]
inc ebp
lea ecx, [esi + 0x10]
mov eax, ebp
add esp, 0xc
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [edi]
xor eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [esp + 0x20], 1
jne 0x49b870
push 0xc00
lea eax, [ebx - 0xc00]
mov dword [esp + 0x18], ebp
push eax
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
mov eax, dword [esi + 0x164]
call eax
mov ebp, dword [esp + 0x4c]
lea ecx, [esi + 0x10]
sub ebp, 0xc00
add esp, 0x10
sub dword [esp + 0x24], 1
mov dword [esp + 0x3c], ebp
jne 0x49b860
mov ecx, ebp
and ecx, 0xfffffff0
mov dword [esp + 0x24], ecx
je 0x49b981
cmp ebp, 0x10
jb 0x49b968
mov eax, ebp
lea ecx, [esi + 0x10]
shr eax, 4
mov dword [esp + 0x3c], eax
push dword [esp + 0x18]
push ecx
push esi
call dword [esp + 0x28]
mov eax, dword [esp + 0x20]
lea ecx, [esi + 0x10]
inc eax
add esp, 0xc
mov dword [esp + 0x14], eax
sub ebp, 0x10
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [edi]
xor eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [esp + 0x3c], 1
jne 0x49b915
mov ecx, dword [esp + 0x24]
push ecx
mov eax, ebx
sub eax, ecx
push eax
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
mov eax, dword [esi + 0x164]
call eax
add esp, 0x10
test ebp, ebp
je 0x49b9ea
push dword [esp + 0x18]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x28]
mov eax, dword [esp + 0x20]
add esp, 0xc
inc eax
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x28]
lea edx, [eax + ebx]
add eax, 0x10
add eax, esi
sub edi, ebx
lea ebx, [esi + 0x17c]
mov dword [esp + 0x3c], eax
mov esi, dword [esp + 0x10]
nop dword [eax + eax]
movzx eax, byte [eax]
lea edx, [edx + 1]
movzx ecx, byte [edi + edx - 1]
xor ecx, eax
mov eax, dword [esp + 0x3c]
mov byte [edx - 1], cl
inc eax
mov byte [ebx + esi], cl
inc esi
mov dword [esp + 0x3c], eax
sub ebp, 1
jne 0x49b9c0
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
pop edi
pop ebx
mov dword [esi + 0x16c], eax
xor eax, eax
pop esi
pop ebp
add esp, 0x1c
ret
pop edi
pop ebx
mov dword [esi + 0x16c], ecx
xor eax, eax
pop esi
pop ebp
add esp, 0x1c
ret
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x1c
ret