Function at 0x439130
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x24]
xor ecx, ecx
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x28]
push esi
mov esi, edx
mov dword [esp + 0xc], ecx
shr esi, 2
mov dword [esp + 0x1c], esi
push edi
mov edi, dword [esp + 0x28]
test esi, esi
je 0x43926c
cmp esi, 8
jb 0x43921c
lea eax, [ebp - 4]
mov dword [esp + 0x10], ecx
lea eax, [eax + esi*4]
cmp edi, eax
ja 0x439183
lea eax, [edi - 4]
lea eax, [eax + esi*4]
cmp eax, ebp
jae 0x43921c
lea eax, [ebx - 4]
lea eax, [eax + esi*4]
cmp edi, eax
ja 0x43919b
lea eax, [edi - 4]
lea eax, [eax + esi*4]
cmp eax, ebx
jae 0x43921c
mov eax, esi
mov edx, esi
and eax, 7
sub edx, eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x1c], edx
mov edx, edi
sub edx, ebx
mov dword [esp + 0x10], edx
mov edx, ebp
sub edx, ebx
mov dword [esp + 0x14], edx
mov edx, edi
mov edi, dword [esp + 0x10]
sub edx, ebp
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x18], edx
mov edx, ebp
mov esi, dword [esp + 0x18]
movdqu xmm0, xmmword [edx]
add ecx, 8
lea edx, [edx + 0x20]
lea eax, [eax + 0x20]
movdqu xmm1, xmmword [eax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [esi + edx - 0x20], xmm1
movdqu xmm1, xmmword [ebx + eax - 0x20]
movdqu xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [edi + eax - 0x20], xmm1
cmp ecx, dword [esp + 0x1c]
jb 0x4391d1
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
cmp ecx, esi
jae 0x43926c
mov eax, edi
lea ecx, [ecx*4]
sub eax, ebp
sub ebx, ebp
mov dword [esp + 0x1c], eax
add ecx, ebp
mov eax, dword [esp + 0x10]
mov edx, ebx
sub esi, eax
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x1c]
add eax, esi
mov dword [esp + 0x10], eax
lea esp, [esp]
mov eax, dword [edx + ecx]
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
mov dword [ecx + ebx - 4], eax
dec esi
jne 0x439250
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
shl ecx, 2
sub edx, ecx
mov dword [esp + 0x34], edx
je 0x439361
add edi, ecx
add ebx, ecx
add ebp, ecx
mov dword [esp + 0x28], edi
xor esi, esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebp
test edx, edx
je 0x439361
cmp edx, 0x20
jb 0x439344
lea eax, [ebp - 1]
lea ecx, [edi - 1]
add eax, edx
add ecx, edx
cmp edi, eax
ja 0x4392b6
cmp ecx, ebp
jae 0x439344
lea eax, [ebx - 1]
add eax, edx
cmp edi, eax
ja 0x4392c7
cmp ecx, ebx
jae 0x439344
mov eax, edx
mov ecx, edx
mov edx, edi
and eax, 0x1f
sub edx, ebx
sub ecx, eax
mov dword [esp + 0x20], edx
mov eax, ebx
mov edx, ebp
mov dword [esp + 0x14], ecx
sub edx, ebx
lea ecx, [ebp + 0x10]
mov dword [esp + 0x1c], edx
mov edx, edi
mov edi, dword [esp + 0x20]
sub edx, ebp
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0x18]
movdqu xmm0, xmmword [eax]
add esi, 0x20
lea eax, [eax + 0x20]
lea ecx, [ecx + 0x20]
movdqu xmm1, xmmword [eax + ebx - 0x20]
pxor xmm1, xmm0
movdqu xmmword [eax + edi - 0x20], xmm1
movdqu xmm1, xmmword [eax - 0x10]
movdqu xmm0, xmmword [ecx - 0x20]
pxor xmm1, xmm0
movdqu xmmword [ecx + ebp - 0x20], xmm1
cmp esi, dword [esp + 0x14]
jb 0x439301
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
cmp esi, edx
jae 0x439361
sub ebx, ebp
lea ecx, [esi + ebp]
sub edi, ebp
sub edx, esi
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [edi + ecx - 1], al
dec edx
jne 0x439351
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret