Function at 0x404310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
push esi
mov esi, dword [ebp + 8]
mov eax, esi
shr eax, 4
mov dword [esp + 0x14], eax
mov eax, esi
and eax, 0xf
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
push edi
cmp esi, 0x10
jb 0x404733
cmp esi, 0x1000000
ja 0x404733
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x50]
push eax
add ecx, 0x118
call fcn.00403450
add esp, 4
test eax, eax
jne 0x404738
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
test ecx, ecx
je 0x4044a4
lea edx, [esp + 0x50]
mov dword [esp + 0x14], eax
mov edi, eax
sub edi, edx
lea edx, [eax + 0xf]
mov dword [esp + 0x1c], edx
dec ecx
cmp dword [esp + 0x28], 0
mov dword [esp + 0x18], ecx
je 0x4043c0
cmp dword [esp + 0x20], 0
jne 0x4043c0
test ecx, ecx
jne 0x4043c0
movaps xmm0, xmmword [esp + 0x50]
lea edx, [esp + 0x50]
mov ecx, edx
movaps xmmword [esp + 0x60], xmm0
call fcn.00404120
mov eax, dword [esp + 0x14]
movaps xmm1, xmmword [esp + 0x50]
lea ecx, [esp + 0x40]
xor edx, edx
cmp ecx, dword [esp + 0x1c]
ja 0x4043f7
lea ecx, [esp + 0x4f]
cmp ecx, eax
jb 0x4043f7
nop dword [eax]
lea eax, [esp + 0x50]
add eax, edx
mov cl, byte [eax + edi]
xor cl, byte [eax]
mov byte [esp + edx + 0x40], cl
inc edx
cmp edx, 0x10
jb 0x4043e0
jmp 0x404403
movups xmm0, xmmword [eax]
pxor xmm0, xmm1
movups xmmword [esp + 0x40], xmm0
cmp dword [esp + 0x20], 1
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0x24]
mov edx, eax
push eax
jne 0x40441c
call fcn.00403450
jmp 0x404421
call fcn.004039f0
add esp, 4
test eax, eax
jne 0x404738
lea ecx, [esp + 0x5f]
cmp esi, ecx
ja 0x40443f
lea ecx, [esi + 0xf]
lea edx, [esp + 0x50]
cmp ecx, edx
jae 0x404452
lea ecx, [esp + 0x4f]
cmp esi, ecx
ja 0x404465
lea ecx, [esi + 0xf]
lea edx, [esp + 0x40]
cmp ecx, edx
jb 0x404465
mov cl, byte [esp + eax + 0x40]
xor cl, byte [esp + eax + 0x50]
mov byte [eax + esi], cl
inc eax
cmp eax, 0x10
jb 0x404452
jmp 0x404471
movups xmm0, xmmword [esp + 0x40]
pxor xmm0, xmm1
movups xmmword [esi], xmm0
lea edx, [esp + 0x50]
mov ecx, edx
call fcn.00404120
mov eax, dword [esp + 0x14]
add esi, 0x10
add dword [esp + 0x1c], 0x10
add eax, 0x10
mov ecx, dword [esp + 0x18]
add edi, 0x10
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], eax
test ecx, ecx
jne 0x404390
jmp 0x4044a8
mov dword [esp + 0x30], esi
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x40472b
cmp dword [esp + 0x20], 0
lea edx, [esp + 0x50]
lea edi, [esp + 0x60]
mov dword [esp + 0x10], 0
cmovne edi, edx
lea edx, [esi - 0x10]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], edx
test ecx, ecx
je 0x404544
sub eax, esi
mov dword [esp + 0x18], edx
sub dword [esp + 0x18], esi
sub edi, esi
mov dword [esp + 0x14], eax
mov ecx, esi
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x40]
sub eax, esi
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x38], eax
mov dword [esp + 0x10], edi
nop dword [eax + eax]
movzx eax, byte [esi + ecx]
lea ecx, [ecx + 1]
mov esi, dword [esp + 0x34]
mov byte [ecx - 1], al
movzx eax, byte [edx + ecx - 1]
xor al, byte [esi + ecx - 1]
mov esi, dword [esp + 0x38]
mov byte [esi + ecx - 1], al
mov esi, dword [esp + 0x18]
sub edi, 1
jne 0x404510
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov ecx, 0x10
sub ecx, eax
mov dword [esp + 0x34], ecx
cmp ecx, 0x40
jb 0x404667
lea ecx, [esp + 0x40]
add ecx, eax
mov dword [esp + 0x30], ecx
lea ecx, [eax + edi]
lea eax, [edi + 0xf]
cmp dword [esp + 0x30], eax
ja 0x40457e
lea eax, [esp + 0x4f]
cmp eax, ecx
jae 0x404663
mov eax, dword [esp + 0x10]
add eax, edx
mov dword [esp + 0x38], eax
lea eax, [edx + 0xf]
cmp dword [esp + 0x30], eax
ja 0x40459f
lea eax, [esp + 0x4f]
cmp eax, dword [esp + 0x38]
jae 0x404663
mov eax, dword [esp + 0x34]
sub esi, edi
and eax, 0x3f
mov dword [esp + 0x28], 0x10
sub dword [esp + 0x28], eax
mov eax, edx
sub eax, edi
mov dword [esp + 0x38], eax
lea eax, [esp + 0x40]
sub eax, edi
mov dword [esp + 0x34], eax
lea eax, [esp + 0x50]
sub eax, edi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x60]
sub eax, edi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x70]
sub eax, edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x3c], eax
lea eax, [edx + 0x30]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
movups xmm0, xmmword [ecx]
mov edx, dword [esp + 0x34]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [edi + ecx - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x30]
movups xmmword [edx + ecx - 0x40], xmm1
mov edx, dword [esp + 0x18]
movups xmm1, xmmword [esi + ecx - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x20]
movups xmmword [edx + ecx - 0x40], xmm1
mov edx, dword [esp + 0x30]
movups xmm1, xmmword [edx + eax - 0x10]
mov edx, dword [esp + 0x14]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x10]
movups xmmword [edx + ecx - 0x40], xmm1
mov edx, dword [esp + 0x30]
movups xmm1, xmmword [edx + eax]
mov edx, dword [esp + 0x3c]
add eax, 0x40
pxor xmm1, xmm0
movups xmmword [edx + ecx - 0x40], xmm1
cmp eax, dword [esp + 0x28]
jb 0x4045f3
mov edi, dword [esp + 0x2c]
jmp 0x404667
mov eax, dword [esp + 0x10]
cmp eax, 0x10
jae 0x4046a8
mov edx, dword [esp + 0x1c]
lea ecx, [eax + edi]
sub edx, edi
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x40]
mov esi, dword [esp + 0x3c]
sub edx, edi
mov dword [esp + 0x38], edx
mov edx, 0x10
mov edi, dword [esp + 0x38]
sub edx, eax
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + edi - 1], al
sub edx, 1
jne 0x404692
mov edi, dword [esp + 0x2c]
cmp dword [esp + 0x20], 1
lea eax, [esp + 0x40]
mov esi, dword [esp + 0x1c]
mov edx, eax
mov ecx, dword [esp + 0x24]
push eax
jne 0x4046c5
call fcn.00403450
jmp 0x4046ca
call fcn.004039f0
add esp, 4
test eax, eax
jne 0x404738
lea eax, [esp + 0x4f]
xor edx, edx
lea ecx, [esi + 0xf]
cmp esi, eax
ja 0x4046e6
lea eax, [esp + 0x40]
cmp ecx, eax
jae 0x4046f1
lea eax, [edi + 0xf]
cmp esi, eax
ja 0x40471c
cmp ecx, edi
jb 0x40471c
lea eax, [esp + 0x40]
sub edi, eax
sub esi, eax
nop dword [eax]
lea ecx, [esp + 0x40]
add ecx, edx
inc edx
mov al, byte [edi + ecx]
xor al, byte [ecx]
mov byte [esi + ecx], al
cmp edx, 0x10
jb 0x404700
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
movups xmm1, xmmword [edi]
movups xmm0, xmmword [esp + 0x40]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0xffffffde
pop edi
pop esi
mov esp, ebp
pop ebp
ret