Function at 0x4c7740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
mov ebx, dword [ebp + 8]
or eax, 0xffffffff
push esi
xorps xmm0, xmm0
mov dword [ebp - 8], eax
xor ecx, ecx
movlpd qword [ebp - 0x1c], xmm0
mov esi, dword [ebx + 0x154]
or edx, eax
cmp dword [ebx + 0x90], ecx
mov ebx, dword [ebp - 0x18]
push edi
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x60], ecx
jle 0x4c7eab
lea eax, [esi + 0x12c]
mov dword [ebp - 0x58], eax
nop
xor edx, edx
lea eax, [ecx + ecx]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
nop dword [eax + eax]
movzx edx, dx
add edx, eax
mov ecx, dword [esi + edx*4 + 0x2ac]
mov dword [ebp - 0x3c], ecx
test cl, 1
je 0x4c7816
mov esi, dword [esi + edx*4 + 0x36c]
xor eax, eax
and esi, 0xfffff
shld eax, esi, 0x1c
mov dword [ebp - 0x48], eax
mov eax, ecx
shr eax, 0x10
shl esi, 0x1c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], esi
cmp eax, dword [ebp - 0x48]
jb 0x4c7810
ja 0x4c77e7
cmp dword [ebp + 0xc], esi
jb 0x4c7810
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov eax, dword [eax + edx*4 + 0x3cc]
and eax, 0xfffff
shld ecx, eax, 0x1c
shl eax, 0x1c
or eax, 0xfffffff
cmp dword [ebp + 0x10], ecx
jb 0x4c782c
ja 0x4c7810
cmp dword [ebp + 0xc], eax
jbe 0x4c782c
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
inc edx
mov dword [ebp - 0x14], edx
cmp dx, 2
jb 0x4c77a0
jmp 0x4c7e84
mov eax, dword [ebp - 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 1
mov dword [ebp - 0xb0], 0
mov ecx, dword [eax + edx*4 + 0x30c]
mov eax, ecx
shr eax, 0x12
and eax, 1
mov dword [ebp - 0xac], 2
mov dword [ebp - 0x34], eax
mov eax, ecx
shr eax, 0xc
and eax, 3
mov dword [ebp - 0x50], eax
mov eax, ecx
shr eax, 4
and eax, 0x1f
movups xmmword [ebp - 0xa8], xmm0
movups xmmword [ebp - 0x98], xmm0
movups xmmword [ebp - 0x88], xmm0
cmp eax, 0xc
jae 0x4c78a2
mov edx, dword [ebp + eax*4 - 0xb8]
jmp 0x4c78a5
lea edx, [eax - 0xb]
mov edi, dword [ebp + 0xc]
and ecx, 7
mov ebx, dword [ebp + 0x10]
add ecx, 8
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
mov edx, dword [ecx + 0x90]
dec edx
and edx, dword [ebp - 0x20]
and edx, 0x3f
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x4c7aec
mov edx, dword [ebp - 0x3c]
cmp eax, 0xc
jb 0x4c78f2
test edx, 0x100
je 0x4c78f2
mov ecx, 1
jmp 0x4c78f9
xor ecx, ecx
cmp eax, 0xc
jb 0x4c790a
test edx, 0x200
je 0x4c790a
mov dword [ebp - 0x28], 1
jmp 0x4c7916
mov dword [ebp - 0x28], 0
cmp eax, 0xc
jb 0x4c7925
mov dword [ebp - 0x2c], 1
test edx, 0x400
jne 0x4c792c
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x20], 0
test edx, edx
jle 0x4c7aec
mov edx, dword [ebp - 0x54]
mov eax, 0x15
sub eax, edx
test ecx, ecx
mov ecx, edx
je 0x4c7a2f
mov dword [ebp - 0x4c], eax
mov esi, 0x10
sub esi, edx
mov dword [ebp - 4], ecx
mov eax, 0x1e
mov dword [ebp - 0x24], esi
sub eax, edx
mov dword [ebp - 0x30], eax
nop dword [eax]
mov eax, edi
mov edx, ebx
call fcn.004f7860
mov edx, dword [ebp - 4]
movq xmm1, qword [ebp - 0x1c]
mov dword [ebp - 0x64], eax
lea ecx, [edx + esi]
movd xmm0, ecx
mov ecx, eax
psrlq xmm1, xmm0
movd esi, xmm1
xor esi, ecx
and esi, 1
cmp dword [ebp - 0x28], 0
je 0x4c79bb
mov eax, dword [ebp - 0x4c]
movq xmm1, qword [ebp - 0x1c]
add eax, edx
movd xmm0, eax
psrlq xmm1, xmm0
movd eax, xmm1
and eax, 1
xor esi, eax
cmp dword [ebp - 0x2c], 0
je 0x4c79dc
mov eax, dword [ebp - 0x30]
movq xmm1, qword [ebp - 0x1c]
add eax, edx
movd xmm0, eax
psrlq xmm1, xmm0
movd eax, xmm1
and eax, 1
xor esi, eax
and ecx, 1
cmp ecx, esi
je 0x4c7a07
mov eax, edx
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
xor edi, ecx
xor ebx, edx
mov dword [ebp - 0x1c], edi
mov edx, dword [ebp - 4]
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x20]
inc edx
mov ecx, eax
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0xc]
inc eax
shl esi, cl
xor dword [ebp - 8], esi
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
cmp eax, edx
jl 0x4c7970
jmp 0x4c7ae9
mov dword [ebp - 0x24], eax
mov eax, 0x1e
sub eax, edx
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], edx
mov dword [ebp - 0x4c], eax
mov eax, edi
mov edx, ebx
call fcn.004f7860
mov edx, dword [ebp - 4]
mov ecx, eax
mov esi, eax
mov dword [ebp - 0x30], ecx
and esi, 1
cmp dword [ebp - 0x28], 0
je 0x4c7a80
mov ecx, dword [ebp - 0x24]
movq xmm1, qword [ebp - 0x1c]
add ecx, edx
movd xmm0, ecx
mov ecx, dword [ebp - 0x30]
psrlq xmm1, xmm0
movd eax, xmm1
and eax, 1
xor esi, eax
cmp dword [ebp - 0x2c], 0
je 0x4c7aa1
mov eax, dword [ebp - 0x4c]
movq xmm1, qword [ebp - 0x1c]
add eax, edx
movd xmm0, eax
psrlq xmm1, xmm0
movd eax, xmm1
and eax, 1
xor esi, eax
and ecx, 1
cmp ecx, esi
je 0x4c7ac9
mov eax, edx
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
xor edi, ecx
xor ebx, edx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x20]
mov ecx, eax
mov edx, dword [ebp - 0xc]
inc eax
shl esi, cl
mov ecx, dword [ebp - 4]
xor dword [ebp - 8], esi
inc ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], ecx
cmp eax, edx
jl 0x4c7a46
mov esi, dword [ebp - 0x44]
test byte [ebp - 0x3c], 2
je 0x4c7b14
cmp ebx, 1
jb 0x4c7b14
ja 0x4c7afd
test edi, edi
jb 0x4c7b14
mov ecx, dword [ebp - 0x58]
xor eax, eax
mov ecx, dword [ecx - 0x30]
and ecx, 0xff000000
add ecx, eax
adc eax, 0xffffffff
add edi, ecx
adc ebx, eax
sub edi, esi
mov dword [ebp - 0xc], edi
sbb ebx, dword [ebp - 0x48]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
test edx, edx
je 0x4c7ba3
mov eax, dword [ebp - 0x50]
xor esi, esi
mov ecx, dword [ebp - 0x34]
add eax, edx
add ecx, eax
xor edi, edi
mov eax, 0x40
mov edx, ebx
sub eax, dword [ebp - 0x54]
sub eax, ecx
bts esi, eax
cmp eax, 0x20
cmovae edi, esi
xor esi, edi
cmp eax, 0x40
mov eax, dword [ebp - 0xc]
cmovae edi, esi
add esi, 0xffffffff
adc edi, 0xffffffff
add ecx, dword [ebp - 0x54]
call fcn.004f7860
and edx, edi
and eax, esi
mov edi, dword [ebp - 0x54]
mov ecx, edi
call fcn.004f7b60
xor ecx, ecx
xor esi, esi
bts ecx, edi
cmp edi, 0x20
cmovae esi, ecx
xor ecx, esi
cmp edi, 0x40
cmovae esi, ecx
add ecx, 0xffffffff
adc esi, 0xffffffff
and ecx, dword [ebp - 0xc]
or eax, ecx
and ebx, esi
or ebx, edx
mov dword [ebp - 0xc], eax
mov edi, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
test al, 1
je 0x4c7bce
cmp word [ebp - 0x14], 1
jne 0x4c7bce
shr eax, 1
mov ecx, 0x10000000
and eax, 0xfffff
mul ecx
add edi, eax
mov dword [ebp - 0xc], edi
adc ebx, edx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 8]
xor edx, edx
mov esi, dword [ebp - 0x10]
mov eax, ecx
shl eax, 4
add esi, 0x5ac
mov dword [ebp - 0x3c], edx
add esi, eax
nop word [eax + eax]
lea eax, [edx + ecx*4]
mov dword [ebp - 0x30], eax
mov eax, dword [esi - 0x180]
test al, 1
je 0x4c7c64
xor ecx, ecx
and eax, 0xfffffffe
shld ecx, eax, 8
xor edx, edx
mov dword [ebp - 0x20], ecx
not edx
mov ecx, dword [esi]
shr ecx, 1
not ecx
shl eax, 8
shld edx, ecx, 9
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x28], edx
movzx edx, word [esi + 0x482]
shl ecx, 9
and edx, 0xf
mov dword [ebp - 0x44], ecx
add edx, 5
and ecx, eax
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x28]
and eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], edx
and eax, edi
and dword [ebp - 0x14], ebx
mov edx, dword [ebp - 0x3c]
cmp eax, ecx
jne 0x4c7c61
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x34]
je 0x4c7c75
mov ecx, dword [ebp - 8]
inc edx
add esi, 4
mov dword [ebp - 0x3c], edx
cmp edx, 4
jl 0x4c7bf0
jmp 0x4c7e84
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x10]
mov esi, dword [edx + eax*8 + 0x1f0]
mov ecx, dword [edx + eax*8 + 0x1ec]
mov eax, esi
mov edx, dword [ebp - 8]
and eax, 1
mov dword [ebp - 4], esi
and esi, 0xfffffffe
or dword [ebp - 4], ecx
mov dword [ebp - 0x50], eax
xor eax, eax
mov edx, dword [edi + edx*4 + 0x18c]
mov edi, dword [ebp - 0xc]
shld eax, esi, 8
mov dword [ebp - 0x2c], edx
and edx, 1
shl esi, 8
and dword [ebp - 4], 1
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
je 0x4c7d51
xorps xmm0, xmm0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x40], xmm0
test cl, 1
je 0x4c7cf7
and ecx, 0xfffffffe
xor eax, eax
shld eax, ecx, 8
shl ecx, 8
and ecx, edi
invalid