Function at 0x49580c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov esi, ecx
mov dword [esp + 4], edx
mov dword [esp], eax
cmp dword [0x737d2c], 0
jne 0x495834
call fcn.004954b8
mov dword [0x737d2c], 1
mov eax, esi
sub eax, 0x80
je 0x49584c
sub eax, 0x40
je 0x49585b
sub eax, 0x40
je 0x49586a
jmp 0x495d3d
mov edx, dword [esp]
mov dword [edx + 0x200], 0xa
jmp 0x495877
mov ecx, dword [esp]
mov dword [ecx + 0x200], 0xc
jmp 0x495877
mov eax, dword [esp]
mov dword [eax + 0x200], 0xe
mov eax, dword [esp]
xor ecx, ecx
mov ebx, eax
mov edx, dword [esp + 4]
jmp 0x4958ab
movzx edi, byte [edx]
movzx ebp, byte [edx + 1]
shl ebp, 0x10
inc ecx
shl edi, 0x18
or edi, ebp
movzx ebp, byte [edx + 2]
shl ebp, 8
or edi, ebp
movzx ebp, byte [edx + 3]
or edi, ebp
mov dword [ebx], edi
add ebx, 4
add edx, 4
mov edi, esi
sar edi, 5
cmp ecx, edi
jl 0x495884
mov edx, dword [esp]
mov ecx, dword [edx + 0x200]
sub ecx, 0xa
je 0x4958d9
sub ecx, 2
je 0x495972
sub ecx, 2
je 0x495a1b
jmp 0x495b16
mov dword [esp + 8], 0x742220
xor ecx, ecx
mov edx, dword [eax + 0xc]
inc ecx
mov ebx, edx
shr ebx, 0x10
and ebx, 0xff
movzx esi, byte [ebx + 0x740020]
mov ebx, dword [esp + 8]
shl esi, 0x18
mov ebx, dword [ebx]
xor ebx, dword [eax]
xor esi, ebx
mov ebx, edx
shr ebx, 8
and ebx, 0xff
shr edx, 0x18
movzx ebx, byte [ebx + 0x740020]
shl ebx, 0x10
and edx, 0xff
xor esi, ebx
xor ebx, ebx
mov bl, byte [eax + 0xc]
movzx edx, byte [edx + 0x740020]
movzx ebx, byte [ebx + 0x740020]
shl ebx, 8
xor esi, ebx
xor esi, edx
mov dword [eax + 0x10], esi
mov edx, dword [eax + 4]
xor edx, dword [eax + 0x10]
mov dword [eax + 0x14], edx
mov ebx, dword [eax + 8]
xor ebx, edx
mov dword [eax + 0x18], ebx
mov edx, dword [eax + 0xc]
xor edx, ebx
mov dword [eax + 0x1c], edx
add eax, 0x10
add dword [esp + 8], 4
cmp ecx, 0xa
jl 0x4958e3
jmp 0x495b16
mov dword [esp + 0xc], 0x742220
xor ecx, ecx
mov edx, dword [eax + 0x14]
inc ecx
mov ebx, edx
shr ebx, 0x10
and ebx, 0xff
movzx esi, byte [ebx + 0x740020]
mov ebx, dword [esp + 0xc]
shl esi, 0x18
mov ebx, dword [ebx]
xor ebx, dword [eax]
xor esi, ebx
mov ebx, edx
shr ebx, 8
and ebx, 0xff
shr edx, 0x18
movzx ebx, byte [ebx + 0x740020]
shl ebx, 0x10
and edx, 0xff
xor esi, ebx
xor ebx, ebx
mov bl, byte [eax + 0x14]
movzx edx, byte [edx + 0x740020]
movzx ebx, byte [ebx + 0x740020]
shl ebx, 8
xor esi, ebx
xor esi, edx
mov dword [eax + 0x18], esi
mov edx, dword [eax + 4]
xor edx, dword [eax + 0x18]
mov dword [eax + 0x1c], edx
mov ebx, dword [eax + 8]
xor ebx, edx
mov dword [eax + 0x20], ebx
mov edx, dword [eax + 0xc]
xor edx, ebx
mov dword [eax + 0x24], edx
mov ebx, dword [eax + 0x10]
xor ebx, edx
mov dword [eax + 0x28], ebx
mov edx, dword [eax + 0x14]
xor edx, ebx
mov dword [eax + 0x2c], edx
add eax, 0x18
add dword [esp + 0xc], 4
cmp ecx, 8
jl 0x49597c
jmp 0x495b16
xor ecx, ecx
mov esi, 0x742220
mov edx, dword [eax + 0x1c]
inc ecx
mov ebx, edx
shr ebx, 0x10
and ebx, 0xff
movzx edi, byte [ebx + 0x740020]
mov ebx, dword [esi]
add esi, 4
xor ebx, dword [eax]
shl edi, 0x18
xor edi, ebx
mov ebx, edx
shr ebx, 8
and ebx, 0xff
shr edx, 0x18
movzx ebx, byte [ebx + 0x740020]
shl ebx, 0x10
and edx, 0xff
xor edi, ebx
xor ebx, ebx
mov bl, byte [eax + 0x1c]
movzx edx, byte [edx + 0x740020]
movzx ebx, byte [ebx + 0x740020]
shl ebx, 8
xor edi, ebx
xor edi, edx
mov dword [eax + 0x20], edi
mov edx, dword [eax + 4]
xor edx, dword [eax + 0x20]
mov dword [eax + 0x24], edx
mov ebx, dword [eax + 8]
xor ebx, edx
mov dword [eax + 0x28], ebx
mov edx, dword [eax + 0xc]
xor edx, ebx
mov ebx, edx
mov dword [eax + 0x2c], edx
shr ebx, 0x18
and ebx, 0xff
movzx edi, byte [ebx + 0x740020]
mov ebx, edx
shr ebx, 0x10
shr edx, 8
and ebx, 0xff
and edx, 0xff
movzx ebx, byte [ebx + 0x740020]
movzx edx, byte [edx + 0x740020]
shl edi, 0x18
xor edi, dword [eax + 0x10]
shl ebx, 0x10
shl edx, 8
xor edi, ebx
xor edi, edx
xor edx, edx
mov dl, byte [eax + 0x2c]
movzx edx, byte [edx + 0x740020]
xor edi, edx
mov dword [eax + 0x30], edi
mov edx, dword [eax + 0x14]
xor edx, dword [eax + 0x30]
mov dword [eax + 0x34], edx
mov edx, dword [eax + 0x18]
xor edx, dword [eax + 0x34]
mov dword [eax + 0x38], edx
mov edx, dword [eax + 0x1c]
xor edx, dword [eax + 0x38]
mov dword [eax + 0x3c], edx
add eax, 0x20
cmp ecx, 7
jl 0x495a22
cmp dword [0x737d30], 0
jne 0x495b9e
mov dword [esp + 8], 0x742648
mov esi, 0x740020
xor ecx, ecx
mov dword [esp + 0xc], 0x742248
mov edx, 0x742e48
mov ebx, 0x742a48
movzx edi, byte [esi]
mov ebp, dword [esp + 0xc]
inc ecx
mov edi, dword [edi*4 + 0x741220]
mov dword [ebp], edi
movzx edi, byte [esi]
mov ebp, dword [esp + 8]
mov edi, dword [edi*4 + 0x741620]
mov dword [ebp], edi
movzx edi, byte [esi]
mov edi, dword [edi*4 + 0x741a20]
mov dword [ebx], edi
add ebx, 4
movzx edi, byte [esi]
inc esi
mov edi, dword [edi*4 + 0x741e20]
mov dword [edx], edi
add edx, 4
add dword [esp + 8], 4
add dword [esp + 0xc], 4
cmp ecx, 0x100
jl 0x495b40
mov dword [0x737d30], 1
mov edx, dword [esp]
mov ecx, dword [eax]
add edx, 0x100
add eax, 4
mov dword [edx], ecx
add edx, 4
mov ecx, dword [eax]
add eax, 4
mov dword [edx], ecx
add edx, 4
mov ecx, dword [eax]
add eax, 4
mov dword [edx], ecx
add edx, 4
mov ecx, dword [eax]
add eax, 4
mov dword [edx], ecx
mov ecx, 1
add edx, 4
jmp 0x495d09
sub eax, 0x20
mov esi, dword [eax]
mov ebx, esi
shr ebx, 0x18
and ebx, 0xff
mov edi, dword [ebx*4 + 0x742248]
mov ebx, esi
shr ebx, 0x10
and ebx, 0xff
shr esi, 8
xor edi, dword [ebx*4 + 0x742648]
mov ebx, esi
and ebx, 0xff
xor edi, dword [ebx*4 + 0x742a48]
xor ebx, ebx
mov bl, byte [eax]
add eax, 4
xor edi, dword [ebx*4 + 0x742e48]
mov dword [edx], edi
add edx, 4
mov esi, dword [eax]
mov ebx, esi
shr ebx, 0x18
and ebx, 0xff
mov edi, dword [ebx*4 + 0x742248]
mov ebx, esi
shr ebx, 0x10
and ebx, 0xff
shr esi, 8
xor edi, dword [ebx*4 + 0x742648]
mov ebx, esi
and ebx, 0xff
xor edi, dword [ebx*4 + 0x742a48]
xor ebx, ebx
mov bl, byte [eax]
add eax, 4
xor edi, dword [ebx*4 + 0x742e48]
mov dword [edx], edi
add edx, 4
mov esi, dword [eax]
mov ebx, esi
shr ebx, 0x18
and ebx, 0xff
mov edi, dword [ebx*4 + 0x742248]
mov ebx, esi
shr ebx, 0x10
and ebx, 0xff
shr esi, 8
xor edi, dword [ebx*4 + 0x742648]
mov ebx, esi
and ebx, 0xff
xor edi, dword [ebx*4 + 0x742a48]
xor ebx, ebx
mov bl, byte [eax]
add eax, 4
xor edi, dword [ebx*4 + 0x742e48]
mov dword [edx], edi
add edx, 4
mov esi, dword [eax]
mov ebx, esi
shr ebx, 0x18
and ebx, 0xff
mov edi, dword [ebx*4 + 0x742248]
mov ebx, esi
shr ebx, 0x10
and ebx, 0xff
shr esi, 8
xor edi, dword [ebx*4 + 0x742648]
mov ebx, esi
and ebx, 0xff
xor edi, dword [ebx*4 + 0x742a48]
xor ebx, ebx
mov bl, byte [eax]
add eax, 4
xor edi, dword [ebx*4 + 0x742e48]
mov dword [edx], edi
add edx, 4
inc ecx
mov ebx, dword [esp]
cmp ecx, dword [ebx + 0x200]
jl 0x495bd9
sub eax, 0x20
mov ecx, dword [eax]
add eax, 4
mov dword [edx], ecx
add edx, 4
mov ecx, dword [eax]
add eax, 4
mov dword [edx], ecx
add edx, 4
mov ecx, dword [eax]
add eax, 4
mov dword [edx], ecx
add edx, 4
mov eax, dword [eax]
mov dword [edx], eax
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret