Function at 0x49ec8c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x49ec9e
push 0xffffffffffffff9a
jmp 0x49ecce
cmp dword [esi + 0x38], 0
je 0x49ec9a
cmp dword [esi + 0x9c], 0
je 0x49ecb4
push esi
call fcn.0049ea1c
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0049e63c
add esp, 0xc
test eax, eax
je 0x49ecd4
push 0xffffffffffffff99
pop eax
jmp 0x49eef3
push ebx
push edi
mov edi, dword [sym.imp.MSVCR71.dll_malloc]
push 0x90
call edi
mov ebx, eax
test ebx, ebx
pop ecx
je 0x49ee94
push 0x4000
call edi
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ebx + 0x44], ecx
mov ecx, dword [ebp - 8]
xor edx, edx
cmp eax, edx
mov dword [ebx + 0x48], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebx], eax
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x8c], ecx
jne 0x49ed23
push ebx
call dword [sym.imp.MSVCR71.dll_free]
pop ecx
jmp 0x49ee94
mov eax, dword [ebp + 0xc]
cmp eax, edx
mov dword [ebx + 0x40], edx
je 0x49ed32
mov ecx, dword [esi + 0x54]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
cmp ecx, edx
je 0x49ed64
push 6
pop edi
mov dword [ecx], edi
mov eax, dword [esi + 0x50]
and eax, edi
push 2
pop edi
sub eax, edi
je 0x49ed5e
sub eax, edi
je 0x49ed5a
sub eax, edi
jne 0x49ed64
mov dword [ecx], 1
jmp 0x49ed64
mov dword [ecx], edi
jmp 0x49ed64
mov dword [ecx], 9
mov eax, dword [esi + 0x5c]
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x50], edx
mov eax, dword [esi + 0x54]
mov dword [ebx + 0x84], eax
mov eax, dword [esi + 0x20]
mov dword [ebx + 0x80], eax
mov eax, dword [ebp + 8]
push 8
lea edi, [ebx + 0x60]
pop ecx
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x2c]
xor esi, esi
mov dword [ebx + 0x88], ecx
mov dword [ebx + 0x18], esi
cmp dword [eax + 0x54], 8
jne 0x49edda
cmp dword [ebp + 0x14], esi
jne 0x49edda
push 0x38
push str.1.2.1
lea eax, [ebx + 4]
push 0xfffffffffffffff1
push eax
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x28], esi
mov dword [ebx + 0x2c], esi
mov dword [eax], esi
mov dword [ebx + 8], esi
call fcn.0049f310
add esp, 0x10
cmp eax, esi
jne 0x49eef1
mov eax, dword [ebp + 8]
mov dword [ebx + 0x40], 1
mov ecx, dword [eax + 0x60]
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp + 0x18]
cmp edi, esi
mov dword [ebx + 0x58], ecx
mov ecx, dword [eax + 0x64]
mov dword [ebx + 0x5c], ecx
mov ecx, dword [eax + 0x98]
lea ecx, [ecx + edx + 0x1e]
mov dword [ebx + 0x3c], ecx
mov dword [ebx + 8], esi
mov dword [eax + 0x9c], ebx
je 0x49eeef
call fcn.0049f05c
mov ebx, dword [ebp + 8]
mov dword [ebx + 0xb0], eax
lea esi, [ebx + 0xa4]
mov dword [ebp - 0xc], eax
mov dword [esi], 0x12345678
mov dword [esi + 4], 0x23456789
mov dword [esi + 8], 0x34567890
mov al, byte [edi]
mov dword [ebp + 8], edi
jmp 0x49ee55
mov edi, dword [ebp - 0xc]
movsx eax, al
push eax
mov ecx, esi
call fcn.0049dfd3
add esp, 4
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
mov al, byte [eax]
test al, al
jne 0x49ee3c
mov eax, dword [ebx + 0x9c]
mov ecx, dword [eax + 0x88]
add ecx, dword [eax + 0x3c]
xor edi, edi
push edi
push edi
push ecx
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
call dword [ebx + 0x10]
add esp, 0x14
test eax, eax
jne 0x49ee94
push 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
call dword [ebx + 4]
add esp, 0x10
cmp eax, 0xc
jae 0x49ee99
push 0xffffffffffffff98
pop eax
jmp 0x49eef1
mov dword [ebp + 8], edi
mov eax, dword [ebx + 0xac]
mov edi, dword [ebp + 8]
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
lea edi, [ebp + edi - 0x18]
shr ecx, 8
xor byte [edi], cl
movsx eax, byte [edi]
mov edi, dword [ebx + 0xb0]
push eax
mov ecx, esi
call fcn.0049dfd3
add esp, 4
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xc
jl 0x49ee9c
mov eax, dword [ebx + 0x9c]
add dword [eax + 0x3c], 0xc
mov dword [ebx + 0xa0], 1
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret