Function at 0x49d100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x49d186
test edi, edi
je 0x49d168
cmp byte [edi], 0
mov esi, edi
je 0x49d126
nop
inc esi
cmp byte [esi], 0
jne 0x49d120
mov ebx, dword [ebp + 8]
sub esi, edi
add ebx, 0x190
and esi, 0x3fffffff
cmp dword [ebx + 0xc], 0
je 0x49d14d
push esi
push edi
call fcn.004c32d0
xor edx, edx
add esp, 8
div dword [ebx]
jmp 0x49d14f
xor edx, edx
push edx
push esi
push edi
push ebx
call fcn.00476cb0
add esp, 0x10
test eax, eax
je 0x49d164
mov ecx, dword [eax + 8]
jmp 0x49d16e
xor ecx, ecx
jmp 0x49d16e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
je 0x49d190
movzx eax, byte [ebp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax - 5]
lea eax, [ecx + eax*4]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x49d190
cmp dword [eax + 0xc], 0
jne 0x49d32d
movzx ebx, byte [ebp + 0xc]
mov esi, dword [ebp + 8]
push edi
push ebx
push esi
call fcn.0046d920
add esp, 0xc
test edi, edi
je 0x49d204
cmp byte [edi], 0
mov esi, edi
je 0x49d1b6
nop dword [eax]
inc esi
cmp byte [esi], 0
jne 0x49d1b0
mov eax, dword [ebp + 8]
sub esi, edi
add eax, 0x190
and esi, 0x3fffffff
mov dword [ebp + 0x10], eax
cmp dword [eax + 0xc], 0
je 0x49d1e9
push esi
push edi
call fcn.004c32d0
mov ecx, dword [ebp + 8]
xor edx, edx
add esp, 8
div dword [ecx + 0x190]
mov eax, dword [ebp + 0x10]
jmp 0x49d1eb
xor edx, edx
push edx
push esi
push edi
push eax
call fcn.00476cb0
add esp, 0x10
test eax, eax
je 0x49d200
mov eax, dword [eax + 8]
jmp 0x49d207
xor eax, eax
jmp 0x49d207
mov eax, dword [esi + 0x2c]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x49d32d
lea ecx, [ebx + ebx*4]
lea eax, [eax + ecx*4]
add eax, 0xffffffec
mov dword [ebp + 0x10], eax
test eax, eax
je 0x49d32d
cmp dword [eax + 0xc], 0
jne 0x49d32d
mov esi, dword [eax]
xor edx, edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], edx
nop word [eax + eax]
mov bl, byte [edx + 0x72fc34]
mov byte [ebp - 1], bl
test esi, esi
je 0x49d2e9
cmp byte [esi], 0
mov ecx, esi
je 0x49d25e
inc ecx
cmp byte [ecx], 0
jne 0x49d258
mov eax, dword [ebp + 8]
sub ecx, esi
add eax, 0x190
and ecx, 0x3fffffff
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
cmp dword [eax + 0xc], 0
je 0x49d2c8
xor edi, edi
mov dword [ebp - 0xc], esi
mov ebx, ecx
test ecx, ecx
je 0x49d2b3
mov ecx, esi
nop word [eax + eax]
movzx eax, byte [ecx]
lea edx, [edi*8]
dec ebx
lea ecx, [ecx + 1]
movzx esi, byte [eax + 0x72f6c8]
xor esi, edx
xor edi, esi
test ebx, ebx
jg 0x49d290
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov bl, byte [ebp - 1]
mov eax, edi
mov edi, dword [ebp + 8]
xor edx, edx
div dword [edi + 0x190]
mov eax, dword [ebp - 0x18]
jmp 0x49d2ca
xor edx, edx
push edx
push ecx
push esi
push eax
call fcn.00476cb0
add esp, 0x10
test eax, eax
je 0x49d2e2
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 8]
jmp 0x49d2ef
mov edx, dword [ebp - 8]
xor ecx, ecx
jmp 0x49d2ef
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
je 0x49d2ff
movzx eax, bl
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
add ecx, 0xffffffec
cmp dword [ecx + 0xc], 0
jne 0x49d31b
inc edx
mov dword [ebp - 8], edx
cmp edx, 3
jl 0x49d240
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, edx
movups xmm0, xmmword [ecx]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret