Function at 0x4a50f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x98
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x68], eax
inc eax
je 0x4a5d17
mov edi, dword [edx]
mov dword [ebp - 0x5c], edx
lea ecx, [edi + 1]
mov dword [ebp - 0x50], edi
mov esi, ecx
mov dword [ebp - 0x18], ecx
shr ecx, 3
mov esi, dword [ebp + 8]
lea ebx, [ecx*8]
sub ebx, ecx
cmp edi, 8
cmovb ebx, edi
mov ecx, ebx
shr ecx, 1
cmp eax, ecx
jbe 0x4a5180
mov edx, dword [ebp - 0x68]
inc ebx
lea ecx, [ebp - 0xa4]
cmp eax, ebx
cmova ebx, eax
push ebx
push 0x44
call fcn.004a5d20
add esp, 8
mov edx, dword [ebp - 0xa0]
cmp dword [ebp - 0xa4], 1
mov ecx, dword [ebp - 0x9c]
jne 0x4a5208
mov eax, dword [ebp - 0x60]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax], 1
jmp 0x4a51fd
mov eax, dword [edx + 4]
mov dword [ebp - 0x4c], ebx
movdqa xmm0, xmmword [0x606710]
mov ebx, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x40], eax
xor eax, eax
test cl, 1
je 0x4a51c2
jmp 0x4a51bd
mov ecx, dword [ebp - 0x40]
pxor xmm1, xmm1
pcmpgtb xmm1, xmmword [ecx + eax]
por xmm1, xmm0
movdqa xmmword [ecx + eax], xmm1
inc eax
mov cl, 1
test cl, 1
je 0x4a51c2
add eax, 0xf
jb 0x4a51c6
cmp eax, ebx
jb 0x4a51a0
cmp ebx, 0x10
jae 0x4a5394
mov ecx, dword [ebp - 0x40]
lea eax, [ecx + 0x10]
push ebx
push ecx
push eax
call sub.msvcrt.dll_memmove
add esp, 0xc
mov ecx, dword [ebp - 0x4c]
test ebx, ebx
jne 0x4a53ae
sub ecx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x5c]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x60]
mov dword [ecx], 0
add esp, 0x98
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x58], edx
mov ecx, dword [eax + 4]
movdqa xmm0, xmmword [ecx]
lea ebx, [ecx + 0x10]
mov edx, ecx
mov dword [ebp - 0x54], ecx
pmovmskb eax, xmm0
not eax
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x18]
add eax, ecx
mov dword [ebp - 0x3c], eax
jmp 0x4a529d
shr eax, 0x19
lea ecx, [edx - 0x10]
mov byte [edi + edx], al
not edx
and ecx, esi
mov esi, edx
mov byte [ecx + edi + 0x10], al
mov ecx, edi
shl esi, 6
lea edi, [esi + edx*4]
mov esi, dword [ebp - 0x20]
add edi, ecx
mov ecx, 0x11
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x50]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
test ax, ax
je 0x4a52c0
mov esi, dword [ebp - 0x10]
lea ecx, [eax - 1]
and ecx, eax
mov dword [ebp - 0x14], ecx
jmp 0x4a52ff
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x3c]
nop word cs:[eax + eax]
cmp ebx, ecx
jae 0x4a5cb1
movdqa xmm0, xmmword [ebx]
add edx, 0xfffffbc0
add ebx, 0x10
pmovmskb eax, xmm0
cmp ax, 0xffff
je 0x4a52d0
mov ecx, 0xfffffffe
sub ecx, eax
not eax
mov edi, eax
and edi, ecx
mov dword [ebp - 0x14], edi
bsf ax, ax
mov dword [ebp - 0x1c], edx
movzx eax, ax
not eax
mov ecx, eax
shl ecx, 6
lea eax, [ecx + eax*4]
mov ecx, dword [ebp - 0x34]
add eax, edx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.004fa740
add esp, 0xc
mov edi, dword [ebp - 0x28]
mov ecx, esi
and ecx, eax
movdqu xmm0, xmmword [edi + ecx]
pmovmskb edx, xmm0
test edx, edx
jne 0x4a536b
mov dword [ebp - 0x38], eax
mov eax, esi
mov esi, edi
mov edi, 0x10
nop dword [eax]
add ecx, edi
add edi, 0x10
and ecx, eax
movdqu xmm0, xmmword [esi + ecx]
pmovmskb edx, xmm0
test edx, edx
je 0x4a5350
mov edi, esi
mov esi, eax
mov eax, dword [ebp - 0x38]
bsf dx, dx
movzx edx, dx
add edx, ecx
and edx, esi
cmp byte [edi + edx], 0
js 0x4a5270
movdqa xmm0, xmmword [edi]
pmovmskb ecx, xmm0
bsf cx, cx
movzx edx, cx
jmp 0x4a5270
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x4c]
movq xmm0, qword [eax]
movq xmm1, qword [eax + 8]
movq qword [eax + ebx + 8], xmm1
movq qword [eax + ebx], xmm0
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov edi, dword [esi + 8]
mov esi, dword [esi + 0xc]
mov ebx, edx
xor edx, 0x6c796765
xor ebx, 0x736f6d65
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x7c], ebx
mov ebx, eax
xor eax, 0x6e657261
xor ebx, 0x70736575
mov dword [ebp - 0x58], eax
xor eax, eax
mov dword [ebp - 0x78], ebx
mov ebx, esi
xor esi, 0x74656462
xor ebx, 0x646f7261
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x74], ebx
mov ebx, edi
xor edi, 0x79746573
mov dword [ebp - 0x84], edi
mov edi, dword [ebp - 0x50]
xor ebx, 0x6e646f6d
mov dword [ebp - 0x70], ebx
jmp 0x4a5445
mov edx, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x40]
shr ebx, 0x19
lea eax, [edx - 0x10]
mov byte [ecx + edx], bl
and eax, edi
mov byte [eax + ecx + 0x10], bl
mov eax, edx
mov ecx, dword [ebp - 0x4c]
cmp eax, edi
lea eax, [eax + 1]
je 0x4a51eb
mov edx, dword [ebp - 0x40]
cmp byte [edx + eax], 0x80
jne 0x4a543a
mov dword [ebp - 0x64], eax
not eax
mov ecx, eax
shl ecx, 6
lea eax, [ecx + eax*4]
lea ecx, [edx + eax]
lea esi, [edx + eax + 0x20]
mov eax, dword [edx + eax]
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x28], eax
mov eax, esi
nop word cs:[eax + eax]
nop dword [eax]
mov edi, dword [eax - 0x18]
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x78]
mov esi, dword [ebp - 0x7c]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x2c], 0
mov ebx, edi
mov eax, edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x3c], edi
and ebx, 7
and eax, 0xfffffff8
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x80]
je 0x4a55d4
mov eax, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x74]
mov esi, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x84]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x1c], eax
nop
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + eax + 4]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [ecx + eax]
mov ecx, dword [ebp - 0x18]
xor edi, eax
add esi, ebx
mov dword [ebp - 0x24], eax
mov eax, ebx
adc ecx, edx
shld eax, edx, 0xd
shld edx, ebx, 0xd
mov ebx, esi
xor eax, esi
xor edx, ecx
mov dword [ebp - 0x18], ecx
add dword [ebp - 0x14], edi
mov ecx, dword [ebp - 0x1c]
mov esi, edi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x20]
adc eax, ecx
shld esi, ecx, 0x10
shrd edi, ecx, 0x10
mov dword [ebp - 0x2c], eax
xor edi, eax
xor esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
add eax, esi
mov dword [ebp - 0x18], eax
adc ebx, edi
mov eax, esi
shrd esi, edi, 0xb
shld eax, edi, 0x15
xor esi, ebx
mov ecx, ebx
mov edi, eax
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
xor edi, dword [ebp - 0x18]
add eax, esi
mov ebx, esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
adc eax, edx
shld ebx, edx, 0x11
shld edx, esi, 0x11
mov esi, dword [ebp - 0x18]
xor ecx, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
xor edx, eax
mov eax, dword [ebp - 0x10]
xor ebx, dword [ebp - 0x20]
xor esi, dword [ebp - 0x24]
add eax, 8
cmp eax, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
jb 0x4a5500
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], edi
mov edi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x48]
mov dword [ebp - 0x30], edx
mov edx, esi
mov esi, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
cmp ebx, 3
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], eax
jbe 0x4a5600
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov esi, 4
mov ecx, dword [eax + ecx]
mov dword [ebp - 0x38], ecx
jmp 0x4a560c
mov eax, dword [ebp - 0x28]
xor esi, esi
mov dword [ebp - 0x38], 0
mov ecx, esi
mov dword [ebp - 0x10], edx
or ecx, 1
cmp ecx, ebx
jae 0x4a5670
mov ecx, esi
xor edx, edx
or ecx, dword [ebp - 0x2c]
movzx ebx, word [eax + ecx]
lea ecx, [esi*8]
mov eax, 0
shld edx, ebx, cl
shl ebx, cl
test cl, 0x20
cmovne edx, ebx
cmovne ebx, eax
mov eax, dword [ebp - 0x44]
or esi, 2
or eax, edx
mov edx, dword [ebp - 0x38]
or edx, ebx
mov ebx, dword [ebp - 0x48]
cmp esi, ebx
jb 0x4a567a
mov ecx, dword [ebp - 0x34]
inc edi
test ebx, ebx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], ecx
je 0x4a57ae
mov edi, edx
jmp 0x4a56ab
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x38]
cmp esi, ebx
jae 0x4a5651
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edi, edx
mov edx, esi
shl edx, 3
add ebx, esi
xor esi, esi
movzx ebx, byte [ecx + ebx]
mov ecx, edx
shld esi, ebx, cl
shl ebx, cl
test dl, 0x20
mov ecx, 0
cmovne esi, ebx
cmovne ebx, ecx
inc dword [ebp - 0x3c]
or eax, esi
or edi, ebx
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x48]
xor eax, eax
mov esi, 0xff
mov ebx, 0xff
lea ecx, [edx*8]
shld eax, esi, cl
shl ebx, cl
test cl, 0x20
mov ecx, 0
cmovne eax, ebx
cmovne ebx, ecx
or eax, dword [ebp - 0x44]
or ebx, edi
cmp edx, 7
jne 0x4a57a0
mov ecx, 8
mov edi, dword [ebp - 0x10]
xor dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], eax
sub ecx, edx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov eax, edx
xor ecx, ebx
add edi, edx
mov ebx, dword [ebp - 0x18]
mov esi, edi
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x10], esi
adc ebx, edi
shld eax, edi, 0xd
shld edi, edx, 0xd
mov edx, dword [ebp - 0x1c]
xor eax, esi
xor edi, ebx
add dword [ebp - 0x14], ecx
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, ecx
adc esi, dword [ebp - 0x1c]
shld eax, edx, 0x10
mov edx, dword [ebp - 0x1c]
xor eax, dword [ebp - 0x14]
shrd ecx, edx, 0x10
xor ecx, esi
add ebx, eax
mov edx, eax
adc dword [ebp - 0x10], ecx
shld edx, ecx, 0x15
shrd eax, ecx, 0xb
mov ecx, dword [ebp - 0x18]
xor edx, ebx
xor eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x14]
add edx, ecx
mov dword [ebp - 0x1c], edx
mov edx, ecx
adc esi, edi
shrd ecx, edi, 0xf
xor ebx, dword [ebp - 0x24]
shld edx, edi, 0x11
mov edi, dword [ebp - 0x10]
xor ecx, esi
mov dword [ebp - 0x14], esi
xor edx, dword [ebp - 0x1c]
mov esi, ecx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], ebx
xor edi, dword [ebp - 0x2c]
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x24], edx
mov edx, eax
jmp 0x4a57b6
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x3c]
jmp 0x4a5989
mov esi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
mov edi, 1
mov dword [ebp - 0x1c], edx
sub edi, ecx
mov eax, edi
and eax, 7
mov dword [ebp - 0x38], eax
mov eax, edi
and eax, 0xfffffff8
cmp ecx, eax
jae 0x4a58f0
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
nop word [eax + eax]
mov edx, dword [ebp - 0x28]
mov edx, dword [ebp + edx - 0xa0]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x1c]
xor edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x28]
mov edx, dword [ebp + edx - 0xa4]
xor edi, edx
add eax, ebx
mov dword [ebp - 0x34], edx
mov edx, ebx
adc ecx, esi
shld edx, esi, 0xd
shld esi, ebx, 0xd
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
xor edx, eax
mov eax, dword [ebp - 0x1c]
xor esi, ecx
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x20]
add ebx, edi
adc edx, eax
mov dword [ebp - 0x14], edx
mov edx, edi
shrd edi, eax, 0x10
shld edx, eax, 0x10
xor edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
xor edx, ebx
add ecx, edx
mov dword [ebp - 0x30], ecx
mov ecx, edx
adc eax, edi
shrd edx, edi, 0xb
shld ecx, edi, 0x15
xor edx, eax
mov dword [ebp - 0x10], eax
mov edi, ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x14]
xor edi, eax
add ebx, ecx
mov dword [ebp - 0x20], ebx
mov ebx, ecx
adc edx, esi
xor eax, dword [ebp - 0x34]
shld ebx, esi, 0x11
shld esi, ecx, 0x11
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x10]
xor esi, edx
mov edx, dword [ebp - 0x28]
xor ebx, dword [ebp - 0x20]
xor ecx, dword [ebp - 0x18]
add edx, 8
cmp edx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], edx
jb 0x4a57f0
mov dword [ebp - 0x30], esi
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], 0
cmp esi, 3
jbe 0x4a5c55
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x3c]
mov edx, 4
mov ebx, dword [ebp + ecx - 0xa4]
mov eax, edx
or eax, 1
cmp eax, esi
jb 0x4a590d
jmp 0x4a593e
mov dword [ebp - 0x30], esi
mov edi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x38]
xor edx, edx
xor ebx, ebx
mov dword [ebp - 0x2c], 0
mov eax, edx
or eax, 1
cmp eax, esi
jae 0x4a593e
add ecx, edx
xor esi, esi
movzx eax, word [ebp + ecx - 0xa4]
lea ecx, [edx*8]
shld esi, eax, cl
shl eax, cl
test cl, 0x20
mov ecx, 0
cmovne esi, eax
cmovne eax, ecx
or edx, 2
or dword [ebp - 0x2c], esi
mov esi, dword [ebp - 0x38]
or ebx, eax
cmp edx, esi
jae 0x4a5980
shl edx, 3
xor eax, eax
mov esi, 0xff
mov ecx, edx
shld eax, esi, cl
mov esi, 0xff
shl esi, cl
test dl, 0x20
mov ecx, 0
mov edx, dword [ebp - 0x2c]
cmovne eax, esi
cmovne esi, ecx
or ebx, esi
mov esi, dword [ebp - 0x24]
or edx, eax
mov eax, edx
jmp 0x4a5986
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
shl edi, 0x18
mov dword [ebp - 0x24], ebx
xor esi, ebx
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
or edi, eax
mov eax, dword [ebp - 0x34]
xor ecx, edi
mov dword [ebp - 0x3c], edi
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
add ebx, eax
mov ecx, eax
adc edi, edx
shld ecx, edx, 0xd
shld edx, eax, 0xd
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], ebx
xor ecx, ebx
xor edx, edi
mov dword [ebp - 0x18], edi
add dword [ebp - 0x14], esi
mov edi, dword [ebp - 0x1c]
mov ebx, esi
adc eax, edi
shld ebx, edi, 0x10
shrd esi, edi, 0x10
xor ebx, dword [ebp - 0x14]
xor esi, eax
add dword [ebp - 0x18], ebx
mov edi, ebx
adc dword [ebp - 0x10], esi
shld edi, esi, 0x15
shrd ebx, esi, 0xb
mov esi, ecx
xor edi, dword [ebp - 0x18]
xor ebx, dword [ebp - 0x10]
add dword [ebp - 0x14], ecx
adc eax, edx
shld esi, edx, 0x11
shrd ecx, edx, 0xf
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x24]
xor esi, dword [ebp - 0x14]
xor ecx, eax
xor eax, 0xff
mov dword [ebp - 0x20], eax
xor dword [ebp - 0x18], edi
xor edx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x1c]
add dword [ebp - 0x18], esi
mov eax, esi
adc edx, ecx
shld eax, ecx, 0xd
shrd esi, ecx, 0x13
mov ecx, dword [ebp - 0x14]
xor esi, edx
xor eax, dword [ebp - 0x18]
add dword [ebp - 0x20], edi
mov dword [ebp - 0x10], edx
mov edx, edi
adc ecx, ebx
shrd edi, ebx, 0x10
shld edx, ebx, 0x10
mov dword [ebp - 0x14], ecx
xor edi, ecx
mov ecx, dword [ebp - 0x20]
xor edx, ecx
add dword [ebp - 0x10], edx
mov ebx, edx
adc dword [ebp - 0x18], edi
shld ebx, edi, 0x15
shrd edx, edi, 0xb
mov edi, dword [ebp - 0x18]
xor ebx, dword [ebp - 0x10]
xor edx, edi
add ecx, eax
mov dword [ebp - 0x20], ecx
mov ecx, eax
adc dword [ebp - 0x14], esi
shrd eax, esi, 0xf
shld ecx, esi, 0x11
xor eax, dword [ebp - 0x14]
xor ecx, dword [ebp - 0x20]
add dword [ebp - 0x10], ecx
mov esi, ecx
adc edi, eax
shld esi, eax, 0xd
shrd ecx, eax, 0x13
mov eax, ebx
xor ecx, edi
xor esi, dword [ebp - 0x10]
add dword [ebp - 0x14], ebx
adc dword [ebp - 0x20], edx
shld eax, edx, 0x10
shrd ebx, edx, 0x10
xor eax, dword [ebp - 0x14]
xor ebx, dword [ebp - 0x20]
add edi, eax
mov edx, eax
adc dword [ebp - 0x10], ebx
shld edx, ebx, 0x15
shrd eax, ebx, 0xb
mov ebx, esi
xor eax, dword [ebp - 0x10]
xor edx, edi
add dword [ebp - 0x14], esi
adc dword [ebp - 0x20], ecx
shld ebx, ecx, 0x11
shrd esi, ecx, 0xf
xor ebx, dword [ebp - 0x14]
xor esi, dword [ebp - 0x20]
add edi, ebx
mov ecx, ebx
adc dword [ebp - 0x10], esi
shld ecx, esi, 0xd
shrd ebx, esi, 0x13
mov esi, edx
xor ecx, edi
xor ebx, dword [ebp - 0x10]
add dword [ebp - 0x20], edx
mov edi, dword [ebp - 0x14]
adc edi, eax
shrd edx, eax, 0x10
shld esi, eax, 0x10
mov eax, dword [ebp - 0x20]
xor edx, edi
xor esi, eax
shld esi, edx, 0x15
add eax, ecx
adc edi, ebx
shrd ebx, ecx, 0xf
xor ebx, esi
mov esi, dword [ebp - 0x40]
xor ebx, edi
mov edi, dword [ebp - 0x50]
xor ebx, eax
mov ecx, edi
and ecx, ebx
movdqu xmm0, xmmword [esi + ecx]
mov eax, ecx
pmovmskb edx, xmm0
test edx, edx
jne 0x4a5b5b
mov eax, ecx
mov ecx, edi
mov edi, esi
mov esi, 0x10
mov dword [ebp - 0x14], eax
nop word [eax + eax]
add eax, esi
add esi, 0x10
and eax, ecx
movdqu xmm0, xmmword [edi + eax]
pmovmskb edx, xmm0
test edx, edx
je 0x4a5b40
mov esi, edi
mov edi, ecx
mov ecx, dword [ebp - 0x14]
bsf dx, dx
movzx edx, dx
add edx, eax
and edx, edi
cmp byte [esi + edx], 0
js 0x4a5b7b
movdqa xmm0, xmmword [esi]
pmovmskb eax, xmm0
bsf ax, ax
movzx edx, ax
mov eax, dword [ebp - 0x64]
mov esi, edx
sub esi, ecx
sub eax, ecx
xor esi, eax
and esi, edi
cmp esi, 0x10
jb 0x4a5420
mov esi, dword [ebp - 0x40]
lea ecx, [edx - 0x10]
shr ebx, 0x19
and ecx, edi
mov al, byte [esi + edx]
mov byte [esi + edx], bl
mov byte [ecx + esi + 0x10], bl
cmp al, 0xff
je 0x4a5c80
mov ecx, dword [ebp - 0x6c]
not edx
mov edi, dword [ebp - 0x88]
mov eax, edx
shl eax, 6
lea eax, [eax + edx*4]
movsd xmm2, qword [ecx + 0x18]
movdqu xmm0, xmmword [esi + eax]
movups xmm1, xmmword [esi + eax + 0x10]
movsd qword [esi + eax + 0x18], xmm2
movd dword [ebp - 0x28], xmm0
movsd xmm2, qword [ecx + 0x10]
movsd qword [esi + eax + 0x10], xmm2
movsd xmm2, qword [ecx]
movsd xmm3, qword [ecx + 8]
movsd qword [esi + eax + 8], xmm3
movsd qword [esi + eax], xmm2
movdqu xmmword [ecx], xmm0
movups xmmword [ecx + 0x10], xmm1
movsd xmm3, qword [edi + 0x18]
movdqu xmm1, xmmword [esi + eax + 0x20]
movups xmm2, xmmword [esi + eax + 0x30]
movsd qword [esi + eax + 0x38], xmm3
movsd xmm3, qword [edi + 0x10]
movsd qword [esi + eax + 0x30], xmm3
movsd xmm3, qword [edi]
movsd xmm4, qword [edi + 8]
movsd qword [esi + eax + 0x28], xmm4
movsd qword [esi + eax + 0x20], xmm3
movdqu xmmword [edi], xmm1
movups xmmword [edi + 0x10], xmm2
mov ecx, dword [esi + eax + 0x40]
mov edx, dword [edi + 0x20]
mov dword [esi + eax + 0x40], edx
mov eax, edi
mov dword [edi + 0x20], ecx
jmp 0x4a5480
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x28]
xor edx, edx
xor ebx, ebx
mov eax, edx
or eax, 1
cmp eax, esi
jb 0x4a590d
jmp 0x4a593e
mov ecx, dword [ebp - 0x64]
not edx
lea eax, [ecx - 0x10]
mov byte [esi + ecx], 0xff
and eax, edi
mov byte [eax + esi + 0x10], 0xff
mov eax, edx
shl eax, 6
lea edi, [eax + edx*4]
mov eax, ecx
mov ecx, 0x11
add edi, esi
mov esi, dword [ebp - 0x6c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x50]
jmp 0x4a5437
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x28]
test edi, edi
mov dword [eax], esi
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x48]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x60]
mov dword [ecx], 0
je 0x4a51fd
mov eax, dword [ebp - 0x58]
mul dword [ebp - 0x18]
lea ecx, [esi + eax - 1]
mov eax, esi
neg eax
and eax, ecx
add edi, eax
cmp edi, 0xffffffef
je 0x4a51fd
mov ecx, dword [ebp - 0x54]
sub ecx, eax
cmp esi, 9
jb 0x4a5d04
mov ecx, dword [ecx - 4]
push ecx
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
jmp 0x4a51fd
call fcn.0049fcd0
ud2