Function at 0x473ad0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x48
push ebx
mov ebx, dword [esp + 0x54]
push ebp
push esi
mov esi, eax
mov eax, dword [esp + 0x60]
mov ebp, dword [eax]
or ecx, 0xffffffff
push edi
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x28], ebp
cmp ebp, ecx
jne 0x473b05
cmp dword [eax + 8], ecx
jne 0x473b05
cmp dword [eax + 0xc], ecx
jne 0x473b05
cmp dword [eax + 4], ecx
je 0x474379
cmp dword [edi + 0x10], 0
je 0x474379
lea eax, [esp + 0x68]
mov edx, edi
call fcn.00473360
cmp eax, 3
je 0x474379
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x68]
call fcn.0043cf60
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x68], eax
jge 0x474379
mov ecx, dword [esp + 0x6c]
cmp ecx, dword [esp + 0x74]
jge 0x474379
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x64]
mov edx, dword [ebx + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x20], eax
sub eax, ebp
mov dword [esp + 0x30], edx
cdq
sub eax, edx
mov edx, dword [esp + 0x30]
dec edx
sar eax, 1
shr edx, 1
mov dword [esp + 0x64], eax
cmp edx, eax
ja 0x473b7f
mov dword [esp + 0x64], edx
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x1c], eax
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x2c]
dec edx
sar eax, 1
shr edx, 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], eax
cmp edx, eax
ja 0x473ba7
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x64]
lea eax, [edx + ebp]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
sub eax, edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x60], eax
lea eax, [ecx + edx]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
sub eax, edx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x68]
cmp ebp, eax
mov dword [ebx + 0x18], ebp
mov dword [ebx + 0x1c], ecx
mov dword [esp + 0x48], ebp
jge 0x473be7
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x6c]
cmp ecx, eax
mov dword [esp + 0x4c], eax
jl 0x473bf7
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x14]
cmp eax, ecx
mov dword [esp + 0x50], ecx
jg 0x473c0b
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x18]
cmp eax, ecx
mov dword [esp + 0x54], ecx
jg 0x473c1f
mov dword [esp + 0x54], eax
movq xmm0, qword [esp + 0x48]
sub esp, 0x10
mov eax, esp
push ebx
movq qword [eax], xmm0
movq xmm0, qword [esp + 0x64]
push esi
push edi
movq qword [eax + 8], xmm0
call fcn.004738e0
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x38], eax
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x60]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [esp + 0x68]
cmp eax, ecx
mov dword [esp + 0x48], eax
jge 0x473c6b
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
mov dword [esp + 0x4c], eax
jl 0x473c7f
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
mov dword [esp + 0x50], eax
jg 0x473c93
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
mov dword [esp + 0x54], eax
jg 0x473ca7
mov dword [esp + 0x54], ecx
movq xmm0, qword [esp + 0x48]
sub esp, 0x10
mov eax, esp
push ebx
movq qword [eax], xmm0
movq xmm0, qword [esp + 0x64]
push esi
push edi
movq qword [eax + 8], xmm0
call fcn.004738e0
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x2c]
mov dword [ebx + 0x18], ebp
mov dword [esp + 0x34], eax
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x68]
cmp ebp, eax
mov dword [esp + 0x48], ebp
jge 0x473ceb
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
cmp ecx, eax
mov dword [esp + 0x4c], eax
jl 0x473cff
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
mov dword [esp + 0x50], eax
jg 0x473d13
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
mov dword [esp + 0x54], eax
jg 0x473d27
mov dword [esp + 0x54], ecx
movq xmm0, qword [esp + 0x48]
sub esp, 0x10
mov eax, esp
push ebx
movq qword [eax], xmm0
movq xmm0, qword [esp + 0x64]
push esi
push edi
movq qword [eax + 8], xmm0
call fcn.004738e0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x38]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x60]
cmp eax, ecx
mov dword [ebx + 0x18], edx
mov dword [esp + 0x48], eax
jge 0x473d6b
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
cmp ecx, eax
mov dword [esp + 0x4c], eax
jl 0x473d7f
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
mov dword [esp + 0x50], eax
jg 0x473d93
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
mov dword [esp + 0x54], eax
jg 0x473da7
mov dword [esp + 0x54], ecx
movq xmm0, qword [esp + 0x48]
sub esp, 0x10
mov eax, esp
push ebx
movq qword [eax], xmm0
movq xmm0, qword [esp + 0x64]
push esi
push edi
movq qword [eax + 8], xmm0
call fcn.004738e0
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x14]
shr eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0xc]
shr eax, 1
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x68]
cmp ecx, eax
mov dword [esp + 0x48], ecx
jge 0x473df1
mov ecx, eax
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x24]
cmp eax, edx
mov dword [esp + 0x4c], edx
jl 0x473e05
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x60]
cmp edx, eax
mov dword [esp + 0x50], eax
jg 0x473e19
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x18]
cmp edx, eax
jle 0x473e27
mov edx, eax
cmp ecx, dword [esp + 0x50]
mov dword [esp + 0x54], edx
jge 0x473f1e
mov eax, dword [esp + 0x4c]
cmp eax, edx
jge 0x473f1e
mov dword [esp + 0x34], eax
sub eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
jmp 0x473e54
mov ecx, dword [esp + 0x48]
mov edx, dword [ebx + 4]
imul edx, dword [esp + 0x24]
add edx, dword [esp + 0x30]
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + edx*4]
mov ebp, eax
shr ebp, 0x18
imul ebp, esi
shr ebp, 8
mov edx, 0xff
sub edx, ebp
mov ebp, eax
shr eax, 8
and eax, 0xff00ff
and ebp, 0xff00ff
imul eax, esi
imul ebp, esi
and eax, 0xff00ff00
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], eax
jmp 0x473ea5
mov ebp, dword [esp + 0x3c]
mov eax, dword [edi + 4]
imul eax, dword [esp + 0x34]
add eax, ecx
mov ecx, dword [edi + 0x10]
lea eax, [ecx + eax*4]
mov dword [esp + 0x44], eax
mov eax, dword [eax]
mov ecx, eax
and eax, 0xff00ff
imul eax, edx
add eax, ebp
shr ecx, 8
mov ebp, ecx
and ebp, 0xffff00ff
and ecx, 0xff00ff
imul ebp, edx
imul ecx, edx
shr eax, 8
xor eax, ebp
and eax, 0xff00ff
xor eax, ecx
add eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
mov ecx, dword [esp + 0x38]
inc ecx
cmp ecx, dword [esp + 0x50]
mov dword [esp + 0x38], ecx
jl 0x473ea1
mov eax, dword [esp + 0x34]
inc dword [esp + 0x24]
inc eax
cmp eax, dword [esp + 0x54]
mov dword [esp + 0x34], eax
jl 0x473e50
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x68]
cmp ecx, eax
mov dword [esp + 0x48], ecx
jge 0x473f34
mov ecx, eax
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x64]
cmp eax, edx
mov dword [esp + 0x4c], edx
jl 0x473f48
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x60]
cmp edx, eax
mov dword [esp + 0x50], eax
jg 0x473f5c
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x74]
cmp edx, eax
jle 0x473f6a
mov edx, eax
cmp ecx, dword [esp + 0x50]
mov dword [esp + 0x54], edx
jge 0x47406e
mov eax, dword [esp + 0x4c]
cmp eax, edx
jge 0x47406e
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
sub eax, dword [esp + 0x64]
lea eax, [eax + edx + 1]
mov dword [esp + 0x24], eax
jmp 0x473fa4
mov ecx, dword [esp + 0x48]
mov edx, dword [ebx + 4]
imul edx, dword [esp + 0x24]
add edx, dword [esp + 0x30]
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + edx*4]
mov ebp, eax
shr ebp, 0x18
imul ebp, esi
shr ebp, 8
mov edx, 0xff
sub edx, ebp
mov ebp, eax
shr eax, 8
and eax, 0xff00ff
and ebp, 0xff00ff
imul eax, esi
imul ebp, esi
and eax, 0xff00ff00
mov dword [esp + 0x38], ecx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], eax
jmp 0x473ff5
mov ebp, dword [esp + 0x44]
mov eax, dword [edi + 4]
imul eax, dword [esp + 0x34]
add eax, ecx
mov ecx, dword [edi + 0x10]
lea eax, [ecx + eax*4]
mov dword [esp + 0x3c], eax
mov eax, dword [eax]
mov ecx, eax
and eax, 0xff00ff
imul eax, edx
add eax, ebp
shr ecx, 8
mov ebp, ecx
and ebp, 0xffff00ff
and ecx, 0xff00ff
imul ebp, edx
imul ecx, edx
shr eax, 8
xor eax, ebp
and eax, 0xff00ff
xor eax, ecx
add eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov dword [ecx], eax
mov ecx, dword [esp + 0x38]
inc ecx
cmp ecx, dword [esp + 0x50]
mov dword [esp + 0x38], ecx
jl 0x473ff1
mov eax, dword [esp + 0x34]
inc dword [esp + 0x24]
inc eax
cmp eax, dword [esp + 0x54]
mov dword [esp + 0x34], eax
jl 0x473fa0
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x68]
cmp ebp, eax
mov dword [esp + 0x48], ebp
jge 0x47407e
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x6c]
cmp edx, eax
jge 0x47408c
mov edx, eax
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x70]
jg 0x47409c
mov eax, ecx
mov ecx, dword [esp + 0x74]
cmp dword [esp + 0x64], ecx
mov dword [esp + 0x50], eax
jg 0x4740ae
mov ecx, dword [esp + 0x64]
cmp dword [esp + 0x48], eax
mov dword [esp + 0x54], ecx
jge 0x47419c
cmp edx, ecx
jge 0x47419c
mov eax, dword [esp + 0x48]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
jmp 0x4740e4
mov eax, dword [esp + 0x48]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x38], eax
jmp 0x4740e4
mov ebp, dword [esp + 0x28]
mov edx, dword [ebx + 4]
imul edx, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x10]
sub edx, ebp
add edx, eax
mov ecx, dword [ecx + edx*4]
mov edx, dword [edi + 4]
imul edx, dword [esp + 0x34]
add edx, eax
mov eax, dword [edi + 0x10]
lea eax, [eax + edx*4]
mov edx, ecx
shr edx, 0x18
imul edx, esi
mov dword [esp + 0x44], eax
mov eax, dword [eax]
shr edx, 8
mov ebp, ecx
mov edi, 0xff
sub edi, edx
mov edx, eax
and eax, 0xff00ff
imul eax, edi
and ebp, 0xff00ff
imul ebp, esi
add eax, ebp
shr edx, 8
mov ebp, edx
shr ecx, 8
and ebp, 0xffff00ff
imul ebp, edi
and ecx, 0xff00ff
and edx, 0xff00ff
imul ecx, esi
imul edx, edi
mov edi, dword [esp + 0x5c]
shr eax, 8
xor eax, ebp
and eax, 0xff00ff
xor eax, edx
and ecx, 0xff00ff00
add eax, ecx
mov ecx, dword [esp + 0x44]
mov dword [ecx], eax
mov eax, dword [esp + 0x38]
inc eax
cmp eax, dword [esp + 0x50]
mov dword [esp + 0x38], eax
jl 0x4740e0
mov eax, dword [esp + 0x34]
inc eax
cmp eax, dword [esp + 0x54]
mov dword [esp + 0x34], eax
jl 0x4740d2
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
cmp eax, ecx
mov edx, eax
mov dword [esp + 0x48], edx
jge 0x4741b4
mov edx, ecx
mov dword [esp + 0x48], edx
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x6c]
cmp ebp, eax
jge 0x4741c2
mov ebp, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x70]
cmp eax, ecx
jg 0x4741d0
mov ecx, eax
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x64], eax
mov dword [esp + 0x50], ecx
jg 0x4741e2
mov eax, dword [esp + 0x64]
cmp edx, ecx
mov dword [esp + 0x54], eax
jge 0x4742cf
cmp ebp, eax
jge 0x4742cf
mov dword [esp + 0x34], ebp
jmp 0x474204
mov edx, dword [esp + 0x48]
mov ecx, edx
mov dword [esp + 0x38], ecx
lea ebx, [ebx]
mov edx, dword [ebx + 4]
imul edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x60]
mov eax, dword [ebx + 0x10]
add edx, ecx
add edx, dword [esp + 0x30]
mov eax, dword [eax + edx*4 + 4]
mov edx, dword [edi + 4]
imul edx, dword [esp + 0x34]
add edx, ecx
mov ecx, dword [edi + 0x10]
lea ecx, [ecx + edx*4]
mov edx, eax
shr edx, 0x18
imul edx, esi
shr edx, 8
mov dword [esp + 0x44], ecx
mov ebp, eax
and ebp, 0xff00ff
mov edi, 0xff
imul ebp, esi
sub edi, edx
mov edx, dword [ecx]
mov ecx, edx
and edx, 0xff00ff
imul edx, edi
add ebp, edx
shr ecx, 8
mov edx, ecx
and edx, 0xffff00ff
shr eax, 8
imul edx, edi
and ecx, 0xff00ff
imul ecx, edi
mov edi, dword [esp + 0x5c]
and eax, 0xff00ff
imul eax, esi
shr ebp, 8
xor ebp, edx
and ebp, 0xff00ff
xor ebp, ecx
mov ecx, dword [esp + 0x38]
and eax, 0xff00ff00
add ebp, eax
mov eax, dword [esp + 0x44]
inc ecx
cmp ecx, dword [esp + 0x50]
mov dword [eax], ebp
mov dword [esp + 0x38], ecx
jl 0x474210
mov eax, dword [esp + 0x34]
inc eax
cmp eax, dword [esp + 0x54]
mov dword [esp + 0x34], eax
jl 0x474200
mov ecx, dword [ebx + 4]
imul ecx, dword [esp + 0x2c]
add ecx, dword [esp + 0x30]
mov edx, dword [ebx + 0x10]
mov eax, dword [edx + ecx*4]
mov ecx, eax
mov edx, eax
and ecx, 0xff00ff
shr edx, 8
imul ecx, esi
and edx, 0xffff00ff
shr eax, 8
imul edx, esi
and eax, 0xff00ff
imul eax, esi
shr ecx, 8
xor ecx, edx
mov edx, dword [esp + 0x68]
and ecx, 0xff00ff
xor ecx, eax
mov eax, dword [esp + 0x14]
cmp eax, edx
mov dword [esp + 0x48], eax
jge 0x474328
mov eax, edx
mov dword [esp + 0x48], eax
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x6c]
cmp esi, ebp
jl 0x474336
mov ebp, esi
mov esi, dword [esp + 0x60]
mov edx, dword [esp + 0x70]
cmp esi, edx
mov dword [esp + 0x4c], ebp
jle 0x474348
mov esi, edx
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x74]
cmp edx, ebx
mov dword [esp + 0x50], esi
jle 0x47435a
mov edx, ebx
cmp eax, esi
mov dword [esp + 0x54], edx
jge 0x474379
cmp ebp, edx
jge 0x474379
cmp ecx, 0x1000000
jb 0x474379
push ecx
push edi
lea edi, [esp + 0x50]
call fcn.004744f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x48
ret 0x1c