Function at 0x420c20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x100
mov esi, dword [ecx + 0x30]
mov dword [esp + 8], ecx
movzx ecx, byte [ecx + 0x80]
mov edi, edx
mov edx, dword [ebp + 8]
test ecx, ecx
not esi
je 0x420d25
mov ebx, 0x40
mov eax, edx
mov dword [esp + 0x10], ecx
sub ebx, ecx
sub eax, ebx
jbe 0x420c77
mov ecx, eax
shr eax, 6
and ecx, 0x3f
cmp ecx, 1
mov ecx, dword [esp + 0x10]
sbb eax, 0xffffffff
cmp eax, esi
ja 0x420d44
mov eax, dword [esp + 8]
mov esi, ecx
lea eax, [eax + ecx + 0x40]
mov ecx, edx
sub ecx, ebx
mov dword [esp + 0x20], ecx
jae 0x420d46
mov esi, dword [esp + 8]
xor ebx, ebx
cmp edx, 8
jb 0x420d10
xor ebx, ebx
cmp edx, 0x20
jb 0x420cd2
movdqu xmm0, xmmword [edi]
movdqu xmm2, xmmword [eax]
movdqu xmm1, xmmword [edi + 0x10]
movdqu xmm3, xmmword [eax + 0x10]
mov ebx, edx
and ebx, 0xffffffe0
cmp ebx, edx
pxor xmm2, xmm0
pxor xmm3, xmm1
movdqu xmmword [edi], xmm2
movdqu xmmword [edi + 0x10], xmm3
je 0x420d1c
test dl, 0x18
je 0x420d10
mov esi, ebx
mov ebx, edx
and ebx, 0xfffffff8
nop dword [eax]
movq xmm0, qword [edi + esi]
movq xmm1, qword [eax + esi]
pxor xmm1, xmm0
movq qword [edi + esi], xmm1
add esi, 8
cmp ebx, esi
jne 0x420ce0
mov esi, dword [esp + 8]
cmp ebx, edx
je 0x420d1c
nop word cs:[eax + eax]
nop dword [eax]
movzx ecx, byte [eax + ebx]
xor byte [edi + ebx], cl
inc ebx
cmp edx, ebx
jne 0x420d10
add dl, byte [esp + 0x10]
jmp 0x42133c
mov eax, edx
xor ecx, ecx
mov ebx, edx
and eax, 0x3f
mov dword [esp + 0xc], eax
mov eax, edx
setne cl
shr eax, 6
add ecx, eax
cmp ecx, esi
jbe 0x420df3
ud2
mov ecx, esi
xor edx, edx
cmp cl, 0x38
ja 0x421324
xor edx, edx
cmp cl, 0x20
ja 0x420dad
mov esi, dword [esp + 8]
mov edx, ebx
and edx, 0xffffffe0
lea ecx, [ecx + esi + 0x50]
xor esi, esi
nop dword [eax]
movdqu xmm0, xmmword [edi + esi]
movdqu xmm2, xmmword [ecx + esi - 0x10]
movdqu xmm1, xmmword [edi + esi + 0x10]
movdqu xmm3, xmmword [ecx + esi]
pxor xmm2, xmm0
pxor xmm3, xmm1
movdqu xmmword [edi + esi], xmm2
movdqu xmmword [edi + esi + 0x10], xmm3
add esi, 0x20
cmp edx, esi
jne 0x420d70
cmp ebx, edx
je 0x420ddf
test bl, 0x18
je 0x421324
mov ecx, edx
mov edx, ebx
and edx, 0xfffffff8
nop word cs:[eax + eax]
nop
movq xmm0, qword [edi + ecx]
movq xmm1, qword [eax + ecx]
pxor xmm1, xmm0
movq qword [edi + ecx], xmm1
add ecx, 8
cmp edx, ecx
jne 0x420dc0
jmp 0x42131c
add edi, ebx
mov ebx, dword [esp + 0x20]
mov eax, ebx
mov ecx, ebx
shr eax, 6
and ecx, 0x3f
mov dword [esp + 0xc], ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], eax
movzx ecx, byte [section..data]
cmp cl, 1
jne 0x420e2b
mov esi, dword [esp + 8]
lea edx, [esp + 0x30]
mov ecx, esi
call fcn.004215c0
mov edx, dword [esp + 0xc]
test edx, edx
jne 0x42112f
jmp 0x42133c
mov esi, dword [esp + 8]
cmp ebx, 0x40
movdqu xmm2, xmmword [esi + 0x30]
jb 0x42111e
movdqu xmm1, xmmword [esi]
movdqu xmm3, xmmword [esi + 0x20]
movdqu xmm6, xmmword [esi + 0x10]
xor ecx, ecx
movdqa xmmword [esp + 0x20], xmm3
movdqa xmmword [esp + 0x10], xmm1
nop dword [eax]
mov edx, 0xa
movdqa xmm0, xmm1
movdqa xmm5, xmm6
movdqa xmm7, xmm2
nop word cs:[eax + eax]
nop dword [eax + eax]
paddd xmm1, xmm6
dec edx
pxor xmm7, xmm1
movdqa xmm4, xmm7
pslld xmm7, 0x10
psrld xmm4, 0x10
por xmm7, xmm4
paddd xmm3, xmm7
pxor xmm6, xmm3
movdqa xmm4, xmm6
pslld xmm6, 0xc
psrld xmm4, 0x14
por xmm6, xmm4
paddd xmm1, xmm6
pxor xmm7, xmm1
pshufd xmm1, xmm1, 0x93
movdqa xmm4, xmm7
pslld xmm7, 8
psrld xmm4, 0x18
por xmm7, xmm4
paddd xmm3, xmm7
pshufd xmm7, xmm7, 0x4e
pxor xmm6, xmm3
pshufd xmm3, xmm3, 0x39
movdqa xmm4, xmm6
pslld xmm6, 7
psrld xmm4, 0x19
por xmm6, xmm4
paddd xmm1, xmm6
pxor xmm7, xmm1
movdqa xmm4, xmm7
pslld xmm7, 0x10
psrld xmm4, 0x10
por xmm7, xmm4
paddd xmm3, xmm7
pxor xmm6, xmm3
movdqa xmm4, xmm6
pslld xmm6, 0xc
psrld xmm4, 0x14
por xmm6, xmm4
paddd xmm1, xmm6
pxor xmm7, xmm1
pshufd xmm1, xmm1, 0x39
movdqa xmm4, xmm7
pslld xmm7, 8
psrld xmm4, 0x18
por xmm7, xmm4
paddd xmm3, xmm7
pshufd xmm7, xmm7, 0x4e
pxor xmm6, xmm3
pshufd xmm3, xmm3, 0x93
movdqa xmm4, xmm6
pslld xmm6, 7
psrld xmm4, 0x19
por xmm6, xmm4
jne 0x420e80
mov edx, ecx
paddd xmm1, xmm0
movdqa xmm0, xmmword [esp + 0x20]
paddd xmm6, xmm5
paddd xmm7, xmm2
paddd xmm2, xmmword [0x457270]
inc ecx
shl edx, 6
movdqu xmmword [esp + 0xbc], xmm1
movdqu xmmword [esp + 0xcc], xmm6
movdqa xmm6, xmm5
cmp eax, ecx
movsd xmm1, qword [edi + edx + 0x38]
paddd xmm3, xmm0
movdqu xmmword [esp + 0xdc], xmm3
movsd xmm3, qword [edi + edx + 8]
movdqu xmmword [esp + 0xec], xmm7
movsd qword [esp + 0xb4], xmm1
movsd xmm1, qword [edi + edx + 0x30]
movups xmm4, xmmword [esp + 0xbc]
movsd qword [esp + 0x84], xmm3
movsd qword [esp + 0xac], xmm1
movsd xmm1, qword [edi + edx + 0x28]
movsd qword [esp + 0xa4], xmm1
movsd xmm1, qword [edi + edx + 0x20]
movsd qword [esp + 0x9c], xmm1
movsd xmm1, qword [edi + edx + 0x18]
movsd qword [esp + 0x94], xmm1
movsd xmm1, qword [edi + edx + 0x10]
movsd qword [esp + 0x8c], xmm1
movsd xmm1, qword [edi + edx]
movsd qword [esp + 0x7c], xmm1
xorps xmm1, xmm1
movups xmmword [esp + 0x3c], xmm1
movups xmmword [esp + 0x4c], xmm1
movups xmmword [esp + 0x5c], xmm1
movups xmmword [esp + 0x6c], xmm1
movups xmm1, xmmword [esp + 0x7c]
movups xmm3, xmmword [esp + 0x8c]
xorps xmm4, xmm1
movups xmm1, xmmword [esp + 0xcc]
movups xmmword [esp + 0x3c], xmm4
movdqu xmm4, xmmword [esp + 0xdc]
xorps xmm1, xmm3
movups xmm3, xmmword [esp + 0xac]
movups xmmword [esp + 0x4c], xmm1
movdqu xmm1, xmmword [esp + 0x9c]
pxor xmm4, xmm1
movups xmm1, xmmword [esp + 0xec]
movdqu xmmword [esp + 0x5c], xmm4
xorps xmm1, xmm3
movdqa xmm3, xmm0
movups xmmword [esp + 0x6c], xmm1
movsd xmm1, qword [esp + 0x64]
movsd qword [edi + edx + 0x28], xmm1
movsd xmm1, qword [esp + 0x5c]
movsd qword [edi + edx + 0x20], xmm1
movsd xmm1, qword [esp + 0x54]
movsd qword [edi + edx + 0x18], xmm1
movsd xmm1, qword [esp + 0x4c]
movsd qword [edi + edx + 0x10], xmm1
movsd xmm1, qword [esp + 0x44]
movsd qword [edi + edx + 8], xmm1
movsd xmm1, qword [esp + 0x3c]
movsd qword [edi + edx], xmm1
movsd xmm1, qword [esp + 0x74]
movsd qword [edi + edx + 0x38], xmm1
movsd xmm1, qword [esp + 0x6c]
movsd qword [edi + edx + 0x30], xmm1
movdqa xmm1, xmmword [esp + 0x10]
jne 0x420e60
movd dword [esi + 0x30], xmm2
mov edx, dword [esp + 0xc]
test edx, edx
je 0x42133c
and ebx, 0xffffffc0
mov dword [esp + 0x20], ebx
lea ebx, [esi + 0x40]
movzx eax, byte [section..data]
cmp al, 1
jne 0x421165
mov ecx, esi
mov edx, ebx
call fcn.00421e20
mov edx, dword [esp + 0xc]
add edi, dword [esp + 0x20]
xor eax, eax
cmp edx, 8
jae 0x4212be
jmp 0x421332
movdqu xmm4, xmmword [esi]
movdqu xmm2, xmmword [esi + 0x10]
movdqu xmm0, xmmword [esi + 0x30]
movdqu xmm7, xmmword [esi + 0x20]
mov eax, 0xa
movdqa xmm6, xmm4
movdqa xmm3, xmm2
movdqa xmm5, xmm0
movdqa xmmword [esp + 0x10], xmm7
nop
paddd xmm6, xmm3
dec eax
pxor xmm5, xmm6
movdqa xmm1, xmm5
pslld xmm5, 0x10
psrld xmm1, 0x10
por xmm5, xmm1
paddd xmm7, xmm5
pxor xmm3, xmm7
movdqa xmm1, xmm3
pslld xmm3, 0xc
psrld xmm1, 0x14
por xmm3, xmm1
paddd xmm6, xmm3
pxor xmm5, xmm6
pshufd xmm6, xmm6, 0x93
movdqa xmm1, xmm5
pslld xmm5, 8
psrld xmm1, 0x18
por xmm5, xmm1
paddd xmm7, xmm5
pshufd xmm5, xmm5, 0x4e
pxor xmm3, xmm7
pshufd xmm7, xmm7, 0x39
movdqa xmm1, xmm3
pslld xmm3, 7
psrld xmm1, 0x19
por xmm3, xmm1
paddd xmm6, xmm3
pxor xmm5, xmm6
movdqa xmm1, xmm5
pslld xmm5, 0x10
psrld xmm1, 0x10
por xmm5, xmm1
paddd xmm7, xmm5
pxor xmm3, xmm7
movdqa xmm1, xmm3
pslld xmm3, 0xc
psrld xmm1, 0x14
por xmm3, xmm1
paddd xmm6, xmm3
pxor xmm5, xmm6
pshufd xmm6, xmm6, 0x39
movdqa xmm1, xmm5
pslld xmm5, 8
psrld xmm1, 0x18
por xmm5, xmm1
paddd xmm7, xmm5
pshufd xmm5, xmm5, 0x4e
pxor xmm3, xmm7
pshufd xmm7, xmm7, 0x93
movdqa xmm1, xmm3
pslld xmm3, 7
psrld xmm1, 0x19
por xmm3, xmm1
jne 0x421190
paddd xmm7, xmmword [esp + 0x10]
movd eax, xmm0
paddd xmm6, xmm4
paddd xmm3, xmm2
paddd xmm5, xmm0
inc eax
movdqu xmmword [esi + 0x40], xmm6
movdqu xmmword [esi + 0x50], xmm3
movdqu xmmword [esi + 0x60], xmm7
movdqu xmmword [esi + 0x70], xmm5
mov dword [esi + 0x30], eax
add edi, dword [esp + 0x20]
xor eax, eax
cmp edx, 8
jb 0x421332
xor eax, eax
cmp edx, 0x20
jb 0x4212f7
movdqu xmm0, xmmword [edi]
movdqu xmm2, xmmword [esi + 0x40]
movdqu xmm1, xmmword [edi + 0x10]
movdqu xmm3, xmmword [esi + 0x50]
mov eax, edx
and eax, 0xffffffe0
cmp edx, eax
pxor xmm2, xmm0
pxor xmm3, xmm1
movdqu xmmword [edi], xmm2
movdqu xmmword [edi + 0x10], xmm3
je 0x42133c
test dl, 0x18
je 0x421332
mov ecx, eax
mov eax, edx
and eax, 0xfffffff8
nop
movq xmm0, qword [edi + ecx]
movq xmm1, qword [ebx + ecx]
pxor xmm1, xmm0
movq qword [edi + ecx], xmm1
add ecx, 8
cmp eax, ecx
jne 0x421300
jmp 0x42132e
cmp ebx, edx
je 0x420ddf
movzx ecx, byte [eax + edx]
xor byte [edi + edx], cl
inc edx
jmp 0x42131c
cmp edx, eax
je 0x42133c
movzx ecx, byte [ebx + eax]
xor byte [edi + eax], cl
inc eax
jmp 0x42132e
mov byte [esi + 0x80], dl
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret