Function at 0x511830
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x58a048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
push esi
mov esi, dword [ebx + 0x14]
mov ecx, esi
push edi
mov edi, dword [ebx + 0x18]
or ecx, edi
mov dword [ebp - 0x78], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x64], edi
je 0x512b5e
mov ecx, dword [ebp - 0x78]
lea edx, [ecx + 0x10]
mov dword [ebp - 0x74], edx
lea edx, [ecx + 0x20]
mov dword [ebp - 0x6c], edx
lea edx, [ecx + 0x30]
mov dword [ebp - 0x70], edx
mov edx, dword [ebp - 0x50]
test edi, edi
jne 0x5118ab
cmp esi, 0x100
jae 0x5118ab
mov ecx, edx
jmp 0x51239e
movups xmm3, xmmword [ecx]
mov ecx, dword [ebp - 0x74]
pshufd xmm4, xmm3, 0
movaps xmmword [ebp - 0x170], xmm4
movups xmm2, xmmword [ecx]
mov ecx, dword [ebp - 0x6c]
pshufd xmm4, xmm2, 0xaa
movaps xmmword [ebp - 0x2b0], xmm4
movups xmm1, xmmword [ecx]
mov ecx, dword [ebp - 0x70]
pshufd xmm7, xmm2, 0x55
pshufd xmm5, xmm1, 0xaa
pshufd xmm4, xmm1, 0xff
movups xmm0, xmmword [ecx]
lea ecx, [edx + 0xc0]
movaps xmmword [ebp - 0x260], xmm4
mov dword [ebp - 0x54], ecx
lea ecx, [eax + 0xc0]
mov dword [ebp - 0x58], ecx
lea ecx, [edx + 0x80]
mov dword [ebp - 0x60], ecx
lea ecx, [eax + 0x80]
pshufd xmm6, xmm0, 0
movaps xmmword [ebp - 0x240], xmm5
pshufd xmm5, xmm0, 0xff
pshufd xmm4, xmm3, 0xaa
mov dword [ebp - 0x68], ecx
lea ecx, [edx + 0x40]
pshufd xmm0, xmm0, 0xaa
movaps xmmword [ebp - 0x270], xmm4
pshufd xmm4, xmm2, 0xff
movaps xmmword [ebp - 0x250], xmm6
movaps xmmword [ebp - 0x180], xmm0
mov dword [ebp - 0x5c], ecx
lea ecx, [eax + 0x40]
pshufd xmm6, xmm3, 0x55
pshufd xmm2, xmm2, 0
pshufd xmm1, xmm1, 0x55
pshufd xmm0, xmm3, 0xff
movaps xmmword [ebp - 0x280], xmm4
movaps xmm4, xmmword [ebp - 0x170]
movaps xmmword [ebp - 0x1e0], xmm7
movaps xmmword [ebp - 0x220], xmm5
movaps xmmword [ebp - 0x1b0], xmm6
movaps xmmword [ebp - 0x290], xmm2
movaps xmmword [ebp - 0x2a0], xmm1
movaps xmmword [ebp - 0xb0], xmm0
mov dword [ebp - 0x4c], ecx
nop
mov edi, dword [ebp - 0x6c]
xor ecx, ecx
mov edx, dword [ebp - 0x78]
movaps xmm3, xmm6
movaps xmm2, xmmword [0x557c60]
movaps xmm6, xmmword [ebp - 0x2b0]
or ecx, dword [edi]
mov edx, dword [edx + 0x34]
movaps xmmword [ebp - 0x1d0], xmm5
movaps xmm5, xmmword [ebp - 0x280]
movd xmm1, ecx
add ecx, 4
movd xmm0, edx
punpckldq xmm1, xmm0
adc edx, 0
movaps xmm0, xmmword [0x557c70]
punpcklqdq xmm1, xmm1
paddq xmm2, xmm1
mov dword [edi], ecx
mov ecx, dword [ebp - 0x78]
paddq xmm0, xmm1
movaps xmm1, xmm2
movaps xmmword [ebp - 0x1a0], xmm3
punpckhdq xmm2, xmm0
punpckldq xmm1, xmm0
movaps xmm0, xmm1
mov dword [ecx + 0x34], edx
punpckhdq xmm1, xmm2
mov ecx, 0xa
punpckldq xmm0, xmm2
movaps xmm2, xmmword [ebp - 0x270]
movaps xmmword [ebp - 0x150], xmm2
movaps xmm2, xmmword [ebp - 0xb0]
movaps xmmword [ebp - 0x160], xmm2
movaps xmm2, xmmword [ebp - 0x180]
movaps xmmword [ebp - 0x110], xmm2
movaps xmm2, xmmword [ebp - 0x260]
movaps xmmword [ebp - 0x1c0], xmm2
movaps xmm2, xmmword [ebp - 0x2a0]
movaps xmmword [ebp - 0x100], xmm2
movaps xmm2, xmmword [ebp - 0x240]
movaps xmmword [ebp - 0xd0], xmm1
movaps xmmword [ebp - 0xe0], xmm2
movaps xmm2, xmm4
movaps xmm4, xmmword [ebp - 0x250]
movaps xmmword [ebp - 0xa0], xmm1
movaps xmm1, xmmword [ebp - 0x290]
movaps xmmword [ebp - 0x210], xmm0
movaps xmmword [ebp - 0x140], xmm5
movaps xmmword [ebp - 0x190], xmm2
movaps xmmword [ebp - 0x130], xmm1
movaps xmmword [ebp - 0xc0], xmm0
jmp 0x511ad5
movaps xmm6, xmmword [ebp - 0x120]
movaps xmm7, xmmword [ebp - 0x90]
movaps xmm1, xmmword [ebp - 0x130]
movaps xmm0, xmm1
paddd xmm0, xmm2
movaps xmm1, xmm0
psrld xmm0, 0x19
pslld xmm1, 7
pxor xmm1, xmm4
pxor xmm1, xmm0
movaps xmm0, xmm7
paddd xmm0, xmm3
movaps xmmword [ebp - 0xf0], xmm1
movaps xmm4, xmm0
psrld xmm0, 0x19
pslld xmm4, 7
pxor xmm4, xmmword [ebp - 0xa0]
pxor xmm4, xmm0
movaps xmm0, xmmword [ebp - 0xf0]
paddd xmm0, xmm2
movaps xmmword [ebp - 0xa0], xmm4
movaps xmm2, xmm0
psrld xmm0, 0x17
pslld xmm2, 9
pxor xmm2, xmmword [ebp - 0xc0]
pxor xmm2, xmm0
movaps xmm0, xmm4
paddd xmm0, xmm3
movaps xmmword [ebp - 0x1f0], xmm2
movaps xmm3, xmm0
psrld xmm0, 0x17
pslld xmm3, 9
pxor xmm3, xmmword [ebp - 0x100]
pxor xmm3, xmm0
movaps xmm0, xmm2
paddd xmm0, xmmword [ebp - 0xf0]
movaps xmm1, xmm0
movaps xmmword [ebp - 0x200], xmm3
psrld xmm0, 0x13
pslld xmm1, 0xd
pxor xmm1, xmmword [ebp - 0x130]
pxor xmm1, xmm0
movaps xmm0, xmm4
paddd xmm0, xmm3
movaps xmmword [ebp - 0xc0], xmm1
movaps xmm4, xmm0
psrld xmm0, 0x13
pslld xmm4, 0xd
pxor xmm4, xmm7
pxor xmm4, xmm0
movaps xmm0, xmm2
paddd xmm0, xmm1
movaps xmmword [ebp - 0x130], xmm4
movaps xmm7, xmm0
psrld xmm0, 0xe
pslld xmm7, 0x12
pxor xmm7, xmmword [ebp - 0x190]
pxor xmm7, xmm0
movaps xmm0, xmm3
paddd xmm0, xmm4
movaps xmm1, xmm0
psrld xmm0, 0xe
pslld xmm1, 0x12
pxor xmm1, xmmword [ebp - 0x1a0]
pxor xmm1, xmm0
movaps xmm0, xmm6
paddd xmm0, xmmword [ebp - 0x150]
movaps xmmword [ebp - 0x100], xmm1
movaps xmm1, xmm0
psrld xmm0, 0x19
pslld xmm1, 7
pxor xmm1, xmmword [ebp - 0x110]
pxor xmm1, xmm0
movaps xmm0, xmm5
paddd xmm0, xmmword [ebp - 0x160]
movaps xmm5, xmm0
movaps xmmword [ebp - 0x230], xmm1
pslld xmm5, 7
psrld xmm0, 0x19
pxor xmm5, xmmword [ebp - 0x1d0]
pxor xmm5, xmm0
movaps xmm0, xmm1
paddd xmm0, xmmword [ebp - 0x150]
movaps xmm2, xmm0
psrld xmm0, 0x17
pslld xmm2, 9
pxor xmm2, xmmword [ebp - 0xe0]
pxor xmm2, xmm0
movaps xmm0, xmm5
paddd xmm0, xmmword [ebp - 0x160]
movaps xmm3, xmm0
psrld xmm0, 0x17
pslld xmm3, 9
pxor xmm3, xmmword [ebp - 0x1c0]
pxor xmm3, xmm0
movaps xmm0, xmm1
paddd xmm0, xmm2
movaps xmm1, xmm0
psrld xmm0, 0x13
pslld xmm1, 0xd
pxor xmm1, xmm6
pxor xmm1, xmm0
movaps xmm0, xmm5
paddd xmm0, xmm3
movaps xmm6, xmm0
psrld xmm0, 0x13
pslld xmm6, 0xd
pxor xmm6, xmmword [ebp - 0x140]
pxor xmm6, xmm0
movaps xmm0, xmm2
paddd xmm0, xmm1
movaps xmmword [ebp - 0x110], xmm6
movaps xmm4, xmm0
psrld xmm0, 0xe
pslld xmm4, 0x12
pxor xmm4, xmmword [ebp - 0x150]
pxor xmm4, xmm0
movaps xmm0, xmm5
paddd xmm0, xmm7
movaps xmmword [ebp - 0x140], xmm4
movaps xmm4, xmm0
psrld xmm0, 0x19
pslld xmm4, 7
movaps xmmword [ebp - 0x90], xmm4
movaps xmm6, xmmword [ebp - 0x90]
pxor xmm6, xmmword [ebp - 0x130]
movaps xmmword [ebp - 0x90], xmm6
movaps xmm4, xmmword [ebp - 0x90]
pxor xmm4, xmm0
movaps xmm0, xmm3
paddd xmm0, xmmword [ebp - 0x110]
movaps xmmword [ebp - 0x90], xmm4
movaps xmm4, xmm0
psrld xmm0, 0xe
pslld xmm4, 0x12
pxor xmm4, xmmword [ebp - 0x160]
pxor xmm4, xmm0
movaps xmm0, xmmword [ebp - 0xf0]
paddd xmm0, xmmword [ebp - 0x100]
movaps xmm6, xmm0
psrld xmm0, 0x19
pslld xmm6, 7
pxor xmm6, xmm1
movaps xmmword [ebp - 0x120], xmm6
movaps xmm1, xmmword [ebp - 0x120]
pxor xmm1, xmm0
movaps xmm0, xmmword [ebp - 0x90]
paddd xmm0, xmm7
movaps xmmword [ebp - 0x120], xmm1
movaps xmm6, xmm0
psrld xmm0, 0x17
pslld xmm6, 9
pxor xmm6, xmm2
movaps xmmword [ebp - 0xe0], xmm6
movaps xmm2, xmmword [ebp - 0xe0]
pxor xmm2, xmm0
movaps xmm0, xmm1
paddd xmm0, xmmword [ebp - 0x100]
movaps xmmword [ebp - 0xe0], xmm2
movaps xmm2, xmm0
pslld xmm2, 9
psrld xmm0, 0x17
pxor xmm2, xmm3
pxor xmm2, xmm0
movaps xmmword [ebp - 0x1c0], xmm2
movaps xmm0, xmmword [ebp - 0xe0]
paddd xmm0, xmmword [ebp - 0x90]
movaps xmm6, xmm0
movaps xmm1, xmmword [ebp - 0x140]
psrld xmm0, 0x13
pslld xmm6, 0xd
pxor xmm6, xmm5
pxor xmm6, xmm0
movaps xmm0, xmm2
paddd xmm0, xmmword [ebp - 0x120]
movaps xmm5, xmm0
movaps xmmword [ebp - 0x1d0], xmm6
psrld xmm0, 0x13
pslld xmm5, 0xd
pxor xmm5, xmmword [ebp - 0xf0]
pxor xmm5, xmm0
movaps xmm0, xmm6
paddd xmm0, xmmword [ebp - 0xe0]
movaps xmm3, xmm0
movaps xmmword [ebp - 0xf0], xmm5
psrld xmm0, 0xe
pslld xmm3, 0x12
pxor xmm3, xmm7
pxor xmm3, xmm0
movaps xmm0, xmm5
paddd xmm0, xmm2
movaps xmmword [ebp - 0x190], xmm3
movaps xmm2, xmm0
psrld xmm0, 0xe
pslld xmm2, 0x12
pxor xmm2, xmmword [ebp - 0x100]
pxor xmm2, xmm0
movaps xmm0, xmmword [ebp - 0xa0]
paddd xmm0, xmm1
movaps xmmword [ebp - 0x1a0], xmm2
movaps xmm5, xmm0
psrld xmm0, 0x19
pslld xmm5, 7
pxor xmm5, xmmword [ebp - 0x110]
pxor xmm5, xmm0
movaps xmm0, xmmword [ebp - 0x230]
paddd xmm0, xmm4
movaps xmmword [ebp - 0x140], xmm5
movaps xmm7, xmm0
psrld xmm0, 0x19
pslld xmm7, 7
pxor xmm7, xmmword [ebp - 0xc0]
pxor xmm7, xmm0
movaps xmm0, xmm5
paddd xmm0, xmm1
movaps xmmword [ebp - 0x130], xmm7
movaps xmm6, xmm0
psrld xmm0, 0x17
pslld xmm6, 9
pxor xmm6, xmmword [ebp - 0x1f0]
pxor xmm6, xmm0
movaps xmm0, xmm7
paddd xmm0, xmm4
movaps xmmword [ebp - 0xc0], xmm6
movaps xmm6, xmm0
psrld xmm0, 0x17
pslld xmm6, 9
pxor xmm6, xmmword [ebp - 0x200]
pxor xmm6, xmm0
movaps xmm0, xmmword [ebp - 0xc0]
paddd xmm0, xmm5
movaps xmmword [ebp - 0x100], xmm6
movaps xmm2, xmm0
psrld xmm0, 0x13
pslld xmm2, 0xd
pxor xmm2, xmmword [ebp - 0xa0]
movaps xmmword [ebp - 0xa0], xmm2
movaps xmm3, xmmword [ebp - 0xa0]
pxor xmm3, xmm0
movaps xmm0, xmm6
movaps xmmword [ebp - 0xa0], xmm3
paddd xmm0, xmm7
movaps xmm3, xmm0
psrld xmm0, 0x13
pslld xmm3, 0xd
pxor xmm3, xmmword [ebp - 0x230]
pxor xmm3, xmm0
movaps xmm0, xmmword [ebp - 0xa0]
paddd xmm0, xmmword [ebp - 0xc0]
movaps xmmword [ebp - 0x110], xmm3
movaps xmm2, xmm0
pslld xmm2, 0x12
psrld xmm0, 0xe
pxor xmm2, xmm1
pxor xmm2, xmm0
movaps xmm0, xmm3
movaps xmm3, xmmword [ebp - 0x1a0]
paddd xmm0, xmm6
movaps xmmword [ebp - 0x150], xmm2
movaps xmm1, xmm0
movaps xmm2, xmmword [ebp - 0x190]
pslld xmm1, 0x12
psrld xmm0, 0xe
pxor xmm1, xmm4
movaps xmm4, xmmword [ebp - 0xf0]
pxor xmm1, xmm0
movaps xmmword [ebp - 0x160], xmm1
sub ecx, 1
jne 0x511ac0
movaps xmm6, xmmword [ebp - 0x170]
paddd xmm6, xmmword [ebp - 0x190]
movaps xmm5, xmmword [ebp - 0x240]
movaps xmm3, xmm6
paddd xmm5, xmmword [ebp - 0xe0]
mov ecx, dword [ebp - 0x50]
movaps xmm2, xmm5
movaps xmm1, xmmword [ebp - 0x1e0]
paddd xmm1, xmmword [ebp - 0x90]
movaps xmm0, xmmword [ebp - 0x220]
paddd xmm0, xmmword [ebp - 0x1d0]
mov edx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x60]
punpckhdq xmm5, xmm0
mov esi, dword [ebp - 0x68]
punpckldq xmm2, xmm0
movups xmm0, xmmword [ecx]
add dword [ebp - 0x68], 0x10
punpckhdq xmm6, xmm1
punpckldq xmm3, xmm1
movaps xmm4, xmm6
movaps xmm1, xmm3
punpcklqdq xmm6, xmm5
punpcklqdq xmm3, xmm2
pxor xmm3, xmm0
punpckhqdq xmm1, xmm2
movups xmmword [eax], xmm3
movups xmm0, xmmword [edx]
mov edx, dword [ebp - 0x4c]
punpckhqdq xmm4, xmm5
pxor xmm0, xmm1
movaps xmm5, xmmword [ebp - 0x2b0]
paddd xmm5, xmmword [ebp - 0x120]
movups xmmword [edx], xmm0
movups xmm0, xmmword [edi]
add edi, 0x10
movaps xmm1, xmmword [ebp - 0x1b0]
movaps xmm2, xmm5
paddd xmm1, xmmword [ebp - 0x1a0]
pxor xmm6, xmm0
movups xmmword [esi], xmm6
mov esi, dword [ebp - 0x54]
movaps xmm6, xmmword [ebp - 0x250]
paddd xmm6, xmmword [ebp - 0xf0]
add dword [ebp - 0x54], 0x10
movaps xmm3, xmm6
movups xmm0, xmmword [esi]
mov esi, dword [ebp - 0x58]
punpckldq xmm3, xmm1
pxor xmm0, xmm4
punpckhdq xmm6, xmm1
movaps xmm1, xmm3
mov dword [ebp - 0x60], edi
movups xmmword [esi], xmm0
mov esi, dword [ebp - 0x5c]
movaps xmm0, xmmword [ebp - 0x260]
movaps xmm4, xmm6
paddd xmm0, xmmword [ebp - 0x1c0]
add esi, 0x10
add dword [ebp - 0x58], 0x10
punpckldq xmm2, xmm0
punpckhdq xmm5, xmm0
movups xmm0, xmmword [ecx + 0x10]
mov dword [ebp - 0x5c], esi
punpcklqdq xmm3, xmm2
pxor xmm3, xmm0
punpckhqdq xmm1, xmm2
movups xmmword [eax + 0x10], xmm3
movups xmm0, xmmword [esi]
mov esi, dword [ebp - 0x54]
punpcklqdq xmm6, xmm5
pxor xmm0, xmm1
punpckhqdq xmm4, xmm5
movups xmmword [edx + 0x10], xmm0
movups xmm0, xmmword [edi]
mov edi, dword [ebp - 0x68]
pxor xmm6, xmm0
movups xmmword [edi], xmm6
movups xmm0, xmmword [esi]
mov esi, dword [ebp - 0x58]
pxor xmm0, xmm4
movaps xmm6, xmmword [ebp - 0x210]
add eax, 0x20
paddd xmm6, xmmword [ebp - 0xc0]
movaps xmm5, xmmword [ebp - 0x270]
movaps xmm3, xmm6
paddd xmm5, xmmword [ebp - 0x150]
movaps xmm1, xmmword [ebp - 0xd0]
movaps xmm2, xmm5
paddd xmm1, xmmword [ebp - 0xa0]
add dword [ebp - 0x5c], 0x10
movups xmmword [esi], xmm0
mov esi, dword [ebp - 0x5c]
movaps xmm0, xmmword [ebp - 0x280]
paddd xmm0, xmmword [ebp - 0x140]
add dword [ebp - 0x60], 0x10
add dword [ebp - 0x54], 0x10
punpckhdq xmm5, xmm0
add dword [ebp - 0x58], 0x10
punpckldq xmm2, xmm0
movups xmm0, xmmword [ecx + 0x20]
mov dword [ebp - 0x80], eax
punpckldq xmm3, xmm1
punpckhdq xmm6, xmm1
movaps xmm1, xmm3
punpcklqdq xmm3, xmm2
movaps xmm4, xmm6
pxor xmm3, xmm0
punpckhqdq xmm1, xmm2
movups xmmword [eax], xmm3
mov eax, dword [ebp - 0x60]
movups xmm0, xmmword [esi]
mov esi, dword [ebp - 0x54]
punpcklqdq xmm6, xmm5
pxor xmm0, xmm1
add dword [ebp - 0x54], 0x10
movaps xmm1, xmmword [ebp - 0x2a0]
paddd xmm1, xmmword [ebp - 0x100]
movups xmmword [edx + 0x20], xmm0
movups xmm0, xmmword [eax]
add eax, 0x10
punpckhqdq xmm4, xmm5
movaps xmm5, xmmword [ebp - 0x180]
pxor xmm6, xmm0
paddd xmm5, xmmword [ebp - 0x110]
movups xmmword [edi + 0x10], xmm6
mov dword [ebp - 0x60], eax
add edi, 0x20
movups xmm0, xmmword [esi]
mov esi, dword [ebp - 0x58]
movaps xmm6, xmmword [ebp - 0x290]
movaps xmm2, xmm5
mov eax, dword [ebp - 0x80]
pxor xmm0, xmm4
paddd xmm6, xmm7
mov dword [ebp - 0x68], edi
mov edi, dword [ebp - 0x58]
movaps xmm3, xmm6
movups xmmword [esi], xmm0
mov esi, dword [ebp - 0x5c]
movaps xmm0, xmmword [ebp - 0xb0]
add esi, 0x10
paddd xmm0, xmmword [ebp - 0x160]
add edi, 0x10
punpckldq xmm2, xmm0
punpckhdq xmm5, xmm0
movups xmm0, xmmword [ecx + 0x30]
mov dword [ebp - 0x5c], esi
punpckldq xmm3, xmm1
punpckhdq xmm6, xmm1
movaps xmm1, xmm3
punpcklqdq xmm3, xmm2
movaps xmm4, xmm6
pxor xmm3, xmm0
punpckhqdq xmm1, xmm2
movups xmmword [eax + 0x10], xmm3
mov dword [ebp - 0x58], edi
movups xmm0, xmmword [esi]
punpckhqdq xmm4, xmm5
pxor xmm0, xmm1
punpcklqdq xmm6, xmm5
movups xmmword [edx + 0x30], xmm0
mov esi, dword [ebp - 0x60]
movaps xmm7, xmmword [ebp - 0x1e0]
movaps xmm5, xmmword [ebp - 0x220]
movups xmm0, xmmword [esi]
mov esi, dword [ebp - 0x68]
pxor xmm6, xmm0
movups xmmword [esi], xmm6
mov esi, dword [ebp - 0x54]
movaps xmm6, xmmword [ebp - 0x1b0]
movups xmm0, xmmword [esi]
mov esi, dword [ebp - 0x7c]
add esi, 0xffffff00
pxor xmm0, xmm4
mov dword [ebp - 0x7c], esi
movaps xmm4, xmmword [ebp - 0x170]
movups xmmword [edi], xmm0
mov edi, dword [ebp - 0x64]
adc edi, 0xffffffff
add dword [ebp - 0x68], 0xd0
add dword [ebp - 0x58], 0xd0
add eax, 0xe0
add dword [ebp - 0x5c], 0xd0
add edx, 0x100
add dword [ebp - 0x60], 0xd0
add ecx, 0x100
add dword [ebp - 0x54], 0xd0
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], ecx
test edi, edi
ja 0x5119a0
jb 0x51238c
movaps xmm4, xmmword [ebp - 0x170]
movaps xmm7, xmmword [ebp - 0x1e0]
movaps xmm5, xmmword [ebp - 0x220]
movaps xmm6, xmmword [ebp - 0x1b0]
cmp esi, 0x100
jae 0x5119a0
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x74], edx
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x6c], edx
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x70], edx
test edi, edi
jne 0x5123af
cmp esi, 0x40
jae 0x5123af
mov edx, dword [ebp - 0x78]
jmp 0x512785
mov edx, dword [ebp - 0x78]
lea esi, [edx + 0x30]
mov dword [ebp - 0x70], esi
lea esi, [edx + 0x20]
mov dword [ebp - 0x6c], esi
nop
movups xmm3, xmmword [edx]
mov edx, dword [ebp - 0x74]
movaps xmmword [ebp - 0x210], xmm3
movups xmm5, xmmword [edx]
mov edx, dword [ebp - 0x6c]
movaps xmmword [ebp - 0x200], xmm5
movaps xmmword [ebp - 0xb0], xmm5
movups xmm4, xmmword [edx]
mov edx, dword [ebp - 0x70]
movaps xmmword [ebp - 0x1f0], xmm4
movups xmm7, xmmword [edx]
mov edx, 5
movaps xmmword [ebp - 0x180], xmm7
nop dword [eax]
movaps xmm0, xmm5
paddd xmm0, xmm3
movaps xmm1, xmm0
psrld xmm0, 0x19
pslld xmm1, 7
pxor xmm1, xmm7
pxor xmm1, xmm0
movaps xmm0, xmm1
pshufd xmm7, xmm1, 0x93
paddd xmm0, xmm3
movaps xmm5, xmm0
psrld xmm0, 0x17
pslld xmm5, 9
pxor xmm5, xmm4
pxor xmm5, xmm0
paddd xmm1, xmm5
movaps xmm0, xmm5
movaps xmm2, xmm1
psrld xmm1, 0x13
pslld xmm2, 0xd
pxor xmm2, xmmword [ebp - 0xb0]
pxor xmm2, xmm1
movaps xmm1, xmm7
paddd xmm0, xmm2
movaps xmm6, xmm0
psrld xmm0, 0xe
pslld xmm6, 0x12
pxor xmm6, xmm3
pxor xmm6, xmm0
pshufd xmm0, xmm2, 0x39
paddd xmm1, xmm6
movaps xmm3, xmm1
psrld xmm1, 0x19
pslld xmm3, 7
pxor xmm3, xmm0
pxor xmm3, xmm1
movaps xmm1, xmm3
pshufd xmm0, xmm3, 0x93
paddd xmm1, xmm6
movaps xmmword [ebp - 0xd0], xmm0
movaps xmm4, xmm1
pshufd xmm0, xmm5, 0x4e
pslld xmm4, 9
psrld xmm1, 0x17
pxor xmm4, xmm0
pxor xmm4, xmm1
movaps xmm1, xmmword [ebp - 0xd0]
paddd xmm3, xmm4
movaps xmm2, xmm3
psrld xmm3, 0x13
pslld xmm2, 0xd
pxor xmm2, xmm7
pxor xmm2, xmm3
movaps xmm0, xmm2
pshufd xmm3, xmm2, 0x39
paddd xmm0, xmm4
pshufd xmm4, xmm4, 0x4e
movaps xmm5, xmm0
psrld xmm0, 0xe
pslld xmm5, 0x12
pxor xmm5, xmm6
pxor xmm5, xmm0
paddd xmm1, xmm5
movaps xmm0, xmm1
psrld xmm1, 0x19
pslld xmm0, 7
pxor xmm3, xmm0
pxor xmm3, xmm1
movaps xmm1, xmm3
pshufd xmm7, xmm3, 0x93
paddd xmm1, xmm5
movaps xmm0, xmm1
psrld xmm1, 0x17
pslld xmm0, 9
pxor xmm4, xmm0
pxor xmm4, xmm1
paddd xmm3, xmm4
movaps xmm2, xmm3
psrld xmm3, 0x13
pslld xmm2, 0xd
pxor xmm2, xmmword [ebp - 0xd0]
pxor xmm2, xmm3
movaps xmm0, xmm4
paddd xmm0, xmm2
movaps xmm1, xmm7
movaps xmm6, xmm0
psrld xmm0, 0xe
pslld xmm6, 0x12
pxor xmm6, xmm5
pxor xmm6, xmm0
pshufd xmm0, xmm2, 0x39
paddd xmm1, xmm6
movaps xmm3, xmm1
psrld xmm1, 0x19
pslld xmm3, 7
pxor xmm3, xmm0
pshufd xmm0, xmm4, 0x4e
pxor xmm3, xmm1
pshufd xmm5, xmm3, 0x93
movaps xmm1, xmm3
movaps xmmword [ebp - 0xb0], xmm5
paddd xmm1, xmm6
movaps xmm2, xmm1
psrld xmm1, 0x17
pslld xmm2, 9
pxor xmm2, xmm0
pxor xmm2, xmm1
pshufd xmm4, xmm2, 0x4e
paddd xmm3, xmm2
movaps xmm0, xmm3
psrld xmm3, 0x13
pslld xmm0, 0xd
pxor xmm0, xmm7
pxor xmm0, xmm3
pshufd xmm7, xmm0, 0x39
paddd xmm2, xmm0
movaps xmm3, xmm2
psrld xmm2, 0xe
pslld xmm3, 0x12
pxor xmm3, xmm6
pxor xmm3, xmm2
sub edx, 1
jne 0x512400
movaps xmm0, xmmword [ebp - 0x210]
movaps xmm1, xmmword [ebp - 0x200]
paddd xmm0, xmm3
movaps xmm2, xmmword [ebp - 0x1f0]
paddd xmm1, xmm5
movaps xmm3, xmmword [ebp - 0x180]
paddd xmm2, xmm4
paddd xmm3, xmm7
movd dword [ebp - 0x4c], xmm0
movd edi, xmm1
movd esi, xmm2
movd edx, xmm3
xor edi, dword [ecx + 0x30]
xor esi, dword [ecx + 0x20]
xor edx, dword [ecx + 0x10]
mov ecx, dword [ecx]
xor ecx, dword [ebp - 0x4c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x50]
mov dword [eax + 0x30], edi
mov dword [eax + 0x20], esi
mov dword [eax + 0x10], edx
pshufd xmm1, xmm1, 0x39
pshufd xmm2, xmm2, 0x39
pshufd xmm0, xmm0, 0x39
pshufd xmm3, xmm3, 0x39
movd dword [ebp - 0x4c], xmm0
movd edi, xmm1
movd esi, xmm2
movd edx, xmm3
xor edi, dword [ecx + 4]
xor esi, dword [ecx + 0x34]
xor edx, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x14]
xor ecx, dword [ebp - 0x4c]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x50]
mov dword [eax + 4], edi
pshufd xmm4, xmm0, 0x39
mov dword [eax + 0x34], esi
mov dword [eax + 0x24], edx
pshufd xmm0, xmm1, 0x39
movd edi, xmm0
pshufd xmm1, xmm2, 0x39
pshufd xmm2, xmm3, 0x39
xor edi, dword [ecx + 0x18]
mov dword [ebp - 0x4c], edi
mov edi, dword [ebp - 0x50]
movd esi, xmm1
movd edx, xmm2
pshufd xmm0, xmm0, 0x39
xor esi, dword [ecx + 8]
xor edx, dword [ecx + 0x38]
movd ecx, xmm4
xor ecx, dword [edi + 0x28]
mov edi, dword [ebp - 0x4c]
mov dword [eax + 0x18], edi
mov dword [eax + 0x28], ecx
mov ecx, dword [ebp - 0x50]
mov dword [eax + 8], esi
movd edi, xmm0
mov dword [eax + 0x38], edx
pshufd xmm0, xmm1, 0x39
xor edi, dword [ecx + 0x2c]
movd esi, xmm0
pshufd xmm0, xmm2, 0x39
movd edx, xmm0
xor esi, dword [ecx + 0x1c]
mov dword [ebp - 0x4c], edi
xor edx, dword [ecx + 0xc]
mov edi, dword [ebp - 0x50]
pshufd xmm0, xmm4, 0x39
movd ecx, xmm0
xor ecx, dword [edi + 0x3c]
mov edi, dword [ebp - 0x4c]
mov dword [eax + 0x3c], ecx
mov ecx, dword [ebp - 0x78]
mov dword [eax + 0x2c], edi
mov dword [eax + 0x1c], esi
mov dword [eax + 0xc], edx
mov edx, dword [ecx + 0x34]
mov esi, dword [ebp - 0x6c]
lea ecx, [edx + 1]
mov edi, dword [ebp - 0x64]
add dword [esi], 1
mov esi, dword [ebp - 0x7c]
cmovne ecx, edx
mov edx, dword [ebp - 0x78]
add eax, 0x40
mov dword [edx + 0x34], ecx
mov ecx, dword [ebp - 0x50]
add ecx, 0x40
add esi, 0xffffffc0
mov dword [ebp - 0x50], ecx
adc edi, 0xffffffff
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x64], edi
test edi, edi
ja 0x5123c0
jb 0x512782
cmp esi, 0x40
jae 0x5123c0
mov dword [ebp - 0x80], eax
test edi, edi
jne 0x512791
test esi, esi
je 0x512b5e
mov ecx, dword [ebp - 0x74]
mov esi, 5
mov edi, dword [ebp - 0x70]
movups xmm3, xmmword [edx]
movups xmm7, xmmword [ecx]
mov ecx, dword [ebp - 0x6c]
movups xmm4, xmmword [edi]
movaps xmmword [ebp - 0xb0], xmm7
movups xmm5, xmmword [ecx]
movaps xmm0, xmm7
paddd xmm0, xmm3
movaps xmm1, xmm0
psrld xmm0, 0x19
pslld xmm1, 7
pxor xmm1, xmm4
pxor xmm1, xmm0
movaps xmm0, xmm1
pshufd xmm7, xmm1, 0x93
paddd xmm0, xmm3
movaps xmm4, xmm0
psrld xmm0, 0x17
pslld xmm4, 9
pxor xmm4, xmm5
pxor xmm4, xmm0
paddd xmm1, xmm4
movaps xmm0, xmm4
movaps xmm2, xmm1
psrld xmm1, 0x13
pslld xmm2, 0xd
pxor xmm2, xmmword [ebp - 0xb0]
pxor xmm2, xmm1
movaps xmm1, xmm7
paddd xmm0, xmm2
movaps xmm5, xmm0
psrld xmm0, 0xe
pslld xmm5, 0x12
pxor xmm5, xmm3
pxor xmm5, xmm0
pshufd xmm0, xmm2, 0x39
paddd xmm1, xmm5
movaps xmm3, xmm1
psrld xmm1, 0x19
pslld xmm3, 7
pxor xmm3, xmm0
pxor xmm3, xmm1
movaps xmm1, xmm3
pshufd xmm0, xmm3, 0x93
paddd xmm1, xmm5
movaps xmmword [ebp - 0xd0], xmm0
movaps xmm6, xmm1
pshufd xmm0, xmm4, 0x4e
psrld xmm1, 0x17
pslld xmm6, 9
pxor xmm6, xmm0
pxor xmm6, xmm1
paddd xmm3, xmm6
movaps xmm2, xmm3
psrld xmm3, 0x13
pslld xmm2, 0xd
pxor xmm2, xmm7
movaps xmm7, xmmword [ebp - 0xd0]
pxor xmm2, xmm3
movaps xmm1, xmm7
movaps xmm0, xmm2
pshufd xmm3, xmm2, 0x39
paddd xmm0, xmm6
movaps xmm4, xmm0
psrld xmm0, 0xe
pslld xmm4, 0x12
pxor xmm4, xmm5
pxor xmm4, xmm0
paddd xmm1, xmm4
movaps xmm0, xmm1
psrld xmm1, 0x19
pslld xmm0, 7
pxor xmm3, xmm0
pxor xmm3, xmm1
movaps xmm1, xmm3
pshufd xmm0, xmm3, 0x93
paddd xmm1, xmm4
movaps xmmword [ebp - 0xd0], xmm0
movaps xmm5, xmm1
pshufd xmm0, xmm6, 0x4e
pslld xmm5, 9
psrld xmm1, 0x17
pxor xmm5, xmm0
pxor xmm5, xmm1
paddd xmm3, xmm5
movaps xmm2, xmm3
pslld xmm2, 0xd
movaps xmm1, xmmword [ebp - 0xd0]
pxor xmm2, xmm7
psrld xmm3, 0x13
movaps xmm0, xmm5
pxor xmm2, xmm3
paddd xmm0, xmm2
movaps xmm6, xmm0
psrld xmm0, 0xe
pslld xmm6, 0x12
pxor xmm6, xmm4
pxor xmm6, xmm0
pshufd xmm0, xmm2, 0x39
paddd xmm1, xmm6
movaps xmm3, xmm1
psrld xmm1, 0x19
pslld xmm3, 7
pxor xmm3, xmm0
pshufd xmm0, xmm5, 0x4e
pxor xmm3, xmm1
pshufd xmm7, xmm3, 0x93
movaps xmm1, xmm3
movaps xmmword [ebp - 0xb0], xmm7
paddd xmm1, xmm6
movaps xmm2, xmm1
psrld xmm1, 0x17
pslld xmm2, 9
pxor xmm2, xmm0
pxor xmm2, xmm1
pshufd xmm5, xmm2, 0x4e
paddd xmm3, xmm2
movaps xmm0, xmm3
psrld xmm3, 0x13
pslld xmm0, 0xd
pxor xmm0, xmmword [ebp - 0xd0]
pxor xmm0, xmm3
pshufd xmm4, xmm0, 0x39
paddd xmm2, xmm0
movaps xmm3, xmm2
psrld xmm2, 0xe
pslld xmm3, 0x12
pxor xmm3, xmm6
pxor xmm3, xmm2
sub esi, 1
jne 0x5127b2
movups xmm0, xmmword [edx]
mov edx, dword [ebp - 0x74]
paddd xmm3, xmm0
movups xmm0, xmmword [edx]
paddd xmm7, xmm0
movups xmm0, xmmword [ecx]
pshufd xmm1, xmm7, 0x39
paddd xmm5, xmm0
movd esi, xmm1
movups xmm0, xmmword [edi]
movd edi, xmm3
paddd xmm4, xmm0
pshufd xmm2, xmm5, 0x39
pshufd xmm0, xmm3, 0x39
mov dword [ebp - 0x48], edi
movd edi, xmm0
pshufd xmm0, xmm0, 0x39
movd dword [ebp - 0x20], xmm0
pshufd xmm0, xmm0, 0x39
pshufd xmm1, xmm1, 0x39
movd dword [ebp - 0xc], xmm0
movd edx, xmm2
pshufd xmm0, xmm1, 0x39
pshufd xmm3, xmm4, 0x39
pshufd xmm2, xmm2, 0x39
movd dword [ebp - 0x1c], xmm0
movd ecx, xmm3
pshufd xmm0, xmm2, 0x39
pshufd xmm3, xmm3, 0x39
mov dword [ebp - 0x44], esi
xor esi, esi
movd dword [ebp - 0x2c], xmm0
pshufd xmm0, xmm3, 0x39
mov dword [ebp - 0x34], edi
mov edi, dword [ebp - 0x7c]
movd dword [ebp - 0x18], xmm7
movd dword [ebp - 0x28], xmm5
movd dword [ebp - 0x38], xmm4
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], ecx
movd dword [ebp - 0x30], xmm1
movd dword [ebp - 0x40], xmm2
movd dword [ebp - 0x10], xmm3
movd dword [ebp - 0x3c], xmm0
cmp dword [ebp - 0x64], esi
ja 0x512a94
cmp edi, 8
jb 0x512b0f
mov edx, dword [ebp - 0x50]
xor esi, esi
lea ecx, [edx - 1]
add ecx, edi
cmp eax, ecx
ja 0x512aab
lea ecx, [edi - 1]
add ecx, eax
cmp ecx, edx
jae 0x512b12
lea ecx, [ebp + edi - 0x49]
cmp eax, ecx
ja 0x512ac3
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
lea ecx, [edi - 1]
add ecx, eax
cmp ecx, dword [ebp - 0x4c]
jae 0x512b12
mov ecx, edi
lea edi, [ebp - 0x48]
sub edi, edx
and ecx, 0xfffffff8
mov dword [ebp - 0x4c], edi
mov edi, eax
sub edi, edx
mov dword [ebp - 0x70], ecx
mov ecx, edx
mov dword [ebp - 0x74], edi
mov edx, dword [ebp - 0x4c]
mov eax, edi
movq xmm1, qword [edx + ecx]
lea ecx, [ecx + 8]
movq xmm0, qword [ecx - 8]
xor edi, edi
pxor xmm1, xmm0
add esi, 8
cmp edi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x7c]
movq qword [eax + ecx - 8], xmm1
jb 0x512ae1
ja 0x512b0c
cmp esi, dword [ebp - 0x70]
jb 0x512ae1
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 0x50]
xor ecx, ecx
cmp ecx, dword [ebp - 0x64]
ja 0x512b50
jb 0x512b1f
cmp esi, edi
jae 0x512b50
lea ecx, [edx + esi]
mov dword [ebp - 0x80], ecx
lea ecx, [ebp - 0x48]
sub ecx, edx
sub eax, edx
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x4c], ecx
mov cl, byte [edx + ecx]
lea edx, [edx + 1]
xor cl, byte [edx - 1]
inc esi
mov byte [edx + eax - 1], cl
xor ecx, ecx
cmp ecx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x4c]
jb 0x512b32
ja 0x512b50
cmp esi, edi
jb 0x512b32
lea eax, [ebp - 0x48]
push 0x40
push eax
call fcn.005094d0
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00508755
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret