Function at 0x403410
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x62d330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], edx
push edi
mov edi, edx
test ecx, ecx
je 0x403915
test esi, esi
je 0x403915
test ebx, ebx
je 0x403915
test eax, eax
je 0x403915
test edx, edx
je 0x403915
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x403740
test eax, eax
je 0x40348a
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00574661
mov esp, ebp
pop ebp
ret
cmp ecx, esi
je 0x4035e3
cmp ebx, 0x10
jb 0x40350c
jmp 0x4034a0
push dword [ebp - 0x20]
mov edx, esi
call fcn.00402e70
add esp, 4
test eax, eax
jne 0x4038ff
lea eax, [edi + 0xf]
cmp esi, eax
ja 0x4034e0
lea eax, [esi + 0xf]
cmp eax, edi
jb 0x4034e0
mov ecx, esi
sub edi, esi
mov edx, 0x10
lea esp, [esp]
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec edx
jne 0x4034d0
jmp 0x4034f0
movdqu xmm1, xmmword [esi]
movdqu xmm0, xmmword [edi]
pxor xmm1, xmm0
movdqu xmmword [esi], xmm1
mov ecx, dword [ebp - 0x18]
sub ebx, 0x10
mov edi, ecx
mov dword [ebp + 8], ebx
add ecx, 0x10
add esi, 0x10
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], esi
cmp ebx, 0x10
jae 0x4034a0
test ebx, ebx
je 0x4038e1
push dword [ebp - 0x20]
lea edx, [ebp - 0x14]
call fcn.00402e70
add esp, 4
test eax, eax
jne 0x4038ff
xor edx, edx
test ebx, ebx
je 0x4035c2
cmp ebx, 0x10
jb 0x4035a4
lea ecx, [esi - 1]
lea eax, [ebp + ebx - 0x15]
add ecx, ebx
cmp esi, eax
ja 0x40354d
lea eax, [ebp - 0x14]
cmp ecx, eax
jae 0x4035a4
lea eax, [edi - 1]
add eax, ebx
cmp esi, eax
ja 0x40355a
cmp ecx, edi
jae 0x4035a4
mov eax, ebx
mov ecx, ebx
and eax, 0xf
sub ecx, eax
mov eax, edi
mov dword [ebp - 0x28], ecx
mov ecx, esi
sub ecx, edi
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x14]
mov esi, dword [ebp - 0x20]
sub ecx, edi
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x1c]
movdqu xmm0, xmmword [eax]
add edx, 0x10
lea eax, [eax + 0x10]
movdqu xmm1, xmmword [ebx + eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax + esi - 0x10], xmm1
cmp edx, ecx
jb 0x403580
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp + 8]
cmp edx, ebx
jae 0x4035c2
lea eax, [ebp - 0x14]
sub edi, eax
sub esi, eax
nop
lea ecx, [ebp - 0x14]
add ecx, edx
inc edx
mov al, byte [ecx + edi]
xor al, byte [ecx]
mov byte [ecx + esi], al
cmp edx, ebx
jb 0x4035b0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
movdqu xmm0, xmmword [edi]
pop edi
pop esi
movdqu xmmword [eax], xmm0
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00574661
mov esp, ebp
pop ebp
ret
cmp ebx, 0x10
jb 0x403660
sub edi, esi
lea ebx, [ebx]
push dword [ebp - 0x20]
movdqu xmm2, xmmword [ecx]
mov edx, esi
call fcn.00402e70
add esp, 4
test eax, eax
jne 0x4038ff
mov edx, dword [ebp - 0x24]
lea eax, [edx + 0xf]
cmp esi, eax
ja 0x403632
lea eax, [esi + 0xf]
cmp eax, edx
jb 0x403632
mov ecx, esi
mov edx, 0x10
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec edx
jne 0x403621
mov edx, dword [ebp - 0x24]
jmp 0x403642
movdqu xmm1, xmmword [edx]
movdqu xmm0, xmmword [esi]
pxor xmm1, xmm0
movdqu xmmword [esi], xmm1
mov ecx, dword [ebp - 0x18]
sub ebx, 0x10
add ecx, 0x10
mov dword [ebp + 8], ebx
add esi, 0x10
mov dword [ebp - 0x18], ecx
sub edi, 0x10
movdqu xmmword [edx], xmm2
cmp ebx, 0x10
jae 0x4035f0
test ebx, ebx
je 0x4038ec
movdqu xmm0, xmmword [ecx]
mov edx, esi
lea ecx, [ebp - 0x14]
push dword [ebp - 0x20]
movdqu xmmword [ebp - 0x40], xmm0
movdqu xmmword [ebp - 0x14], xmm0
call fcn.00402e70
add esp, 4
test eax, eax
jne 0x4038ff
xor edx, edx
test ebx, ebx
je 0x403702
mov edi, dword [ebp - 0x24]
cmp ebx, 0x10
jb 0x4036e0
lea eax, [edi - 1]
lea ecx, [esi - 1]
add eax, ebx
add ecx, ebx
cmp esi, eax
ja 0x4036ae
cmp ecx, edi
jae 0x4036e0
mov eax, ebx
mov ecx, ebx
and eax, 0xf
sub ecx, eax
mov eax, esi
sub edi, esi
jmp 0x4036c0
movdqu xmm1, xmmword [eax + edi]
add edx, 0x10
lea eax, [eax + 0x10]
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp edx, ecx
jb 0x4036c0
mov edi, dword [ebp - 0x24]
cmp edx, ebx
jae 0x403702
sub edi, esi
lea ecx, [esi + edx]
mov dword [ebp - 0x1c], edi
mov edi, ebx
mov ebx, dword [ebp - 0x1c]
sub edi, edx
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec edi
jne 0x4036f3
mov ebx, dword [ebp + 8]
cmp ebx, 0x10
jae 0x403721
mov eax, 0x10
lea ecx, [ebp - 0x14]
sub eax, ebx
lea edx, [esi + ebx]
push eax
add ecx, ebx
push ecx
push edx
call fcn.0057c370
add esp, 0xc
mov eax, dword [ebp - 0x24]
movdqu xmm0, xmmword [ebp - 0x40]
pop edi
pop esi
movdqu xmmword [eax], xmm0
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00574661
mov esp, ebp
pop ebp
ret
cmp ebx, 0x10
jb 0x4037e7
lea esp, [esp]
lea eax, [ecx + 0xf]
cmp esi, eax
ja 0x40375e
lea eax, [esi + 0xf]
cmp eax, ecx
jae 0x40376c
lea eax, [edi + 0xf]
cmp esi, eax
ja 0x4037a0
lea eax, [esi + 0xf]
cmp eax, edi
jb 0x4037a0
sub edi, dword [ebp - 0x18]
mov edx, esi
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov edx, 0x10
mov ebx, dword [ebp - 0x1c]
nop
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
dec edx
jne 0x403780
mov ebx, dword [ebp + 8]
jmp 0x4037b0
movdqu xmm1, xmmword [edi]
movdqu xmm0, xmmword [ecx]
pxor xmm1, xmm0
movdqu xmmword [esi], xmm1
push dword [ebp - 0x20]
mov edx, esi
mov ecx, esi
call fcn.004028b0
add esp, 4
test eax, eax
jne 0x4038ff
mov ecx, dword [ebp - 0x18]
sub ebx, 0x10
mov edi, esi
mov dword [ebp + 8], ebx
add ecx, 0x10
add esi, 0x10
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], esi
cmp ebx, 0x10
jae 0x403750
test ebx, ebx
je 0x4038e1
xor edx, edx
mov dword [ebp - 0x18], edx
test ebx, ebx
je 0x4038a7
cmp ebx, 0x10
jb 0x403878
lea eax, [ecx - 1]
mov dword [ebp - 0x18], edx
add eax, ebx
cmp esi, eax
ja 0x403816
lea eax, [esi - 1]
add eax, ebx
cmp eax, ecx
jae 0x403878
lea eax, [edi - 1]
add eax, ebx
cmp esi, eax
ja 0x403828
lea eax, [esi - 1]
add eax, ebx
cmp eax, edi
jae 0x403878
mov edx, esi
mov dword [ebp - 0x28], ebx
sub edx, edi
mov eax, ebx
mov dword [ebp - 0x1c], edx
and eax, 0xf
sub dword [ebp - 0x28], eax
mov edx, ecx
mov esi, dword [ebp - 0x1c]
sub edx, edi
mov dword [ebp - 0x30], edx
mov eax, edi
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x30]
lea esp, [esp]
movdqu xmm1, xmmword [ebx + eax]
add edx, 0x10
lea eax, [eax + 0x10]
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [esi + eax - 0x10], xmm1
cmp edx, dword [ebp - 0x28]
jb 0x403850
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
cmp edx, ebx
jae 0x4038a7
mov eax, edi
sub esi, ecx
sub eax, ecx
mov dword [ebp - 0x1c], esi
add edx, ecx
mov dword [ebp - 0x30], eax
mov ecx, ebx
mov ebx, eax
sub ecx, dword [ebp - 0x18]
mov al, byte [edx + ebx]
lea edx, [edx + 1]
xor al, byte [edx - 1]
mov byte [edx + esi - 1], al
dec ecx
jne 0x403891
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp + 8]
cmp ebx, 0x10
jae 0x4038cc
mov edx, 0x10
lea ecx, [esi + ebx]
sub edi, esi
sub edx, ebx
jmp 0x4038c0
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
dec edx
jne 0x4038c0
push dword [ebp - 0x20]
mov edx, esi
mov ecx, esi
call fcn.004028b0
add esp, 4
test eax, eax
jne 0x4038ff
mov edi, esi
mov eax, dword [ebp - 0x24]
movdqu xmm0, xmmword [edi]
movdqu xmmword [eax], xmm0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00574661
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00574661
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00574661
mov esp, ebp
pop ebp
ret