Function at 0x438190
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [ebp + 0xc]
mov eax, 0
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
test bl, 3
push esi
sete al
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ecx
push edi
test eax, eax
je 0x438318
test cl, 3
mov eax, 0
sete al
test eax, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
je 0x438313
test al, 3
mov eax, 0
sete al
test eax, eax
je 0x43830b
mov edi, edx
xor esi, esi
shr edi, 2
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], edi
test edi, edi
je 0x4382ef
cmp edi, 8
jb 0x4382b3
lea eax, [ebx - 4]
mov dword [ebp - 4], esi
lea eax, [eax + edi*4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
lea eax, [eax + edi*4]
add eax, 0xfffffffc
cmp ebx, eax
ja 0x438229
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0xc], eax
jae 0x4382b6
lea eax, [ecx - 4]
lea eax, [eax + edi*4]
cmp ebx, eax
ja 0x43823d
lea eax, [ebx - 4]
lea eax, [eax + edi*4]
cmp eax, ecx
jae 0x4382b3
mov eax, edi
mov edx, ebx
and eax, 0xfffffff8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
sub edx, eax
mov dword [ebp - 0x1c], edx
mov edi, edx
lea esi, [eax + 0x10]
mov dword [ebp - 0xc], esi
mov esi, ecx
sub esi, eax
mov eax, ecx
sub eax, ebx
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 4]
mov ecx, ebx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x20]
lea ecx, [ecx + 0x20]
movups xmm0, xmmword [eax - 0x10]
add esi, 8
lea eax, [eax + 0x20]
movups xmm1, xmmword [ebx + ecx - 0x20]
mov ebx, dword [ebp - 8]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
movups xmm1, xmmword [edx + eax - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [edi + eax - 0x20], xmm1
cmp esi, dword [ebp - 0x14]
jb 0x438270
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0x10]
cmp esi, edi
jae 0x4382ef
lea ecx, [eax + esi*4]
sub ebx, eax
mov esi, dword [ebp + 0xc]
sub esi, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 4]
sub edi, esi
mov edx, dword [ebp - 0x18]
add esi, edi
mov eax, dword [edx + ecx]
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
mov dword [ebx + ecx - 4], eax
sub edi, 1
jne 0x4382d4
mov edx, dword [ebp + 0x14]
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
shl esi, 2
sub edx, esi
mov dword [ebp - 8], edx
je 0x4383e2
mov eax, dword [ebp + 0x10]
add ecx, esi
add ebx, esi
mov dword [ebp - 0x10], ecx
add eax, esi
jmp 0x43831e
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], edx
jmp 0x438321
mov dword [ebp - 8], edx
jmp 0x438321
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor edi, edi
test edx, edx
je 0x4383e2
cmp edx, 0x20
jb 0x4383b9
dec eax
lea esi, [ebx - 1]
add eax, edx
add esi, edx
cmp ebx, eax
ja 0x438347
mov eax, dword [ebp - 4]
cmp esi, eax
jae 0x4383bc
lea eax, [ecx - 1]
add eax, edx
cmp ebx, eax
ja 0x438354
cmp esi, ecx
jae 0x4383b9
mov esi, ecx
mov eax, edx
sub esi, dword [ebp - 4]
and eax, 0xffffffe0
mov dword [ebp - 0xc], esi
mov esi, ebx
sub esi, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, ecx
sub eax, ebx
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 4]
lea ecx, [ebx + 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
nop
movups xmm1, xmmword [eax + esi]
mov eax, dword [ebp - 0x20]
add edi, 0x20
lea esi, [esi + 0x20]
lea ecx, [ecx + 0x20]
movups xmm0, xmmword [esi - 0x20]
pxor xmm1, xmm0
movups xmmword [edx + esi - 0x20], xmm1
movups xmm1, xmmword [eax + ecx - 0x20]
mov eax, dword [ebp - 0xc]
movups xmm0, xmmword [esi - 0x10]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
cmp edi, dword [ebp - 0x1c]
jb 0x438380
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp edi, edx
jae 0x4383e2
mov esi, dword [ebp - 0x10]
lea ecx, [edi + eax]
sub esi, eax
sub ebx, eax
sub edx, edi
nop dword [eax]
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub edx, 1
jne 0x4383d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret