Function at 0x49dbf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x40
call fcn.00596bf0
mov eax, dword [0x616930]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, edx
mov dword [esp + 0x18], ecx
test eax, eax
je 0x49de79
cmp ebx, edi
je 0x49dc99
mov ecx, esi
mov dword [esp + 0x14], ecx
cmp eax, 0x10
jb 0x49dc81
shr eax, 4
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x20]
push edx
push edi
push ebx
call dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
xor dword [edi], ecx
mov edx, dword [eax + 4]
xor dword [edi + 4], edx
mov ecx, dword [eax + 8]
xor dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
xor dword [edi + 0xc], edx
sub dword [ebp + 0xc], 0x10
mov dword [esp + 0x20], ebx
add esp, 0xc
add ebx, 0x10
add edi, 0x10
dec dword [esp + 0x10]
jne 0x49dc3e
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov dword [esi], edx
mov edx, dword [ecx + 4]
mov dword [esi + 4], edx
mov edx, dword [ecx + 8]
mov dword [esi + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [esi + 0xc], ecx
jmp 0x49dd06
cmp eax, 0x10
jb 0x49dd06
shr eax, 4
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push ebx
call dword [esp + 0x24]
mov eax, dword [ebx]
mov ecx, dword [esi]
xor ecx, dword [esp + 0x40]
sub dword [ebp + 0xc], 0x10
mov dword [edi], ecx
mov edx, dword [esi + 4]
xor edx, dword [esp + 0x44]
mov dword [esi], eax
mov eax, dword [ebx + 4]
mov dword [edi + 4], edx
mov ecx, dword [esi + 8]
xor ecx, dword [esp + 0x48]
mov dword [esi + 4], eax
mov eax, dword [ebx + 8]
mov dword [edi + 8], ecx
mov edx, dword [esi + 0xc]
xor edx, dword [esp + 0x4c]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xc], edx
add esp, 0xc
add ebx, 0x10
add edi, 0x10
dec dword [esp + 0x10]
mov dword [esi + 0xc], eax
jne 0x49dca5
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x49de79
lea ecx, [esp + 0x34]
mov eax, esi
sub eax, ecx
mov dword [esp + 0x24], eax
mov edx, ecx
mov eax, 1
sub eax, edx
mov dword [esp + 0x30], eax
mov eax, 2
sub eax, ecx
mov dword [esp + 0x28], eax
mov eax, 3
sub eax, edx
mov dword [esp + 0x2c], eax
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x1c], eax
lea edx, [edi + 2]
mov eax, ecx
sub edi, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
push ebx
call dword [esp + 0x24]
add esp, 0xc
xor eax, eax
cmp eax, dword [ebp + 0xc]
jae 0x49de2a
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
lea ecx, [esp + eax + 0x34]
movzx edx, byte [ecx + edx]
mov byte [esp + 0xf], dl
movzx edx, byte [ecx]
xor dl, byte [ecx + edi]
mov edi, dword [esp + 0x10]
mov byte [ecx + edi], dl
movzx edx, byte [esp + 0xf]
mov edi, dword [esp + 0x24]
mov byte [ecx + edi], dl
mov edx, dword [esp + 0x30]
add edx, ecx
cmp edx, dword [ebp + 0xc]
jae 0x49de1f
movzx edx, byte [ebx + eax + 1]
mov edi, dword [esp + 0x14]
mov byte [esp + 0xf], dl
movzx edx, byte [ecx + 1]
xor dl, byte [esi + eax + 1]
mov byte [edi + eax - 1], dl
movzx edx, byte [esp + 0xf]
mov byte [esi + eax + 1], dl
mov edx, dword [esp + 0x28]
add edx, ecx
cmp edx, dword [ebp + 0xc]
jae 0x49de22
movzx edx, byte [ebx + eax + 2]
mov byte [esp + 0xf], dl
movzx edx, byte [ecx + 2]
xor dl, byte [esi + eax + 2]
mov byte [edi + eax], dl
movzx edx, byte [esp + 0xf]
mov byte [esi + eax + 2], dl
mov edx, dword [esp + 0x2c]
add edx, ecx
cmp edx, dword [ebp + 0xc]
jae 0x49de27
mov cl, byte [ecx + 3]
xor cl, byte [esi + eax + 3]
mov dl, byte [ebx + eax + 3]
mov byte [edi + eax + 1], cl
mov byte [esi + eax + 3], dl
add eax, 4
cmp eax, 0x10
jb 0x49dd68
jmp 0x49de2a
inc eax
jmp 0x49de2a
add eax, 2
jmp 0x49de2a
add eax, 3
mov ecx, dword [ebp + 0xc]
mov edx, 0x10
cmp ecx, edx
jbe 0x49de62
add dword [esp + 0x1c], edx
add dword [esp + 0x10], edx
add dword [esp + 0x14], edx
sub ecx, edx
add ebx, edx
mov dword [ebp + 0xc], ecx
test ecx, ecx
jne 0x49dd54
pop edi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0057af8a
mov esp, ebp
pop ebp
ret
cmp eax, edx
jae 0x49de79
mov edi, ebx
sub edi, esi
lea ecx, [esi + eax]
sub edx, eax
nop
mov al, byte [edi + ecx]
mov byte [ecx], al
inc ecx
dec edx
jne 0x49de70
mov ecx, dword [esp + 0x44]
pop edi
pop ebx
xor ecx, esp
call fcn.0057af8a
mov esp, ebp
pop ebp
ret