Function at 0x49b9f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
push edi
push 8
push dword [ebx]
mov dword [ebp - 4], eax
lea edi, [eax + 8]
call fcn.00584127
push 8
push dword [ebx]
mov esi, eax
and esi, 0xff00ff00
call fcn.00584137
and eax, 0xff00ff
or eax, esi
mov dword [edi], eax
push 8
push dword [ebx + 4]
call fcn.00584127
push 8
push dword [ebx + 4]
mov esi, eax
and esi, 0xff00ff00
call fcn.00584137
and eax, 0xff00ff
or eax, esi
mov dword [edi + 4], eax
push 8
push dword [ebx + 8]
call fcn.00584127
push 8
push dword [ebx + 8]
mov esi, eax
and esi, 0xff00ff00
call fcn.00584137
and eax, 0xff00ff
or eax, esi
mov dword [edi + 8], eax
push 8
push dword [ebx + 0xc]
call fcn.00584127
push 8
push dword [ebx + 0xc]
mov esi, eax
and esi, 0xff00ff00
call fcn.00584137
mov edx, eax
add esp, 0x40
and edx, 0xff00ff
or edx, esi
cmp dword [ebp + 0xc], 0x80
mov dword [edi + 0xc], edx
jne 0x49bbb5
mov eax, edx
mov ebx, 0xff
shr eax, 0x10
and eax, ebx
mov ecx, dword [eax*4 + 0xa97db0]
mov eax, edx
shr eax, 8
xor ecx, 0x1000000
and eax, ebx
and ecx, 0xff000000
mov eax, dword [eax*4 + 0xa97db0]
and eax, 0xff0000
xor ecx, eax
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0xa97db0]
xor ecx, eax
movzx eax, dl
lea edx, [edi + 0x10]
mov eax, dword [eax*4 + 0xa97db0]
and eax, 0xff00
xor ecx, eax
mov eax, dword [edi + 4]
xor ecx, dword [edi]
xor eax, ecx
mov dword [edx], ecx
mov ecx, dword [edi + 8]
mov dword [edi + 0x14], eax
xor ecx, eax
mov eax, dword [edi + 0xc]
xor eax, ecx
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], eax
mov edi, 0x5e1d14
lea esi, [edx]
mov ecx, dword [esi + 0xc]
mov eax, ecx
shr eax, 8
and eax, ebx
mov edx, dword [eax*4 + 0xa97db0]
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
and eax, ebx
mov eax, dword [eax*4 + 0xa97db0]
and eax, 0xff000000
xor edx, eax
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + 0xa97db0]
xor edx, eax
movzx eax, cl
mov eax, dword [eax*4 + 0xa97db0]
and eax, 0xff00
xor edx, eax
lea eax, [esi + 0x10]
xor edx, dword [edi]
add edi, 4
xor edx, dword [esi]
mov dword [eax], edx
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 4]
xor eax, edx
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x14], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov dword [esi + 0x18], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov dword [esi + 0x1c], eax
cmp edi, 0x5e1d38
jne 0x49bb26
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xa
jmp 0x49bf16
push 8
push dword [ebx + 0x10]
call fcn.00584127
push 8
push dword [ebx + 0x10]
mov esi, eax
and esi, 0xff00ff00
call fcn.00584137
and eax, 0xff00ff
or eax, esi
mov dword [edi + 0x10], eax
push 8
push dword [ebx + 0x14]
call fcn.00584127
push 8
push dword [ebx + 0x14]
mov esi, eax
and esi, 0xff00ff00
call fcn.00584137
mov edx, eax
add esp, 0x20
and edx, 0xff00ff
or edx, esi
cmp dword [ebp + 0xc], 0xc0
mov dword [edi + 0x14], edx
jne 0x49bd38
mov eax, edx
mov dword [ebp + 0xc], 0x5e1d14
shr eax, 0x10
mov ebx, 0xff
and eax, ebx
mov esi, 0xff000000
mov ecx, dword [eax*4 + 0xa97db0]
mov eax, edx
shr eax, 8
xor ecx, 0x1000000
and eax, ebx
and ecx, esi
mov eax, dword [eax*4 + 0xa97db0]
and eax, 0xff0000
xor ecx, eax
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0xa97db0]
xor ecx, eax
movzx eax, dl
lea edx, [edi + 0x18]
mov eax, dword [eax*4 + 0xa97db0]
and eax, 0xff00
xor ecx, eax
mov eax, dword [edi + 4]
xor ecx, dword [edi]
xor eax, ecx
mov dword [edx], ecx
mov ecx, dword [edi + 8]
xor ecx, eax
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 0xc]
xor eax, ecx
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], eax
mov ecx, dword [edi + 0x10]
xor ecx, dword [edi + 0x24]
mov eax, dword [edi + 0x14]
xor eax, ecx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], eax
lea edi, [edx]
mov ecx, dword [edi + 0x14]
mov eax, ecx
shr eax, 8
and eax, ebx
mov edx, dword [eax*4 + 0xa97db0]
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
and eax, ebx
mov eax, dword [eax*4 + 0xa97db0]
and eax, esi
xor edx, eax
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + 0xa97db0]
xor edx, eax
movzx eax, cl
mov eax, dword [eax*4 + 0xa97db0]
and eax, 0xff00
xor edx, eax
mov eax, dword [ebp + 0xc]
xor edx, dword [edi]
xor edx, dword [eax]
lea eax, [edi + 0x18]
mov dword [eax], edx
mov dword [ebp + 8], eax
mov eax, dword [edi + 4]
xor eax, edx
mov edx, dword [ebp + 8]
mov dword [edi + 0x1c], eax
mov ecx, dword [edi + 8]
xor ecx, eax
mov dword [edi + 0x20], ecx
mov eax, dword [edi + 0xc]
xor eax, ecx
mov dword [edi + 0x24], eax
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp + 0xc], eax
cmp eax, 0x5e1d30
jne 0x49bc8f
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xc
jmp 0x49bf16
push 8
push dword [ebx + 0x18]
call fcn.00584127
push 8
push dword [ebx + 0x18]
mov esi, eax
and esi, 0xff00ff00
call fcn.00584137
and eax, 0xff00ff
or eax, esi
mov dword [edi + 0x18], eax
push 8
push dword [ebx + 0x1c]
call fcn.00584127
push 8
push dword [ebx + 0x1c]
mov esi, eax
and esi, 0xff00ff00
call fcn.00584137
mov edx, eax
add esp, 0x20
and edx, 0xff00ff
or edx, esi
cmp dword [ebp + 0xc], 0x100
mov dword [edi + 0x1c], edx
jne 0x49bf0f
mov eax, edx
mov dword [ebp + 0xc], 0x5e1d14
shr eax, 0x10
mov ebx, 0xff
and eax, ebx
mov esi, 0xff000000
mov ecx, dword [eax*4 + 0xa97db0]
mov eax, edx
shr eax, 8
xor ecx, 0x1000000
and eax, ebx
and ecx, esi
mov eax, dword [eax*4 + 0xa97db0]
and eax, 0xff0000
xor ecx, eax
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0xa97db0]
xor ecx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0xa97db0]
and eax, 0xff00
xor ecx, eax
lea eax, [edi + 0x20]
xor ecx, dword [edi]
mov dword [eax], ecx
mov dword [ebp + 8], eax
mov eax, dword [edi + 4]
xor eax, ecx
mov ecx, dword [edi + 8]
xor ecx, eax
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0xc]
xor eax, ecx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], eax
mov ecx, dword [edi + 0x2c]
mov eax, ecx
shr eax, 0x10
and eax, ebx
mov edx, dword [eax*4 + 0xa97db0]
mov eax, ecx
shr eax, 8
and edx, 0xff0000
and eax, ebx
mov eax, dword [eax*4 + 0xa97db0]
and eax, 0xff00
xor edx, eax
mov eax, ecx
shr eax, 0x18
mov eax, dword [eax*4 + 0xa97db0]
and eax, esi
xor edx, eax
movzx eax, cl
mov ecx, dword [edi + 0x18]
movzx eax, byte [eax*4 + 0xa97db0]
xor edx, eax
mov eax, dword [edi + 0x14]
xor edx, dword [edi + 0x10]
xor eax, edx
mov dword [edi + 0x30], edx
mov dword [edi + 0x34], eax
xor ecx, eax
mov eax, dword [edi + 0x1c]
xor eax, ecx
mov dword [edi + 0x38], ecx
mov dword [edi + 0x3c], eax
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x1c]
mov eax, ecx
shr eax, 8
and eax, ebx
mov edx, dword [eax*4 + 0xa97db0]
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
and eax, ebx
mov eax, dword [eax*4 + 0xa97db0]
and eax, esi
xor edx, eax
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + 0xa97db0]
xor edx, eax
movzx eax, cl
mov eax, dword [eax*4 + 0xa97db0]
and eax, 0xff00
xor edx, eax
mov eax, dword [ebp + 0xc]
xor edx, dword [eax]
lea eax, [edi + 0x20]
xor edx, dword [edi]
mov dword [eax], edx
mov dword [ebp + 8], eax
mov eax, dword [edi + 4]
xor eax, edx
mov dword [edi + 0x24], eax
mov ecx, dword [edi + 8]
xor ecx, eax
mov dword [edi + 0x28], ecx
mov eax, dword [edi + 0xc]
xor eax, ecx
mov dword [edi + 0x2c], eax
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp + 0xc], eax
cmp eax, 0x5e1d2c
jne 0x49be15
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xe
jmp 0x49bf16
mov eax, dword [ebp - 4]
and dword [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8